Open Inventor Release 2024.2.1
 
Loading...
Searching...
No Matches
SoColumnDialog.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_COLUMN_DIALOG_
24#define _SO_COLUMN_DIALOG_
25
26#include <DialogViz/dialog/SoDialogGroup.h>
27
76{
77 SO_DG_HEADER(SoColumnDialog);
78
79 public:
80
85
90
91 /*==============================================================================*/
92 private:
93 virtual void buildWidget(SoWidget parent, SbVec2i32 &rSize, SbVec2i32 & pos, SbBool isActive2d);
94 static void initClass();
95 static void exitClass();
96 virtual void updateFromSensor(SoSensor* sensor);
97
98 private:
99 virtual ~SoColumnDialog();
100 virtual void fixSizeWithBorder(SbVec2i32 & size, int revert = 1) ;
101
102 private:
103
104 /* === SIZE COMPUTING METHODS === */
105 virtual SbVec2i32 getComponentInitSize();
106 void getDefaultSize(SbVec2i32 &size, SbVec2i32 &min, SbVec2i32 &max);
107 virtual void setChildrenComponentSize();
108 virtual void setChildrenLabelSize();
109
110 void updateChildren();
111
112 /* === FIELDS DECLARATION === */
113 FIELD_SENSOR(columnSpacing);
114
115 /* === UPDATE METHODS === */
116 // pos and size changes
117 void computeNewChildrenWidth(SbVec2i32 &rSize);
118 void fixPosWithComponentBorder(SbVec2i32 &pos);
119
120 // local change methods
121 void changeColumnSpacing();
122 virtual void changeEdgeStyle();
123
125// 3D methods
126private:
127
128private:
129 void update3DChildren();
130
132
133};
134
135#endif // SO_COLUMN_DIALOG_
136
137
2D vector class.
Definition SbVec.h:517
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Dialog column no...
SoSFInt32 columnSpacing
Spacing between each column.
SoColumnDialog()
Constructor.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Abstract base cl...
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