15 #include "visbasemod.h" 19 namespace osg {
class MatrixTransform;
class Vec3d;
class Vec3f;
class Quat; }
24 #define mDefTransType( func, tp ) \ 25 void func( tp& ) const; \ 26 void func( const tp& f, tp& t ) const; \ 27 static void func( const Transformation* tr, tp& v ) \ 28 { if ( tr ) tr->func( v ); } \ 29 static void func( const Transformation* tr, const tp& f, tp& t ); 31 #define mDefTrans( tp ) \ 32 mDefTransType( transform, tp ); \ 33 mDefTransType( transformBack, tp ); \ 34 mDefTransType( transformDir, tp ); \ 35 mDefTransType( transformBackDir, tp ); \ 36 mDefTransType( transformSize, tp ); \ 37 mDefTransType( transformBackSize, tp ); \ 38 mDefTransType( transformNormal, tp ); \ 39 mDefTransType( transformBackNormal, tp ); 42 #define mDefConvTransType( func, frtp, totp ) \ 43 void func( const frtp&, totp& ) const; \ 44 static void func( const Transformation* tr, const frtp& f, totp& t); 46 #define mDefConvTrans( frtp, totp ) \ 47 mDefConvTransType( transform, frtp, totp ); \ 48 mDefConvTransType( transformBack, frtp, totp ); \ 49 mDefConvTransType( transformDir, frtp, totp ); \ 50 mDefConvTransType( transformBackDir, frtp, totp ); \ 51 mDefConvTransType( transformSize, frtp, totp ); \ 52 mDefConvTransType( transformBackSize, frtp, totp ); \ 53 mDefConvTransType( transformNormal, frtp, totp ); \ 54 mDefConvTransType( transformBackNormal, frtp, totp ); 82 void setA(
double a11,
double a12,
double a13,
double a14,
83 double a21,
double a22,
double a23,
double a24,
84 double a31,
double a32,
double a33,
double a34,
85 double a41,
double a42,
double a43,
double a44 );
87 void setMatrix(const
Coord3& trans,
88 const
Coord3& rotvec,
double rotangle,
91 void setTranslation(const
Coord3&);
92 void setRotation(const Coord3& vec,
double angle);
93 void setScale(const Coord3&);
94 void setScaleOrientation(const Coord3& vec,
double angle);
96 Coord3 getTranslation() const;
97 Coord3 getScale() const;
98 void getRotation(Coord3& vec,
double& angle) const;
101 void setAbsoluteReferenceFrame();
102 const
osg::MatrixTransform* getTransformNode()
const {
return node_; };
119 void updateNormalizationMode();
#define mExpClass(module)
Definition: commondefs.h:160
Definition: visdatagroup.h:27
A cartesian coordinate in 3D space.
Definition: coord.h:72
Definition: visannot.h:43
Open Scene Graph.
Definition: visannot.h:29
#define mCreateDataObj(clss)
Definition: visdata.h:209