TinyURDF 1.0.0
Loading...
Searching...
No Matches
cylinder.h
Go to the documentation of this file.
1#ifndef INCLUDE_TINYURDF_CORE_CYLINDER_H_
2#define INCLUDE_TINYURDF_CORE_CYLINDER_H_
3
4// Copyright 2025 Wissem CHIHA
5
7
8class Cylinder : public GeometryBase
9{
10 public:
11 Cylinder();
12 Cylinder(double r, double l);
13 bool isA(const char* name) const override;
14 std::string toString() const override;
15 void clear() override;
16 bool empty() const override;
17 const char* getTypename() const override;
18 void setOrigin(double x, double y, double z) override;
19 void getOrigin(double* xyz) const override;
20 void setLength(double l);
21 void setRadius(double r);
22 double getLength() override;
23 double getRadius() override;
24
25 private:
26 double length, radius;
27};
28#endif // INCLUDE_TINYURDF_GEOMETRY_CYLINDER_H_
Definition cylinder.h:9
Cylinder()
Definition cylinder.cc:4
const char * getTypename() const override
Definition cylinder.cc:34
void getOrigin(double *xyz) const override
Definition cylinder.cc:43
double getRadius() override
Definition cylinder.cc:62
void setLength(double l)
Definition cylinder.cc:47
bool empty() const override
Definition cylinder.cc:29
std::string toString() const override
Definition cylinder.cc:17
void clear() override
Definition cylinder.cc:24
void setRadius(double r)
Definition cylinder.cc:52
void setOrigin(double x, double y, double z) override
Definition cylinder.cc:39
double getLength() override
Definition cylinder.cc:57
bool isA(const char *name) const override
Definition cylinder.cc:13
base class for all geometry entities
Definition geometry_base.h:13