Open CASCADE Technology  6.9.0
Data Structures | Public Member Functions
OpenGl_AspectMarker Class Reference

#include <OpenGl_AspectMarker.hxx>

Inheritance diagram for OpenGl_AspectMarker:
Inheritance graph
[legend]

Data Structures

struct  Resources
 OpenGl resources. More...
 

Public Member Functions

 OpenGl_AspectMarker ()
 
void SetAspect (const CALL_DEF_CONTEXTMARKER &theAspect)
 Copy parameters. More...
 
const TEL_COLOURColor () const
 
Aspect_TypeOfMarker Type () const
 
Standard_ShortReal Scale () const
 
Standard_ShortReal MarkerSize () const
 
const Handle
< OpenGl_PointSprite > & 
SpriteRes (const Handle< OpenGl_Context > &theCtx) const
 Init and return OpenGl point sprite resource. More...
 
const Handle
< OpenGl_PointSprite > & 
SpriteHighlightRes (const Handle< OpenGl_Context > &theCtx) const
 Init and return OpenGl highlight point sprite resource. More...
 
const Handle
< OpenGl_ShaderProgram > & 
ShaderProgramRes (const Handle< OpenGl_Context > &theCtx) const
 Init and return OpenGl shader program resource. More...
 
virtual void Render (const Handle< OpenGl_Workspace > &theWorkspace) const
 
virtual void Release (OpenGl_Context *theContext)
 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...
 

Protected Attributes

ordinary aspect properties
TEL_COLOUR myColor
 
Aspect_TypeOfMarker myType
 
Standard_ShortReal myScale
 
Standard_ShortReal myMarkerSize
 
Handle< Graphic3d_MarkerImagemyMarkerImage
 
Handle< Graphic3d_ShaderProgrammyShaderProgram
 
OpenGl resources
struct
OpenGl_AspectMarker::Resources 
myResources
 

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

Constructor & Destructor Documentation

OpenGl_AspectMarker::OpenGl_AspectMarker ( )

Member Function Documentation

const TEL_COLOUR& OpenGl_AspectMarker::Color ( ) const
inline
Returns
marker color
Standard_ShortReal OpenGl_AspectMarker::MarkerSize ( ) const
inline
Returns
marker size
virtual void OpenGl_AspectMarker::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_AspectMarker::Render ( const Handle< OpenGl_Workspace > &  theWorkspace) const
virtual

Implements OpenGl_Element.

Standard_ShortReal OpenGl_AspectMarker::Scale ( ) const
inline
Returns
marker scale
void OpenGl_AspectMarker::SetAspect ( const CALL_DEF_CONTEXTMARKER theAspect)

Copy parameters.

const Handle< OpenGl_ShaderProgram >& OpenGl_AspectMarker::ShaderProgramRes ( const Handle< OpenGl_Context > &  theCtx) const
inline

Init and return OpenGl shader program resource.

Returns
shader program resource.
const Handle< OpenGl_PointSprite >& OpenGl_AspectMarker::SpriteHighlightRes ( const Handle< OpenGl_Context > &  theCtx) const
inline

Init and return OpenGl highlight point sprite resource.

Returns
point sprite texture for highlight.
const Handle< OpenGl_PointSprite >& OpenGl_AspectMarker::SpriteRes ( const Handle< OpenGl_Context > &  theCtx) const
inline

Init and return OpenGl point sprite resource.

Returns
point sprite texture.
Aspect_TypeOfMarker OpenGl_AspectMarker::Type ( ) const
inline
Returns
maker type

Field Documentation

TEL_COLOUR OpenGl_AspectMarker::myColor
protected
Handle< Graphic3d_MarkerImage > OpenGl_AspectMarker::myMarkerImage
protected
Standard_ShortReal OpenGl_AspectMarker::myMarkerSize
mutableprotected
struct OpenGl_AspectMarker::Resources OpenGl_AspectMarker::myResources
protected
Standard_ShortReal OpenGl_AspectMarker::myScale
protected
Handle< Graphic3d_ShaderProgram > OpenGl_AspectMarker::myShaderProgram
protected
Aspect_TypeOfMarker OpenGl_AspectMarker::myType
protected

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