cone.h
Go to the documentation of this file.
1 
26 #ifndef TESSERACT_GEOMETRY_CONE_H
27 #define TESSERACT_GEOMETRY_CONE_H
28 
31 #include <boost/serialization/export.hpp>
32 #include <memory>
34 
36 
37 namespace boost::serialization
38 {
39 class access;
40 }
41 
42 namespace tesseract_geometry
43 {
44 class Cone : public Geometry
45 {
46 public:
47  using Ptr = std::shared_ptr<Cone>;
48  using ConstPtr = std::shared_ptr<const Cone>;
49 
50  Cone(double radius, double length);
51  Cone() = default;
52  ~Cone() override = default;
53 
54  double getRadius() const;
55  double getLength() const;
56 
57  Geometry::Ptr clone() const override final;
58  bool operator==(const Cone& rhs) const;
59  bool operator!=(const Cone& rhs) const;
60 
61 private:
62  double r_{ 0 };
63  double l_{ 0 };
64 
67  template <class Archive>
68  void serialize(Archive& ar, const unsigned int version); // NOLINT
69 };
70 } // namespace tesseract_geometry
71 
72 BOOST_CLASS_EXPORT_KEY(tesseract_geometry::Cone)
73 #endif
tesseract_geometry::Cone::getRadius
double getRadius() const
Definition: cone.cpp:39
tesseract_geometry::Geometry::Ptr
std::shared_ptr< Geometry > Ptr
Definition: geometry.h:72
tesseract_geometry::Geometry
Definition: geometry.h:69
tesseract_geometry::Cone::~Cone
~Cone() override=default
geometry.h
Tesseract Geometries.
tesseract_geometry::Cone::clone
Geometry::Ptr clone() const override final
Create a copy of this shape.
Definition: cone.cpp:42
TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
#define TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
tesseract_common::Serialization
tesseract_geometry::Cone::r_
double r_
Definition: cone.h:62
tesseract_geometry::Cone::Cone
Cone()=default
tesseract_geometry::Cone::serialize
void serialize(Archive &ar, const unsigned int version)
Definition: cone.cpp:55
tesseract_geometry::Cone::l_
double l_
Definition: cone.h:63
boost::serialization
tesseract_geometry::Cone::access
friend class boost::serialization::access
Definition: cone.h:65
tesseract_geometry::Cone::getLength
double getLength() const
Definition: cone.cpp:40
TESSERACT_COMMON_IGNORE_WARNINGS_POP
#define TESSERACT_COMMON_IGNORE_WARNINGS_POP
tesseract_geometry
Definition: fwd.h:31
tesseract_geometry::Geometry::ConstPtr
std::shared_ptr< const Geometry > ConstPtr
Definition: geometry.h:73
macros.h
tesseract_geometry::Cone
Definition: cone.h:44


tesseract_geometry
Author(s): Levi Armstrong
autogenerated on Sun May 18 2025 03:01:46