Open CASCADE Technology  6.9.0
Data Structures | Public Member Functions | Protected Member Functions

OpenGl_AspectFace Class Reference

#include <OpenGl_AspectFace.hxx>

Inheritance diagram for OpenGl_AspectFace:
Inheritance graph
[legend]

Data Structures

struct  Resources
 OpenGl resources. More...
 

Public Member Functions

 OpenGl_AspectFace ()
 
void SetAspect (const CALL_DEF_CONTEXTFILLAREA &theAspect)
 Copy parameters. More...
 
void SetAspect (const Handle< Graphic3d_AspectFillArea3d > &theAspect)
 
void SetAspectEdge (const OpenGl_AspectLine *theAspectEdge)
 Set edge aspect. More...
 
const OpenGl_AspectLineAspectEdge () const
 
const Aspect_InteriorStyle InteriorStyle () const
 
Aspect_InteriorStyleChangeInteriorStyle ()
 
int Edge () const
 
int & ChangeEdge ()
 
int Hatch () const
 
int & ChangeHatch ()
 
int DistinguishingMode () const
 
int & ChangeDistinguishingMode ()
 
int CullingMode () const
 
int & ChangeCullingMode ()
 
const OPENGL_SURF_PROPIntFront () const
 
OPENGL_SURF_PROPChangeIntFront ()
 
const OPENGL_SURF_PROPIntBack () const
 
OPENGL_SURF_PROPChangeIntBack ()
 
const TEL_POFFSET_PARAMPolygonOffset () const
 
TEL_POFFSET_PARAMChangePolygonOffset ()
 
bool DoTextureMap () const
 
bool & ChangeDoTextureMap ()
 
const Handle
< Graphic3d_TextureParams > & 
TextureParams () const
 
const Handle< OpenGl_Texture > & TextureRes (const Handle< OpenGl_Context > &theCtx) 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 Member Functions

void convertMaterial (const CALL_DEF_MATERIAL &theMat, OPENGL_SURF_PROP &theSurf)
 
- Protected Member Functions inherited from OpenGl_Element
virtual ~OpenGl_Element ()
 

Protected Attributes

ordinary aspect properties
Aspect_InteriorStyle myInteriorStyle
 
int myEdge
 
int myHatch
 
int myDistinguishingMode
 
int myCullingMode
 
OPENGL_SURF_PROP myIntFront
 
OPENGL_SURF_PROP myIntBack
 
TEL_POFFSET_PARAM myPolygonOffset
 
bool myDoTextureMap
 
Handle< Graphic3d_TextureMapmyTexture
 
Handle< Graphic3d_ShaderProgrammyShaderProgram
 
struct OpenGl_AspectFace::Resources myResources
 
OpenGl_AspectLine myAspectEdge
 

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

Constructor & Destructor Documentation

OpenGl_AspectFace::OpenGl_AspectFace ( )

Member Function Documentation

const OpenGl_AspectLine* OpenGl_AspectFace::AspectEdge ( ) const
inline
Returns
edge aspect.
int& OpenGl_AspectFace::ChangeCullingMode ( )
inline
Returns
culling mode.
int& OpenGl_AspectFace::ChangeDistinguishingMode ( )
inline
Returns
distinguishing mode.
bool& OpenGl_AspectFace::ChangeDoTextureMap ( )
inline
Returns
texture mapping flag.
int& OpenGl_AspectFace::ChangeEdge ( )
inline
Returns
edge on flag.
int& OpenGl_AspectFace::ChangeHatch ( )
inline
Returns
hatch type variable.
OPENGL_SURF_PROP& OpenGl_AspectFace::ChangeIntBack ( )
inline
Returns
back material properties.
Aspect_InteriorStyle& OpenGl_AspectFace::ChangeInteriorStyle ( )
inline
OPENGL_SURF_PROP& OpenGl_AspectFace::ChangeIntFront ( )
inline
Returns
front material properties.
TEL_POFFSET_PARAM& OpenGl_AspectFace::ChangePolygonOffset ( )
inline
Returns
polygon offset parameters.
void OpenGl_AspectFace::convertMaterial ( const CALL_DEF_MATERIAL theMat,
OPENGL_SURF_PROP theSurf 
)
protected
int OpenGl_AspectFace::CullingMode ( ) const
inline
Returns
culling mode.
int OpenGl_AspectFace::DistinguishingMode ( ) const
inline
Returns
distinguishing mode.
bool OpenGl_AspectFace::DoTextureMap ( ) const
inline
Returns
texture mapping flag.
int OpenGl_AspectFace::Edge ( ) const
inline
Returns
edge on flag.
int OpenGl_AspectFace::Hatch ( ) const
inline
Returns
hatch type.
const OPENGL_SURF_PROP& OpenGl_AspectFace::IntBack ( ) const
inline
Returns
back material properties.
const Aspect_InteriorStyle OpenGl_AspectFace::InteriorStyle ( ) const
inline
Returns
interior style
const OPENGL_SURF_PROP& OpenGl_AspectFace::IntFront ( ) const
inline
Returns
front material properties.
const TEL_POFFSET_PARAM& OpenGl_AspectFace::PolygonOffset ( ) const
inline
Returns
polygon offset parameters.
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.

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

Implements OpenGl_Element.

void OpenGl_AspectFace::SetAspect ( const CALL_DEF_CONTEXTFILLAREA theAspect)

Copy parameters.

void OpenGl_AspectFace::SetAspect ( const Handle< Graphic3d_AspectFillArea3d > &  theAspect)
void OpenGl_AspectFace::SetAspectEdge ( const OpenGl_AspectLine theAspectEdge)
inline

Set edge aspect.

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.
const Handle< Graphic3d_TextureParams >& OpenGl_AspectFace::TextureParams ( ) const
inline
Returns
texture mapping parameters.
const Handle< OpenGl_Texture >& OpenGl_AspectFace::TextureRes ( const Handle< OpenGl_Context > &  theCtx) const
inline
Returns
texture map.

Field Documentation

OpenGl_AspectLine OpenGl_AspectFace::myAspectEdge
protected
int OpenGl_AspectFace::myCullingMode
protected
int OpenGl_AspectFace::myDistinguishingMode
protected
bool OpenGl_AspectFace::myDoTextureMap
protected
int OpenGl_AspectFace::myEdge
protected
int OpenGl_AspectFace::myHatch
protected
OPENGL_SURF_PROP OpenGl_AspectFace::myIntBack
protected
Aspect_InteriorStyle OpenGl_AspectFace::myInteriorStyle
protected
OPENGL_SURF_PROP OpenGl_AspectFace::myIntFront
protected
TEL_POFFSET_PARAM OpenGl_AspectFace::myPolygonOffset
protected
struct OpenGl_AspectFace::Resources OpenGl_AspectFace::myResources
protected
Handle< Graphic3d_ShaderProgram > OpenGl_AspectFace::myShaderProgram
protected
Handle< Graphic3d_TextureMap > OpenGl_AspectFace::myTexture
protected

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