26 #ifndef __BIASWXGLviewer_hh__
27 #define __BIASWXGLviewer_hh__
28 #include <bias_config.h>
29 #include <Gui/biasgl.h>
31 #include <Base/Image/Image.hh>
32 #include <Base/Image/ImageIO.hh>
33 #include <Gui/ParamGUI.hh>
34 #include <GLviewer/Controller/DistanceMeasureControl.hh>
35 #include <GLviewer/Controller/ScreenShotListener.hh>
36 #include <GLviewer/Scenes/ScenePointLight.hh>
37 #ifdef BIAS_HAVE_OPENSCENEGRAPH
38 #include <GLviewer/ThreeDOutOpenSceneGraph.hh>
39 #include <GLviewer/Scenes/SceneOpenSceneGraph.hh>
40 #include <GLviewer/Scenes/ScenePlainOpenSceneGraph.hh>
43 #include <GLviewer/Scenes/SceneGlutPrimitives.hh>
45 #include <GLviewer/ContextWX.hh>
46 #include <GLviewer/GLProjectionParametersPerspective.hh>
47 #include <Geometry/ProjectionParametersPerspective.hh>
49 #include <Base/Debug/TimeMeasure.hh>
52 #include <wx/aboutdlg.h>
53 #include <wx/toolbar.h>
54 #include <wx/splitter.h>
65 enum BIASOpenGLViewerFrameIDs{
68 ID_LOADMODEL=wxID_HIGHEST+1223,
91 virtual void OnFullscreen( wxCommandEvent& event );
92 virtual void OnViewSolid( wxCommandEvent& event );
93 virtual void OnViewLines( wxCommandEvent& event );
94 virtual void OnViewPoints( wxCommandEvent& event );
95 virtual void OnAddModel(wxCommandEvent& event);
96 virtual void OnQuit( wxCloseEvent& event );
97 virtual void OnExit( wxCommandEvent& event );
98 virtual void OnSaveParameters(wxCommandEvent& event);
99 virtual void OnShowParameters(wxCommandEvent& event);
100 virtual void OnTimer(wxTimerEvent& event);
101 virtual void OnDeleteModels(wxCommandEvent& event);
102 virtual void OnAbout(wxCommandEvent& event);
103 virtual void OnMeasure(wxCommandEvent& event);
104 virtual void OnScreenshot(wxCommandEvent& event);
118 #ifdef BIAS_HAVE_GLUT
173 #ifdef BIAS_HAVE_OPENSCENEGRAPH
177 #ifdef BIAS_HAVE_GLUT
189 const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxSize( 1024,768) ,
190 long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL|wxSYSTEM_MENU );
The main Parameter Gui interface, derived from BIAS::Param and extends this class.
wxMenuItem * menuItemShowParameter_
class for distance measurements in 3d model, derives from TrackballControl and SceneBase ...
BIAS::ScreenShotListener screenShotControl_
BIAS::Vector< double > * backGroundColor_
GLPPB encapsulates the opengl rendering interface for the projectionparameter classes.
Class BIASOpenGLViewerFrame.
Scene that renders a background image behind all other scenes.
std::string * screenShotName_
BIAS::GLProjectionParametersBase * virtualCamera_
bool * useJustIntrinsics_
wxMenuItem * menuItemSolid_
wxSplitterWindow * splitterWindow_
wxMenuItem * menuItemFullscreen_
BIAS::SceneBGImage bgImageScene_
wxButton * deleteModelsButton_
std::string * projectionFile_
This class provides an interface to be called if parameter changes occured.
Class for rendering the Glut primitives like teapot, cube, tetrahedron and icosahedron. Mainly used to test rendering without SceneGraph library.
Context implementation for wxWidgets.
wxButton * fullscreenButton_
wxCheckBox * measureCheckbox_
BIAS::ContextWX * contextWX_
void SetParameterFile(int argc, char **argv, std::string ¶mFile)
BIAS::DistanceMeasureControl Control_
wxButton * loadModelButton_
int ResetSceneCenter(BIAS::Vector3< double > *C=NULL, BIAS::Quaternion< double > *Q=NULL)
Implements slim openscenegraph scene without extras.
BIAS::SceneGlutPrimitives sceneGlut_
void ParameterChanged(const std::string ¶mname, const void *data)
BIASOpenGLViewerFrame(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=wxT("MixIn3D"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(1024, 768), long style=wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL|wxSYSTEM_MENU)
wxMenuItem * menuItemLines_
int * autoReshapeBehaviour_
wxButton * screenshotButton_
If KEY_F5 is activated screenshot is stored to given basename + screenshot count. ...
std::string * animationFile_
BIAS::ScenePointLight lightScene_
wxMenuItem * menuItemPoints_