113 const bool a_duplicateTextureData =
false,
114 const bool a_duplicateMeshData =
false,
115 const bool a_buildCollisionDetector =
false);
124 void setLineStipple(
const GLint a_stippleFactor,
const GLushort a_stipplePattern);
174 virtual void scaleObject(
const double& a_scaleFactor);
179 const unsigned int a_IDN);
196 const bool a_duplicateMaterialData,
197 const bool a_duplicateTextureData,
198 const bool a_duplicateMeshData,
199 const bool a_buildCollisionDetector);
Implements a base class for all objects.
Implements material properties.
This class implements a collision detection recorder that stores all collision events that are report...
Definition CCollisionBasics.h:186
This class implements a base class for all 2D or 3D objects in CHAI3D.
Definition CGenericObject.h:113
This class implements a 3D line.
Definition CShapeLine.h:78
virtual void updateBoundaryBox()
This method updates the boundary box of this object.
Definition CShapeLine.cpp:362
void updateLinePoints()
This method updates position of line extremity points.
Definition CShapeLine.cpp:427
cVector3d m_linePointB
Definition CShapeLine.h:224
double getLineWidth() const
This method returns the line width.
Definition CShapeLine.h:121
virtual bool computeOtherCollisionDetection(cVector3d &a_segmentPointA, cVector3d &a_segmentPointB, cCollisionRecorder &a_recorder, cCollisionSettings &a_settings)
This method computes collisions between a segment and this object.
Definition CShapeLine.cpp:470
GLushort getLineStipplePattern()
This method returns the stipple pattern value.
Definition CShapeLine.h:130
cColorf m_colorPointB
Color of point B of line.
Definition CShapeLine.h:152
GLint getLineStippleFactor()
This method returns the line stipple factor value.
Definition CShapeLine.h:127
cVector3d m_pointB
Point A of line.
Definition CShapeLine.h:146
cShapeLine()
Constructor of cShapeLine.
Definition CShapeLine.cpp:60
void setLineStipple(const GLint a_stippleFactor, const GLushort a_stipplePattern)
This method sets the line properties.
Definition CShapeLine.cpp:412
cGenericObject * m_objectA
Object A to wich line extremity is attached.
Definition CShapeLine.h:155
cColorf m_colorPointA
Color of point A of line.
Definition CShapeLine.h:149
GLint m_stippleFactor
Specifies a multiplier for each bit in the line stipple pattern.
Definition CShapeLine.h:215
double m_lineWidth
Line width.
Definition CShapeLine.h:212
cVector3d m_linePointA
Definition CShapeLine.h:221
virtual void computeLocalInteraction(const cVector3d &a_toolPos, const cVector3d &a_toolVel, const unsigned int a_IDN)
This method updates the geometric relationship between the tool and the current object.
Definition CShapeLine.cpp:331
void copyShapeLineProperties(cShapeLine *a_obj, const bool a_duplicateMaterialData, const bool a_duplicateTextureData, const bool a_duplicateMeshData, const bool a_buildCollisionDetector)
This method copies all properties of this object to another.
Definition CShapeLine.cpp:219
virtual void scaleObject(const double &a_scaleFactor)
This method scales the size of this object with given scale factor.
Definition CShapeLine.cpp:381
virtual std::string getClassName()
This method returns the name of the object class.
Definition CShapeLine.h:109
cVector3d m_pointA
Point A of line.
Definition CShapeLine.h:143
GLushort m_stipplePattern
Specifies a 16-bit integer whose bit pattern determine which fragments of a line will be drawn when t...
Definition CShapeLine.h:218
void setLineWidth(const double a_lineWidth)
This method sets the line width.
Definition CShapeLine.h:118
virtual ~cShapeLine()
Destructor of cShapeLine.
Definition CShapeLine.h:99
cShapeLine * copy(const bool a_duplicateMaterialData=false, const bool a_duplicateTextureData=false, const bool a_duplicateMeshData=false, const bool a_buildCollisionDetector=false)
This method creates a copy of itself.
Definition CShapeLine.cpp:188
virtual void render(cRenderOptions &a_options)
This method renders this object graphically using OpenGL.
Definition CShapeLine.cpp:254
cGenericObject * m_objectB
Object B to wich line extremity is attached.
Definition CShapeLine.h:158
void reset()
Definition CShapeLine.cpp:153
Definition CAudioBuffer.cpp:57
This structure stores the collision settings that are passed to a collision detector when querying fo...
Definition CCollisionBasics.h:243
This class defines a color using a GLfloat representation for each component.
Definition CColor.h:139
This structures provide a containers for storing rendering options that are passed through the sceneg...
Definition CRenderOptions.h:83
This class implements a 3D vector.
Definition CVector3d.h:89