Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
PoMiscTextAttr.h
Go to the documentation of this file.
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-2018 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : VSG (MMM YYYY)
22**=======================================================================*/
23
24#ifndef _PO_MISC_TEXT_ATTR_
25#define _PO_MISC_TEXT_ATTR_
26
31
32class PbMiscTextAttr ;
33class SoFieldSensor ;
34
61class PoMiscTextAttr : public PoNode {
62
64
65
66 public:
67
81
82
83
88
110
115
123
131
144
145 /* Methods */
146
151
152 /*----------------------------------------------------------------------------*/
153
154
155 private:
156 virtual void doAction(SoAction *action) ;
157
158 private:
159 static void initClass() ;
160 static void exitClass() ;
161
162 private:
163 virtual ~PoMiscTextAttr() ;
164
165 private:
166 static void fieldsChangedCB(void *data, SoSensor *) ;
167 static void fontNameChangedCB(void *data, SoSensor *) ;
168
169 SbBool m_fieldsChanged ;
170 SbBool m_fontNameChanged ;
171 PbMiscTextAttr *m_textAttr ;
172 SoFieldSensor *m_fontNameSensor ;
173 SoFieldSensor *m_lineLengthSensor ;
174 SoFieldSensor *m_endLineCharSensor ;
175 SoFieldSensor *m_profileEnabledSensor ;
176 SoFieldSensor *m_predefProfileEnabledSensor ;
177 SoFieldSensor *m_outliningSensor ;
178} ;
179/*----------------------------------------------------------------------------*/
180
181#endif /* _PO_MISC_TEXT_ATTR_ */
182
#define SO_NODE_HEADER(className)
Definition SoSubNode.h:151
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Class to define a numeri...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Node to define miscellan...
SoSFShort endLineChar
Defines the end line character.
SoSFString fontName
Font name for text.
SoSFBool predefinedProfileEnabled
Enables/Disables the use of a predefined profile for 3D text if they are activated (cf profileEnabled...
SoSFBool profileEnabled
Enables/Disables the appearance of a profile for 3D Text.
LineLength
Line length.
@ LINE_LENGTH_MAX
The lines are not limited.
@ LINE_LENGTH_MIN
The lines are limited to one word.
PoMiscTextAttr()
Constructor.
SoSFBool outliningEnabled
Enables/Disables drawing of the outline of polygonal text (SoText3 and SoAnnoText3).
SoSFShort lineLength
Defines the max number of characters per line.
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Abstract base class for ...
Definition PoNode.h:39
Abstract base class for all actions.
Definition SoAction.h:132
Sensor class that can be attached to Open Inventor fields.
Field containing a single Boolean value.
Definition SoSFBool.h:79
Field containing a short integer.
Definition SoSFShort.h:81
Field containing a string.
Definition SoSFString.h:117
Abstract base class for Open Inventor sensors.
Definition SoSensor.h:97
int SbBool
Boolean type.
Definition SbBase.h:87