18#ifndef _SIMBODY_CYLINDERSHAPE_HH_
19#define _SIMBODY_CYLINDERSHAPE_HH_
44 public:
void SetSize(
double _radius,
double _length)
48 gzerr <<
"Cylinder shape does not support negative radius\n";
53 gzerr <<
"Cylinder shape does not support negative length\n";
56 if (ignition::math::equal(_radius, 0.0))
61 gzwarn <<
"Setting cylinder shape's radius to zero \n";
64 if (ignition::math::equal(_length, 0.0))
66 gzwarn <<
"Setting cylinder shape's length to zero \n";
70 CylinderShape::SetSize(_radius, _length);
72 bParent = boost::dynamic_pointer_cast<SimbodyCollision>(
73 this->collisionParent);
Cylinder collision.
Definition: CylinderShape.hh:39
virtual void SetSize(double _radius, double _length)
Set the size of the cylinder.
CollisionPtr collisionParent
This shape's collision parent.
Definition: Shape.hh:79
Cylinder collision.
Definition: SimbodyCylinderShape.hh:35
virtual ~SimbodyCylinderShape()
Destructor.
Definition: SimbodyCylinderShape.hh:41
SimbodyCylinderShape(CollisionPtr _parent)
Constructor.
Definition: SimbodyCylinderShape.hh:37
void SetSize(double _radius, double _length)
Set the size of the cylinder.
Definition: SimbodyCylinderShape.hh:44
#define gzerr
Output an error message.
Definition: Console.hh:50
#define gzwarn
Output a warning message.
Definition: Console.hh:47
boost::shared_ptr< SimbodyCollision > SimbodyCollisionPtr
Definition: SimbodyTypes.hh:44
boost::shared_ptr< Collision > CollisionPtr
Definition: PhysicsTypes.hh:113
Forward declarations for the common classes.
Definition: Animation.hh:27