#include <keyEvent.h>
Inheritance diagram for gutz::KeyEvent:
This object is a MouseEvent since the mouse position at the time of the click might be of importantce. A MouseEvent is a CameraEvent since we need the camera for the the mouse position to make sence.
Definition at line 30 of file keyEvent.h.
get/set Key | |
char | getAsci () const |
void | setAsci (char k) |
unsigned int | getKey () const |
void | setKey (unsigned int k) |
GUTZ_MOUSE_BUTTON <gutzKeyMouse.h> | |
unsigned int | getButton () const |
void | setButton (unsigned int b) |
is the button down or up? | |
bool | isButtonDown () const |
void | setButtonDown (bool yes) |
current SCREEN SPACE position | |
float | x () const |
float | y () const |
float | z () const |
vec3f | getPos () const |
virtual void | setPos (const vec3f &pos) |
void | setZ (const float zp) |
this is convenient since the z pos can't be known till something is "picked", unless you set it (z) to zero which indicates picking on the "near clip", or image plane. | |
current WORLD SPACE position | |
vec3f | getWorldPos () const |
Pick Data. | |
public data data/ids associated with mouse event, currently used for gl style picking name ids. | |
void | resetPickData () |
void | setPickData (const DataVec &dv) |
void | setPickData (const unsigned int *dv, int dvSize) |
DataVec | pickData |
Public Types | |
typedef std::vector< unsigned int > | DataVec |
Public Member Functions | |
KeyEvent (unsigned int key, const gutz::vec3f &pos, bool down, unsigned int button, const CameraSP &cam, const ManipSP &manip) | |
KeyEvent (unsigned int key, const MouseEvent &me) | |
KeyEvent (const KeyEvent &ke) | |
virtual | ~KeyEvent () |
const CameraSP | getCamera () const |
void | setCamera (CameraSP cam) |
const ManipSP | getManip () const |
void | setManip (ManipSP manip) |
Protected Member Functions | |
void | setWorldPos () |
set the world pos based on the screen pos | |
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 | |
unsigned int | _key |
unsigned int | _button |
not used | |
bool | _down |
gutz::vec3f | _pos |
screen space postion | |
gutz::vec3f | _wpos |
world space position | |
CameraSP | _cam |
ManipSP | _manip |
Friends | |
class | SmartPtr |
class | SmartPtrRef |
|
Definition at line 35 of file mouseEvent.h. |
|
Definition at line 32 of file keyEvent.h. References _key. |
|
Definition at line 36 of file keyEvent.h. References _key. |
|
Definition at line 39 of file keyEvent.h. References _key. |
|
Definition at line 42 of file keyEvent.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(). |
|
Definition at line 47 of file keyEvent.h. References _key. |
|
Definition at line 66 of file mouseEvent.h. References gutz::MouseEvent::_button. Referenced by WidgetItem::getEvent(), gutz::EventMap< MT >::getEvent(), gutz::Camera::getEvent(), gutz::Camera::getSpeed(), gutz::Camera::mouse(), and gutz::MouseMoveEvent::MouseMoveEvent(). |
|
Definition at line 33 of file cameraEvent.h. References gutz::CameraEvent::_cam, and gutz::CameraSP. Referenced by ballPlane(), VolRenBase::drawDef(), VolRenBase::getCenter(), gutz::Manip::mouse(), gutz::MouseMoveEvent::MouseMoveEvent(), and AnalyticVolRen::postSlice(). |
|
Definition at line 50 of file keyEvent.h. References _key. |
|
Definition at line 35 of file cameraEvent.h. References gutz::CameraEvent::_manip, and gutz::ManipSP. Referenced by VolRenBase::drawDef(), VolRenBase::getCenter(), gutz::MouseMoveEvent::MouseMoveEvent(), and AnalyticVolRen::postSlice(). |
|
Definition at line 83 of file mouseEvent.h. References gutz::MouseEvent::_pos, and gutz::vec3f. Referenced by gutz::Camera::cameraRot(), gutz::Camera::cameraSwivel(), gutz::TransXYManipEvent::getDelta(), gutz::Manip::getRad(), gutz::TransPlaneManipEvent::handleEvent(), gutz::RotateManipEvent::handleEvent(), gutz::Camera::mouse(), gutz::MouseMoveEvent::MouseMoveEvent(), and gutz::MouseMoveEvent::setPos(). |
|
Definition at line 95 of file mouseEvent.h. References gutz::MouseEvent::_wpos, and gutz::vec3f. Referenced by ballPlane(), SurfaceWidget::intersectPlane(), gutz::MouseMoveEvent::setPos(), and gutz::TransPlaneManipEvent::startEvent(). |
|
Definition at line 73 of file mouseEvent.h. References gutz::MouseEvent::_down. Referenced by WidgetItem::getEvent(), gutz::Camera::getEvent(), gutz::EventMap< MT >::mouse(), gutz::Camera::mouse(), gutz::MouseMoveEvent::MouseMoveEvent(), gutz::TransPlaneManipEvent::startEvent(), gutz::TransXYManipEvent::startEvent(), and gutz::RotateManipEvent::startEvent(). |
|
Definition at line 106 of file mouseEvent.h. References gutz::MouseEvent::pickData. |
|
Definition at line 48 of file keyEvent.h. References _key. |
|
Definition at line 67 of file mouseEvent.h. References gutz::MouseEvent::_button. |
|
Definition at line 74 of file mouseEvent.h. References gutz::MouseEvent::_down. |
|
Definition at line 34 of file cameraEvent.h. References gutz::CameraEvent::_cam. |
|
Definition at line 51 of file keyEvent.h. References _key. |
|
Definition at line 36 of file cameraEvent.h. References gutz::CameraEvent::_manip. |
|
Definition at line 116 of file mouseEvent.h. References gutz::MouseEvent::pickData. |
|
Definition at line 110 of file mouseEvent.h. References gutz::MouseEvent::pickData. |
|
Reimplemented in gutz::MouseMoveEvent. Definition at line 84 of file mouseEvent.h. References gutz::MouseEvent::_pos, and gutz::MouseEvent::setWorldPos(). |
|
set the world pos based on the screen pos
Definition at line 127 of file mouseEvent.h. References gutz::CameraEvent::_cam, gutz::MouseEvent::_pos, and gutz::MouseEvent::_wpos. Referenced by gutz::MouseEvent::MouseEvent(), gutz::MouseEvent::setPos(), and gutz::MouseEvent::setZ(). |
|
this is convenient since the z pos can't be known till something is "picked", unless you set it (z) to zero which indicates picking on the "near clip", or image plane. usually, z is in the range [0,1]: 0 =near clip, 1 =far clip Definition at line 89 of file mouseEvent.h. References gutz::MouseEvent::_pos, and gutz::MouseEvent::setWorldPos(). |
|
Definition at line 80 of file mouseEvent.h. References gutz::MouseEvent::_pos. |
|
Definition at line 81 of file mouseEvent.h. References gutz::MouseEvent::_pos. |
|
Definition at line 82 of file mouseEvent.h. References gutz::MouseEvent::_pos. Referenced by gutz::TransXYManipEvent::getDelta(), and gutz::TransPlaneManipEvent::startEvent(). |
|
Definition at line 40 of file smartptr.h. Referenced by Nrro::NrroIter< T >::NrroIter(). |
|
Definition at line 41 of file smartptr.h. |
|
not used
Definition at line 138 of file mouseEvent.h. Referenced by gutz::MouseEvent::getButton(), gutz::MouseEvent::MouseEvent(), and gutz::MouseEvent::setButton(). |
|
Definition at line 39 of file cameraEvent.h. Referenced by gutz::CameraEvent::CameraEvent(), gutz::CameraEvent::getCamera(), gutz::CameraEvent::setCamera(), gutz::MouseMoveEvent::setWorldLast(), gutz::MouseEvent::setWorldPos(), and gutz::CameraEvent::~CameraEvent(). |
|
Definition at line 139 of file mouseEvent.h. Referenced by gutz::MouseEvent::isButtonDown(), gutz::MouseEvent::MouseEvent(), and gutz::MouseEvent::setButtonDown(). |
|
Definition at line 57 of file keyEvent.h. Referenced by getAsci(), getKey(), KeyEvent(), setAsci(), and setKey(). |
|
Definition at line 40 of file cameraEvent.h. Referenced by gutz::CameraEvent::CameraEvent(), gutz::CameraEvent::getManip(), gutz::CameraEvent::setManip(), and gutz::CameraEvent::~CameraEvent(). |
|
screen space postion
Definition at line 140 of file mouseEvent.h. Referenced by gutz::MouseMoveEvent::dx(), gutz::MouseMoveEvent::dy(), gutz::MouseMoveEvent::dz(), gutz::MouseMoveEvent::getDel(), gutz::MouseEvent::getPos(), gutz::MouseEvent::MouseEvent(), gutz::MouseEvent::setPos(), gutz::MouseEvent::setWorldPos(), gutz::MouseEvent::setZ(), gutz::MouseEvent::x(), gutz::MouseEvent::y(), and gutz::MouseEvent::z(). |
|
world space position
Definition at line 141 of file mouseEvent.h. Referenced by gutz::MouseMoveEvent::getWorldDel(), gutz::MouseEvent::getWorldPos(), and gutz::MouseEvent::setWorldPos(). |
|
Definition at line 104 of file mouseEvent.h. Referenced by gutz::MouseEvent::MouseEvent(), gutz::MouseMoveEvent::MouseMoveEvent(), gutz::MouseEvent::resetPickData(), and gutz::MouseEvent::setPickData(). |