Open Inventor Release 2024.2.0
 
Loading...
Searching...
No Matches
SoDialogSeparator.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 : Nicolas DAGUISE (Oct 2002)
22**=======================================================================*/
23#ifndef _SO_DIALOG_SEPARATOR_
24#define _SO_DIALOG_SEPARATOR_
25
26#include <DialogViz/dialog/SoDialogComponent.h>
27
90{
91 SO_DG_HEADER(SoDialogSeparator);
92
93 public:
94
99
100
101/*==============================================================================*/
102private:
103 virtual void buildWidget(SoWidget parent, SbVec2i32 &rSize, SbVec2i32 & pos, SbBool isActive2d);
104 virtual void destroyWidget();
105 static void initClass();
106 static void exitClass();
107 virtual void updateFromSensor(SoSensor* ) {};
108 void setOrientationHorz(SbBool orentation = TRUE);
109 void updateSeparatorWidget();
110
111private:
112
113 virtual ~SoDialogSeparator();
114
115private:
116 SoWidget m_separatorWidget;
117 SbBool m_orientationHorz;
118
119 void createSeparatorWidget();
120 virtual void getDefaultSize(SbVec2i32 &size, SbVec2i32 &min, SbVec2i32 &max);
121 virtual void changeEdgeStyle();
122
123
125// 3D methods
126private:
127 static char* DialogSeparator; // Internal default skins.
128 static void change3DSkin();
129 static SbBool isSkinLoaded();
130 static void setSkinLoaded(SbBool loaded);
131
132private:
133 SO_DG_CATALOG_ENTRY_HEADER(frameSep);
134 SO_DG_CATALOG_ENTRY_HEADER(frameSwitch);
135 SO_DG_CATALOG_ENTRY_HEADER(hFrame);
136 SO_DG_CATALOG_ENTRY_HEADER(vFrame);
137
138private:
139 SoScale* separatorFrameScale;
140 static SbBool m_isSkinLoaded;
141
142 void create3DSeparator();
143 void update3DSeparator();
144
146};
147
148#endif // _SO_DIALOG_SEPARATOR_
149
150
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 to create ...
SoDialogSeparator()
Constructor.
Node representing a 3D geometric scaling.
Definition SoScale.h:96
Abstract base class for Open Inventor sensors.
Definition SoSensor.h:100
int SbBool
Boolean type.
Definition SbBase.h:87