#include <CShapeLine.h>
Public Member Functions | |
cShapeLine (const cVector3d &a_pointA, const cVector3d &a_pointB) | |
Constructor of cShapeLine. | |
virtual | ~cShapeLine () |
Destructor of cShapeLine. | |
virtual void | render (const int a_renderMode=0) |
Render object in OpenGL. | |
virtual void | updateBoundaryBox () |
Update bounding box of current object. | |
virtual void | scaleObject (const cVector3d &a_scaleFactors) |
Object scaling. | |
virtual void | computeLocalInteraction (const cVector3d &a_toolPos, const cVector3d &a_toolVel, const unsigned int a_IDN) |
Update the geometric relationship between the tool and the current object. | |
Public Attributes | |
cVector3d | m_pointA |
Point A of line. | |
cVector3d | m_pointB |
Point A of line. | |
cColorf | m_ColorPointA |
Color of point A of line. | |
cColorf | m_ColorPointB |
Color of point B of line. |
Constructor of cShapeLine.
Constructor of cShapeLine.
a_pointA | Point A of line. | |
a_pointB | Point B of line. |
void cShapeLine::computeLocalInteraction | ( | const cVector3d & | a_toolPos, | |
const cVector3d & | a_toolVel, | |||
const unsigned int | a_IDN | |||
) | [virtual] |
Update the geometric relationship between the tool and the current object.
From the position of the tool, search for the nearest point located at the surface of the current object. Decide if the point is located inside or outside of the object
a_toolPos | Position of the tool. | |
a_toolVel | Velocity of the tool. | |
a_IDN | Identification number of the force algorithm. |
Reimplemented from cGenericObject.
void cShapeLine::render | ( | const int | a_renderMode = 0 |
) | [virtual] |
Render object in OpenGL.
Render sphere in OpenGL
a_renderMode | See cGenericObject::render() |
Reimplemented from cGenericObject.
void cShapeLine::scaleObject | ( | const cVector3d & | a_scaleFactors | ) | [virtual] |
Object scaling.
Scale object of defined scale factor
a_scaleFactors | Scale factor |
Reimplemented from cGenericObject.