Tesseract 0.28.4
Loading...
Searching...
No Matches
tesseract::geometry::Sphere Class Reference
Inheritance diagram for tesseract::geometry::Sphere:

Public Types

using Ptr = std::shared_ptr<Sphere>
using ConstPtr = std::shared_ptr<const Sphere>
Public Types inherited from tesseract::geometry::Geometry
using Ptr = std::shared_ptr<Geometry>
using ConstPtr = std::shared_ptr<const Geometry>

Public Member Functions

 Sphere (double r)
double getRadius () const
Geometry::Ptr clone () const override final
 Create a copy of this shape.
bool operator== (const Sphere &rhs) const
bool operator!= (const Sphere &rhs) const
Public Member Functions inherited from tesseract::geometry::Geometry
 Geometry (GeometryType type=GeometryType::UNINITIALIZED)
 Geometry (const Geometry &)=default
Geometry & operator= (const Geometry &)=default
 Geometry (Geometry &&)=default
Geometry & operator= (Geometry &&)=default
GeometryType getType () const
 Get the geometry type.
void setUUID (const boost::uuids::uuid &uuid)
 Set the geometry UUID.
const boost::uuids::uuid & getUUID () const
 Get the geometry UUID.
bool operator== (const Geometry &rhs) const
bool operator!= (const Geometry &rhs) const

Friends

template<class Archive>
friend void::tesseract::geometry::serialize (Archive &ar, Sphere &obj)

Member Function Documentation

◆ clone()

Geometry::Ptr tesseract::geometry::Sphere::clone ( ) const
finaloverridevirtual

Create a copy of this shape.

Implements tesseract::geometry::Geometry.