Open CASCADE Technology  7.2.0
Data Structures | Public Member Functions | Protected Attributes

OpenGl_AspectFace Class Reference

The element holding Graphic3d_AspectFillArea3d. More...

#include <OpenGl_AspectFace.hxx>

Inheritance diagram for OpenGl_AspectFace:
Inheritance graph
[legend]

Data Structures

struct  Resources
 OpenGl resources. More...
 

Public Member Functions

 OpenGl_AspectFace ()
 Empty constructor. More...
 
 OpenGl_AspectFace (const Handle< Graphic3d_AspectFillArea3d > &theAspect)
 Create and assign parameters. More...
 
const Handle< Graphic3d_AspectFillArea3d > & Aspect () const
 Return aspect. More...
 
void SetAspect (const Handle< Graphic3d_AspectFillArea3d > &theAspect)
 Assign parameters. More...
 
void SetAspectEdge (const OpenGl_AspectLine *theAspectEdge)
 Set edge aspect. More...
 
const OpenGl_AspectLineAspectEdge () const
 
bool IsNoLighting () const
 Returns true if lighting should be disabled. More...
 
void SetNoLighting (bool theValue)
 Set if lighting should be disabled or not. More...
 
const Handle< OpenGl_TextureSet > & TextureSet (const Handle< OpenGl_Context > &theCtx) const
 Returne textures map. 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

struct OpenGl_AspectFace::Resources myResources
 
Handle< Graphic3d_AspectFillArea3dmyAspect
 
OpenGl_AspectLine myAspectEdge
 
bool myIsNoLighting
 

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

Detailed Description

The element holding Graphic3d_AspectFillArea3d.

Constructor & Destructor Documentation

◆ OpenGl_AspectFace() [1/2]

OpenGl_AspectFace::OpenGl_AspectFace ( )

Empty constructor.

◆ OpenGl_AspectFace() [2/2]

OpenGl_AspectFace::OpenGl_AspectFace ( const Handle< Graphic3d_AspectFillArea3d > &  theAspect)

Create and assign parameters.

Member Function Documentation

◆ Aspect()

const Handle< Graphic3d_AspectFillArea3d >& OpenGl_AspectFace::Aspect ( ) const
inline

Return aspect.

◆ AspectEdge()

const OpenGl_AspectLine* OpenGl_AspectFace::AspectEdge ( ) const
inline
Returns
edge aspect.

◆ IsNoLighting()

bool OpenGl_AspectFace::IsNoLighting ( ) const
inline

Returns true if lighting should be disabled.

◆ Release()

virtual void OpenGl_AspectFace::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.

◆ Render()

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

Implements OpenGl_Element.

◆ SetAspect()

void OpenGl_AspectFace::SetAspect ( const Handle< Graphic3d_AspectFillArea3d > &  theAspect)

Assign parameters.

◆ SetAspectEdge()

void OpenGl_AspectFace::SetAspectEdge ( const OpenGl_AspectLine theAspectEdge)
inline

Set edge aspect.

◆ SetNoLighting()

void OpenGl_AspectFace::SetNoLighting ( bool  theValue)
inline

Set if lighting should be disabled or not.

◆ ShaderProgramRes()

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

Init and return OpenGl shader program resource.

Returns
shader program resource.

◆ TextureSet()

const Handle< OpenGl_TextureSet >& OpenGl_AspectFace::TextureSet ( const Handle< OpenGl_Context > &  theCtx) const
inline

Returne textures map.

Field Documentation

◆ myAspect

Handle< Graphic3d_AspectFillArea3d > OpenGl_AspectFace::myAspect
protected

◆ myAspectEdge

OpenGl_AspectLine OpenGl_AspectFace::myAspectEdge
protected

◆ myIsNoLighting

bool OpenGl_AspectFace::myIsNoLighting
protected

◆ myResources

struct OpenGl_AspectFace::Resources OpenGl_AspectFace::myResources
protected

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