Open CASCADE Technology
6.9.1
|
This class allows to render Graduated Trihedron, i.e. trihedron with grid. it is based on Graphic3d_GraduatedTrihedron parameters and support its customization on construction level only. More...
#include <OpenGl_GraduatedTrihedron.hxx>
Public Member Functions | |
OpenGl_GraduatedTrihedron () | |
Default constructor. More... | |
virtual | ~OpenGl_GraduatedTrihedron () |
Destructor. More... | |
virtual void | Render (const Handle< OpenGl_Workspace > &theWorkspace) const |
Draw the element. More... | |
virtual void | Release (OpenGl_Context *theCtx) |
Release OpenGL resources. More... | |
void | SetValues (const Handle< OpenGl_Context > &theCtx, const Graphic3d_GraduatedTrihedron &theData) |
Setup configuration. More... | |
void | SetMinMax (const OpenGl_Vec3 &theMin, const OpenGl_Vec3 &theMax) |
Sets up-to-date values of scene bounding box. Can be used in callback mechanism to get up-to-date values. 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 Attributes | |
Scene bounding box values | |
OpenGl_Vec3 | myMin |
Axes for trihedron. More... | |
OpenGl_Vec3 | myMax |
Axes for trihedron. More... | |
Axis | myAxes [3] |
Axes for trihedron. More... | |
Graphic3d_GraduatedTrihedron | myData |
Axes for trihedron. More... | |
OpenGl_AspectLine | myGridLineAspect |
Color grid properties. More... | |
Labels properties | |
OpenGl_Text | myLabelValues |
OpenGl_AspectText | myAspectLabels |
OpenGl_AspectText | myAspectValues |
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 () |
This class allows to render Graduated Trihedron, i.e. trihedron with grid. it is based on Graphic3d_GraduatedTrihedron parameters and support its customization on construction level only.
OpenGl_GraduatedTrihedron::OpenGl_GraduatedTrihedron | ( | ) |
Default constructor.
|
virtual |
Destructor.
|
virtual |
Release OpenGL resources.
Implements OpenGl_Element.
|
virtual |
Draw the element.
Implements OpenGl_Element.
void OpenGl_GraduatedTrihedron::SetMinMax | ( | const OpenGl_Vec3 & | theMin, |
const OpenGl_Vec3 & | theMax | ||
) |
Sets up-to-date values of scene bounding box. Can be used in callback mechanism to get up-to-date values.
void OpenGl_GraduatedTrihedron::SetValues | ( | const Handle< OpenGl_Context > & | theCtx, |
const Graphic3d_GraduatedTrihedron & | theData | ||
) |
Setup configuration.
|
mutableprotected |
|
mutableprotected |
|
protected |
Axes for trihedron.
|
protected |
Axes for trihedron.
|
protected |
Color grid properties.
|
mutableprotected |
|
protected |
Axes for trihedron.
|
protected |
Axes for trihedron.