32 #ifndef FlatManipulator_INCLUDE_ONCE 33 #define FlatManipulator_INCLUDE_ONCE 158 int numArmTicks = 50,
160 float mmTickSize = 4,
virtual void removedListenerEvent(OpenGLContext *)
Event generated whenever a listener is unbound from an OpenGLContext context.
void setZoomButton(int mouse_button)
Mouse button used to zoom.
bool mouseInViewport(int mx, int my, int &vx, int &vy)
virtual void destroyEvent()
Event generated right before the bound OpenGLContext is destroyed.
float zoomSpeed() const
Zoom speed multiplicative factor (default = 1).
The UIEventListener class listens to the events emitted by an OpenGLContext.
virtual void keyReleaseEvent(unsigned short, EKey)
Event generated when a key is released.
virtual void mouseMoveEvent(int x, int y)
Event generated when the mouse moves.
virtual void resizeEvent(int, int)
Event generated when the bound OpenGLContext is resized.
virtual void visibilityEvent(bool)
Event generated when the bound OpenGLContext is shown or hidden.
void setZoomSpeed(float speed)
Zoom speed multiplicative factor (default = 1).
Represents an OpenGL context, possibly a widget or a pbuffer, which can also respond to keyboard...
virtual void addedListenerEvent(OpenGLContext *)
Event generated whenever a listener is bound to an OpenGLContext context.
virtual void enableEvent(bool enabled)
Event generated whenever setEnabled() is called.
Camera * camera()
The camera through which the manipulator is used.
#define VL_INSTRUMENT_CLASS(ClassName, BaseClass)
virtual void mouseUpEvent(EMouseButton, int x, int y)
Event generated when one of the mouse buttons is released.
This class lets you pan (translate) and zoom a 2D scene using the mouse.
void setCamera(Camera *camera)
The camera through which the manipulator is used.
Visualization Library main namespace.
virtual void mouseWheelEvent(int)
Event generated when the mouse wheel rotated.
virtual void fileDroppedEvent(const std::vector< String > &)
Event generated when one or more files are dropped on the bound OpenGLContext's area.
virtual void updateEvent()
Event generated when the bound OpenGLContext does not have any other message to process and OpenGLCon...
FlatManipulator()
Constructor.
virtual void keyPressEvent(unsigned short, EKey)
Event generated when a key is pressed.
virtual void initEvent()
Event generated when the bound OpenGLContext bocomes initialized or when the event listener is bound ...
virtual void mouseDownEvent(EMouseButton, int x, int y)
Event generated when one of the mouse buttons is pressed.
void setTranslationButton(int mouse_button)
Mouse button used to translate the view.
int zoomButton() const
Mouse button used to zoom.
vl::ref< vl::Geometry > makeScales(bool X=true, bool Y=true, bool Z=true, int numArmTicks=50, float mmStep=10, float mmTickSize=4, vl::fvec4 color=vl::fvec4(1, 1, 1, 1))
Makes an orthogonal cross-hair scales (reticle).
The ref<> class is used to reference-count an Object.
EManipMode mode() const
Returns the current manipulator state.
Represents a virtual camera defining, among other things, the point of view from which scenes can be ...
int translationButton() const
Mouse button used to translate the view.