Definition of a cylinder Length is along z axis. Origin is at center of mass. More...
#include <shapes.h>

Public Member Functions | |
| virtual Shape * | clone () const |
| Create a copy of this shape. More... | |
| Cylinder () | |
| Cylinder (double r, double l) | |
| The radius and the length of the cylinder. More... | |
| virtual void | print (std::ostream &out=std::cout) const |
| Print information about this shape. More... | |
| virtual void | scaleAndPadd (double scale, double padd) |
| Scale and padd this shape. More... | |
Public Member Functions inherited from shapes::Shape | |
| virtual bool | isFixed () const |
| Return a flag indicating whether this shape can be scaled and/or padded. More... | |
| 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 | |
| double | length |
| The length of the cylinder. More... | |
| double | radius |
| The radius of the cylinder. More... | |
Public Attributes inherited from shapes::Shape | |
| ShapeType | type |
| The type of the shape. More... | |
Static Public Attributes | |
| static const std::string | STRING_NAME = "cylinder" |
| The type of the shape, as a string. More... | |
Definition of a cylinder Length is along z axis. Origin is at center of mass.
| shapes::Cylinder::Cylinder | ( | ) |
Definition at line 108 of file shapes.cpp.
| shapes::Cylinder::Cylinder | ( | double | r, |
| double | l | ||
| ) |
The radius and the length of the cylinder.
Definition at line 114 of file shapes.cpp.
|
virtual |
|
virtual |
Print information about this shape.
Reimplemented from shapes::Shape.
Definition at line 366 of file shapes.cpp.
|
virtual |
| double shapes::Cylinder::length |
| double shapes::Cylinder::radius |
|
static |