Open CASCADE Technology  6.9.0
Public Member Functions | Protected Member Functions | Protected Attributes

OpenGl_Trihedron Class Reference

Class render trihedron. More...

#include <OpenGl_Trihedron.hxx>

Inheritance diagram for OpenGl_Trihedron:
Inheritance graph
[legend]

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 ()
 

Protected Attributes

Aspect_TypeOfTriedronPosition myPos
 
Standard_Real myScale
 
Standard_Boolean myIsWireframe
 
OpenGl_Vec4 myXColor
 
OpenGl_Vec4 myYColor
 
OpenGl_Vec4 myZColor
 
float myRatio
 
float myDiameter
 
int myNbFacettes
 
OpenGl_AspectLine myAspectLine
 
OpenGl_AspectText myAspectText
 
OpenGl_Text myLabelX
 
OpenGl_Text myLabelY
 
OpenGl_Text myLabelZ
 
OpenGl_Cylinder myCylinder
 
OpenGl_Sphere mySphere
 
OpenGl_Cylinder myCone
 
OpenGl_Disk myDisk
 
OpenGl_PrimitiveArray myLine
 
OpenGl_PrimitiveArray myCircle
 

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...
 

Detailed Description

Class render trihedron.

Constructor & Destructor Documentation

OpenGl_Trihedron::OpenGl_Trihedron ( )

Default constructor.

virtual OpenGl_Trihedron::~OpenGl_Trihedron ( )
virtual

Destructor.

Member Function Documentation

void OpenGl_Trihedron::invalidate ( )
protected

Invalidate Primitve Arrays.

void OpenGl_Trihedron::redraw ( const Handle< OpenGl_Workspace > &  theWorkspace) const
protected
void OpenGl_Trihedron::redrawZBuffer ( const Handle< OpenGl_Workspace > &  theWorkspace) const
protected
virtual void OpenGl_Trihedron::Release ( OpenGl_Context theCtx)
virtual

Release OpenGL resources.

Implements OpenGl_Element.

virtual void OpenGl_Trihedron::Render ( const Handle< OpenGl_Workspace > &  theWorkspace) const
virtual

Render the element.

Implements OpenGl_Element.

void OpenGl_Trihedron::resetTransformations ( const Handle< OpenGl_Workspace > &  theWorkspace) const
protected

Resets current model-view and projection transformations and sets translation for trihedron position.

See Also
Aspect_TypeOfTriedronPosition
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.

void OpenGl_Trihedron::SetPosition ( const Aspect_TypeOfTriedronPosition  thePosition)
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.

void OpenGl_Trihedron::SetWireframe ( const Standard_Boolean  theAsWireframe)
inline

Switch wireframe / shaded trihedron.

Field Documentation

OpenGl_AspectLine OpenGl_Trihedron::myAspectLine
protected
OpenGl_AspectText OpenGl_Trihedron::myAspectText
protected
OpenGl_PrimitiveArray OpenGl_Trihedron::myCircle
mutableprotected
OpenGl_Cylinder OpenGl_Trihedron::myCone
mutableprotected
OpenGl_Cylinder OpenGl_Trihedron::myCylinder
mutableprotected
float OpenGl_Trihedron::myDiameter
protected
OpenGl_Disk OpenGl_Trihedron::myDisk
mutableprotected
Standard_Boolean OpenGl_Trihedron::myIsWireframe
protected
OpenGl_Text OpenGl_Trihedron::myLabelX
mutableprotected
OpenGl_Text OpenGl_Trihedron::myLabelY
mutableprotected
OpenGl_Text OpenGl_Trihedron::myLabelZ
mutableprotected
OpenGl_PrimitiveArray OpenGl_Trihedron::myLine
mutableprotected
int OpenGl_Trihedron::myNbFacettes
protected
Aspect_TypeOfTriedronPosition OpenGl_Trihedron::myPos
protected
float OpenGl_Trihedron::myRatio
protected
Standard_Real OpenGl_Trihedron::myScale
protected
OpenGl_Sphere OpenGl_Trihedron::mySphere
mutableprotected
OpenGl_Vec4 OpenGl_Trihedron::myXColor
protected
OpenGl_Vec4 OpenGl_Trihedron::myYColor
protected
OpenGl_Vec4 OpenGl_Trihedron::myZColor
protected

The documentation for this class was generated from the following file: