ITrafo Class Referenceabstract

Interface for generic geometry object coordiante transformation. More...

#include "Transformation.hpp"

Public Member Functions

virtual int trafoDim () const =0
 retuns the dimension of transformation. This info helps to optimize the actual transformation process of the geometry objects More...
 
virtual void transform (double &x, double &y, double &z, bool inv=false) const =0
 performs coordiante transformation please note that coordinates must not be changed if not effected by the transformation More...
 

Detailed Description

Interface for generic geometry object coordiante transformation.

Member Function Documentation

◆ trafoDim()

virtual int trafoDim ( ) const
pure virtual

retuns 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()

virtual void transform ( double &  x,
double &  y,
double &  z,
bool  inv = false 
) const
pure virtual

performs coordiante transformation please note that coordinates must not be changed if not effected by the transformation

Parameters
[in,out]xx-coordinates
[in,out]yy-coordinates
[in,out]zz-coordinates
[in]invinversion flag if transformation should be inverted