Open CASCADE Technology
7.7.0
|
Being rendered, the elements modifies current model-view matrix such that the axes of the specified reference system (in model space) become oriented in the following way: More...
#include <OpenGl_Flipper.hxx>
Public Member Functions | |
OpenGl_Flipper (const gp_Ax2 &theReferenceSystem) | |
Construct rendering element to flip model-view matrix along the reference system to ensure up-Y, right-X orientation. More... | |
void | SetOptions (const Standard_Boolean theIsEnabled) |
Set options for the element. More... | |
virtual void | Render (const Handle< OpenGl_Workspace > &theWorkspace) const override |
virtual void | Release (OpenGl_Context *theCtx) override |
Release GPU resources. Pointer to the context is used because this method might be called when the context is already being destroyed and usage of a handle would be unsafe. More... | |
virtual void | DumpJson (Standard_OStream &theOStream, Standard_Integer theDepth=-1) const override |
Dumps the content of me into the stream. More... | |
Public Member Functions inherited from OpenGl_Element | |
OpenGl_Element () | |
virtual Standard_Boolean | IsFillDrawMode () const |
Return TRUE if primitive type generates shaded triangulation (to be used in filters). More... | |
virtual Standard_Size | EstimatedDataSize () const |
Returns estimated GPU memory usage for holding data without considering overheads and allocation alignment rules. More... | |
virtual void | UpdateMemStats (Graphic3d_FrameStatsDataTmp &theStats) const |
Increment memory usage statistics. Default implementation puts EstimatedDataSize() into Graphic3d_FrameStatsCounter_EstimatedBytesGeom. More... | |
virtual void | UpdateDrawStats (Graphic3d_FrameStatsDataTmp &theStats, bool theIsDetailed) const |
Increment draw calls statistics. More... | |
virtual void | SynchronizeAspects () |
Update parameters of the drawable elements. More... | |
Protected Attributes | |
OpenGl_Vec4 | myReferenceOrigin |
OpenGl_Vec4 | myReferenceX |
OpenGl_Vec4 | myReferenceY |
OpenGl_Vec4 | myReferenceZ |
Standard_Boolean | myIsEnabled |
Additional Inherited Members | |
Static Public Member Functions inherited from OpenGl_Element | |
template<typename theResource_t > | |
static void | Destroy (OpenGl_Context *theContext, theResource_t *&theElement) |
Pointer to the context is used because this method might be called when the context is already being destroyed and usage of a handle would be unsafe. More... | |
Protected Member Functions inherited from OpenGl_Element | |
virtual | ~OpenGl_Element () |
Being rendered, the elements modifies current model-view matrix such that the axes of the specified reference system (in model space) become oriented in the following way:
OpenGl_Flipper::OpenGl_Flipper | ( | const gp_Ax2 & | theReferenceSystem | ) |
Construct rendering element to flip model-view matrix along the reference system to ensure up-Y, right-X orientation.
theReferenceSystem | [in] the reference coordinate system. |
|
overridevirtual |
Dumps the content of me into the stream.
Reimplemented from OpenGl_Element.
|
overridevirtual |
Release GPU resources. Pointer to the context is used because this method might be called when the context is already being destroyed and usage of a handle would be unsafe.
Implements OpenGl_Element.
|
overridevirtual |
Implements OpenGl_Element.
|
inline |
Set options for the element.
theIsEnabled | [in] flag indicates whether the flipper matrix modification should be set up or restored back. |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |