Peano
Loading...
Searching...
No Matches
Root.h
Go to the documentation of this file.
1// This file is part of the Peano project. For conditions of distribution and
2// use, please see the copyright notice at www.peano-framework.org
3#pragma once
4
8
9namespace toolbox {
10 namespace curvi {
11 class Root {
12 public:
13 Root(const YAML::Node& node, double a_offset[3], double a_size[3], uint a_grid[3]);
14
16
17 void init(uint modes[3]);
18
19 BlockBoundary traverse(int a_index[3]);
20
22
24
25 Node* getChild() const { return child; }
26
27 void checkInit();
28
29 std::string toString(int depth = 0);
30
31 void multiplyToTopography(std::function<double(double, double)> factor);
32
33
34 private:
35 bool isInit;
36
38 uint grid[3];
39 double size[3];
40 double offset[3];
41 bool top;
42
43 easi::Component* model;
44 std::function<double(double, double)> topo;
45 std::function<double(double, double)> final_topo;
46
48 };
49 } // namespace curvi
50} // namespace toolbox
double size[3]
Definition Root.h:39
BlockBoundary traverseProjection(double coords[3])
double offset[3]
Definition Root.h:40
std::function< double(double, double)> topo
Definition Root.h:44
BlockBoundary traverse(int a_index[3])
Node * getChild() const
Definition Root.h:25
void multiplyToTopography(std::function< double(double, double)> factor)
Coordinate coords[2]
Definition Root.h:37
easi::Component * model
Definition Root.h:43
void init(uint modes[3])
Root(const YAML::Node &node, double a_offset[3], double a_size[3], uint a_grid[3])
std::string toString(int depth=0)
std::function< double(double, double)> final_topo
Definition Root.h:45