57 #include <visp/vpConfig.h>
59 #ifdef VISP_HAVE_COIN_AND_GUI
61 #if defined(VISP_HAVE_SOWIN)
63 #include <Inventor/Win/SoWin.h>
64 #include <Inventor/Win/viewers/SoWinExaminerViewer.h>
66 #elif defined(VISP_HAVE_SOQT)
68 #include <Inventor/Qt/SoQt.h>
69 #include <Inventor/Qt/viewers/SoQtExaminerViewer.h>
71 #elif defined(VISP_HAVE_SOXT)
73 #include <Inventor/Xt/SoXt.h>
74 #include <Inventor/Xt/viewers/SoXtExaminerViewer.h>
80 #include <Inventor/nodes/SoBaseColor.h>
81 #include <Inventor/nodes/SoCone.h>
82 #include <Inventor/nodes/SoCube.h>
83 #include <Inventor/nodes/SoImage.h>
84 #include <Inventor/nodes/SoLightModel.h>
85 #include <Inventor/nodes/SoPerspectiveCamera.h>
86 #include <Inventor/nodes/SoRotationXYZ.h>
87 #include <Inventor/nodes/SoSeparator.h>
88 #include <Inventor/nodes/SoTranslation.h>
89 #include <Inventor/sensors/SoTimerSensor.h>
91 #if defined(VISP_HAVE_SOWIN)
93 #elif defined(VISP_HAVE_SOQT)
95 #elif defined(VISP_HAVE_SOXT)
100 #include <visp/vpDebug.h>
101 #include <visp/vpHomogeneousMatrix.h>
102 #include <visp/vpCameraParameters.h>
119 #if defined(VISP_HAVE_SOWIN)
120 class VISP_EXPORT
vpViewer :
public SoWinExaminerViewer
121 #elif defined(VISP_HAVE_SOQT)
122 class VISP_EXPORT
vpViewer :
public SoQtExaminerViewer
123 #elif defined(VISP_HAVE_SOXT)
124 class VISP_EXPORT
vpViewer :
public SoXtExaminerViewer
135 #if defined(VISP_HAVE_SOWIN)
137 #elif defined(VISP_HAVE_SOQT)
139 #elif defined(VISP_HAVE_SOXT)
144 void resize(
int x,
int y,
bool fixed =
false) ;
149 vpViewerType viewerType;
151 SbBool processSoEvent(
const SoEvent *
const event) ;
152 #if defined(VISP_HAVE_SOWIN)
153 static HWND
init(
const char * appname) {
return SoWin::init(appname);};
154 static void mainLoop() {SoWin::mainLoop();};
155 static void exitMainLoop() {SoWin::exitMainLoop();};
156 #elif defined(VISP_HAVE_SOQT)
157 static QWidget *
init(
const char * appname) {
return SoQt::init(appname);};
158 static void mainLoop() { SoQt::mainLoop();};
159 static void exitMainLoop() {SoQt::exitMainLoop();};
160 #elif defined(VISP_HAVE_SOXT)
161 static Widget
init(
const char * appname) {
return SoXt::init(appname);};
162 static void mainLoop() { SoXt::mainLoop();};
163 static void exitMainLoop() {SoXt::exitMainLoop();};
167 #endif //VISP_HAVE_COIN_AND_GUI
void resize(int x, int y, bool fixed=false)
Implementation of a simulator based on Coin3d (www.coin3d.org).
void init()
perform some initialization
virtual void mainLoop()
activate the mainloop
Viewer used by the simulator.
virtual void actualRedraw(void)
vpViewer * externalView
view from an external camera
vpViewer(HWND parent, vpSimulator *simu, vpViewerType viewerType)