Open CASCADE Technology  6.8.0
Public Member Functions | Static 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 (const Aspect_TypeOfTriedronPosition thePosition, const Quantity_NameOfColor theColor, const Standard_Real theScale, const Standard_Boolean theAsWireframe)
 
virtual void Render (const Handle< OpenGl_Workspace > &theWorkspace) const
 
virtual void Release (OpenGl_Context *theCtx)
 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...
 
- 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...
 

Static Public Member Functions

static void Setup (const Quantity_NameOfColor theXColor, const Quantity_NameOfColor theYColor, const Quantity_NameOfColor theZColor, const Standard_Real theSizeRatio, const Standard_Real theAxisDiametr, const Standard_Integer theNbFacettes)
 
- 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

virtual ~OpenGl_Trihedron ()
 
void redraw (const Handle< OpenGl_Workspace > &theWorkspace) const
 
void redrawZBuffer (const Handle< OpenGl_Workspace > &theWorkspace) const
 
- Protected Member Functions inherited from OpenGl_Element
virtual ~OpenGl_Element ()
 

Protected Attributes

Aspect_TypeOfTriedronPosition myPos
 
Standard_Real myScale
 
Standard_Boolean myIsWireframe
 
TEL_COLOUR myXColor
 
TEL_COLOUR myYColor
 
TEL_COLOUR 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
 

Detailed Description

Class render trihedron.

Constructor & Destructor Documentation

OpenGl_Trihedron::OpenGl_Trihedron ( const Aspect_TypeOfTriedronPosition  thePosition,
const Quantity_NameOfColor  theColor,
const Standard_Real  theScale,
const Standard_Boolean  theAsWireframe 
)
virtual OpenGl_Trihedron::~OpenGl_Trihedron ( )
protectedvirtual

Member Function Documentation

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 theContext)
virtual

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.

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

Implements OpenGl_Element.

static void OpenGl_Trihedron::Setup ( const Quantity_NameOfColor  theXColor,
const Quantity_NameOfColor  theYColor,
const Quantity_NameOfColor  theZColor,
const Standard_Real  theSizeRatio,
const Standard_Real  theAxisDiametr,
const Standard_Integer  theNbFacettes 
)
static

Field Documentation

OpenGl_AspectLine OpenGl_Trihedron::myAspectLine
protected
OpenGl_AspectText OpenGl_Trihedron::myAspectText
protected
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
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
TEL_COLOUR OpenGl_Trihedron::myXColor
protected
TEL_COLOUR OpenGl_Trihedron::myYColor
protected
TEL_COLOUR OpenGl_Trihedron::myZColor
protected

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