49 #include <visp3/core/vpConfig.h>
51 #ifdef VISP_HAVE_COIN3D_AND_GUI
53 #if defined(VISP_HAVE_SOWIN)
55 #include <Inventor/Win/SoWin.h>
56 #include <Inventor/Win/viewers/SoWinExaminerViewer.h>
58 #elif defined(VISP_HAVE_SOQT)
60 #include <Inventor/Qt/SoQt.h>
61 #include <Inventor/Qt/viewers/SoQtExaminerViewer.h>
63 #elif defined(VISP_HAVE_SOXT)
65 #include <Inventor/Xt/SoXt.h>
66 #include <Inventor/Xt/viewers/SoXtExaminerViewer.h>
72 #include <Inventor/nodes/SoBaseColor.h>
73 #include <Inventor/nodes/SoCone.h>
74 #include <Inventor/nodes/SoCube.h>
75 #include <Inventor/nodes/SoImage.h>
76 #include <Inventor/nodes/SoLightModel.h>
77 #include <Inventor/nodes/SoPerspectiveCamera.h>
78 #include <Inventor/nodes/SoRotationXYZ.h>
79 #include <Inventor/nodes/SoSeparator.h>
80 #include <Inventor/nodes/SoTranslation.h>
81 #include <Inventor/sensors/SoTimerSensor.h>
83 #if defined(VISP_HAVE_SOWIN)
85 #elif defined(VISP_HAVE_SOQT)
87 #elif defined(VISP_HAVE_SOXT)
92 #include <visp3/core/vpCameraParameters.h>
93 #include <visp3/core/vpDebug.h>
94 #include <visp3/core/vpHomogeneousMatrix.h>
113 #if defined(VISP_HAVE_SOWIN)
114 class VISP_EXPORT
vpViewer :
public SoWinExaminerViewer
115 #elif defined(VISP_HAVE_SOQT)
116 class VISP_EXPORT
vpViewer :
public SoQtExaminerViewer
117 #elif defined(VISP_HAVE_SOXT)
118 class VISP_EXPORT
vpViewer :
public SoXtExaminerViewer
126 #if defined(VISP_HAVE_SOWIN)
128 #elif defined(VISP_HAVE_SOQT)
130 #elif defined(VISP_HAVE_SOXT)
135 void resize(
int x,
int y,
bool fixed =
false);
139 vpViewerType viewerType;
141 SbBool processSoEvent(
const SoEvent *
const event);
142 #if defined(VISP_HAVE_SOWIN)
143 static HWND
init(
const char *appname) {
return SoWin::init(appname); };
144 static void mainLoop() { SoWin::mainLoop(); };
145 static void exitMainLoop() { SoWin::exitMainLoop(); };
146 #elif defined(VISP_HAVE_SOQT)
147 static QWidget *
init(
const char *appname) {
return SoQt::init(appname); };
148 static void mainLoop() { SoQt::mainLoop(); };
149 static void exitMainLoop() { SoQt::exitMainLoop(); };
150 #elif defined(VISP_HAVE_SOXT)
151 static Widget
init(
const char *appname) {
return SoXt::init(appname); };
152 static void mainLoop() { SoXt::mainLoop(); };
153 static void exitMainLoop() { SoXt::exitMainLoop(); };
Implementation of a simulator based on Coin3d (www.coin3d.org).
virtual void mainLoop()
activate the mainloop
void init()
perform some initialization
vpViewer * externalView
view from an external camera
Viewer used by the simulator.
void resize(int x, int y, bool fixed=false)
vpViewer(HWND parent, vpSimulator *simu, vpViewerType type)
virtual void actualRedraw(void)