Open Inventor Release 2024.2.0
 
Loading...
Searching...
No Matches
SoAnnoText3Property.h
1/*=======================================================================
2 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), ***
3 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. ***
4 *** ***
5 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS ***
6 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR ***
7 *** WRITTEN AUTHORIZATION OF FEI S.A.S. ***
8 *** ***
9 *** RESTRICTED RIGHTS LEGEND ***
10 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS ***
11 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN ***
12 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT ***
13 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN ***
14 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. ***
15 *** ***
16 *** COPYRIGHT (C) 1996-2014 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : R. ALBOU (Oct 1997)
22**=======================================================================*/
23
24 /* include files */
25#ifndef _SO_ANNOT_TEXT3_PROPERTY_
26#define _SO_ANNOT_TEXT3_PROPERTY_
27
28#include <Inventor/nodes/SoNode.h>
29#include <Inventor/fields/SoSFEnum.h>
30#include <Inventor/fields/SoSFBool.h>
31#include <Inventor/fields/SoSFNode.h>
32
33/*----------------------------------------------------------------------------*/
34
62
63 SO_NODE_HEADER(SoAnnoText3Property) ;
64
65 public:
66
88
101
106
128
135 static void setMaxViewingFontSize( unsigned int size );
136
141 static unsigned int getMaxViewingFontSize();
142
143 private:
144
145 virtual void doAction(SoAction *action) ;
146 virtual void GLRender(SoGLRenderAction *action) ;
147 virtual void callback(SoCallbackAction *action) ;
148 virtual void pick(SoPickAction *action) ;
149 virtual void getBoundingBox(SoGetBoundingBoxAction *action) ;
150 virtual void getPrimitiveCount(SoGetPrimitiveCountAction *action) ;
151
152
153 /*----------------------------------------------------------------------------*/
154 private:
155 // Init the class
156 static void initClass() ;
157 static void exitClass() ;
158
159 private:
160 virtual ~SoAnnoText3Property() ;
161
162 private:
163} ;
164
165/*----------------------------------------------------------------------------*/
166
167#endif /* _SO_ANNOT_TEXT3_PROPERTY_ */
168
Abstract base class for all actions.
Definition SoAction.h:132
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Annotation text ...
SoSFEnum fontSizeHint
This flag is used when the field renderPrintType is equal to RENDER3D_PRINT_RASTER or RENDER2D_PRINT_...
SoAnnoText3Property()
Constructor.
static unsigned int getMaxViewingFontSize()
Gets the maximum font size (in pixels) that can be used when renderPrintType field is equal to RENDER...
SoSFEnum renderPrintType
This flag specifies how annotation text should be rendered (as 3D text or 2D text) and how it should ...
RenderPrintType
Render print type.
@ RENDER3D_PRINT_RASTER
Text is rendered in 3D (like SoText3).
@ RENDER2D_PRINT_RASTER
Text is rendered in 2D (like SoText2) but can be zoomed because the font size is interpreted in the c...
@ RENDER3D_PRINT_VECTOR
Text is rendered in 3D (like SoText3).
FontSizeHint
Font size hint.
@ FIT_VECTOR_TEXT
The font size of 2D text changes according to the view angle (it follows the projection on the screen...
@ ANNOTATION
2D text maintains its nominal font size from any view angle.
static void setMaxViewingFontSize(unsigned int size)
Sets the maximum font size (in pixels) when renderPrintType field is equal to RENDER2D_PRINT_RASTER.
SoSFBool isCharOrientedRasterPrint
This flag is used when the field renderPrintType is equal to RENDER3D_PRINT_RASTER or RENDER2D_PRINT_...
Performs a generic traversal of a scene graph or path.
Renders a scene graph using Open Inventor's Render Engine.
Computes bounding box of a scene.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Counts number of...
Abstract base class for all database nodes.
Definition SoNode.h:145
Abstract base class for picking objects in a scene.
Field containing a single Boolean value.
Definition SoSFBool.h:79
Field containing an enumerated value.
Definition SoSFEnum.h:89