Candy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Candy::InteractionHistogram Class Reference
Inheritance diagram for Candy::InteractionHistogram:
Inheritance graph
[legend]

Public Member Functions

 InteractionHistogram (H3D::Inst< H3D::SFNode > _metadata=0, H3D::Inst< H3D::SFBool > _resetData=0, H3D::Inst< H3D::SFVec2f > _histogramRange=0, H3D::Inst< H3D::SFInt32 > _histogramSize=0, H3D::Inst< H3D::SFBool > _logarithmicVelocity=0, H3D::Inst< H3D::SFBool > _logarithmicTime=0, H3D::Inst< H3D::MFInt32 > _deviceId=0, H3D::Inst< H3D::MFFloat > _histogramValue=0, H3D::Inst< H3D::MFFloat > _histogramTime=0)
 
void traverseSG (H3D::TraverseInfo &ti)
 

Public Attributes

std::auto_ptr< H3D::SFBoolresetData
  (input/output) (false) If set to true the histogram data will be reset. More...
 
std::auto_ptr< H3D::SFVec2fhistogramRange
  (input/output) (0.001,1.000) The range of velocity values to include in the histogram, in m/s. More...
 
std::auto_ptr< H3D::SFInt32histogramSize
  (input/output) (100) The size, in number of cells, of the histogram. More...
 
std::auto_ptr< H3D::SFBoollogarithmicVelocity
  (input/output) (False) If set to True, the logarithmic scale (base 10) is used for the velocity axis of the histogram (the primary axis). More...
 
std::auto_ptr< H3D::SFBoollogarithmicTime
  (input/output) (False) If set to True, the logarithmic scale (base 10) is used for the time axis of the histogram (the secondary axis). More...
 
std::auto_ptr< H3D::MFFloathistogramValue
  (output only) The interaction histogram containing time spent moving the haptic instrument in each velocity. More...
 
std::auto_ptr< H3D::MFFloathistogramTime
  (output only) The total time entered into the histogram per device. More...
 
std::auto_ptr< H3D::MFInt32deviceId
  (input/output) A list of devices to sample interaction from. More...
 

Static Public Attributes

static H3D::H3DNodeDatabase database
 

Member Data Documentation

std::auto_ptr<H3D::MFInt32> Candy::InteractionHistogram::deviceId

(input/output) A list of devices to sample interaction from.

The histogram data will be reset whenever this field is changed. An empty list will result in all and any device being used.

std::auto_ptr<H3D::SFVec2f> Candy::InteractionHistogram::histogramRange

(input/output) (0.001,1.000) The range of velocity values to include in the histogram, in m/s.

The histogram data will be reset whenever this field is changed.

std::auto_ptr<H3D::SFInt32> Candy::InteractionHistogram::histogramSize

(input/output) (100) The size, in number of cells, of the histogram.

This will be the size of histogramValue. The histogram data will be reset whenever this field is changed.

std::auto_ptr<H3D::MFFloat> Candy::InteractionHistogram::histogramTime

(output only) The total time entered into the histogram per device.

This field will have the same size as deviceId, if set. Dividing each value of histogramValue the value in histogramTime will provide the fraction of time spent in each velocity, iff you have only one active device.

std::auto_ptr<H3D::MFFloat> Candy::InteractionHistogram::histogramValue

(output only) The interaction histogram containing time spent moving the haptic instrument in each velocity.

Samples with velocity below the range specified through histogramRange will not be included but velocities above will be included in the top-most cell. Dividing each value of histogramValue the value in histogramTime will provide the fraction of time spent in each velocity, iff you have only one active device.

std::auto_ptr<H3D::SFBool> Candy::InteractionHistogram::logarithmicTime

(input/output) (False) If set to True, the logarithmic scale (base 10) is used for the time axis of the histogram (the secondary axis).

std::auto_ptr<H3D::SFBool> Candy::InteractionHistogram::logarithmicVelocity

(input/output) (False) If set to True, the logarithmic scale (base 10) is used for the velocity axis of the histogram (the primary axis).

The histogram data will be reset whenever this field is changed.

std::auto_ptr<H3D::SFBool> Candy::InteractionHistogram::resetData

(input/output) (false) If set to true the histogram data will be reset.

This field is automatically set to false when the histogram data have been reset.