3.5.0-rc1
Loading...
Searching...
No Matches
tigl::CTiglTransformation Class Reference

#include <CTiglTransformation.h>

Public Member Functions

TIGL_EXPORT void AddMirroringAtXYPlane ()
TIGL_EXPORT void AddMirroringAtXZPlane ()
TIGL_EXPORT void AddMirroringAtYZPlane ()
TIGL_EXPORT void AddProjectionOnXYPlane ()
TIGL_EXPORT void AddProjectionOnXZPlane ()
TIGL_EXPORT void AddProjectionOnYZPlane ()
TIGL_EXPORT void AddRotationIntrinsicXYZ (double phi, double theta, double psi)
TIGL_EXPORT void AddRotationX (double degreeX)
TIGL_EXPORT void AddRotationY (double degreeY)
TIGL_EXPORT void AddRotationZ (double degreeZ)
TIGL_EXPORT void AddScaling (double sx, double sy, double sz)
TIGL_EXPORT void AddTranslation (double tx, double ty, double tz)
TIGL_EXPORT CTiglTransformation ()
TIGL_EXPORT CTiglTransformation (const gp_GTrsf &ocMatrix)
TIGL_EXPORT CTiglTransformation (const gp_Trsf &trans)
TIGL_EXPORT CTiglTransformation (const gp_Vec &translation)
TIGL_EXPORT bool Decompose (double scale[3], double rotation[3], double translation[3], bool rounding=true) const
TIGL_EXPORT void DecomposeTRSRS (CTiglPoint &scaling1, CTiglPoint &rotation1, CTiglPoint &scaling2, CTiglPoint &rotation2, CTiglPoint &translation, bool rounding=true) const
TIGL_EXPORT gp_GTrsf Get_gp_GTrsf () const
TIGL_EXPORT double GetLinearDeterminant () const
TIGL_EXPORT CTiglPoint GetTranslation ()
TIGL_EXPORT double GetValue (int row, int col) const
TIGL_EXPORT double GetVolumeScaleFactor () const
TIGL_EXPORT Handle (Geom_Surface) Transform(const Handle(Geom_Surface) &surf) const
TIGL_EXPORT bool HasZeroScaling () const
TIGL_EXPORT CTiglTransformation Inverted () const
TIGL_EXPORT bool IsNear (const CTiglTransformation &other, double epsilon=0.0001) const
TIGL_EXPORT CTiglTransformationoperator= (const CTiglTransformation &)
TIGL_EXPORT void PostMultiply (const CTiglTransformation &aTrans)
TIGL_EXPORT void PreMultiply (const CTiglTransformation &aTrans)
TIGL_EXPORT void SetIdentity ()
TIGL_EXPORT void SetTranslation (const CTiglPoint &translation)
TIGL_EXPORT void SetValue (int row, int col, double value)
TIGL_EXPORT gp_Pnt Transform (const gp_Pnt &point) const
TIGL_EXPORT gp_Vec Transform (const gp_Vec &vec) const
TIGL_EXPORT TopoDS_Shape Transform (const TopoDS_Shape &shape) const
TIGL_EXPORT PNamedShape Transform (PNamedShape shape) const

Static Public Member Functions

static TIGL_EXPORT double DegreeToRadian (double degree)
static TIGL_EXPORT CTiglTransformation GetRotationFromAxisRotation (tigl::CTiglPoint axis, double angle)
static TIGL_EXPORT CTiglTransformation GetRotationToAlignAToB (tigl::CTiglPoint vectorA, tigl::CTiglPoint vectorB)
static TIGL_EXPORT double RadianToDegree (double radian)

Private Member Functions

bool IsUniform () const

Private Attributes

double m_matrix [4][4]

Friends

TIGL_EXPORT friend std::ostream & operator<< (std::ostream &os, const CTiglTransformation &t)

Constructor & Destructor Documentation

◆ CTiglTransformation() [1/4]

TIGL_EXPORT tigl::CTiglTransformation::CTiglTransformation ( )

◆ CTiglTransformation() [2/4]

TIGL_EXPORT tigl::CTiglTransformation::CTiglTransformation ( const gp_GTrsf & ocMatrix)
explicit

◆ CTiglTransformation() [3/4]

TIGL_EXPORT tigl::CTiglTransformation::CTiglTransformation ( const gp_Trsf & trans)
explicit

◆ CTiglTransformation() [4/4]

TIGL_EXPORT tigl::CTiglTransformation::CTiglTransformation ( const gp_Vec & translation)
explicit

Member Function Documentation

◆ AddMirroringAtXYPlane()

TIGL_EXPORT void tigl::CTiglTransformation::AddMirroringAtXYPlane ( )

◆ AddMirroringAtXZPlane()

TIGL_EXPORT void tigl::CTiglTransformation::AddMirroringAtXZPlane ( )

◆ AddMirroringAtYZPlane()

TIGL_EXPORT void tigl::CTiglTransformation::AddMirroringAtYZPlane ( )

◆ AddProjectionOnXYPlane()

TIGL_EXPORT void tigl::CTiglTransformation::AddProjectionOnXYPlane ( )

◆ AddProjectionOnXZPlane()

TIGL_EXPORT void tigl::CTiglTransformation::AddProjectionOnXZPlane ( )

◆ AddProjectionOnYZPlane()

TIGL_EXPORT void tigl::CTiglTransformation::AddProjectionOnYZPlane ( )

◆ AddRotationIntrinsicXYZ()

TIGL_EXPORT void tigl::CTiglTransformation::AddRotationIntrinsicXYZ ( double phi,
double theta,
double psi )

◆ AddRotationX()

TIGL_EXPORT void tigl::CTiglTransformation::AddRotationX ( double degreeX)

◆ AddRotationY()

TIGL_EXPORT void tigl::CTiglTransformation::AddRotationY ( double degreeY)

◆ AddRotationZ()

TIGL_EXPORT void tigl::CTiglTransformation::AddRotationZ ( double degreeZ)

◆ AddScaling()

TIGL_EXPORT void tigl::CTiglTransformation::AddScaling ( double sx,
double sy,
double sz )

◆ AddTranslation()

TIGL_EXPORT void tigl::CTiglTransformation::AddTranslation ( double tx,
double ty,
double tz )

◆ Decompose()

TIGL_EXPORT bool tigl::CTiglTransformation::Decompose ( double scale[3],
double rotation[3],
double translation[3],
bool rounding = true ) const

◆ DecomposeTRSRS()

TIGL_EXPORT void tigl::CTiglTransformation::DecomposeTRSRS ( CTiglPoint & scaling1,
CTiglPoint & rotation1,
CTiglPoint & scaling2,
CTiglPoint & rotation2,
CTiglPoint & translation,
bool rounding = true ) const

◆ DegreeToRadian()

TIGL_EXPORT double tigl::CTiglTransformation::DegreeToRadian ( double degree)
static

◆ Get_gp_GTrsf()

TIGL_EXPORT gp_GTrsf tigl::CTiglTransformation::Get_gp_GTrsf ( ) const

◆ GetLinearDeterminant()

TIGL_EXPORT double tigl::CTiglTransformation::GetLinearDeterminant ( ) const

◆ GetRotationFromAxisRotation()

TIGL_EXPORT CTiglTransformation tigl::CTiglTransformation::GetRotationFromAxisRotation ( tigl::CTiglPoint axis,
double angle )
static

◆ GetRotationToAlignAToB()

TIGL_EXPORT CTiglTransformation tigl::CTiglTransformation::GetRotationToAlignAToB ( tigl::CTiglPoint vectorA,
tigl::CTiglPoint vectorB )
static

◆ GetTranslation()

TIGL_EXPORT CTiglPoint tigl::CTiglTransformation::GetTranslation ( )

◆ GetValue()

TIGL_EXPORT double tigl::CTiglTransformation::GetValue ( int row,
int col ) const

◆ GetVolumeScaleFactor()

TIGL_EXPORT double tigl::CTiglTransformation::GetVolumeScaleFactor ( ) const

◆ Handle()

TIGL_EXPORT tigl::CTiglTransformation::Handle ( Geom_Surface ) const &

◆ HasZeroScaling()

TIGL_EXPORT bool tigl::CTiglTransformation::HasZeroScaling ( ) const

◆ Inverted()

TIGL_EXPORT CTiglTransformation tigl::CTiglTransformation::Inverted ( ) const

◆ IsNear()

TIGL_EXPORT bool tigl::CTiglTransformation::IsNear ( const CTiglTransformation & other,
double epsilon = 0.0001 ) const

◆ IsUniform()

bool tigl::CTiglTransformation::IsUniform ( ) const
private

◆ operator=()

TIGL_EXPORT CTiglTransformation & tigl::CTiglTransformation::operator= ( const CTiglTransformation & )

◆ PostMultiply()

TIGL_EXPORT void tigl::CTiglTransformation::PostMultiply ( const CTiglTransformation & aTrans)

◆ PreMultiply()

TIGL_EXPORT void tigl::CTiglTransformation::PreMultiply ( const CTiglTransformation & aTrans)

◆ RadianToDegree()

TIGL_EXPORT double tigl::CTiglTransformation::RadianToDegree ( double radian)
static

◆ SetIdentity()

TIGL_EXPORT void tigl::CTiglTransformation::SetIdentity ( )

◆ SetTranslation()

TIGL_EXPORT void tigl::CTiglTransformation::SetTranslation ( const CTiglPoint & translation)

◆ SetValue()

TIGL_EXPORT void tigl::CTiglTransformation::SetValue ( int row,
int col,
double value )

◆ Transform() [1/4]

TIGL_EXPORT gp_Pnt tigl::CTiglTransformation::Transform ( const gp_Pnt & point) const

◆ Transform() [2/4]

TIGL_EXPORT gp_Vec tigl::CTiglTransformation::Transform ( const gp_Vec & vec) const

◆ Transform() [3/4]

TIGL_EXPORT TopoDS_Shape tigl::CTiglTransformation::Transform ( const TopoDS_Shape & shape) const

◆ Transform() [4/4]

TIGL_EXPORT PNamedShape tigl::CTiglTransformation::Transform ( PNamedShape shape) const

◆ operator<<

TIGL_EXPORT friend std::ostream & operator<< ( std::ostream & os,
const CTiglTransformation & t )
friend

Field Documentation

◆ m_matrix

double tigl::CTiglTransformation::m_matrix[4][4]
private

The documentation for this class was generated from the following file: