|
#include <VisionX/vision_algorithms/HandLocalizationWithFingertips/Visualization/OIFwdKinematicsInterface.h>
Public Member Functions | |
void | expandFileNodes () |
bool | getPath (std::string name, SoPath *&p, SoNode *r=NULL) |
bool | getTranslation (SbVec3f &translation, SoPath *p) |
void | initviewer () |
bool | isInitialized () |
OIFwdKinematicsInterface (std::string filename="") | |
The constructor of the OIFwdKinematicsInterface class. More... | |
void | run () |
bool | setJointAngle (SoPath *p, float angle) |
void | update () |
virtual | ~OIFwdKinematicsInterface () |
The virtual destructor of the OIFwdKinematicsInterface class. More... | |
Public Attributes | |
float | m_fFocalLengthY |
SoPerspectiveCamera * | m_pCamera |
SoSeparator * | m_pDavidsRoot |
SoDirectionalLight * | m_pLight |
SoOffscreenRenderer * | m_pOffscreenRenderer |
SbViewportRegion * | m_pViewportRegion |
Protected Member Functions | |
virtual bool | buildScenery () |
The virtual method OIFwdKinematicsInterface::buildScenery() is used to create a scenegraph. More... | |
bool | readSceneryFromFile () |
This method tries to read the scenegraph from the file OIFwdKinematicsInterface::sceneryFilename and stores it in OIFwdKinematicsInterface::root. More... | |
Protected Attributes | |
SoSeparator * | root |
Definition at line 59 of file OIFwdKinematicsInterface.h.
OIFwdKinematicsInterface | ( | std::string | filename = "" | ) |
The constructor of the OIFwdKinematicsInterface class.
It initializes OIFwdKinematicsInterface::root with NULL, the OIFwdKinematicsInterface::sceneryFilename with the
filename | and initializes the OIFwdKinematicsInterface::window variable. |
int | argc the argument count passed into the main method |
char | **argv the argument array passed into the main method |
std::string | filename the file getting opened by OIFwdKinematicsInterface::readSceneryFromFile(). Default value is an empty string. |
Definition at line 140 of file OIFwdKinematicsInterface.cpp.
|
virtual |
The virtual destructor of the OIFwdKinematicsInterface class.
Definition at line 149 of file OIFwdKinematicsInterface.cpp.
|
protectedvirtual |
The virtual method OIFwdKinematicsInterface::buildScenery() is used to create a scenegraph.
If you want to create your own scenegraph just override this method. Otherwise it reads the scenegraph stored in the file OIFwdKinematicsInterface::sceneryFilename.
Definition at line 393 of file OIFwdKinematicsInterface.cpp.
void expandFileNodes | ( | ) |
Definition at line 441 of file OIFwdKinematicsInterface.cpp.
bool getPath | ( | std::string | name, |
SoPath *& | p, | ||
SoNode * | r = NULL |
||
) |
Definition at line 292 of file OIFwdKinematicsInterface.cpp.
bool getTranslation | ( | SbVec3f & | translation, |
SoPath * | p | ||
) |
Definition at line 319 of file OIFwdKinematicsInterface.cpp.
void initviewer | ( | ) |
Definition at line 190 of file OIFwdKinematicsInterface.cpp.
bool isInitialized | ( | ) |
Definition at line 525 of file OIFwdKinematicsInterface.cpp.
|
protected |
This method tries to read the scenegraph from the file OIFwdKinematicsInterface::sceneryFilename and stores it in OIFwdKinematicsInterface::root.
Definition at line 405 of file OIFwdKinematicsInterface.cpp.
void run | ( | ) |
bool setJointAngle | ( | SoPath * | p, |
float | angle | ||
) |
Definition at line 349 of file OIFwdKinematicsInterface.cpp.
void update | ( | ) |
Definition at line 165 of file OIFwdKinematicsInterface.cpp.
float m_fFocalLengthY |
Definition at line 80 of file OIFwdKinematicsInterface.h.
SoPerspectiveCamera* m_pCamera |
Definition at line 76 of file OIFwdKinematicsInterface.h.
SoSeparator* m_pDavidsRoot |
Definition at line 78 of file OIFwdKinematicsInterface.h.
SoDirectionalLight* m_pLight |
Definition at line 77 of file OIFwdKinematicsInterface.h.
SoOffscreenRenderer* m_pOffscreenRenderer |
Definition at line 79 of file OIFwdKinematicsInterface.h.
SbViewportRegion* m_pViewportRegion |
Definition at line 75 of file OIFwdKinematicsInterface.h.
|
protected |
This is the root node of the scenegraph which gets rendered.
You can create a new node in the OIFwdKinematicsInterface::buildScenery() method because it gets referenced and unreferenced in the OIFwdKinematicsInterface::run() method.
Definition at line 87 of file OIFwdKinematicsInterface.h.