Custom element implementing dynamic rendering of 3D annotation and invoking dynamic callback in presentation class.
◆ OpenGl_Annotation()
| 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.
◆ ~OpenGl_Annotation()
| GEOM_Annotation::OpenGl_Annotation::~OpenGl_Annotation |
( |
| ) |
|
|
virtual |
◆ Release()
| void GEOM_Annotation::OpenGl_Annotation::Release |
( |
OpenGl_Context * |
theCtx | ) |
|
|
virtual |
◆ Render()
| void GEOM_Annotation::OpenGl_Annotation::Render |
( |
const Handle(OpenGl_Workspace)& |
theWorkspace | ) |
const |
|
virtual |
◆ SetDepthMode()
| void GEOM_Annotation::OpenGl_Annotation::SetDepthMode |
( |
const int |
theMode | ) |
|
|
inline |
◆ myAISObject
◆ myDepthMode
| int GEOM_Annotation::OpenGl_Annotation::myDepthMode |
|
private |
◆ myExtLineDraw
| OpenGl_PrimitiveArray* GEOM_Annotation::OpenGl_Annotation::myExtLineDraw |
|
private |
◆ myExtMarkerDraw
| OpenGl_PrimitiveArray* GEOM_Annotation::OpenGl_Annotation::myExtMarkerDraw |
|
private |
◆ myText
| NCollection_String GEOM_Annotation::OpenGl_Annotation::myText |
|
private |
◆ myTextDPI
| unsigned int GEOM_Annotation::OpenGl_Annotation::myTextDPI |
|
mutableprivate |
◆ myTextDraw
| OpenGl_Text* GEOM_Annotation::OpenGl_Annotation::myTextDraw |
|
private |
◆ myTextLineDraw
| OpenGl_PrimitiveArray* GEOM_Annotation::OpenGl_Annotation::myTextLineDraw |
|
private |
◆ myTextLineY
| float GEOM_Annotation::OpenGl_Annotation::myTextLineY |
|
mutableprivate |
◆ myTextParams
| OpenGl_TextParam GEOM_Annotation::OpenGl_Annotation::myTextParams |
|
private |
◆ myTextSize
| TextSize GEOM_Annotation::OpenGl_Annotation::myTextSize |
|
mutableprivate |
◆ myTextUnderline
| Graphic3d_Vec2 GEOM_Annotation::OpenGl_Annotation::myTextUnderline |
|
mutableprivate |
The documentation for this class was generated from the following files: