Open Inventor Release 2024.2.0
 
Loading...
Searching...
No Matches
SoDialogCheckBoxLauncher.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_CHECK_LAUNCHER_
24#define _SO_DIALOG_CHECK_LAUNCHER_
25
26#include <DialogViz/dialog/SoDialogCheckBox.h>
27#include <DialogViz/dialog/SoTopLevelDialog.h>
28
78{
79
80 SO_DG_HEADER(SoDialogCheckBoxLauncher);
81
82 public:
83
88
93
99
103 virtual void addChild(SoTopLevelDialog *child);
104
108 virtual void insertChild(SoTopLevelDialog *child, int newChildIndex);
109
113 virtual SoNode *getChild(int index) const;
114
118 virtual int getNumChildren() const;
119
123 virtual int findChild(const SoTopLevelDialog *child) const;
124
128 virtual void removeChild(int index);
129
133 virtual void removeChild(SoTopLevelDialog *child);
134
138 virtual void removeAllChildren();
139
143 virtual void replaceChild(int index, SoTopLevelDialog *newChild);
144
148 virtual void replaceChild(SoTopLevelDialog *oldChild, SoTopLevelDialog *newChild);
149
150/*==============================================================================*/
151private:
152
153// Returns pointer to children
154 virtual SoChildList *getChildren() const;
155
156 static void initClass();
157 static void exitClass();
158 virtual void buildWidget(SoWidget parent, SbVec2i32 &rSize, SbVec2i32 & pos, SbBool isActive2d);
159 virtual void eventNotify(unsigned int event, uintptr_t param);
160
161 // Internal child management following inheritance of classes.
162 virtual void internalRemoveChild( int index ) { removeChild(index); }
163 virtual void internalRemoveChild( SoNode *child ) { removeChild(findChild(dynamic_cast<SoTopLevelDialog*>(child))); }
164 virtual void internalRemoveAllChildren() { removeAllChildren(); }
165 virtual void internalAddChild( SoNode *child ) { addChild(dynamic_cast<SoTopLevelDialog*>(child) ); }
166 virtual int internalFindChild( const SoNode *child ) const { return findChild(dynamic_cast<const SoTopLevelDialog*>(child)); }
167 virtual void internalInsertChild( SoNode *child, int newChildIndex ) { insertChild(dynamic_cast<SoTopLevelDialog*>(child), newChildIndex); }
168 virtual SoNode *internalGetChild( int index) const { return getChild(index); }
169 virtual void internalReplaceChild( int index, SoNode *newChild) { replaceChild(index, dynamic_cast<SoTopLevelDialog*>(newChild)); }
170 virtual void internalReplaceChild( SoNode *oldChild, SoNode *newChild) { replaceChild(dynamic_cast<SoTopLevelDialog*>(oldChild),dynamic_cast<SoTopLevelDialog*>(newChild)); }
171
172private:
173
174 // Reads stuff into instance of SoGroup. Returns FALSE on error
175 virtual SbBool readInstance(SoInput *in, unsigned short flags);
176
177 // Reads just the children into instance of SoGroup. Returns FALSE on error
178 virtual SbBool readChildren(SoInput *in);
179
181
182private:
183 int m_numberOfChildren;
184
185private:
186 virtual void search(SoSearchAction *action);
187 virtual void rayPick(SoRayPickAction *action);
188 virtual void write(SoWriteAction *action);
189
191// 3D methods
192private:
193
194private:
195 virtual void draggerFinishCallback3D();
196
198};
199
200#endif // _SO_DIALOG_CHECK_LAUNCHER_
201
202
Class for smart character strings.
Definition SbString.h:202
2D vector class.
Definition SbVec.h:517
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Dialog CheckBox ...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Dialog CheckBoxL...
virtual void insertChild(SoTopLevelDialog *child, int newChildIndex)
Adds a child so that it becomes the one with the given index.
virtual SoNode * getChild(int index) const
Returns pointer to child node with the given index.
virtual void replaceChild(SoTopLevelDialog *oldChild, SoTopLevelDialog *newChild)
Replaces first instance of given child with new child.
SoDialogViz * searchForAuditorId(SbString id)
Retrieves the DialogViz object from the specified auditorID field in an SoDialogCheckBoxLauncher stru...
virtual int findChild(const SoTopLevelDialog *child) const
Finds index of given child within group.
void applyAuditors()
Applies all DialogAuditors in the auditor list.
virtual void addChild(SoTopLevelDialog *child)
Adds a child as last one in group.
virtual void replaceChild(int index, SoTopLevelDialog *newChild)
Replaces child with given index with new child.
virtual void removeChild(SoTopLevelDialog *child)
Removes first instance of given child from group.
virtual void removeAllChildren()
Removes all children from group.
SoDialogCheckBoxLauncher()
Constructor.
virtual int getNumChildren() const
Returns number of children.
virtual void removeChild(int index)
Removes child with given index from group.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Abstract base cl...
Used to read Open Inventor data files.
Definition SoInput.h:363
Abstract base class for all database nodes.
Definition SoNode.h:145
friend class SoChildList
Definition SoNode.h:473
Intersects objects with a ray cast into scene.
Searches for nodes in a scene graph.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Top Level Dialog...
Writes a scene graph to a file.
int SbBool
Boolean type.
Definition SbBase.h:87