Open CASCADE Technology  7.0.0
Public Member Functions | Data Fields

Graphic3d_TransformPers Class Reference

Class for keeping and computing transformation persistence. More...

#include <Graphic3d_TransformPers.hxx>

Public Member Functions

 Graphic3d_TransformPers ()
 Default constructor. More...
 
template<class T >
void Apply (const NCollection_Mat4< T > &theProjection, const NCollection_Mat4< T > &theWorldView, const Standard_Integer theViewportWidth, const Standard_Integer theViewportHeight, Bnd_Box &theBoundingBox) const
 Apply transformation to bounding box of presentation. More...
 
template<class T >
void Apply (const NCollection_Mat4< T > &theProjection, const NCollection_Mat4< T > &theWorldView, const Standard_Integer theViewportWidth, const Standard_Integer theViewportHeight, BVH_Box< T, 4 > &theBoundingBox) const
 Apply transformation to bounding box of presentation. More...
 
template<class T >
NCollection_Mat4< T > Compute (const NCollection_Mat4< T > &theProjection, const NCollection_Mat4< T > &theWorldView, const Standard_Integer theViewportWidth, const Standard_Integer theViewportHeight) const
 Compute transformation. Computed matrix can be applied to model world transformation of an object to implement effect of transformation persistence. More...
 
template<class T >
void Apply (NCollection_Mat4< T > &theProjection, NCollection_Mat4< T > &theWorldView, const Standard_Integer theViewportWidth, const Standard_Integer theViewportHeight) const
 

Data Fields

Graphic3d_TransModeFlags Flags
 Transformation persistence mode flags. More...
 
Graphic3d_Vec3d Point
 Reference point for transformation. More...
 

Detailed Description

Class for keeping and computing transformation persistence.

Constructor & Destructor Documentation

Graphic3d_TransformPers::Graphic3d_TransformPers ( )
inline

Default constructor.

Member Function Documentation

template<class T >
void Graphic3d_TransformPers::Apply ( const NCollection_Mat4< T > &  theProjection,
const NCollection_Mat4< T > &  theWorldView,
const Standard_Integer  theViewportWidth,
const Standard_Integer  theViewportHeight,
Bnd_Box theBoundingBox 
) const

Apply transformation to bounding box of presentation.

Parameters
theProjection[in] the projection transformation matrix.
theWorldView[in] the world view transformation matrix.
theViewportWidth[in] the width of viewport (for 2d persistence).
theViewportHeight[in] the height of viewport (for 2d persistence).
theBoundingBox[in/out] the bounding box to transform.
template<class T >
void Graphic3d_TransformPers::Apply ( const NCollection_Mat4< T > &  theProjection,
const NCollection_Mat4< T > &  theWorldView,
const Standard_Integer  theViewportWidth,
const Standard_Integer  theViewportHeight,
BVH_Box< T, 4 > &  theBoundingBox 
) const

Apply transformation to bounding box of presentation.

Parameters
theProjection[in] the projection transformation matrix.
theWorldView[in] the world view transformation matrix.
theViewportWidth[in] the width of viewport (for 2d persistence).
theViewportHeight[in] the height of viewport (for 2d persistence).
theBoundingBox[in/out] the bounding box to transform.
template<class T >
void Graphic3d_TransformPers::Apply ( NCollection_Mat4< T > &  theProjection,
NCollection_Mat4< T > &  theWorldView,
const Standard_Integer  theViewportWidth,
const Standard_Integer  theViewportHeight 
) const
template<class T >
NCollection_Mat4< T > Graphic3d_TransformPers::Compute ( const NCollection_Mat4< T > &  theProjection,
const NCollection_Mat4< T > &  theWorldView,
const Standard_Integer  theViewportWidth,
const Standard_Integer  theViewportHeight 
) const

Compute transformation. Computed matrix can be applied to model world transformation of an object to implement effect of transformation persistence.

Parameters
theProjection[in] the projection transformation matrix.
theWorldView[in] the world view transformation matrix.
theViewportWidth[in] the width of viewport (for 2d persistence).
theViewportHeight[in] the height of viewport (for 2d persistence).
Returns
transformation matrix to be applied to model world transformation of an object.

Field Documentation

Graphic3d_TransModeFlags Graphic3d_TransformPers::Flags

Transformation persistence mode flags.

Graphic3d_Vec3d Graphic3d_TransformPers::Point

Reference point for transformation.


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