Custom element implementing dynamic rendering of 3D annotation and invoking dynamic callback in presentation class.
More...
GEOM_Annotation::OpenGl_Annotation::OpenGl_Annotation |
( |
GEOM_Annotation * |
theAnnotation, |
|
|
const Standard_Integer |
theTextHeight, |
|
|
const OpenGl_GraphicDriver * |
theDriver |
|
) |
| |
Some of the input properties are assigned by reference for dynamic draw (it is not likely that GL element will ever outlive the interactive object).
- Parameters
-
theAnnotation | [in] the instance of interactive presentation class. |
theTextHeight | [in] the height of the text label. |
theDriver | [in] the instance of graphical driver required for initialization. |
References Handle(), myExtLineDraw, myExtMarkerDraw, myText, myTextDraw, myTextLineDraw, and myTextParams.
GEOM_Annotation::OpenGl_Annotation::~OpenGl_Annotation |
( |
| ) |
|
|
virtual |
void GEOM_Annotation::OpenGl_Annotation::Release |
( |
OpenGl_Context * |
theCtx | ) |
|
|
virtual |
void GEOM_Annotation::OpenGl_Annotation::Render |
( |
const Handle(OpenGl_Workspace)& |
theWorkspace | ) |
const |
|
virtual |
void GEOM_Annotation::OpenGl_Annotation::SetDepthMode |
( |
const int |
theMode | ) |
|
|
inline |
int GEOM_Annotation::OpenGl_Annotation::myDepthMode |
|
private |
OpenGl_PrimitiveArray* GEOM_Annotation::OpenGl_Annotation::myExtLineDraw |
|
private |
OpenGl_PrimitiveArray* GEOM_Annotation::OpenGl_Annotation::myExtMarkerDraw |
|
private |
NCollection_String GEOM_Annotation::OpenGl_Annotation::myText |
|
private |
unsigned int GEOM_Annotation::OpenGl_Annotation::myTextDPI |
|
mutableprivate |
OpenGl_Text* GEOM_Annotation::OpenGl_Annotation::myTextDraw |
|
private |
OpenGl_PrimitiveArray* GEOM_Annotation::OpenGl_Annotation::myTextLineDraw |
|
private |
float GEOM_Annotation::OpenGl_Annotation::myTextLineY |
|
mutableprivate |
OpenGl_TextParam GEOM_Annotation::OpenGl_Annotation::myTextParams |
|
private |
TextSize GEOM_Annotation::OpenGl_Annotation::myTextSize |
|
mutableprivate |
Graphic3d_Vec2 GEOM_Annotation::OpenGl_Annotation::myTextUnderline |
|
mutableprivate |
The documentation for this class was generated from the following files: