Public Member Functions | Public Attributes | Static Public Attributes | List of all members
shapes::OcTree Class Reference

Representation of an octomap::OcTree as a Shape. More...

#include <shapes.h>

Inheritance diagram for shapes::OcTree:
Inheritance graph
[legend]

Public Member Functions

OcTreeclone () const override
 Create a copy of this shape. More...
 
bool isFixed () const override
 Return a flag indicating whether this shape can be scaled and/or padded. More...
 
 OcTree ()
 
 OcTree (const std::shared_ptr< const octomap::OcTree > &t)
 
void print (std::ostream &out=std::cout) const override
 Print information about this shape. More...
 
void scaleAndPadd (double scale, double padd) override
 Uniformly scale and padd this shape. More...
 
- Public Member Functions inherited from shapes::Shape
void padd (double padding)
 Add uniform padding to this shape. More...
 
void scale (double scale)
 Uniformly scale this shape by a factor. More...
 
 Shape ()
 
virtual ~Shape ()
 

Public Attributes

std::shared_ptr< const octomap::OcTreeoctree
 
- Public Attributes inherited from shapes::Shape
ShapeType type
 The type of the shape. More...
 

Static Public Attributes

static const std::string STRING_NAME = "octree"
 The type of the shape, as a string. More...
 

Detailed Description

Representation of an octomap::OcTree as a Shape.

Definition at line 385 of file shapes.h.

Constructor & Destructor Documentation

◆ OcTree() [1/2]

shapes::OcTree::OcTree ( )

Definition at line 205 of file shapes.cpp.

◆ OcTree() [2/2]

shapes::OcTree::OcTree ( const std::shared_ptr< const octomap::OcTree > &  t)

Definition at line 210 of file shapes.cpp.

Member Function Documentation

◆ clone()

OcTree * shapes::OcTree::clone ( ) const
overridevirtual

Create a copy of this shape.

Implements shapes::Shape.

Definition at line 268 of file shapes.cpp.

◆ isFixed()

bool shapes::OcTree::isFixed ( ) const
overridevirtual

Return a flag indicating whether this shape can be scaled and/or padded.

Reimplemented from shapes::Shape.

Definition at line 493 of file shapes.cpp.

◆ print()

void shapes::OcTree::print ( std::ostream &  out = std::cout) const
overridevirtual

Print information about this shape.

Reimplemented from shapes::Shape.

Definition at line 473 of file shapes.cpp.

◆ scaleAndPadd()

void shapes::OcTree::scaleAndPadd ( double  scale,
double  padd 
)
overridevirtual

Uniformly scale and padd this shape.

Implements shapes::Shape.

Definition at line 273 of file shapes.cpp.

Member Data Documentation

◆ octree

std::shared_ptr<const octomap::OcTree> shapes::OcTree::octree

Definition at line 399 of file shapes.h.

◆ STRING_NAME

const std::string shapes::OcTree::STRING_NAME = "octree"
static

The type of the shape, as a string.

Definition at line 392 of file shapes.h.


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


geometric_shapes
Author(s): Ioan Sucan , Gil Jones
autogenerated on Fri Apr 14 2023 02:14:40