A basic definition of a shape. Shapes are considered centered at origin. More...
#include <shapes.h>
Public Member Functions  
virtual Shape *  clone () const =0 
Create a copy of this shape. More...  
virtual bool  isFixed () const 
Return a flag indicating whether this shape can be scaled and/or padded. More...  
void  padd (double padding) 
Add uniform padding to this shape. More...  
virtual void  print (std::ostream &out=std::cout) const 
Print information about this shape. More...  
void  scale (double scale) 
Uniformly scale this shape by a factor. More...  
virtual void  scaleAndPadd (double scale, double padd)=0 
Uniformly scale and padd this shape. More...  
Shape ()  
virtual  ~Shape () 
Public Attributes  
ShapeType  type 
The type of the shape. More...  
A basic definition of a shape. Shapes are considered centered at origin.
shapes::Shape::Shape  (  ) 
Definition at line 119 of file shapes.cpp.

virtual 
Definition at line 124 of file shapes.cpp.

pure virtual 
Create a copy of this shape.
Implemented in shapes::OcTree, shapes::Plane, shapes::Mesh, shapes::Box, shapes::Cone, shapes::Cylinder, and shapes::Sphere.

virtual 
Return a flag indicating whether this shape can be scaled and/or padded.
Reimplemented in shapes::OcTree, and shapes::Plane.
Definition at line 520 of file shapes.cpp.
void shapes::Shape::padd  (  double  padding  ) 
Add uniform padding to this shape.
Definition at line 320 of file shapes.cpp.

virtual 
Print information about this shape.
Reimplemented in shapes::OcTree, shapes::Plane, shapes::Mesh, shapes::Box, shapes::Cone, shapes::Cylinder, and shapes::Sphere.
Definition at line 470 of file shapes.cpp.
void shapes::Shape::scale  (  double  scale  ) 
Uniformly scale this shape by a factor.
Definition at line 315 of file shapes.cpp.

pure virtual 
Uniformly scale and padd this shape.
Implemented in shapes::OcTree, shapes::Plane, shapes::Mesh, shapes::Box, shapes::Cone, shapes::Cylinder, and shapes::Sphere.