Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
tesseract_geometry::Box Class Reference

#include <box.h>

Inheritance diagram for tesseract_geometry::Box:
Inheritance graph
[legend]

Public Types

using ConstPtr = std::shared_ptr< const Box >
 
using Ptr = std::shared_ptr< Box >
 
- Public Types inherited from tesseract_geometry::Geometry
using ConstPtr = std::shared_ptr< const Geometry >
 
using Ptr = std::shared_ptr< Geometry >
 

Public Member Functions

 Box ()=default
 
 Box (double x, double y, double z)
 
Geometry::Ptr clone () const override final
 Create a copy of this shape. More...
 
double getX () const
 
double getY () const
 
double getZ () const
 
bool operator!= (const Box &rhs) const
 
bool operator== (const Box &rhs) const
 
 ~Box () override=default
 
- Public Member Functions inherited from tesseract_geometry::Geometry
 Geometry (const Geometry &)=default
 
 Geometry (Geometry &&)=default
 
 Geometry (GeometryType type=GeometryType::UNINITIALIZED)
 
GeometryType getType () const
 Get the geometry type. More...
 
const boost::uuids::uuid & getUUID () const
 Get the geometry UUID. More...
 
bool operator!= (const Geometry &rhs) const
 
Geometryoperator= (const Geometry &)=default
 
Geometryoperator= (Geometry &&)=default
 
bool operator== (const Geometry &rhs) const
 
void setUUID (const boost::uuids::uuid &uuid)
 Set the geometry UUID. More...
 
virtual ~Geometry ()=default
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

double x_ { 0 }
 
double y_ { 0 }
 
double z_ { 0 }
 

Friends

class boost::serialization::access
 
struct tesseract_common::Serialization
 

Detailed Description

Definition at line 44 of file box.h.

Member Typedef Documentation

◆ ConstPtr

using tesseract_geometry::Box::ConstPtr = std::shared_ptr<const Box>

Definition at line 48 of file box.h.

◆ Ptr

using tesseract_geometry::Box::Ptr = std::shared_ptr<Box>

Definition at line 47 of file box.h.

Constructor & Destructor Documentation

◆ Box() [1/2]

tesseract_geometry::Box::Box ( double  x,
double  y,
double  z 
)

Definition at line 37 of file box.cpp.

◆ Box() [2/2]

tesseract_geometry::Box::Box ( )
default

◆ ~Box()

tesseract_geometry::Box::~Box ( )
overridedefault

Member Function Documentation

◆ clone()

Geometry::Ptr tesseract_geometry::Box::clone ( ) const
finaloverridevirtual

Create a copy of this shape.

Implements tesseract_geometry::Geometry.

Definition at line 43 of file box.cpp.

◆ getX()

double tesseract_geometry::Box::getX ( ) const

Definition at line 39 of file box.cpp.

◆ getY()

double tesseract_geometry::Box::getY ( ) const

Definition at line 40 of file box.cpp.

◆ getZ()

double tesseract_geometry::Box::getZ ( ) const

Definition at line 41 of file box.cpp.

◆ operator!=()

bool tesseract_geometry::Box::operator!= ( const Box rhs) const

Definition at line 54 of file box.cpp.

◆ operator==()

bool tesseract_geometry::Box::operator== ( const Box rhs) const

Definition at line 45 of file box.cpp.

◆ serialize()

template<class Archive >
void tesseract_geometry::Box::serialize ( Archive &  ar,
const unsigned int  version 
)
private

Definition at line 57 of file box.cpp.

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 67 of file box.h.

◆ tesseract_common::Serialization

friend struct tesseract_common::Serialization
friend

Definition at line 68 of file box.h.

Member Data Documentation

◆ x_

double tesseract_geometry::Box::x_ { 0 }
private

Definition at line 63 of file box.h.

◆ y_

double tesseract_geometry::Box::y_ { 0 }
private

Definition at line 64 of file box.h.

◆ z_

double tesseract_geometry::Box::z_ { 0 }
private

Definition at line 65 of file box.h.


The documentation for this class was generated from the following files:


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