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
 Scale and padd this shape. More...
 
- Public Member Functions inherited from shapes::Shape
void padd (double padding)
 Add padding to this shape. More...
 
void scale (double scale)
 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 264 of file shapes.h.

Constructor & Destructor Documentation

◆ OcTree() [1/2]

shapes::OcTree::OcTree ( )

Definition at line 197 of file shapes.cpp.

◆ OcTree() [2/2]

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

Definition at line 202 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 260 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 411 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 391 of file shapes.cpp.

◆ scaleAndPadd()

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

Scale and padd this shape.

Implements shapes::Shape.

Definition at line 265 of file shapes.cpp.

Member Data Documentation

◆ octree

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

Definition at line 278 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 271 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 Sun Nov 17 2019 03:12:38