#include <ManipEventBase.h>
Inheritance diagram for gutz::ManipEventBase< MT >:
Defines the functions that MUST be defined for a Manipulator Constraint/Event handler. All Events should sub-class from this guy.
Template parameter MT is the ManipType, right now this is either a gutz::Manip or a gutz::Camera. See gutz::EventMap for a containter class.
The role of this class is to provide a common interface for events, this way we can map them etc... Notice that we have a pure virutal clone. This means that we would like to copy an event with out knowing anything about it. Since the copy constructor just won't due, you have to clone.
Although the name of this class is ManipEventBase, it is also the base for Camera Events too.
Definition at line 49 of file ManipEventBase.h.
Clone | |
virtual ManipEventBase< MT > * | clone () const=0 |
Event Handlers | |
Return true if the event had an error, false if everything was ok! | |
virtual bool | startEvent (ManipType *m, const MouseEvent &me)=0 |
should be called on a Mouse-down event, starts the event | |
virtual bool | handleEvent (ManipType *m, const MouseMoveEvent &mme)=0 |
should be called when the mouse moves | |
virtual void | endEvent (ManipType *m, const MouseEvent &me)=0 |
called when the event is over, may or may not be on a Mouse-up event | |
Tumble | |
optional event handler, means "repeat last event" | |
virtual bool | tumble (ManipType *m) |
Speed | |
float | getSpeed () const |
void | setSpeed (float speed) |
Public Types | |
typedef MT | ManipType |
either a Camera or a Manip (LIGHT??) | |
Public Member Functions | |
virtual | ~ManipEventBase () |
Protected Member Functions | |
ManipEventBase (float speed=1.0f) | |
ManipEventBase (const ManipEventBase &m) | |
ManipEventBase & | operator= (const ManipEventBase &m) |
virtual void | _incCount () |
gutz::Counted interface, increment reference count by one. | |
virtual void | _decCount () |
gutz::Counted interface, decrement reference count by one. | |
virtual int | _getCount () const |
gutz::Counted interface, get the current reference count. | |
Protected Attributes | |
float | _speed |
Friends | |
class | SmartPtr |
class | SmartPtrRef |
|
either a Camera or a Manip (LIGHT??)
Definition at line 52 of file ManipEventBase.h. |
|
Definition at line 54 of file ManipEventBase.h. |
|
Definition at line 86 of file ManipEventBase.h. |
|
Definition at line 87 of file ManipEventBase.h. |
|
gutz::Counted interface, decrement reference count by one. Not generaly used by subclasses, mostly for collaboration with gutz::SmartPtr. Sometimes you need to call this though, see the documentation for gutz::SmartPtr Definition at line 54 of file smartptr.h. Referenced by TFImage::clear(), NrroImage::fBlendOverRGBA(), and Nrro::updateMinMax(). |
|
gutz::Counted interface, get the current reference count. Not generaly used by subclasses, mostly for collaboration with gutz::SmartPtr. Definition at line 58 of file smartptr.h. |
|
gutz::Counted interface, increment reference count by one. Not generaly used by subclasses, mostly for collaboration with gutz::SmartPtr. Sometimes you need to call this though, see the documentation for gutz::SmartPtr Definition at line 48 of file smartptr.h. Referenced by TFImage::clear(), NrroImage::fBlendOverRGBA(), and Nrro::updateMinMax(). |
|
Implemented in gutz::RotateManipEvent, gutz::TransXYManipEvent, gutz::TransZManipEvent, and gutz::TransPlaneManipEvent. |
|
called when the event is over, may or may not be on a Mouse-up event
|
|
Definition at line 81 of file ManipEventBase.h. |
|
should be called when the mouse moves
|
|
Definition at line 88 of file ManipEventBase.h. |
|
Definition at line 82 of file ManipEventBase.h. |
|
should be called on a Mouse-down event, starts the event
|
|
Definition at line 76 of file ManipEventBase.h. |
|
Definition at line 40 of file smartptr.h. Referenced by Nrro::NrroIter< T >::NrroIter(). |
|
Definition at line 41 of file smartptr.h. |
|
Definition at line 91 of file ManipEventBase.h. Referenced by gutz::ManipEventBase< Manip >::getSpeed(), gutz::ManipEventBase< Manip >::ManipEventBase(), gutz::ManipEventBase< Manip >::operator=(), and gutz::ManipEventBase< Manip >::setSpeed(). |