1 #ifndef __CONTROL_INTERFACE_HH__
2 #define __CONTROL_INTERFACE_HH__
4 #include <bias_config.h>
6 #ifndef BIAS_HAVE_OPENGL
7 # error You need BIAS with USE_OpenGL Please recompile BIAS.
8 #endif // BUILD_GLviewer
10 #include <Base/Common/W32Compat.hh>
11 #include <Base/Debug/Debug.hh>
12 #include <Base/Debug/Error.hh>
63 listenerName_=
"unnamed control listener";
64 controlledObject_=NULL;
71 {
return listenerName_;};
75 { listenerName_=name;};
199 if(interface_ != NULL)
200 controlledObject_ = interface_;
202 BIASWARN(
"Given interface is NULL");
208 {
return controlledObject_; };
212 std::string listenerName_;
219 #endif //__CONTROL_INTERFACE_HH__
virtual std::string GetName()
Get the name of the controller.
virtual bool SpecialKeyUp(int)
react to press of special keys such as F1-F12, ...
virtual bool LeftMouseSingleClicked(int, int)
react to left mouse single click overwrite in derived class of desired
virtual void SetName(std::string name)
Set the name of the controller.
virtual bool MouseLeftWindow()
react to mouse leaving the window overwrite in derived class of desired
BIAS::GLProjectionParametersInterface * controlledObject_
the camera which is controlled by this controller
virtual bool StandardKeyUp(unsigned char, int, int)
react to press of ascii-coded charakter plus pointer position
virtual BIAS::GLProjectionParametersInterface * GetGLProjectionParametersInterface()
Get the camera projection parameters.
virtual bool LeftMouseDoubleClicked(int, int, int m)
react to left mouse double click overwrite in derived class of desired
virtual bool MouseMoved(int, int)
react to mouse movement overwrite in derived class of desired
virtual bool RightMouseMoved(int, int, int, int)
react to mouse movement while right button held down overwrite in derived class of desired ...
virtual bool TimerExpired()
this function is called by RenderContextBase when timer is expired Overwrite and implement to do some...
virtual bool RightMouseSingleClicked(int, int)
react to right mouse single click event overwrite in derived class of desired
virtual bool StandardKeyPressed(unsigned char, int, int)
react to press of ascii-coded charakter plus pointer position
virtual bool WindowReshape(int, int)
this function is called by RenderContextBase if the window is reshaped.
virtual bool MiddleMouseMoved(int, int, int, int)
react to mouse movement while middle button held down overwrite in derived class of desired ...
Abstract interface class to handle changes in rendering parameters by controllers and in rendering co...
virtual bool FinishedDraw()
this function is called by RenderContextBase when drawing is done.
virtual bool RightMouseDown(int, int)
react to right mouse button down event overwrite in derived class of desired
virtual bool LeftMouseDown(int, int)
react to left mouse button down event overwrite in derived class of desired
virtual bool LeftMouseMoved(int, int, int, int)
react to mouse movement while left button held down overwrite in derived class of desired ...
virtual bool LeftMouseUp(int, int)
react to left mouse button up event overwrite in derived class of desired
virtual bool MouseWheelUsed(double stepsize)
react to mouse wheel usage overwrite in derived class of desired
ControlInterface()
constructor
virtual void SetGLProjectionParametersInterface(BIAS::GLProjectionParametersInterface *interface_)
Set the camera projection parameters.
virtual bool LeftAndRightMouseMoved(int, int, int, int)
react to mouse movement while right and middle button held down overwrite in derived class of desired...
virtual ~ControlInterface()
destructor
virtual bool MiddleMouseUp(int, int)
react to middle mouse button up event overwrite in derived class of desired
virtual bool MiddleMouseDown(int, int)
react to middle mouse button down event overwrite in derived class of desired
virtual bool RightMouseUp(int, int)
react to right mouse button up event overwrite in derived class of desired
virtual bool RightMouseDoubleClicked(int, int)
react to right mouse double click overwrite in derived class of desired
Defines the common interface used for communication between rendering components. ...
virtual bool SpecialKeyPressed(int)
react to press of special keys such as F1-F12, ...