Open CASCADE Technology
6.9.0
|
Class render trihedron. More...
#include <OpenGl_Trihedron.hxx>
Public Member Functions | |
OpenGl_Trihedron () | |
Default constructor. More... | |
virtual | ~OpenGl_Trihedron () |
Destructor. More... | |
virtual void | Render (const Handle< OpenGl_Workspace > &theWorkspace) const |
Render the element. More... | |
virtual void | Release (OpenGl_Context *theCtx) |
Release OpenGL resources. More... | |
void | SetWireframe (const Standard_Boolean theAsWireframe) |
Switch wireframe / shaded trihedron. More... | |
void | SetPosition (const Aspect_TypeOfTriedronPosition thePosition) |
Setup the corner to draw the trihedron. More... | |
void | SetScale (const Standard_Real theScale) |
Setup the scale factor. More... | |
void | SetSizeRatio (const Standard_Real theRatio) |
Setup the size ratio factor. More... | |
void | SetArrowDiameter (const Standard_Real theDiam) |
Setup the arrow diameter. More... | |
void | SetNbFacets (const Standard_Integer theNbFacets) |
Setup the number of facets for tessellation. More... | |
void | SetLabelsColor (const Quantity_Color &theColor) |
Setup color of text labels. More... | |
void | SetArrowsColors (const Quantity_Color &theColorX, const Quantity_Color &theColorY, const Quantity_Color &theColorZ) |
Setup per-arrow color. More... | |
Public Member Functions inherited from OpenGl_Element | |
OpenGl_Element () | |
Standard_Boolean | RenderFiltered (const Handle< OpenGl_Workspace > &theWorkspace, const Handle< OpenGl_RenderFilter > &theFilter) const |
Render element if it passes the filtering procedure. This method should be used for elements which can be used in scope of rendering algorithms. E.g. elements of groups during recursive rendering. If render filter is null, pure rendering is performed. More... | |
Protected Member Functions | |
void | invalidate () |
Invalidate Primitve Arrays. More... | |
void | redraw (const Handle< OpenGl_Workspace > &theWorkspace) const |
void | redrawZBuffer (const Handle< OpenGl_Workspace > &theWorkspace) const |
void | resetTransformations (const Handle< OpenGl_Workspace > &theWorkspace) const |
Resets current model-view and projection transformations and sets translation for trihedron position. More... | |
Protected Member Functions inherited from OpenGl_Element | |
virtual | ~OpenGl_Element () |
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... | |
Class render trihedron.
OpenGl_Trihedron::OpenGl_Trihedron | ( | ) |
Default constructor.
|
virtual |
Destructor.
|
protected |
Invalidate Primitve Arrays.
|
protected |
|
protected |
|
virtual |
Release OpenGL resources.
Implements OpenGl_Element.
|
virtual |
Render the element.
Implements OpenGl_Element.
|
protected |
Resets current model-view and projection transformations and sets translation for trihedron position.
void OpenGl_Trihedron::SetArrowDiameter | ( | const Standard_Real | theDiam | ) |
Setup the arrow diameter.
void OpenGl_Trihedron::SetArrowsColors | ( | const Quantity_Color & | theColorX, |
const Quantity_Color & | theColorY, | ||
const Quantity_Color & | theColorZ | ||
) |
Setup per-arrow color.
void OpenGl_Trihedron::SetLabelsColor | ( | const Quantity_Color & | theColor | ) |
Setup color of text labels.
void OpenGl_Trihedron::SetNbFacets | ( | const Standard_Integer | theNbFacets | ) |
Setup the number of facets for tessellation.
|
inline |
Setup the corner to draw the trihedron.
void OpenGl_Trihedron::SetScale | ( | const Standard_Real | theScale | ) |
Setup the scale factor.
void OpenGl_Trihedron::SetSizeRatio | ( | const Standard_Real | theRatio | ) |
Setup the size ratio factor.
|
inline |
Switch wireframe / shaded trihedron.
|
protected |
|
protected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
protected |
|
mutableprotected |
|
protected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
mutableprotected |
|
protected |
|
protected |
|
protected |