43 #ifndef vpSimulator_HH
44 #define vpSimulator_HH
53 #include <visp/vpConfig.h>
55 #ifdef VISP_HAVE_COIN_AND_GUI
57 #include <visp/vpViewer.h>
66 #include <Inventor/nodes/SoBaseColor.h>
67 #include <Inventor/nodes/SoTransform.h>
68 #include <Inventor/nodes/SoCone.h>
69 #include <Inventor/nodes/SoCube.h>
70 #include <Inventor/nodes/SoImage.h>
71 #include <Inventor/nodes/SoLightModel.h>
72 #include <Inventor/nodes/SoPerspectiveCamera.h>
73 #include <Inventor/nodes/SoRotationXYZ.h>
74 #include <Inventor/nodes/SoSeparator.h>
75 #include <Inventor/nodes/SoTranslation.h>
76 #include <Inventor/sensors/SoTimerSensor.h>
77 #include <Inventor/SoOffscreenRenderer.h>
78 #include <Inventor/fields/SoSFTime.h>
79 #include <Inventor/threads/SbThread.h>
82 #include <visp/vpDebug.h>
83 #include <visp/vpHomogeneousMatrix.h>
84 #include <visp/vpCameraParameters.h>
85 #include <visp/vpImage.h>
86 #include <visp/vpRGBa.h>
87 #include <visp/vpImageConvert.h>
117 #if defined(VISP_HAVE_SOWIN)
119 #elif defined(VISP_HAVE_SOQT)
120 QWidget * mainWindow ;
121 #elif defined(VISP_HAVE_SOXT)
128 void initSoApplication() ;
139 virtual void mainLoop() ;
149 virtual void initInternalViewer(
const unsigned int nlig,
const unsigned int ncol) ;
151 void initExternalViewer(
const unsigned int nlig,
const unsigned int ncol) ;
160 void initApplication(
void *(*start_routine)(
void *)) ;
161 void initApplication(
void *(*start_routine)(
void *),
void* data);
163 void initMainApplication() ;
164 void closeMainApplication() ;
212 void initSceneGraph() ;
216 SoSeparator * root) ;
226 void load(
const char *file_name) ;
230 void save(
const char *name,
bool binary=
false) ;
233 void addAbsoluteFrame (
float zoom=1) ;
237 void setZoomFactor (
const float zoom) ;
272 void changeZoomFactor(
const float zoom,
const int index);
274 typedef enum { INTERNAL, EXTERNAL } vpSimulatorViewType ;
275 void write(
const char * fileName);
281 int * height = NULL);
296 void getSizeInternalView(
int& width,
int& height);
301 cam = internalCameraParameters;