#include <ManipEvents.h>
Inheritance diagram for gutz::TransXYManipEvent:
Translates the manipulator in X&Y relative to the current view. This is also a base class for other translation events.
Definition at line 74 of file ManipEvents.h.
Event Handlers | |
bool | startEvent (Manip *m, const MouseEvent &me) |
should be called on a Mouse-down event, starts the event | |
bool | handleEvent (Manip *m, const MouseMoveEvent &mme) |
should be called when the mouse moves | |
void | endEvent (Manip *m, const MouseEvent &me) |
called when the event is over, may or may not be on a Mouse-up event | |
bool | tumble (Manip *m) |
repeat last event | |
Public Types | |
typedef Manip | ManipType |
either a Camera or a Manip (LIGHT??) | |
Public Member Functions | |
TransXYManipEvent (float speed=1.0f) | |
TransXYManipEvent (const TransXYManipEvent &tme) | |
virtual | ~TransXYManipEvent () |
TransXYManipEvent & | operator= (const TransXYManipEvent &tme) |
virtual ManipEventBase< Manip > * | clone () const |
be sure to override this in any sub-classes | |
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 | |
virtual bool | tumble (ManipType *m) |
float | getSpeed () const |
void | setSpeed (float speed) |
Protected Member Functions | |
vec3f | getDelta (Manip *m, const MouseMoveEvent &mme) const |
returns the translaton for this local frame (actually defined in parent's space) | |
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 | |
vec3f | _lastTrans |
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 76 of file ManipEvents.h. References _lastTrans, and gutz::vec3f_zero. Referenced by clone(). |
|
Definition at line 79 of file ManipEvents.h. References _lastTrans, and gutz::vec3f_zero. |
|
Definition at line 82 of file ManipEvents.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(). |
|
be sure to override this in any sub-classes
Implements gutz::ManipEventBase< Manip >. Reimplemented in gutz::TransZManipEvent, and gutz::TransPlaneManipEvent. Definition at line 91 of file ManipEvents.h. References TransXYManipEvent(). |
|
called when the event is over, may or may not be on a Mouse-up event
|
|
called when the event is over, may or may not be on a Mouse-up event
Definition at line 158 of file ManipEvents.cpp. References _lastTrans, and gutz::vec3f_zero. |
|
returns the translaton for this local frame (actually defined in parent's space) didn't have a picked point intersect rays with plane at our local position oriented with view direction compute delta based on the current & last intersections we DID have a valid pick point else we didn't have a parent, we just have to use the points... use ray-plane intersection to compute the delta vector get the ray through the screen points (curr&last) from the eye therfore the points from the event just need to be translated to our (parents) LOCAL space Definition at line 110 of file ManipEvents.cpp. References gutz::MouseMoveEvent::getLast(), gutz::Manip::getLocalPos(), gutz::Manip::getParent(), gutz::MouseEvent::getPos(), gutz::vec3f, and gutz::MouseEvent::z(). Referenced by gutz::TransZManipEvent::handleEvent(), and handleEvent(). |
|
Definition at line 81 of file ManipEventBase.h. References gutz::ManipEventBase< MT >::_speed. |
|
should be called when the mouse moves
|
|
should be called when the mouse moves
Reimplemented in gutz::TransZManipEvent, and gutz::TransPlaneManipEvent. Definition at line 149 of file ManipEvents.cpp. References _lastTrans, getDelta(), gutz::Manip::getLocalPos(), and gutz::Manip::setLocalPos(). |
|
Definition at line 84 of file ManipEvents.h. References _lastTrans, and gutz::vec3f_zero. |
|
Definition at line 82 of file ManipEventBase.h. References gutz::ManipEventBase< MT >::_speed. |
|
should be called on a Mouse-down event, starts the event
|
|
should be called on a Mouse-down event, starts the event
Reimplemented in gutz::TransPlaneManipEvent. Definition at line 101 of file ManipEvents.cpp. References _lastTrans, gutz::MouseEvent::isButtonDown(), and gutz::vec3f_zero. |
|
Definition at line 76 of file ManipEventBase.h. |
|
repeat last event
Definition at line 163 of file ManipEvents.cpp. References _lastTrans, gutz::ManipEventBase< Manip >::_speed, gutz::Manip::getLocalPos(), gutz::Manip::setLocalPos(), and gutz::vec3f_zero. |
|
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 110 of file ManipEvents.h. Referenced by endEvent(), gutz::TransPlaneManipEvent::handleEvent(), gutz::TransZManipEvent::handleEvent(), handleEvent(), operator=(), gutz::TransPlaneManipEvent::startEvent(), startEvent(), TransXYManipEvent(), and tumble(). |
|
Definition at line 91 of file ManipEventBase.h. Referenced by tumble(), and gutz::RotateManipEvent::tumble(). |