1 #ifndef __CameraViewController_h__
2 #define __CameraViewController_h__
6 #include <bias_config.h>
7 #ifndef BIAS_HAVE_OPENGL
8 # error Please recompile BIAS with USE_OPENGL to use this lib.
9 #endif // BIAS_HAVE_OPENGL
15 #ifndef BIAS_HAVE_WXWIDGETS
16 # error Please recompile BIAS with USE_WXWIDGETS to use this lib.
17 #endif // BIAS_HAVE_WXWIDGETS
21 #include <Gui/biasgl.h>
27 #include <Base/Debug/Error.hh>
28 #include <Base/Debug/DebugSimple.hh>
29 #include <Base/Math/Vector2.hh>
30 #include <Base/Math/Vector3.hh>
31 #include <Geometry/PMatrix.hh>
33 #include <Gui/CameraViewExternals.hh>
34 #include <Gui/CameraViewInternals.hh>
94 std::ostream &
Print(std::ostream & os=std::cout );
159 #endif // __CameraViewController_h__
void MotionTranslationCoplanar(const BIAS::Vector2< double > &pos)
void MoveOrbit(const BIAS::Vector2< double > &deltaN)
BIAS::CameraViewExternals * p_externals
CameraViewInternals startposInt
std::ostream & Print(std::ostream &os=std::cout)
map update of one axis (mouse wheel, delta, key...) maps delta (e.g.
CameraViewExternals startposExt
BIAS::Vector2< double > startpos
virtual void DisplayGLInternal()
BIAS::CameraViewInternals * p_internals
base for (interactively) manipulating a (virtual) camera view.
virtual ~CameraViewController()
destructor
virtual void InitMembers()
any constructor should call this function to initialize all data members (e.g.
void MoveToCenter(const double &fraction)
void SetStartPos(const BIAS::Vector2< double > &pos)
toplevel entry for all motion controllers
CameraViewExternals GetExternals() const
CameraViewInternals GetInternals() const
void SetSize(const BIAS::Vector2< double > &sz)
interaction area size
CameraViewInternals & GetInternals()
void MotionTranslationForward(const BIAS::Vector2< double > &pos)
describes internal params of an (OpenGL) camera view
virtual void DisplayGLExternal()
void MotionTranslation(const BIAS::Vector2< double > &pos)
simple translation
BIAS::Vector2< double > size
void MotionTrackballRotation(const BIAS::Vector2< double > &pos)
void MoveCoplanar(const BIAS::Vector2< double > &deltaN)
CameraViewExternals & GetExternals()
describes external params of a camera view Used e.g.