Open Inventor Release 2024.2.1
 
Loading...
Searching...
No Matches
SoRowDialog.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_ROW_DIALOG_
24#define _SO_ROW_DIALOG_
25
26#include <DialogViz/dialog/SoDialogGroup.h>
27
77{
78 SO_DG_HEADER(SoRowDialog);
79
80 public:
81
86
91
92 /*==============================================================================*/
93 private:
94 virtual void buildWidget(SoWidget parent, SbVec2i32 &rSize, SbVec2i32 & pos, SbBool isActive2d);
95 static void initClass();
96 static void exitClass();
97 virtual void updateFromSensor(SoSensor* sensor);
98
99 private:
100 virtual ~SoRowDialog();
101 virtual void fixSizeWithBorder(SbVec2i32 &size, int revert = 1);
102
103 private:
104 void computeNewChildrenHeight(SbVec2i32 &rSize);
105 void getDefaultSize(SbVec2i32 &size, SbVec2i32 &min, SbVec2i32 &max);
106 void fixPosWithComponentBorder(SbVec2i32 &pos);
107 virtual SbVec2i32 getComponentInitSize();
108 virtual void setChildrenComponentSize();
109 virtual void setChildrenLabelSize();
110 void updateChildren();
111
112
113 // Field related declares and methods
114 FIELD_SENSOR(rowSpacing);
115 void changeRowSpacing();
116 virtual void changeEdgeStyle();
117
119// 3D methods
120private:
121
122private:
123 void update3DChildren();
124
126};
127
128#endif // _SO_ROW_DIALOG_
129
130
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...
Definition SoRowDialog.h:77
SoSFInt32 rowSpacing
Specifies the space between each row.
Definition SoRowDialog.h:85
SoRowDialog()
Constructor.
Field containing a int32_t integer.
Definition SoSFInt32.h:80
Abstract base class for Open Inventor sensors.
Definition SoSensor.h:100
int SbBool
Boolean type.
Definition SbBase.h:87