Transformation Mapper. More...
#include "Class_Map.hpp"
Public Member Functions | |
Class_Map () | |
Class_Map (double &X, double &Y, double &Z, double &LL) | |
double | mapArea (uint64_t const &area) |
void | mapCenter (double *¢er, vector< double > &mapcenter) |
void | mapCenter (vector< double > ¢er, vector< double > &mapcenter) |
void | mapNode (vector< uint32_t > &node, vector< double > &mapnode) |
void | mapNodes (uint32_t(*nodes)[3], vector< vector< double > > &mapnodes) |
void | mapNodes (vector< vector< uint32_t > > nodes, vector< vector< double > > &mapnodes) |
void | mapNodesIntersection (uint32_t(*nodes)[3], vector< vector< double > > &mapnodes) |
void | mapNodesIntersection (vector< vector< uint32_t > > nodes, vector< vector< double > > &mapnodes) |
void | mapNormals (vector< int8_t > normal, vector< double > &mapnormal) |
double | mapSize (uint32_t const &size) |
double | mapVolume (uint64_t const &volume) |
double | mapX (uint32_t const &X) |
uint32_t | mapX (double const &X) |
double | mapY (uint32_t const &Y) |
uint32_t | mapY (double const &Y) |
double | mapZ (uint32_t const &Z) |
uint32_t | mapZ (double const &Z) |
Public Attributes | |
Class_Global< dim > | globals |
double | L |
double | X0 |
double | Y0 |
double | Z0 |
Transformation Mapper.
Definition of the transformation from the logical domain to the physical domain. It contains a default (temporary) implementation of a scaling and translation mapper of logical octree. Class_Map has to be implemented and customized by the user for different applications.
Definition at line 42 of file Class_Map.hpp.
Default constructor. Origin of octree in physical domain in (0,0,0) and side length 1.
Definition at line 9 of file Class_Map.tpp.
Customized constructor with origin of octree in physical domain side length provided by the user.
[in] | X | Coordinate X of the origin. |
[in] | Y | Coordinate Y of the origin. |
[in] | Z | Coordinate Z of the origin. |
[in] | LL | Side length of domain. |
Definition at line 22 of file Class_Map.tpp.
double Class_Map< dim >::mapArea | ( | uint64_t const & | area | ) |
Transformation of area of an octant.
[in] | area | Area of octant from logical domain. |
Definition at line 68 of file Class_Map.tpp.
void Class_Map< dim >::mapCenter | ( | double *& | center, |
vector< double > & | mapcenter | ||
) |
Transformation of coordinates of center of an octant.
[in] | center | Pointer to coordinates of center from logical domain. |
[out] | mapcenter | Coordinates of center in physical domain. |
Definition at line 78 of file Class_Map.tpp.
void Class_Map< dim >::mapCenter | ( | vector< double > & | center, |
vector< double > & | mapcenter | ||
) |
Transformation of coordinates of center of an octant.
[in] | center | Vector of coordinates of center from logical domain. |
[out] | mapcenter | Coordinates of center in physical domain. |
Definition at line 100 of file Class_Map.tpp.
void Class_Map< dim >::mapNode | ( | vector< uint32_t > & | node, |
vector< double > & | mapnode | ||
) |
Transformation of coordinates of a node of an octant.
[in] | node | Coordinates of the node from logical domain. |
[out] | mapnodes | Coordinates of the node in physical domain. |
Definition at line 179 of file Class_Map.tpp.
void Class_Map< dim >::mapNodes | ( | uint32_t(*) | nodes[3], |
vector< vector< double > > & | mapnodes | ||
) |
Transformation of coordinates of nodes of an octant.
[in] | nodes | Pointer to coordinates of nodes from logical domain. |
[out] | mapnodes | Coordinates of nodes in physical domain. |
Definition at line 122 of file Class_Map.tpp.
void Class_Map< dim >::mapNodes | ( | vector< vector< uint32_t > > | nodes, |
vector< vector< double > > & | mapnodes | ||
) |
Transformation of coordinates of nodes of an octant.
[in] | nodes | Vector of coordinates of nodes from logical domain. |
[out] | mapnodes | Coordinates of nodes in physical domain. |
Definition at line 151 of file Class_Map.tpp.
void Class_Map< dim >::mapNodesIntersection | ( | uint32_t(*) | nodes[3], |
vector< vector< double > > & | mapnodes | ||
) |
Transformation of coordinates of nodes of an intersection.
[in] | nodes | Pointer to coordinates of nodes from logical domain. |
[out] | mapnodes | Coordinates of nodes in physical domain. |
Definition at line 197 of file Class_Map.tpp.
void Class_Map< dim >::mapNodesIntersection | ( | vector< vector< uint32_t > > | nodes, |
vector< vector< double > > & | mapnodes | ||
) |
Transformation of coordinates of nodes of an intersection.
[in] | nodes | Pointer to coordinates of nodes from logical domain. |
[out] | mapnodes | Coordinates of nodes in physical domain. |
Definition at line 225 of file Class_Map.tpp.
void Class_Map< dim >::mapNormals | ( | vector< int8_t > | normal, |
vector< double > & | mapnormal | ||
) |
Transformation of components of normal of an intersection.
[in] | nodes | Pointer to components of normal from logical domain. |
[out] | mapnodes | components of normal in physical domain. |
Definition at line 253 of file Class_Map.tpp.
double Class_Map< dim >::mapSize | ( | uint32_t const & | size | ) |
Transformation of size of an octant.
[in] | size | Size of octant from logical domain. |
Definition at line 63 of file Class_Map.tpp.
double Class_Map< dim >::mapVolume | ( | uint64_t const & | volume | ) |
Transformation of volume of an octant.
[in] | volume | Volume of octant from logical domain. |
Definition at line 73 of file Class_Map.tpp.
double Class_Map< dim >::mapX | ( | uint32_t const & | X | ) |
Transformation of coordinate X.
[in] | X | Coordinate X from logical domain. |
Definition at line 33 of file Class_Map.tpp.
uint32_t Class_Map< dim >::mapX | ( | double const & | X | ) |
Transformation of coordinate X.
[in] | X | Coordinate X from physical domain. |
Definition at line 48 of file Class_Map.tpp.
double Class_Map< dim >::mapY | ( | uint32_t const & | Y | ) |
Transformation of coordinate Y.
[in] | Y | Coordinate Y from logical domain. |
Definition at line 38 of file Class_Map.tpp.
uint32_t Class_Map< dim >::mapY | ( | double const & | Y | ) |
Transformation of coordinate Y.
[in] | Y | Coordinate Y from physical domain. |
Definition at line 53 of file Class_Map.tpp.
double Class_Map< dim >::mapZ | ( | uint32_t const & | Z | ) |
Transformation of coordinate Z.
[in] | Z | Coordinate Z from logical domain. |
Definition at line 43 of file Class_Map.tpp.
uint32_t Class_Map< dim >::mapZ | ( | double const & | Z | ) |
Transformation of coordinate Z.
[in] | Z | Coordinate Z from physical domain. |
Definition at line 58 of file Class_Map.tpp.
Class_Global<dim> Class_Map< dim >::globals |
Global variables
Definition at line 51 of file Class_Map.hpp.
double Class_Map< dim >::L |
Side length of octree in the physical domain
Definition at line 50 of file Class_Map.hpp.
double Class_Map< dim >::X0 |
Coordinate X of the origin of the octree in the physical domain
Definition at line 47 of file Class_Map.hpp.
double Class_Map< dim >::Y0 |
Coordinate Y of the origin of the octree in the physical domain
Definition at line 48 of file Class_Map.hpp.
double Class_Map< dim >::Z0 |
Coordinate Z of the origin of the octree in the physical domain
Definition at line 49 of file Class_Map.hpp.