45 #ifndef CInteractionBasicsH 46 #define CInteractionBasicsH 113 m_localNormal.
set(1,0,0);
115 m_localSurfacePos.
zero();
157 m_interactions.clear();
This class implements a 3D vector.
Definition: CVector3d.h:88
Implements an array of 3D vertices.
void zero()
This method clears all vector components with zeros.
Definition: CVector3d.h:256
void clear()
This method clears all interaction events.
Definition: CInteractionBasics.h:155
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:298
cVector3d m_localPos
Position of the interaction point in reference to the object's coordinate frame (local coordinates)...
Definition: CInteractionBasics.h:96
This structure stores information associated with the interaction of a haptic tool with a shape primi...
Definition: CInteractionBasics.h:87
This class implements a base class for all 2D or 3D objects in CHAI3D.
Definition: CGenericObject.h:112
bool m_isInside
If true then the interaction event occurred inside the object.
Definition: CInteractionBasics.h:93
virtual ~cInteractionRecorder()
Destructor of cInteractionRecorder.
Definition: CInteractionBasics.h:145
cVector3d m_localForce
Interaction force in object's local coordinate frame.
Definition: CInteractionBasics.h:102
cGenericObject * m_object
Pointer to the object.
Definition: CInteractionBasics.h:90
void clear()
This method initialize all data contained in current event.
Definition: CInteractionBasics.h:108
std::vector< cInteractionEvent > m_interactions
List of interaction events stored in recorder.
Definition: CInteractionBasics.h:168
This class stores a list of interaction events.
Definition: CInteractionBasics.h:133
Implements material properties.
Definition: CAudioBuffer.cpp:56
cInteractionRecorder()
Constructor of cInteractionRecorder.
Definition: CInteractionBasics.h:142
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_localSurfacePos
Nearest point to the object's surface in local coordinates.
Definition: CInteractionBasics.h:105