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. | |
Cylinder () | |
Cylinder (double r, double l) | |
The radius and the length of the cylinder. | |
virtual void | print (std::ostream &out=std::cout) const |
Print information about this shape. | |
virtual void | scaleAndPadd (double scale, double padd) |
Scale and padd this shape. | |
Public Attributes | |
double | length |
The length of the cylinder. | |
double | radius |
The radius of the cylinder. | |
Static Public Attributes | |
static const std::string | STRING_NAME = "cylinder" |
The type of the shape, as a string. |
Definition of a cylinder Length is along z axis. Origin is at center of mass.
Definition at line 71 of file shapes.cpp.
shapes::Cylinder::Cylinder | ( | double | r, |
double | l | ||
) |
The radius and the length of the cylinder.
Definition at line 77 of file shapes.cpp.
shapes::Shape * shapes::Cylinder::clone | ( | ) | const [virtual] |
void shapes::Cylinder::print | ( | std::ostream & | out = std::cout | ) | const [virtual] |
Print information about this shape.
Reimplemented from shapes::Shape.
Definition at line 326 of file shapes.cpp.
void shapes::Cylinder::scaleAndPadd | ( | double | scale, |
double | padd | ||
) | [virtual] |
double shapes::Cylinder::length |
double shapes::Cylinder::radius |
const std::string shapes::Cylinder::STRING_NAME = "cylinder" [static] |