54 #include "OpenGL/glu.h" 110 const bool a_duplicateTextureData =
false,
111 const bool a_duplicateMeshData =
false,
112 const bool a_buildCollisionDetector =
false);
134 virtual void scaleObject(
const double& a_scaleFactor);
139 const unsigned int a_IDN);
156 const bool a_duplicateMaterialData,
157 const bool a_duplicateTextureData,
158 const bool a_duplicateMeshData,
159 const bool a_buildCollisionDetector);
This class implements a 3D vector.
Definition: CVector3d.h:88
This structures provide a containers for storing rendering options that are passed through the sceneg...
Definition: CRenderOptions.h:82
GLUquadricObj * m_quadric
rendering object.
Definition: CShapeSphere.h:172
virtual void render(cRenderOptions &a_options)
This method renders this object graphically using OpenGL.
Definition: CShapeSphere.cpp:202
std::shared_ptr< cMaterial > cMaterialPtr
Definition: CMaterial.h:67
cShapeSphere(const double &a_radius, cMaterialPtr a_material=cMaterialPtr())
Constructor of cShapeSphere.
Definition: CShapeSphere.cpp:70
virtual void updateBoundaryBox()
This method updates the boundary box of this object.
Definition: CShapeSphere.cpp:316
double getRadius() const
This method returns the radius of the sphere.
Definition: CShapeSphere.h:118
This class implements a base class for all 2D or 3D objects in CHAI3D.
Definition: CGenericObject.h:112
This class implements a collision detection recorder that stores all collision events that are report...
Definition: CCollisionBasics.h:185
void copyShapeSphereProperties(cShapeSphere *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: CShapeSphere.cpp:157
virtual void scaleObject(const double &a_scaleFactor)
This method scales the size of this object with given scale factor.
Definition: CShapeSphere.cpp:330
cShapeSphere * 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: CShapeSphere.cpp:123
This structure stores the collision settings that are passed to a collision detector when querying fo...
Definition: CCollisionBasics.h:242
Implements a base class for all objects.
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: CShapeSphere.cpp:278
This class implements a 3D shape sphere.
Definition: CShapeSphere.h:86
double m_radius
Radius of sphere.
Definition: CShapeSphere.h:169
virtual ~cShapeSphere()
Destructor of cShapeSphere.
Definition: CShapeSphere.cpp:102
Implements material properties.
Definition: CAudioBuffer.cpp:56
void setRadius(const double &a_radius)
This method sets the radius of the sphere.
Definition: CShapeSphere.cpp:182
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: CShapeSphere.cpp:361