#include <ManipEvents.h>
Inheritance diagram for gutz::TransZManipEvent:
Translates the manipulator in Z relative to the current view (along the view direction)
Definition at line 118 of file ManipEvents.h.
Event Handlers | |
should be called when the mouse moves | |
bool | handleEvent (Manip *m, const MouseMoveEvent &mme) |
TransZManipEvent. | |
Event Handlers | |
bool | startEvent (Manip *m, const MouseEvent &me) |
should be called on a Mouse-down event, starts the event | |
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 | |
TransZManipEvent (float speed=1.0f) | |
TransZManipEvent (const TransZManipEvent &tme) | |
virtual | ~TransZManipEvent () |
TransZManipEvent & | operator= (const TransZManipEvent &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 120 of file ManipEvents.h. Referenced by clone(). |
|
Definition at line 123 of file ManipEvents.h. |
|
Definition at line 126 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
Reimplemented from gutz::TransXYManipEvent. Definition at line 133 of file ManipEvents.h. References TransZManipEvent(). |
|
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 gutz::TransXYManipEvent::_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 handleEvent(), and gutz::TransXYManipEvent::handleEvent(). |
|
Definition at line 81 of file ManipEventBase.h. References gutz::ManipEventBase< MT >::_speed. |
|
should be called when the mouse moves
|
|
Reimplemented from gutz::TransXYManipEvent. Definition at line 176 of file ManipEvents.cpp. References gutz::TransXYManipEvent::_lastTrans, gutz::MouseMoveEvent::dx(), gutz::MouseMoveEvent::dy(), gutz::TransXYManipEvent::getDelta(), gutz::Manip::getLocalPos(), gutz::Manip::getParent(), gutz::Manip::setLocalPos(), gutz::vec3f, and gutz::vec3f_z. |
|
Definition at line 128 of file ManipEvents.h. |
|
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 gutz::TransXYManipEvent::_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 gutz::TransXYManipEvent::_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 91 of file ManipEventBase.h. Referenced by gutz::TransXYManipEvent::tumble(), and gutz::RotateManipEvent::tumble(). |