54 #include <Inventor/SbTime.h> 56 #include <Inventor/SbLinear.h> 58 #include <Inventor/Win/SoWinRenderArea.h> 60 #ifndef SOWIN_INTERNAL 61 #include <Inventor/events/SoKeyboardEvent.h> 62 #endif // SOWIN_INTERNAL 83 typedef void SoWinViewerCB(
void * data,
SoWinViewer * viewer);
84 typedef void SoWinViewerFPSCB(
float fps,
void * data,
SoWinViewer * viewer);
86 typedef SbVec2f SoWinAutoClippingCB(
void * data,
const SbVec2f & nearfar);
110 VIEW_WIREFRAME_OVERLAY
129 virtual void setCamera(
SoCamera * camera);
132 virtual void setCameraType(
SoType type);
133 SoType getCameraType(
void)
const;
135 virtual void toggleCameraType(
void);
137 virtual void viewAll(
void);
139 virtual void saveHomePosition(
void);
140 virtual void resetToHomePosition(
void);
142 virtual void setHeadlight(SbBool enable);
143 SbBool isHeadlight(
void)
const;
152 virtual void setViewing(SbBool enable);
153 SbBool isViewing(
void)
const;
155 virtual void setCursorEnabled(SbBool enable);
156 SbBool isCursorEnabled(
void)
const;
158 void setAutoClipping(SbBool enable);
159 SbBool isAutoClipping(
void)
const;
161 void setAutoClippingStrategy(
const AutoClippingStrategy strategy,
162 const float value = 0.6f,
163 SoWinAutoClippingCB * cb = NULL,
164 void * cbuserdata = NULL);
166 virtual void setStereoViewing(SbBool enable);
167 SbBool isStereoViewing(
void)
const;
169 virtual void setStereoOffset(
const float dist);
170 float getStereoOffset(
void)
const;
180 void setAnaglyphStereoColorMasks(
const SbBool left[3],
const SbBool right[3]);
181 void getAnaglyphStereoColorMasks(SbBool left[3], SbBool right[3]);
183 void setDetailSeek(
const SbBool enable);
184 SbBool isDetailSeek(
void)
const;
186 void setSeekTime(
const float seconds);
187 float getSeekTime(
void)
const;
189 void addStartCallback(SoWinViewerCB * func,
void * data = NULL);
190 void addFinishCallback(SoWinViewerCB * func,
void * data = NULL);
191 void removeStartCallback(SoWinViewerCB * func,
void * data = NULL);
192 void removeFinishCallback(SoWinViewerCB * func,
void * data = NULL);
194 void setWireframeOverlayColor(
const SbColor & color);
195 const SbColor & getWireframeOverlayColor(
void)
const;
211 virtual void setSeekMode(SbBool enable);
212 SbBool isSeekMode(
void)
const;
213 SbBool seekToPoint(
const SbVec2s screenpos);
214 void seekToPoint(
const SbVec3f & scenepos);
215 virtual void computeSeekFinalOrientation(
void);
220 void interactiveCountInc(
void);
221 void interactiveCountDec(
void);
222 int getInteractiveCount(
void)
const;
224 void setSeekDistance(
const float distance);
225 float getSeekDistance(
void)
const;
226 void setSeekValueAsPercentage(
const SbBool on);
227 SbBool isSeekValuePercentage(
void)
const;
229 virtual void changeCameraValues(
SoCamera * camera);
231 void addSuperimposition(
SoNode * scene);
232 void removeSuperimposition(
SoNode * scene);
233 void setSuperimpositionEnabled(
SoNode * scene,
const SbBool enable);
234 SbBool getSuperimpositionEnabled(
SoNode * scene)
const;
237 class SoWinViewerP * pimpl;
238 friend class SoWinViewerP;
244 #endif // ! SOWIN_VIEWER_H
Definition: SoWinViewer.h:100
virtual SoNode * getSceneGraph(void)
Definition: SoWinRenderArea.cpp:1018
BufferType
Definition: SoWinViewer.h:118
DrawType
Definition: SoWinViewer.h:113
Definition: SoWinViewer.h:106
virtual void setSceneGraph(SoNode *scene)
Definition: SoWinRenderArea.cpp:1006
Definition: SoWinViewer.h:107
Definition: SoWinViewer.h:173
The SoWinViewer class is the top level base viewer class.
Definition: SoWinViewer.h:90
virtual void actualRedraw(void)
Definition: SoWinRenderArea.cpp:1884
AutoClippingStrategy
Definition: SoWinViewer.h:124
Definition: SoWinViewer.h:174
The SoWinPlaneViewer class is for examining 3D models by moving the camera in orthogonal planes...
Definition: SoWinPlaneViewer.h:42
virtual SbBool processSoEvent(const SoEvent *const event)
Definition: SoWinRenderArea.cpp:2136
The SoWinRenderArea class adds scenegraph handling and event management.
Definition: SoWinRenderArea.h:59
StereoType
Definition: SoWinViewer.h:172
Definition: SoWinViewer.h:109
Definition: SoWinViewer.h:95
Definition: SoWinViewer.h:108
virtual void sizeChanged(const SbVec2s &size)
Definition: SoWinRenderArea.cpp:1966
Definition: SoWinViewer.h:101
Definition: SoWinViewer.h:103
Definition: SoWinViewer.h:102
Definition: SoWinViewer.h:105
Definition: SoWinViewer.h:119
DrawStyle
Definition: SoWinViewer.h:99
Definition: SoWinViewer.h:120
Definition: SoWinViewer.h:104
Type
Definition: SoWinViewer.h:94
Definition: SoWinViewer.h:125