Open Inventor Release 2024.2.0
 
Loading...
Searching...
No Matches
SoMenuSeparator.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_MENU_SEPARATOR_
24#define _SO_MENU_SEPARATOR_
25
26#include <DialogViz/dialog/SoMenuItem.h>
27
69{
70 SO_DG_HEADER(SoMenuSeparator);
71
72 public:
73
78
79
80 /*==============================================================================*/
81 private:
82 virtual void buildMenu(void *parent, SbBool isActive2d, int index = -1);
83 static void initClass();
84 static void exitClass();
85 virtual void updateFromSensor(SoSensor* ) {};
86 virtual void destroyNoDeleteMenuItem();
87
88 private:
89 virtual ~SoMenuSeparator();
90
91 private:
92 void* m_separatorMenuWin;
93 void insertMenuItem(int index);
94 void updateMenuItem();
95
96 virtual SbVec2i32 getItemInitSize();
97 virtual void setItemSize(SbVec2i32 nSize, SbBool force = FALSE);
98
100// 3D methods
101private:
102 static char* MenuSeparator; //Internal default skin.
103 static void change3DSkin();
104 static SbBool isSkinLoaded();
105 static void setSkinLoaded(SbBool loaded);
106
107private:
108
109 SO_DG_CATALOG_ENTRY_HEADER( sepSep );
110 SO_DG_CATALOG_ENTRY_HEADER( sepFrame );
111
112 SoScale* menuSeparatorFrameScale;
113
114private:
115 static SbBool m_isSkinLoaded;
116
117 void create3DSeparator(int index);
118 void update3DSeparator();
119
121
122
123};
124
125#endif // _SO_MENU_SEPARATOR_
126
127
2D vector class.
Definition SbVec.h:517
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Abstract class f...
Definition SoMenuItem.h:79
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Menu separator n...
SoMenuSeparator()
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