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, functionStatusTypekeyFunctionMap
 

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

◆ functionType

typedef void(* vizkit3d::PickHandler::functionType) ()

◆ keyFunctionMap

typedef std::map<int, functionStatusType > vizkit3d::PickHandler::keyFunctionMap
protected

Member Enumeration Documentation

◆ keyStatusType

Enumerator
KEY_UP 
KEY_DOWN 

Constructor & Destructor Documentation

◆ PickHandler()

PickHandler::PickHandler ( )

◆ ~PickHandler()

PickHandler::~PickHandler ( )

Member Function Documentation

◆ addFunction() [1/2]

bool PickHandler::addFunction ( int  whatKey,
functionType  newFunction 
)

◆ addFunction() [2/2]

bool PickHandler::addFunction ( int  whatKey,
keyStatusType  keyPressStatus,
functionType  newFunction 
)

◆ handle()

bool PickHandler::handle ( const osgGA::GUIEventAdapter &  ea,
osgGA::GUIActionAdapter &  aa 
)

◆ pick()

void PickHandler::pick ( const osgGA::GUIEventAdapter &  ea,
osgViewer::View *  viewer 
)

◆ picked

void vizkit3d::PickHandler::picked ( const QVector3D &  coord)
signal

◆ setTrackedNode()

void PickHandler::setTrackedNode ( osgViewer::View *  viewer,
osg::ref_ptr< osg::Node >  node 
)
protected

◆ wireFrameModeOff()

void PickHandler::wireFrameModeOff ( osg::Node *  srcNode)
protected

◆ wireFrameModeOn()

void PickHandler::wireFrameModeOn ( osg::Node *  srcNode)
protected

Member Data Documentation

◆ _mx

float vizkit3d::PickHandler::_mx
protected

◆ _my

float vizkit3d::PickHandler::_my
protected

◆ _usePolytopeIntersector

bool vizkit3d::PickHandler::_usePolytopeIntersector
protected

◆ _useWindowCoordinates

bool vizkit3d::PickHandler::_useWindowCoordinates
protected

◆ keyFuncMap

keyFunctionMap vizkit3d::PickHandler::keyFuncMap
protected

◆ keyUPFuncMap

keyFunctionMap vizkit3d::PickHandler::keyUPFuncMap
protected

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