18 #ifndef IGNITION_RENDERING_BASECAPSULE_HH_ 19 #define IGNITION_RENDERING_BASECAPSULE_HH_ 28 inline namespace IGNITION_RENDERING_VERSION_NAMESPACE {
42 public:
virtual void SetRadius(
double _radius)
override;
45 public:
virtual void SetLength(
double _length)
override;
48 public:
virtual double Radius()
const override;
51 public:
virtual double Length()
const override;
54 protected:
double radius = 0.5;
57 protected:
double length = 0.5;
60 protected:
bool capsuleDirty =
false;
81 this->radius = _radius;
82 this->capsuleDirty =
true;
96 this->length = _length;
97 this->capsuleDirty =
true;
virtual ~BaseCapsule()
Definition: BaseCapsule.hh:73
Geometry for a capsule shape.
Definition: Capsule.hh:32
virtual double Radius() const override
Get the radius of the capsule.
Definition: BaseCapsule.hh:87
BaseCapsule()
Definition: BaseCapsule.hh:67
virtual void SetRadius(double _radius) override
Set the radius of the capsule.
Definition: BaseCapsule.hh:79
Base implementation of a Capsule Geometry.
Definition: BaseCapsule.hh:31
virtual double Length() const override
Get the length of the capsule.
Definition: BaseCapsule.hh:102
virtual void SetLength(double _length) override
Set the length of the capsule.
Definition: BaseCapsule.hh:94