54#include <Inventor/SbTime.h>
55#include <Inventor/SoType.h>
56#include <Inventor/SbLinear.h>
58#include <Inventor/Qt/SoQtRenderArea.h>
61#include <Inventor/events/SoKeyboardEvent.h>
68class SoDirectionalLight;
70class SoGetBoundingBoxAction;
73class SoMaterialBinding;
83typedef void SoQtViewerCB(
void * data,
SoQtViewer * viewer);
84typedef void SoQtViewerFPSCB(
float fps,
void * data,
SoQtViewer * viewer);
86typedef SbVec2f SoQtAutoClippingCB(
void * data,
const SbVec2f & nearfar);
129 virtual void setCamera(SoCamera * camera);
130 SoCamera * getCamera(
void)
const;
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;
144 SoDirectionalLight * getHeadlight(
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 SoQtAutoClippingCB * 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(SoQtViewerCB * func,
void * data = NULL);
190 void addFinishCallback(SoQtViewerCB * func,
void * data = NULL);
191 void removeStartCallback(SoQtViewerCB * func,
void * data = NULL);
192 void removeFinishCallback(SoQtViewerCB * 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 SoQtViewerP * pimpl;
238 friend class SoQtViewerP;
The SoQtPlaneViewer class is for examining 3D models by moving the camera in orthogonal planes.
Definition SoQtPlaneViewer.h:42
virtual void actualRedraw(void)
Definition SoQtRenderArea.cpp:1901
virtual void sizeChanged(const SbVec2s &size)
Definition SoQtRenderArea.cpp:1983
SoQtRenderArea(QWidget *parent=NULL, const char *name=NULL, SbBool embed=TRUE, SbBool mouseInput=TRUE, SbBool keyboardInput=TRUE)
Definition SoQtRenderArea.cpp:880
virtual SoNode * getSceneGraph(void)
Definition SoQtRenderArea.cpp:1015
virtual void setSceneGraph(SoNode *scene)
Definition SoQtRenderArea.cpp:1003
virtual SbBool processSoEvent(const SoEvent *const event)
Definition SoQtRenderArea.cpp:2153
The SoQtViewer class is the top level base viewer class.
Definition SoQtViewer.h:90
Type
Definition SoQtViewer.h:94
@ EDITOR
Definition SoQtViewer.h:96
@ BROWSER
Definition SoQtViewer.h:95
SoQtViewer(QWidget *parent, const char *name, SbBool embed, Type type, SbBool build)
Definition SoQtViewer.cpp:1596
DrawType
Definition SoQtViewer.h:113
@ STILL
Definition SoQtViewer.h:114
@ INTERACTIVE
Definition SoQtViewer.h:115
DrawStyle
Definition SoQtViewer.h:99
@ VIEW_LOW_COMPLEXITY
Definition SoQtViewer.h:103
@ VIEW_POINT
Definition SoQtViewer.h:105
@ VIEW_HIDDEN_LINE
Definition SoQtViewer.h:101
@ VIEW_NO_TEXTURE
Definition SoQtViewer.h:102
@ VIEW_WIREFRAME_OVERLAY
Definition SoQtViewer.h:110
@ VIEW_LOW_RES_LINE
Definition SoQtViewer.h:107
@ VIEW_AS_IS
Definition SoQtViewer.h:100
@ VIEW_LOW_RES_POINT
Definition SoQtViewer.h:108
@ VIEW_SAME_AS_STILL
Definition SoQtViewer.h:109
@ VIEW_LINE
Definition SoQtViewer.h:104
@ VIEW_BBOX
Definition SoQtViewer.h:106
BufferType
Definition SoQtViewer.h:118
@ BUFFER_SINGLE
Definition SoQtViewer.h:119
@ BUFFER_INTERACTIVE
Definition SoQtViewer.h:121
@ BUFFER_DOUBLE
Definition SoQtViewer.h:120
StereoType
Definition SoQtViewer.h:172
@ STEREO_INTERLEAVED_ROWS
Definition SoQtViewer.h:174
@ STEREO_INTERLEAVED_COLUMNS
Definition SoQtViewer.h:174
@ STEREO_QUADBUFFER
Definition SoQtViewer.h:173
@ STEREO_ANAGLYPH
Definition SoQtViewer.h:173
@ STEREO_NONE
Definition SoQtViewer.h:173
AutoClippingStrategy
Definition SoQtViewer.h:124
@ CONSTANT_NEAR_PLANE
Definition SoQtViewer.h:126
@ VARIABLE_NEAR_PLANE
Definition SoQtViewer.h:125