|
Open CASCADE Technology
6.7.1
|
Base interface for drawable elements. More...
#include <OpenGl_Element.hxx>

Public Member Functions | |
| OpenGl_Element () | |
| virtual void | Render (const Handle< OpenGl_Workspace > &theWorkspace) const =0 |
| virtual void | Release (const Handle< OpenGl_Context > &theContext)=0 |
| Release GPU resources. 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... | |
Static Public Member Functions | |
| template<typename theResource_t > | |
| static void | Destroy (const Handle< OpenGl_Context > &theContext, theResource_t *&theElement) |
Protected Member Functions | |
| virtual | ~OpenGl_Element () |
Base interface for drawable elements.
| OpenGl_Element::OpenGl_Element | ( | ) |
|
protectedvirtual |
|
inlinestatic |
|
pure virtual |
Release GPU resources.
Implemented in OpenGl_AspectFace, OpenGl_AspectText, OpenGl_AspectMarker, OpenGl_Structure, OpenGl_Group, OpenGl_Text, OpenGl_AspectLine, OpenGl_PrimitiveArray, OpenGl_Trihedron, OpenGl_Flipper, OpenGl_GraduatedTrihedron, and OpenGl_StencilTest.
|
pure virtual |
|
inline |
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.
| theWorkspace | [in] the rendering workspace. |
| theFilter | [in] the rendering filter to check whether the element should be rendered or not. |
1.8.5