VHTK::primitive Struct Reference
[Volume Haptics Nodes]

List of all members.


Detailed Description

Haptic primitive.

The concept of haptic primitives is used by the haptic modes to define a haptic behaviour. For 3 DOF there are four different haptic primitives: point, line, plane and force.

Public Member Functions

 primitive (HAPI::Vec3 x, HAPI::HAPIFloat s, primitive_t type, HAPI::Vec3 q=HAPI::Vec3(1, 0, 0))
 Creates a primitive.
 primitive (HAPI::HAPIFloat s, HAPI::Vec3 q, primitive_t type)
 Creates a force primitive.

Public Attributes

primitive_t type
HAPI::Vec3 x
HAPI::HAPIFloat s
HAPI::Vec3 q


Constructor & Destructor Documentation

VHTK::primitive::primitive ( HAPI::Vec3  x,
HAPI::HAPIFloat  s,
primitive_t  type,
HAPI::Vec3  q = HAPI::Vec3(1,0,0) 
) [inline]

Creates a primitive.

Parameters:
x The position of this primitive.
s The strength of the primitive. This must not be negative if the primitive is not of type directed force.
type The type of the primitive.
q The direction of the primitive. This is not used if the primitive type is point.

VHTK::primitive::primitive ( HAPI::HAPIFloat  s,
HAPI::Vec3  q,
primitive_t  type 
) [inline]

Creates a force primitive.


Generated on Thu Mar 5 08:46:58 2009 for Volume Haptics Toolkit by  doxygen 1.5.6