Gazebo Rendering

API Reference

6.6.3
gz/rendering/Capsule.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2021 Open Source Robotics Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17 
18 #ifndef IGNITION_RENDERING_CAPSULE_HH_
19 #define IGNITION_RENDERING_CAPSULE_HH_
20 
24 
25 namespace ignition
26 {
27  namespace rendering
28  {
29  inline namespace IGNITION_RENDERING_VERSION_NAMESPACE {
32  class IGNITION_RENDERING_VISIBLE Capsule :
33  public virtual Geometry
34  {
36  public: virtual ~Capsule() { }
37 
39  public: virtual void SetRadius(double _radius) = 0;
40 
42  public: virtual void SetLength(double _length) = 0;
43 
45  public: virtual double Radius() const = 0;
46 
48  public: virtual double Length() const = 0;
49  };
50  }
51  }
52 }
53 #endif
virtual void SetRadius(double _radius)=0
Set the radius of the capsule.
virtual double Radius() const =0
Get the radius of the capsule.
virtual ~Capsule()
Destructor.
Definition: gz/rendering/Capsule.hh:36
Geometry for a capsule shape.
Definition: gz/rendering/Capsule.hh:32
virtual double Length() const =0
Get the length of the capsule.
virtual void SetLength(double _length)=0
Set the length of the capsule.
Represents a geometric shape to be rendered.
Definition: gz/rendering/Geometry.hh:34