Open CASCADE Technology  6.9.1
Data Structures | Public Member Functions | Protected Attributes
OpenGl_AspectText Class Reference

Text representation parameters. More...

#include <OpenGl_AspectText.hxx>

Inheritance diagram for OpenGl_AspectText:
Inheritance graph
[legend]

Data Structures

struct  Resources
 OpenGl resources. More...
 

Public Member Functions

 OpenGl_AspectText ()
 
virtual ~OpenGl_AspectText ()
 
void SetAspect (const CALL_DEF_CONTEXTTEXT &theAspect)
 Copy parameters. More...
 
const TCollection_AsciiStringFontName () const
 
TCollection_AsciiStringChangeFontName ()
 
bool IsZoomable () const
 
float Angle () const
 
Font_FontAspect FontAspect () const
 
void SetFontAspect (const Font_FontAspect theValue)
 
const TEL_COLOURColor () const
 
TEL_COLOURChangeColor ()
 
Aspect_TypeOfStyleText StyleType () const
 
Aspect_TypeOfDisplayText DisplayType () const
 
void SetDisplayType (const Aspect_TypeOfDisplayText theType)
 
const TEL_COLOURSubtitleColor () const
 
TEL_COLOURChangeSubtitleColor ()
 
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

TCollection_AsciiString myFont
 
TEL_COLOUR myColor
 
TEL_COLOUR mySubtitleColor
 
float myAngle
 
Aspect_TypeOfStyleText myStyleType
 
Aspect_TypeOfDisplayText myDisplayType
 
Font_FontAspect myFontAspect
 
bool myZoomable
 
Handle< Graphic3d_ShaderProgrammyShaderProgram
 
struct OpenGl_AspectText::Resources myResources
 

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

Text representation parameters.

Constructor & Destructor Documentation

OpenGl_AspectText::OpenGl_AspectText ( )
virtual OpenGl_AspectText::~OpenGl_AspectText ( )
virtual

Member Function Documentation

float OpenGl_AspectText::Angle ( ) const
inline
Returns
rotation angle
TEL_COLOUR& OpenGl_AspectText::ChangeColor ( )
inline
Returns
text color
TCollection_AsciiString& OpenGl_AspectText::ChangeFontName ( )
inline
Returns
font family name
TEL_COLOUR& OpenGl_AspectText::ChangeSubtitleColor ( )
inline
Returns
subtitle color
const TEL_COLOUR& OpenGl_AspectText::Color ( ) const
inline
Returns
text color
Aspect_TypeOfDisplayText OpenGl_AspectText::DisplayType ( ) const
inline
Returns
subtitle style (none/blend/decale/subtitle)
Font_FontAspect OpenGl_AspectText::FontAspect ( ) const
inline
Returns
font aspect (regular/bold/italic)
const TCollection_AsciiString& OpenGl_AspectText::FontName ( ) const
inline
Returns
font family name
bool OpenGl_AspectText::IsZoomable ( ) const
inline
Returns
is zoomable flag
virtual void OpenGl_AspectText::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_AspectText::Render ( const Handle< OpenGl_Workspace > &  theWorkspace) const
virtual

Implements OpenGl_Element.

void OpenGl_AspectText::SetAspect ( const CALL_DEF_CONTEXTTEXT theAspect)

Copy parameters.

void OpenGl_AspectText::SetDisplayType ( const Aspect_TypeOfDisplayText  theType)
inline
void OpenGl_AspectText::SetFontAspect ( const Font_FontAspect  theValue)
inline
Parameters
theValuefont aspect (regular/bold/italic)
const Handle< OpenGl_ShaderProgram >& OpenGl_AspectText::ShaderProgramRes ( const Handle< OpenGl_Context > &  theCtx) const
inline

Init and return OpenGl shader program resource.

Returns
shader program resource.
Aspect_TypeOfStyleText OpenGl_AspectText::StyleType ( ) const
inline
Returns
annotation style
const TEL_COLOUR& OpenGl_AspectText::SubtitleColor ( ) const
inline
Returns
subtitle color

Field Documentation

float OpenGl_AspectText::myAngle
protected
TEL_COLOUR OpenGl_AspectText::myColor
protected
Aspect_TypeOfDisplayText OpenGl_AspectText::myDisplayType
protected
TCollection_AsciiString OpenGl_AspectText::myFont
protected
Font_FontAspect OpenGl_AspectText::myFontAspect
protected
struct OpenGl_AspectText::Resources OpenGl_AspectText::myResources
protected
Handle< Graphic3d_ShaderProgram > OpenGl_AspectText::myShaderProgram
protected
Aspect_TypeOfStyleText OpenGl_AspectText::myStyleType
protected
TEL_COLOUR OpenGl_AspectText::mySubtitleColor
protected
bool OpenGl_AspectText::myZoomable
protected

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