45 #include <Inventor/SbTime.h> 46 #include <Inventor/SoType.h> 47 #include <Inventor/SbLinear.h> 49 #include <Inventor/Qt/SoQtRenderArea.h> 52 #include <Inventor/events/SoKeyboardEvent.h> 53 #endif // SOQT_INTERNAL 59 class SoDirectionalLight;
61 class SoGetBoundingBoxAction;
64 class SoMaterialBinding;
66 class SoPolygonOffset;
74 typedef void SoQtViewerCB(
void * data,
SoQtViewer * viewer);
75 typedef void SoQtViewerFPSCB(
float fps,
void * data,
SoQtViewer * viewer);
77 typedef SbVec2f SoQtAutoClippingCB(
void * data,
const SbVec2f & nearfar);
101 VIEW_WIREFRAME_OVERLAY
120 virtual void setCamera(SoCamera * camera);
121 SoCamera * getCamera(
void)
const;
123 virtual void setCameraType(SoType type);
124 SoType getCameraType(
void)
const;
126 virtual void toggleCameraType(
void);
128 virtual void viewAll(
void);
130 virtual void saveHomePosition(
void);
131 virtual void resetToHomePosition(
void);
133 virtual void setHeadlight(SbBool enable);
134 SbBool isHeadlight(
void)
const;
135 SoDirectionalLight * getHeadlight(
void)
const;
143 virtual void setViewing(SbBool enable);
144 SbBool isViewing(
void)
const;
146 virtual void setCursorEnabled(SbBool enable);
147 SbBool isCursorEnabled(
void)
const;
149 void setAutoClipping(SbBool enable);
150 SbBool isAutoClipping(
void)
const;
152 void setAutoClippingStrategy(
const AutoClippingStrategy strategy,
153 const float value = 0.6f,
154 SoQtAutoClippingCB * cb = NULL,
155 void * cbuserdata = NULL);
157 virtual void setStereoViewing(SbBool enable);
158 SbBool isStereoViewing(
void)
const;
160 virtual void setStereoOffset(
const float dist);
161 float getStereoOffset(
void)
const;
171 void setAnaglyphStereoColorMasks(
const SbBool left[3],
const SbBool right[3]);
172 void getAnaglyphStereoColorMasks(SbBool left[3], SbBool right[3]);
174 void setDetailSeek(
const SbBool enable);
175 SbBool isDetailSeek(
void)
const;
177 void setSeekTime(
const float seconds);
178 float getSeekTime(
void)
const;
180 void addStartCallback(SoQtViewerCB * func,
void * data = NULL);
181 void addFinishCallback(SoQtViewerCB * func,
void * data = NULL);
182 void removeStartCallback(SoQtViewerCB * func,
void * data = NULL);
183 void removeFinishCallback(SoQtViewerCB * func,
void * data = NULL);
185 void setWireframeOverlayColor(
const SbColor & color);
186 const SbColor & getWireframeOverlayColor(
void)
const;
202 virtual void setSeekMode(SbBool enable);
203 SbBool isSeekMode(
void)
const;
204 SbBool seekToPoint(
const SbVec2s screenpos);
205 void seekToPoint(
const SbVec3f & scenepos);
206 virtual void computeSeekFinalOrientation(
void);
211 void interactiveCountInc(
void);
212 void interactiveCountDec(
void);
213 int getInteractiveCount(
void)
const;
215 void setSeekDistance(
const float distance);
216 float getSeekDistance(
void)
const;
217 void setSeekValueAsPercentage(
const SbBool on);
218 SbBool isSeekValuePercentage(
void)
const;
220 virtual void changeCameraValues(SoCamera * camera);
222 void addSuperimposition(SoNode * scene);
223 void removeSuperimposition(SoNode * scene);
224 void setSuperimpositionEnabled(SoNode * scene,
const SbBool enable);
225 SbBool getSuperimpositionEnabled(SoNode * scene)
const;
228 class SoQtViewerP * pimpl;
229 friend class SoQtViewerP;
235 #endif // ! SOQT_VIEWER_H Definition: SoQtViewer.h:99
Definition: SoQtViewer.h:86
BufferType
Definition: SoQtViewer.h:109
Definition: SoQtViewer.h:97
Definition: SoQtViewer.h:92
AutoClippingStrategy
Definition: SoQtViewer.h:115
virtual SoNode * getSceneGraph(void)
Definition: SoQtRenderArea.cpp:994
virtual void actualRedraw(void)
Definition: SoQtRenderArea.cpp:1860
Definition: SoQtViewer.h:165
The SoQtViewer class is the top level base viewer class.This is an abstract class, which adds the following features to it's SoQtRenderArea superclass: convenient methods for camera handling, an automatic headlight configuration.
Definition: SoQtViewer.h:81
Definition: SoQtViewer.h:96
Definition: SoQtViewer.h:93
StereoType
Definition: SoQtViewer.h:163
DrawStyle
Definition: SoQtViewer.h:90
Type
Definition: SoQtViewer.h:85
virtual void setSceneGraph(SoNode *scene)
Definition: SoQtRenderArea.cpp:982
virtual SbBool processSoEvent(const SoEvent *const event)
Definition: SoQtRenderArea.cpp:2112
The SoQtRenderArea class adds scenegraph handling and event management.The SoQtRenderArea class is a ...
Definition: SoQtRenderArea.h:50
Definition: SoQtViewer.h:91
Definition: SoQtViewer.h:164
The SoQtPlaneViewer class is for examining 3D models by moving the camera in orthogonal planes...
Definition: SoQtPlaneViewer.h:33
Definition: SoQtViewer.h:110
Definition: SoQtViewer.h:111
Definition: SoQtViewer.h:100
Definition: SoQtViewer.h:95
Definition: SoQtViewer.h:94
Definition: SoQtViewer.h:98
DrawType
Definition: SoQtViewer.h:104
virtual void sizeChanged(const SbVec2s &size)
Definition: SoQtRenderArea.cpp:1942
Definition: SoQtViewer.h:116