50 #include <visp3/core/vpConfig.h>
52 #ifdef VISP_HAVE_COIN3D_AND_GUI
54 #if defined(VISP_HAVE_SOWIN)
56 #include <Inventor/Win/SoWin.h>
57 #include <Inventor/Win/viewers/SoWinExaminerViewer.h>
59 #elif defined(VISP_HAVE_SOQT)
61 #include <Inventor/Qt/SoQt.h>
62 #include <Inventor/Qt/viewers/SoQtExaminerViewer.h>
64 #elif defined(VISP_HAVE_SOXT)
66 #include <Inventor/Xt/SoXt.h>
67 #include <Inventor/Xt/viewers/SoXtExaminerViewer.h>
73 #include <Inventor/nodes/SoBaseColor.h>
74 #include <Inventor/nodes/SoCone.h>
75 #include <Inventor/nodes/SoCube.h>
76 #include <Inventor/nodes/SoImage.h>
77 #include <Inventor/nodes/SoLightModel.h>
78 #include <Inventor/nodes/SoPerspectiveCamera.h>
79 #include <Inventor/nodes/SoRotationXYZ.h>
80 #include <Inventor/nodes/SoSeparator.h>
81 #include <Inventor/nodes/SoTranslation.h>
82 #include <Inventor/sensors/SoTimerSensor.h>
84 #if defined(VISP_HAVE_SOWIN)
86 #elif defined(VISP_HAVE_SOQT)
88 #elif defined(VISP_HAVE_SOXT)
93 #include <visp3/core/vpCameraParameters.h>
94 #include <visp3/core/vpDebug.h>
95 #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)
virtual void actualRedraw(void)
vpViewer(HWND parent, vpSimulator *simu, vpViewerType type)