45#ifndef CInteractionBasicsH
46#define CInteractionBasicsH
Implements material properties.
Implements an array of 3D vertices.
This class implements a base class for all 2D or 3D objects in CHAI3D.
Definition CGenericObject.h:113
This class stores a list of interaction events.
Definition CInteractionBasics.h:134
cInteractionRecorder()
Constructor of cInteractionRecorder.
Definition CInteractionBasics.h:142
virtual ~cInteractionRecorder()
Destructor of cInteractionRecorder.
Definition CInteractionBasics.h:145
void clear()
This method clears all interaction events.
Definition CInteractionBasics.h:155
std::vector< cInteractionEvent > m_interactions
List of interaction events stored in recorder.
Definition CInteractionBasics.h:168
Definition CAudioBuffer.cpp:57
This structure stores information associated with the interaction of a haptic tool with a shape primi...
Definition CInteractionBasics.h:88
cVector3d m_localNormal
Surface normal at the interaction point in reference to the object's coordinate frame (local coordina...
Definition CInteractionBasics.h:99
cVector3d m_localPos
Position of the interaction point in reference to the object's coordinate frame (local coordinates).
Definition CInteractionBasics.h:96
cVector3d m_localForce
Interaction force in object's local coordinate frame.
Definition CInteractionBasics.h:102
cVector3d m_localSurfacePos
Nearest point to the object's surface in local coordinates.
Definition CInteractionBasics.h:105
void clear()
This method initialize all data contained in current event.
Definition CInteractionBasics.h:108
bool m_isInside
If true then the interaction event occurred inside the object.
Definition CInteractionBasics.h:93
cGenericObject * m_object
Pointer to the object.
Definition CInteractionBasics.h:90
This class implements a 3D vector.
Definition CVector3d.h:89
void zero()
This method clears all vector components with zeros.
Definition CVector3d.h:236
void set(const double &a_x, const double &a_y, const double &a_z)
This method initializes this vector with components x, y, and z passed as arguments.
Definition CVector3d.h:278