TactileVestProject  V1.0
Tactile user interface configuration tool
 All Classes Functions
Public Slots | Signals | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
ConfigurationWidget Class Reference

Inherits QWidget, and CompositeViewer.

Public Slots

void removeNode (Node *node)
 
void changeLabelFont (const QString id)
 

Signals

void addTactor (int id, osg::Vec3d point)
 
void patternAdd (QString id)
 
void patternDelete (QString id)
 
void sendTextToLog (QString text)
 

Public Member Functions

 ConfigurationWidget (QWidget *parent, NodeManager *tactorManager)
 ConfigurationWidget::ConfigurationWidget. More...
 
void toggleLabels ()
 
void addNode (Node *node)
 
void initializeViewer (QList< Node * > nodes)
 
virtual void paintEvent (QPaintEvent *event)
 

Protected Member Functions

bool eventFilter (QObject *obj, QEvent *event)
 
void pick (int x, int y)
 

Static Protected Member Functions

static void buildNodeMenu (QString text, NodeManager *manager, QMenu *parent)
 

Protected Attributes

osg::Node * human
 
osg::Geode * spheres
 
osg::Geode * labels
 
QMap< osg::Drawable *, Node * > drawableNodeMap
 
QMap< osgText::Text *, QString > drawableLabelMap
 
NodeManagertactorManager
 
QTimer _timer
 

Constructor & Destructor Documentation

ConfigurationWidget::ConfigurationWidget ( QWidget *  parent,
NodeManager tactorManager 
)
explicit

Member Function Documentation

void ConfigurationWidget::buildNodeMenu ( QString  text,
NodeManager manager,
QMenu *  parent 
)
staticprotected

Builds a context menu when right clicking on this window

Parameters
textThe name of the menu
managerThe desired NodeManager
parentThe container of this widget
void ConfigurationWidget::changeLabelFont ( const QString  id)
slot

Changes label font to green

Parameters
idDesired id to change font
bool ConfigurationWidget::eventFilter ( QObject *  obj,
QEvent *  event 
)
protected

Filter the OSGviewer widget's mouse events. Redirect them to this parent widget so we can manipulate the mouse clicks.

Parameters
objThe object being redirected
eventThe event being redirected
Returns
void ConfigurationWidget::initializeViewer ( QList< Node * >  nodes)

Add placed nodes onto the viewer from the tactor manager

void ConfigurationWidget::pick ( int  x,
int  y 
)
protected

Detects what you right click (blank space, tactor, or the model)

Parameters
xx-coordinate
yy-coordinate
void ConfigurationWidget::removeNode ( Node node)
slot

Removes node from drawable space on the widget

Parameters
nodeDesired to remove
void ConfigurationWidget::toggleLabels ( )

Toggles on and off on whether to show labels on nodes


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