Open CASCADE Technology  7.0.0
Data Structures | Public Member Functions | Protected Attributes
OpenGl_AspectLine Class Reference

#include <OpenGl_AspectLine.hxx>

Inheritance diagram for OpenGl_AspectLine:
Inheritance graph
[legend]

Data Structures

struct  Resources
 OpenGl resources. More...
 

Public Member Functions

 OpenGl_AspectLine ()
 
 OpenGl_AspectLine (const OpenGl_AspectLine &AnOther)
 
void SetAspect (const CALL_DEF_CONTEXTLINE &theAspect)
 
const TEL_COLOURColor () const
 
TEL_COLOURChangeColor ()
 
Aspect_TypeOfLine Type () const
 
float Width () const
 
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

TEL_COLOUR myColor
 
Aspect_TypeOfLine myType
 
float myWidth
 
Handle< Graphic3d_ShaderProgrammyShaderProgram
 
struct OpenGl_AspectLine::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_AspectLine::OpenGl_AspectLine ( )
OpenGl_AspectLine::OpenGl_AspectLine ( const OpenGl_AspectLine AnOther)

Member Function Documentation

TEL_COLOUR& OpenGl_AspectLine::ChangeColor ( )
inline
const TEL_COLOUR& OpenGl_AspectLine::Color ( ) const
inline
virtual void OpenGl_AspectLine::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_AspectLine::Render ( const Handle< OpenGl_Workspace > &  theWorkspace) const
virtual

Implements OpenGl_Element.

void OpenGl_AspectLine::SetAspect ( const CALL_DEF_CONTEXTLINE theAspect)
const Handle< OpenGl_ShaderProgram >& OpenGl_AspectLine::ShaderProgramRes ( const Handle< OpenGl_Context > &  theCtx) const
inline

Init and return OpenGl shader program resource.

Returns
shader program resource.
Aspect_TypeOfLine OpenGl_AspectLine::Type ( ) const
inline
float OpenGl_AspectLine::Width ( ) const
inline

Field Documentation

TEL_COLOUR OpenGl_AspectLine::myColor
protected
struct OpenGl_AspectLine::Resources OpenGl_AspectLine::myResources
protected
Handle< Graphic3d_ShaderProgram > OpenGl_AspectLine::myShaderProgram
protected
Aspect_TypeOfLine OpenGl_AspectLine::myType
protected
float OpenGl_AspectLine::myWidth
protected

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