Open CASCADE Technology
7.0.0
|
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... | |
Class for keeping and computing transformation persistence.
|
inline |
Default constructor.
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.
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. |
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.
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. |
void Graphic3d_TransformPers::Apply | ( | NCollection_Mat4< T > & | theProjection, |
NCollection_Mat4< T > & | theWorldView, | ||
const Standard_Integer | theViewportWidth, | ||
const Standard_Integer | theViewportHeight | ||
) | const |
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.
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). |
Graphic3d_TransModeFlags Graphic3d_TransformPers::Flags |
Transformation persistence mode flags.
Graphic3d_Vec3d Graphic3d_TransformPers::Point |
Reference point for transformation.