Open CASCADE Technology
7.3.0
|
The element holding Graphic3d_AspectMarker3d. More...
#include <OpenGl_AspectMarker.hxx>
Data Structures | |
struct | Resources |
OpenGl resources. More... | |
Public Member Functions | |
OpenGl_AspectMarker () | |
Empty constructor. More... | |
OpenGl_AspectMarker (const Handle< Graphic3d_AspectMarker3d > &theAspect) | |
Create and assign parameters. More... | |
const Handle< Graphic3d_AspectMarker3d > & | Aspect () const |
Return the aspect. More... | |
void | SetAspect (const Handle< Graphic3d_AspectMarker3d > &theAspect) |
Assign new aspect. More... | |
Standard_ShortReal | MarkerSize () const |
const Handle< OpenGl_TextureSet > & | SpriteRes (const Handle< OpenGl_Context > &theCtx) const |
Init and return OpenGl point sprite resource. More... | |
const Handle< OpenGl_TextureSet > & | 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 () | |
virtual Standard_Boolean | IsFillDrawMode () const |
Return TRUE if primitive type generates shaded triangulation (to be used in filters). More... | |
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_AspectMarker::Resources | myResources |
Handle< Graphic3d_AspectMarker3d > | myAspect |
Standard_ShortReal | myMarkerSize |
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_AspectMarker3d.
OpenGl_AspectMarker::OpenGl_AspectMarker | ( | ) |
Empty constructor.
OpenGl_AspectMarker::OpenGl_AspectMarker | ( | const Handle< Graphic3d_AspectMarker3d > & | theAspect | ) |
Create and assign parameters.
|
inline |
Return the aspect.
|
inline |
|
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 |
Implements OpenGl_Element.
void OpenGl_AspectMarker::SetAspect | ( | const Handle< Graphic3d_AspectMarker3d > & | theAspect | ) |
Assign new aspect.
|
inline |
Init and return OpenGl shader program resource.
|
inline |
Init and return OpenGl highlight point sprite resource.
|
inline |
Init and return OpenGl point sprite resource.
|
protected |
|
mutableprotected |
|
protected |