Open Inventor Release 2024.2.1
 
Loading...
Searching...
No Matches
SoDialogLabel.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-2018 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : Nicolas DAGUISE (Oct 2002)
22**=======================================================================*/
23#ifndef _SO_DIALOG_LABEL_
24#define _SO_DIALOG_LABEL_
25
26#include <DialogViz/dialog/SoDialogComponent.h>
27
85{
86 SO_DG_HEADER(SoDialogLabel);
87
88 public:
89
94
95/*==============================================================================*/
96private:
97 virtual void buildWidget(SoWidget parent, SbVec2i32 &rSize, SbVec2i32 & pos, SbBool isActive2d);
98 static void initClass();
99 static void exitClass();
100 virtual void updateFromSensor(SoSensor* sensor);
101 void updateLabelWidget();
102 void destroyWidget();
103
104private:
105
106 virtual ~SoDialogLabel();
107 virtual SbVec2i32 getComponentInitSize();
108 virtual void getDefaultSize(SbVec2i32 &size, SbVec2i32 &min, SbVec2i32 &max);
109 virtual SbVec2i32 getLabelInitSize();
110
111private:
112 SbVec2i32 m_ollSize;
113
114 void createLabelWidget();
115
116 // geometry inherit from SoDialogViz
117 virtual void changeEnable();
118 virtual void changeWidgetEnable(SbBool state);
119 virtual void changeLabel();
120 virtual void changeLabelAlignment();
121 virtual void changeEdgeStyle();
122
124// 3D methods
125private:
126
127private:
128
129 SO_DG_CATALOG_ENTRY_HEADER(labelSep);
130 SO_DG_CATALOG_ENTRY_HEADER(labelProp);
131
132 SoText3 *labelText;
133 SoTranslation *labelTextTranslation;
134
135private:
136
137 void create3DDialogLabel();
138 void update3DLabel();
139
140 virtual void change3DLabel();
141 virtual void change3DLabelAlignment();
142
144};
145
146
147#endif // _SO_DIALOG_LABEL_
148
149
2D vector class.
Definition SbVec.h:517
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Abstract base cl...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Class that creat...
SoDialogLabel()
Constructor.
Abstract base class for Open Inventor sensors.
Definition SoSensor.h:100
3D text shape node.
Definition SoText3.h:204
Node representing a 3D translation.
int SbBool
Boolean type.
Definition SbBase.h:87