Open CASCADE Technology
7.4.0
|
The element holding Graphic3d_Aspects. More...
#include <OpenGl_Aspects.hxx>
Public Member Functions | |
OpenGl_Aspects () | |
Empty constructor. More... | |
OpenGl_Aspects (const Handle< Graphic3d_Aspects > &theAspect) | |
Create and assign parameters. More... | |
const Handle< Graphic3d_Aspects > & | Aspect () const |
Return aspect. More... | |
void | SetAspect (const Handle< Graphic3d_Aspects > &theAspect) |
Assign parameters. More... | |
Graphic3d_TypeOfShadingModel | ShadingModel () const |
Returns Shading Model. More... | |
void | SetNoLighting () |
Set if lighting should be disabled or not. More... | |
const Handle< OpenGl_TextureSet > & | TextureSet (const Handle< OpenGl_Context > &theCtx, bool theToHighlight=false) const |
Returns textures map. More... | |
const Handle< OpenGl_ShaderProgram > & | ShaderProgramRes (const Handle< OpenGl_Context > &theCtx) const |
Init and return OpenGl shader program resource. More... | |
Standard_ShortReal | MarkerSize () const |
bool | HasPointSprite (const Handle< OpenGl_Context > &theCtx) const |
Return TRUE if OpenGl point sprite resource defines texture. More... | |
bool | IsDisplayListSprite (const Handle< OpenGl_Context > &theCtx) const |
Return TRUE if OpenGl point sprite resource defined by obsolete Display List (bitmap). More... | |
const Handle< OpenGl_PointSprite > & | SpriteRes (const Handle< OpenGl_Context > &theCtx, bool theIsAlphaSprite) const |
Init and return OpenGl point sprite resource. More... | |
virtual void | Render (const Handle< OpenGl_Workspace > &theWorkspace) const override |
virtual void | Release (OpenGl_Context *theContext) override |
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... | |
virtual void | SynchronizeAspects () override |
Update presentation aspects parameters after their modification. More... | |
void | DumpJson (Standard_OStream &theOStream, const Standard_Integer theDepth=-1) const |
Dumps the content of me into the stream. More... | |
Public Member Functions inherited from OpenGl_Element | |
OpenGl_Element () | |
virtual Standard_Boolean | IsFillDrawMode () const |
Return TRUE if primitive type generates shaded triangulation (to be used in filters). More... | |
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 () |
The element holding Graphic3d_Aspects.
OpenGl_Aspects::OpenGl_Aspects | ( | ) |
Empty constructor.
OpenGl_Aspects::OpenGl_Aspects | ( | const Handle< Graphic3d_Aspects > & | theAspect | ) |
Create and assign parameters.
|
inline |
Return aspect.
void OpenGl_Aspects::DumpJson | ( | Standard_OStream & | theOStream, |
const Standard_Integer | theDepth = -1 |
||
) | const |
Dumps the content of me into the stream.
|
inline |
Return TRUE if OpenGl point sprite resource defines texture.
|
inline |
Return TRUE if OpenGl point sprite resource defined by obsolete Display List (bitmap).
|
inline |
|
overridevirtual |
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.
|
overridevirtual |
Implements OpenGl_Element.
void OpenGl_Aspects::SetAspect | ( | const Handle< Graphic3d_Aspects > & | theAspect | ) |
Assign parameters.
|
inline |
Set if lighting should be disabled or not.
|
inline |
Init and return OpenGl shader program resource.
|
inline |
Returns Shading Model.
|
inline |
Init and return OpenGl point sprite resource.
|
inlineoverridevirtual |
Update presentation aspects parameters after their modification.
Reimplemented from OpenGl_Element.
|
inline |
Returns textures map.
|
protected |
|
mutableprotected |
OpenGl resources.
|
mutableprotected |
|
mutableprotected |
|
protected |