Helper class for keeping reference on world-view-projection state. Helpful for synchronizing state of WVP dependent data structures.
More...
#include <Graphic3d_WorldViewProjState.hxx>
Helper class for keeping reference on world-view-projection state. Helpful for synchronizing state of WVP dependent data structures.
◆ Graphic3d_WorldViewProjState() [1/2]
| Graphic3d_WorldViewProjState::Graphic3d_WorldViewProjState |
( |
| ) |
|
|
inline |
◆ Graphic3d_WorldViewProjState() [2/2]
| Graphic3d_WorldViewProjState::Graphic3d_WorldViewProjState |
( |
const size_t | theProjectionState, |
|
|
const size_t | theWorldViewState, |
|
|
const Standard_Transient * | theCamera = nullptr ) |
|
inline |
Constructor for custom projector type.
- Parameters
-
| [in] | theProjectionState | the projection state. |
| [in] | theWorldViewState | the world view state. |
| [in] | theCamera | the pointer to the class supplying projection and world view matrices (camera). |
◆ DumpJson()
Dumps the content of me into the stream.
◆ Initialize() [1/2]
| void Graphic3d_WorldViewProjState::Initialize |
( |
const size_t | theProjectionState, |
|
|
const size_t | theWorldViewState, |
|
|
const Standard_Transient * | theCamera = nullptr ) |
|
inline |
Initialize world view projection state.
◆ Initialize() [2/2]
Initialize world view projection state.
◆ IsChanged()
Compare with other world view projection state.
- Returns
- true when the projection of the given camera state differs from this one.
◆ IsProjectionChanged()
Compare projection with other state.
- Returns
- true when the projection of the given camera state differs from this one.
◆ IsValid()
| bool Graphic3d_WorldViewProjState::IsValid |
( |
| ) |
|
|
inline |
Check state validity.
- Returns
- true if state is set.
◆ IsWorldViewChanged()
Compare world view transformation with other state.
- Returns
- true when the orientation of the given camera state differs from this one.
◆ operator!=()
Compare with other world view projection state.
- Returns
- true if the other projection state is different to this one.
◆ operator==()
Compare with other world view projection state.
- Returns
- true if the other projection state is equal to this one.
◆ ProjectionState()
| size_t & Graphic3d_WorldViewProjState::ProjectionState |
( |
| ) |
|
|
inline |
- Returns
- projection state counter.
◆ Reset()
| void Graphic3d_WorldViewProjState::Reset |
( |
| ) |
|
|
inline |
Invalidate world view projection state.
◆ WorldViewState()
| size_t & Graphic3d_WorldViewProjState::WorldViewState |
( |
| ) |
|
|
inline |
- Returns
- world view state counter.
The documentation for this class was generated from the following file: