OIFwdKinematicsInterface Class Reference

#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.
 
void run ()
 
bool setJointAngle (SoPath *p, float angle)
 
void update ()
 
virtual ~OIFwdKinematicsInterface ()
 The virtual destructor of the OIFwdKinematicsInterface class.
 

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.
 
bool readSceneryFromFile ()
 This method tries to read the scenegraph from the file OIFwdKinematicsInterface::sceneryFilename and stores it in OIFwdKinematicsInterface::root.
 

Protected Attributes

SoSeparator * root
 This is the root node of the scenegraph which gets rendered.
 

Detailed Description

Definition at line 60 of file OIFwdKinematicsInterface.h.

Constructor & Destructor Documentation

◆ OIFwdKinematicsInterface()

OIFwdKinematicsInterface ( std::string filename = "")

The constructor of the OIFwdKinematicsInterface class.


It initializes OIFwdKinematicsInterface::root with NULL, the OIFwdKinematicsInterface::sceneryFilename with the

Parameters
filenameand initializes the OIFwdKinematicsInterface::window variable.
intargc the argument count passed into the main method
char**argv the argument array passed into the main method
std::stringfilename the file getting opened by OIFwdKinematicsInterface::readSceneryFromFile(). Default value is an empty string.

Definition at line 138 of file OIFwdKinematicsInterface.cpp.

◆ ~OIFwdKinematicsInterface()

The virtual destructor of the OIFwdKinematicsInterface class.

Definition at line 153 of file OIFwdKinematicsInterface.cpp.

Member Function Documentation

◆ buildScenery()

bool buildScenery ( )
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.

Returns
true if everything went well.
false if no scenery could be created.

Definition at line 406 of file OIFwdKinematicsInterface.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ expandFileNodes()

void expandFileNodes ( )

Definition at line 455 of file OIFwdKinematicsInterface.cpp.

+ Here is the caller graph for this function:

◆ getPath()

bool getPath ( std::string name,
SoPath *& p,
SoNode * r = NULL )

Definition at line 299 of file OIFwdKinematicsInterface.cpp.

◆ getTranslation()

bool getTranslation ( SbVec3f & translation,
SoPath * p )

Definition at line 327 of file OIFwdKinematicsInterface.cpp.

◆ initviewer()

void initviewer ( )

Definition at line 195 of file OIFwdKinematicsInterface.cpp.

+ Here is the call graph for this function:

◆ isInitialized()

bool isInitialized ( )

Definition at line 540 of file OIFwdKinematicsInterface.cpp.

◆ readSceneryFromFile()

bool readSceneryFromFile ( )
protected

This method tries to read the scenegraph from the file OIFwdKinematicsInterface::sceneryFilename and stores it in OIFwdKinematicsInterface::root.

Returns
true if everything went well and the scenegraph could be read.
false if the file couldn't be opened or a problem was encountered while reading the file.

Definition at line 419 of file OIFwdKinematicsInterface.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ run()

void run ( )
+ Here is the call graph for this function:

◆ setJointAngle()

bool setJointAngle ( SoPath * p,
float angle )

Definition at line 358 of file OIFwdKinematicsInterface.cpp.

+ Here is the call graph for this function:

◆ update()

void update ( void )

Definition at line 170 of file OIFwdKinematicsInterface.cpp.

Member Data Documentation

◆ m_fFocalLengthY

float m_fFocalLengthY

Definition at line 81 of file OIFwdKinematicsInterface.h.

◆ m_pCamera

SoPerspectiveCamera* m_pCamera

Definition at line 77 of file OIFwdKinematicsInterface.h.

◆ m_pDavidsRoot

SoSeparator* m_pDavidsRoot

Definition at line 79 of file OIFwdKinematicsInterface.h.

◆ m_pLight

SoDirectionalLight* m_pLight

Definition at line 78 of file OIFwdKinematicsInterface.h.

◆ m_pOffscreenRenderer

SoOffscreenRenderer* m_pOffscreenRenderer

Definition at line 80 of file OIFwdKinematicsInterface.h.

◆ m_pViewportRegion

SbViewportRegion* m_pViewportRegion

Definition at line 76 of file OIFwdKinematicsInterface.h.

◆ root

SoSeparator* root
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.


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