 |
DATAKIT SDK
V2026.4
|
|
Go to the documentation of this file. 1 #ifndef __DTK_TRANSFO_HPP__
2 #define __DTK_TRANSFO_HPP__
277 #endif //#ifndef __DTK_TRANSFO_HPP__
Dtk_pnt o
Definition: dtk_transfo.hpp:23
This is the Transformation dedicated class.
Definition: dtk_transfo.hpp:19
#define DTK_TOLERANCE
Definition: str_def.h:7
void setAxisRotation(Dtk_dir axis, Dtk_Double64 angle)
turn the basis represented by Dtk_transfo around a given vector with origin on (0....
const Dtk_pnt & getOrigin() const
Return the O center point of the Dtk_transfo (the center O of the basis)
void setOrigin(const Dtk_pnt &O)
Set a new O center point.
void setZdir(const Dtk_dir &Z)
Set a new Z vector.
const double & getOcomponent(Dtk_Int32 n) const
Return the n component of the O center point.
friend Dtk_transfo Dtk_transfoPtr_to_Dtk_transfo(Dtk_SmartPtr< Dtk_transfo > &t)
SetAsDeprecated("2026.4", "Use Create instead") static Dtk_SmartPtr< Dtk_transfo > create()
void addRotate_axeZ(Dtk_Double64 angle)
2D operation, not yet generalized but soon
const double & getZcomponent(Dtk_Int32 n) const
Return the n component of the Z vector.
char Dtk_bool
Definition: define.h:724
double scale() const
Obsolete : use getScale instead.
double Dtk_Double64
Definition: define.h:698
void setXdir(const Dtk_dir &X)
Set a new X vector.
friend std::ostream & operator<<(std::ostream &o, const Dtk_transfo &d)
const Dtk_dir & getZdir() const
Return the Z vector.
Dtk_matrix * GetDtkMatrix()
Dtk_matrix conversion.
void _copy(const Dtk_transfo &s)
static Dtk_SmartPtr< Dtk_transfo > Create()
Calls default constructor to allocate a new object.
int32_t Dtk_Int32
Definition: define.h:686
void Normalize()
Definition: dtk_transfo.hpp:260
Dtk_dir v[3]
Definition: dtk_transfo.hpp:22
int is_identity() const
Is transformation Identity.
Definition: dtk_matrix.hpp:8
Dtk_bool IsDirect() const
Is direct.
const Dtk_dir & getXdir() const
Return the X vector.
void setScale(Dtk_Double64 scale)
Set a new scale.
Definition: util_ptr_dtk.hpp:37
const double & getScale() const
Retrieves the scale factor.
void setYdir(const Dtk_dir &Y)
Set a new Y vector.
This is a mathematical point class.
Definition: dtk_pnt.hpp:20
const double & getYcomponent(Dtk_Int32 n) const
Return the n component of the Y vector.
const double & getXcomponent(Dtk_Int32 n) const
Return the n component of the X vector.
static Dtk_transfo * DtkDynamicCast(Dtk_Object *s)
double sc
Definition: dtk_transfo.hpp:24
int inverse()
Inverse the current Matrix.
void addTranslate(const Dtk_dir &V)
Translate the Dtk_transfo.
void addScale(Dtk_Double64)
Add a scale.
const Dtk_dir & getYdir() const
Return the Y vector.
Definition: dtk_object.hpp:8
Dtk_Int32 DtkDynamicType(const Dtk_Int32 &inId)
Dtk_bool IsNormalized(const Dtk_Double64 &inTol=DTK_TOLERANCE) const
Is normalized.
This is a mathematical direction class.
Definition: dtk_dir.hpp:14