Interface for generic geometry object coordinate transformation.
More...
#include "Transformation.hpp"
|
virtual int | trafoDim () const =0 |
| returns the dimension of transformation. This info helps to optimize the actual transformation process of the geometry objects More...
|
|
virtual bool | usedChunkedTrafo () const =0 |
| returns flag if the chunked transform function should be use the chunked transformation may results in high performance
|
|
virtual void | transform (double &x, double &y, double &z, bool inv=false) const =0 |
| performs single point coordinate transformation (mandatory interface) please note that coordinates must not be changed if not effected by the transformation More...
|
|
virtual void | transform (size_t count, double *x, double *y, double *z, bool inv=false) const =0 |
| performs chunked coordinate transformation (optional interface) please note that coordinates must not be changed if not effected by the transformation More...
|
|
Interface for generic geometry object coordinate transformation.
◆ trafoDim()
virtual int trafoDim |
( |
| ) |
const |
|
pure virtual |
returns the dimension of transformation. This info helps to optimize the actual transformation process of the geometry objects
- Returns
- 1 if only z values are changed
-
2 for 2d transformations
-
3 if all coordinate values may be changed
◆ transform() [1/2]
virtual void transform |
( |
double & |
x, |
|
|
double & |
y, |
|
|
double & |
z, |
|
|
bool |
inv = false |
|
) |
| const |
|
pure virtual |
performs single point coordinate transformation (mandatory interface) please note that coordinates must not be changed if not effected by the transformation
- Parameters
-
[in,out] | x | x-coordinate |
[in,out] | y | y-coordinate |
[in,out] | z | z-coordinate |
[in] | inv | inversion flag if transformation should be inverted |
◆ transform() [2/2]
virtual void transform |
( |
size_t |
count, |
|
|
double * |
x, |
|
|
double * |
y, |
|
|
double * |
z, |
|
|
bool |
inv = false |
|
) |
| const |
|
pure virtual |
performs chunked coordinate transformation (optional interface) please note that coordinates must not be changed if not effected by the transformation
- Parameters
-
[in] | count | number of points |
[in,out] | x | x-coordinate array |
[in,out] | y | y-coordinate array |
[in,out] | z | z-coordinate array |
[in] | inv | inversion flag if transformation should be inverted |