Candy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Classes | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Candy::PathHapticsDevice Class Reference

This is a haptics device that is controlled through a pre-defined spline path. More...

Inheritance diagram for Candy::PathHapticsDevice:
Inheritance graph
[legend]

Public Member Functions

 PathHapticsDevice (H3D::Inst< H3D::MFVec3f > _path=0, H3D::Inst< H3D::SFFloat > _startTime=0, H3D::Inst< H3D::SFFloat > _rate=0, H3D::Inst< H3D::SFBool > _closed=0)
 
void initialize ()
 

Public Attributes

std::auto_ptr< H3D::MFVec3fpath
  (initialize only) The control points for the cubic spline path that this device should follow. More...
 
std::auto_ptr< H3D::SFFloatstartTime
  (initialize only) The time at which the device follows the path. More...
 
std::auto_ptr< H3D::SFFloatrate
  (initialize only) The rate at which the control points are passed expressed in control points per second. More...
 
std::auto_ptr< H3D::SFBoolclosed
  (initialize only) If true the path is closed, so that when the last control point is reached the first control point is approach to start over again. More...
 

Static Public Attributes

static H3D::H3DNodeDatabase database
 

Detailed Description

This is a haptics device that is controlled through a pre-defined spline path.

Use this device to generate a predictable course of events in the haptic simulation for testing haptic algorithms, rendering of deformations, and other parameters.

X3D Interface

 NameTypeDefault valueDescription
path MFVec3f   []   The control points for the cubic spline path that this device should follow.  
startTime SFFloat   0.0   The time at which the device follows the path.  
rate SFFloat   1.0   The rate at which the control points are passed expressed in control points per second.  
closed SFBool   false   If true the path is closed, so that when the last control point is reached the first control point is approach to start over again.  

Member Data Documentation

std::auto_ptr< H3D::SFBool > Candy::PathHapticsDevice::closed

(initialize only) If true the path is closed, so that when the last control point is reached the first control point is approach to start over again.

std::auto_ptr< H3D::MFVec3f > Candy::PathHapticsDevice::path

(initialize only) The control points for the cubic spline path that this device should follow.

std::auto_ptr< H3D::SFFloat > Candy::PathHapticsDevice::rate

(initialize only) The rate at which the control points are passed expressed in control points per second.

std::auto_ptr< H3D::SFFloat > Candy::PathHapticsDevice::startTime

(initialize only) The time at which the device follows the path.