Class Shape

Inheritance Relationships

Derived Types

Class Documentation

class Shape

A basic definition of a shape. Shapes are considered centered at origin.

Subclassed by shapes::Box, shapes::Cone, shapes::Cylinder, shapes::Mesh, shapes::OcTree, shapes::Plane, shapes::Sphere

Public Functions

Shape()
virtual ~Shape()
virtual Shape *clone() const = 0

Create a copy of this shape.

virtual void print(std::ostream &out = std::cout) const

Print information about this shape.

void scale(double scale)

Uniformly scale this shape by a factor.

void padd(double padding)

Add uniform padding to this shape.

virtual void scaleAndPadd(double scale, double padd) = 0

Uniformly scale and padd this shape.

virtual bool isFixed() const

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

Public Members

ShapeType type

The type of the shape.