Open Inventor Release 2024.1.0
 
Loading...
Searching...
No Matches
PoSceneView.h
Go to the documentation of this file.
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-2022 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : VSG (MMM YYYY)
22**=======================================================================*/
23
24#ifndef _PO_SCENE_VIEW_
25#define _PO_SCENE_VIEW_
26
29
30class SoFieldSensor ;
31
227class PoSceneView : public PoBaseView
228{
230
231 /* Define fields for new parts */
232 SO_KIT_CATALOG_ENTRY_HEADER(backgroundSep) ;
233 SO_KIT_CATALOG_ENTRY_HEADER(backgroundApp) ;
234 SO_KIT_CATALOG_ENTRY_HEADER(background) ;
235
239
240 SO_KIT_CATALOG_ENTRY_HEADER(borderSep) ;
241 SO_KIT_CATALOG_ENTRY_HEADER(borderApp) ;
243
244
245 public:
246
251
252 /* Fields */
253
258
263
264 /*----------------------------------------------------------------------------*/
265 private:
266 static void initClass() ;
267 static void exitClass() ;
268
269 private:
270 // Methods
271 // Destructor
272 virtual ~PoSceneView() ;
273 virtual void setDefaultOnNonWritingFields() ;
274
275 private:
276
277
278 // Draw the border of the view
279 void drawBorder() ;
280
281 // Draw the background of the view
282 void drawBackground() ;
283
284 // This sensor watches for changes of isBackgroundVisible field
285 SoFieldSensor *isBackgroundVisibleSensor ;
286
287 // This sensor watches for changes of isBorderVisible field
288 SoFieldSensor *isBorderVisibleSensor ;
289 static void fieldSensorCB(void *data, SoSensor *sensor) ;
290
291 virtual SbBool setUpConnections(SbBool onOff, SbBool doItAlways = FALSE) ;
292 virtual SbBool readInstance(SoInput *in, unsigned short flags);
293} ;
294
295/*----------------------------------------------------------------------------*/
296
297#endif /* _PO_SCENE_VIEW_ */
298
299
#define FALSE
Possible value of SbBool.
Definition SbBase.h:75
#define SO_KIT_CATALOG_ENTRY_HEADER(partName)
Definition SoSubKit.h:107
#define SO_KIT_HEADER(className)
Definition SoSubKit.h:91
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Abstract base cl...
Definition PoBaseView.h:101
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Class to define ...
SoSFBool isBackgroundVisible
Defines the visibility of the background of the view.
PoSceneView()
Default constructor.
SoSFBool isBorderVisible
Defines the visibility of the borders of the view.
Sensor class that can be attached to Open Inventor fields.
Used to read Open Inventor data files.
Definition SoInput.h:363
Field containing a single Boolean value.
Definition SoSFBool.h:79
Abstract base class for Open Inventor sensors.
Definition SoSensor.h:97
int SbBool
Boolean type.
Definition SbBase.h:87