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. 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
 

Detailed Description

Definition at line 59 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 140 of file OIFwdKinematicsInterface.cpp.

◆ ~OIFwdKinematicsInterface()

The virtual destructor of the OIFwdKinematicsInterface class.

Definition at line 149 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 393 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 441 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 292 of file OIFwdKinematicsInterface.cpp.

+ Here is the caller graph for this function:

◆ getTranslation()

bool getTranslation ( SbVec3f &  translation,
SoPath *  p 
)

Definition at line 319 of file OIFwdKinematicsInterface.cpp.

+ Here is the caller graph for this function:

◆ initviewer()

void initviewer ( )

Definition at line 190 of file OIFwdKinematicsInterface.cpp.

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

◆ isInitialized()

bool isInitialized ( )

Definition at line 525 of file OIFwdKinematicsInterface.cpp.

+ Here is the caller graph for this function:

◆ 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 405 of file OIFwdKinematicsInterface.cpp.

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

◆ run()

void run ( )

◆ setJointAngle()

bool setJointAngle ( SoPath *  p,
float  angle 
)

Definition at line 349 of file OIFwdKinematicsInterface.cpp.

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

◆ update()

void update ( )

Definition at line 165 of file OIFwdKinematicsInterface.cpp.

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_fFocalLengthY

float m_fFocalLengthY

Definition at line 80 of file OIFwdKinematicsInterface.h.

◆ m_pCamera

SoPerspectiveCamera* m_pCamera

Definition at line 76 of file OIFwdKinematicsInterface.h.

◆ m_pDavidsRoot

SoSeparator* m_pDavidsRoot

Definition at line 78 of file OIFwdKinematicsInterface.h.

◆ m_pLight

SoDirectionalLight* m_pLight

Definition at line 77 of file OIFwdKinematicsInterface.h.

◆ m_pOffscreenRenderer

SoOffscreenRenderer* m_pOffscreenRenderer

Definition at line 79 of file OIFwdKinematicsInterface.h.

◆ m_pViewportRegion

SbViewportRegion* m_pViewportRegion

Definition at line 75 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: