vizkit3d
Classes | Public Types | Signals | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
vizkit3d::PickHandler Class Reference

#include <PickHandler.hpp>

Inheritance diagram for vizkit3d::PickHandler:

Classes

struct  functionStatusType
 

Public Types

enum  keyStatusType { KEY_UP, KEY_DOWN }
 
typedef void(* functionType )()
 

Signals

void picked (const QVector3D &coord)
 

Public Member Functions

 PickHandler ()
 
 ~PickHandler ()
 
bool addFunction (int whatKey, functionType newFunction)
 
bool addFunction (int whatKey, keyStatusType keyPressStatus, functionType newFunction)
 
bool handle (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa)
 
void pick (const osgGA::GUIEventAdapter &ea, osgViewer::View *viewer)
 

Protected Types

typedef std::map< int,
functionStatusType
keyFunctionMap
 

Protected Member Functions

void setTrackedNode (osgViewer::View *viewer, osg::ref_ptr< osg::Node > node)
 
void wireFrameModeOn (osg::Node *srcNode)
 
void wireFrameModeOff (osg::Node *srcNode)
 

Protected Attributes

float _mx
 
float _my
 
bool _usePolytopeIntersector
 
bool _useWindowCoordinates
 
keyFunctionMap keyFuncMap
 
keyFunctionMap keyUPFuncMap
 

Member Typedef Documentation

typedef void(* vizkit3d::PickHandler::functionType)()
typedef std::map<int, functionStatusType > vizkit3d::PickHandler::keyFunctionMap
protected

Member Enumeration Documentation

Enumerator
KEY_UP 
KEY_DOWN 

Constructor & Destructor Documentation

PickHandler::PickHandler ( )
PickHandler::~PickHandler ( )

Member Function Documentation

bool PickHandler::addFunction ( int  whatKey,
functionType  newFunction 
)
bool PickHandler::addFunction ( int  whatKey,
keyStatusType  keyPressStatus,
functionType  newFunction 
)
bool PickHandler::handle ( const osgGA::GUIEventAdapter &  ea,
osgGA::GUIActionAdapter &  aa 
)
void PickHandler::pick ( const osgGA::GUIEventAdapter &  ea,
osgViewer::View *  viewer 
)
void vizkit3d::PickHandler::picked ( const QVector3D &  coord)
signal
void PickHandler::setTrackedNode ( osgViewer::View *  viewer,
osg::ref_ptr< osg::Node >  node 
)
protected
void PickHandler::wireFrameModeOff ( osg::Node *  srcNode)
protected
void PickHandler::wireFrameModeOn ( osg::Node *  srcNode)
protected

Member Data Documentation

float vizkit3d::PickHandler::_mx
protected
float vizkit3d::PickHandler::_my
protected
bool vizkit3d::PickHandler::_usePolytopeIntersector
protected
bool vizkit3d::PickHandler::_useWindowCoordinates
protected
keyFunctionMap vizkit3d::PickHandler::keyFuncMap
protected
keyFunctionMap vizkit3d::PickHandler::keyUPFuncMap
protected

The documentation for this class was generated from the following files: