18 #ifndef GZ_RENDERING_BASECAPSULE_HH_
19 #define GZ_RENDERING_BASECAPSULE_HH_
21 #include <gz/common/Console.hh>
31 inline namespace GZ_RENDERING_VERSION_NAMESPACE {
45 public:
virtual void SetRadius(
double _radius)
override;
48 public:
virtual void SetLength(
double _length)
override;
51 public:
virtual double Radius()
const override;
54 public:
virtual double Length()
const override;
60 protected:
double radius = 0.5;
63 protected:
double length = 0.5;
66 protected:
bool capsuleDirty =
false;
87 this->radius = _radius;
88 this->capsuleDirty =
true;
102 this->length = _length;
103 this->capsuleDirty =
true;
119 gzerr <<
"Cloning a Capsule failed because the capsule to be "
120 <<
"cloned does not belong to a scene.\n";
127 result->SetRadius(this->Radius());
128 result->SetLength(this->Length());
131 result->SetMaterial(this->
Material());