1SoXtConstrainedViewer(3IV)() SoXtConstrainedViewer(3IV)()
2
3
4
6 SoXtConstrainedViewer — base viewer class which adds camera constraints
7 given a world up direction
8
10 SoXtComponent > SoXtGLWidget > SoXtRenderArea > SoXtViewer > SoXtFul‐
11 lViewer > SoXtConstrainedViewer
12
14 #include <Inventor/Xt/viewers/SoXtConstrainedViewer.h>
15
16 Methods from class SoXtConstrainedViewer:
17
18 void setUpDirection(const SbVec3f &newUpDirection)
19 SbVec3f getUpDirection()
20
21 Methods from class SoXtFullViewer:
22
23 void setDecoration(SbBool onOrOff)
24 SbBool isDecoration()
25 void setPopupMenuEnabled(SbBool trueOrFalse)
26 SbBool isPopupMenuEnabled()
27 Widget getAppPushButtonParent() const
28 void addAppPushButton(Widget newButton)
29 void insertAppPushButton(Widget newButton, int index)
30 void removeAppPushButton(Widget oldButton)
31 int findAppPushButton(Widget oldButton)
32 int lengthAppPushButton()
33 Widget getRenderAreaWidget()
34
35 Methods from class SoXtViewer:
36
37 virtual void setCamera(SoCamera *cam)
38 SoCamera * getCamera()
39 virtual void setCameraType(SoType type)
40 SoType getCameraType()
41 virtual void viewAll()
42 virtual void saveHomePosition()
43 virtual void resetToHomePosition()
44 virtual void setHeadlight(SbBool onOrOff)
45 SbBool isHeadlight()
46 SoDirectionalLight * getHeadlight()
47 virtual void setDrawStyle(SoXtViewer::DrawType type,
48 SoXtViewer::DrawStyle style)
49 SoXtViewer::DrawStyle getDrawStyle(SoXtViewer::DrawType type)
50 virtual void setBufferingType(SoXtViewer::BufferType type)
51 SoXtViewer::BufferType getBufferingType()
52 virtual void setViewing(SbBool onOrOff)
53 SbBool isViewing() const
54 virtual void setCursorEnabled(SbBool onOrOff)
55 SbBool isCursorEnabled() const
56 void setAutoClipping(SbBool onOrOff)
57 SbBool isAutoClipping() const
58 virtual void setStereoViewing(SbBool onOrOff)
59 virtual SbBool isStereoViewing()
60 void setStereoOffset(float dist)
61 float getStereoOffset()
62 void setDetailSeek(SbBool onOrOff)
63 SbBool isDetailSeek()
64 void setSeekTime(float seconds)
65 float getSeekTime()
66 void addStartCallback(SoXtViewerCB *f, void *userData
67 = NULL)
68 void addFinishCallback(SoXtViewerCB *f, void *userData
69 = NULL)
70 void removeStartCallback(SoXtViewerCB *f, void *user‐
71 Data = NULL)
72 void removeFinishCallback(SoXtViewerCB *f, void *user‐
73 Data = NULL)
74 void copyView(Time eventTime)
75 void pasteView(Time eventTime)
76 virtual void recomputeSceneSize()
77
78 Methods from class SoXtRenderArea:
79
80 virtual void setSceneGraph(SoNode *newScene)
81 virtual SoNode * getSceneGraph()
82 void setOverlaySceneGraph(SoNode *newScene)
83 SoNode * getOverlaySceneGraph()
84 void registerDevice(SoXtDevice *)
85 void unregisterDevice(SoXtDevice *)
86 void setBackgroundColor(const SbColor &c)
87 const SbColor & getBackgroundColor() const
88 void setBackgroundIndex(int index)
89 int getBackgroundIndex() const
90 void setOverlayBackgroundIndex(int index)
91 int getOverlayBackgroundIndex() const
92 void setColorMap(int startIndex, int num, const
93 SbColor *colors)
94 void setOverlayColorMap(int startIndex, int num,
95 const SbColor *colors)
96 void setViewportRegion(const SbViewportRegion
97 &newRegion)
98 const SbViewportRegion & getViewportRegion() const
99 void setTransparencyType(SoGLRenderAction::Trans‐
100 parencyType type)
101 SoGLRenderAction::TransparencyType
102 getTransparencyType() const
103 void setAntialiasing(SbBool smoothing, int
104 numPasses)
105 void getAntialiasing(SbBool &smoothing, int
106 &numPasses) const
107 void setClearBeforeRender(SbBool trueOrFalse)
108 SbBool isClearBeforeRender() const
109 void setClearBeforeOverlayRender(SbBool trueOrFalse)
110 SbBool isClearBeforeOverlayRender() const
111 void setAutoRedraw(SbBool trueOrFalse)
112 SbBool isAutoRedraw() const
113 void setRedrawPriority(uint32_t priority)
114 uint32_t getRedrawPriority() const
115 static uint32_t getDefaultRedrawPriority()
116 void render()
117 void renderOverlay()
118 void scheduleRedraw()
119 void scheduleOverlayRedraw()
120 void redrawOnSelectionChange(SoSelection *s)
121 void redrawOverlayOnSelectionChange(SoSelection *s)
122 void setEventCallback(SoXtRenderAreaEventCB *fcn,
123 void *userData = NULL)
124 void setGLRenderAction(SoGLRenderAction *ra)
125 SoGLRenderAction * getGLRenderAction() const
126 void setOverlayGLRenderAction(SoGLRenderAction *ra)
127 SoGLRenderAction * getOverlayGLRenderAction() const
128 void setSceneManager(SoSceneManager *sm)
129 SoSceneManager * getSceneManager() const
130 void setOverlaySceneManager(SoSceneManager *sm)
131 SoSceneManager * getOverlaySceneManager() const
132
133 Methods from class SoXtGLWidget:
134
135 void setBorder(SbBool onOrOff)
136 SbBool isBorder() const
137 virtual void setDoubleBuffer(SbBool onOrOff)
138 SbBool isDoubleBuffer()
139 Window getNormalWindow()
140 Window getOverlayWindow()
141 GLXContext getNormalContext()
142 GLXContext getOverlayContext()
143 Widget getNormalWidget()
144 Widget getOverlayWidget()
145 virtual void setNormalVisual(XVisualInfo *vis)
146 XVisualInfo * getNormalVisual()
147 virtual void setOverlayVisual(XVisualInfo *vis)
148 XVisualInfo * getOverlayVisual()
149 void setDrawToFrontBufferEnable(SbBool enableFlag)
150 SbBool isDrawToFrontBufferEnable() const
151
152 Methods from class SoXtComponent:
153
154 virtual void show()
155 virtual void hide()
156 SbBool isVisible()
157 Widget getWidget() const
158 SbBool isTopLevelShell() const
159 Widget getShellWidget() const
160 Widget getParentWidget() const
161 void setSize(const SbVec2s &size)
162 SbVec2s getSize()
163 Display * getDisplay()
164 void setTitle(const char *newTitle)
165 const char * getTitle() const
166 void setIconTitle(const char *newIconTitle)
167 const char * getIconTitle() const
168 void setWindowCloseCallback(SoXtComponentCB *func,
169 void *data = NULL)
170 static SoXtComponent * getComponent(Widget w)
171 const char * getWidgetName() const
172 const char * getClassName() const
173
174
176 This is a base class for the SoXtWalkViewer and SoXtFlyViewer component
177 viewers. This class adds methods and convenience routines available to
178 subclasses to constrain the camera given a world up direction. This
179 prevents the camera from looking upside down. By default the +Y direc‐
180 tion is used.
181
183 void setUpDirection(const SbVec3f &newUpDirection)
184 SbVec3f getUpDirection()
185 Specifies the upward direction of the viewer. This up direction is
186 used by the viewers to constrain the camera when tilting up/down,
187 and also used when rotating the camera right/left. The default is
188 the +Y (0,1,0) direction.
189
190
192 SoXtFullViewer, SoXtViewer, SoXtComponent, SoXtRenderArea,
193 SoXtWalkViewer, SoXtFlyViewer
194
195
196
197
198 SoXtConstrainedViewer(3IV)()