Definition of a cone Tip is on positive z axis. Center of base is on negative z axis. Origin is halway between tip and center of base. More...
#include <shapes.h>

Public Member Functions | |
| virtual Shape * | clone () const |
| Create a copy of this shape. More... | |
| Cone () | |
| Cone (double r, double l) | |
| 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 (height) of the cone. More... | |
| double | radius |
| The radius of the cone. More... | |
Public Attributes inherited from shapes::Shape | |
| ShapeType | type |
| The type of the shape. More... | |
Static Public Attributes | |
| static const std::string | STRING_NAME = "cone" |
| The type of the shape, as a string. More... | |
Definition of a cone Tip is on positive z axis. Center of base is on negative z axis. Origin is halway between tip and center of base.
| shapes::Cone::Cone | ( | ) |
Definition at line 121 of file shapes.cpp.
| shapes::Cone::Cone | ( | double | r, |
| double | l | ||
| ) |
Definition at line 127 of file shapes.cpp.
|
virtual |
|
virtual |
Print information about this shape.
Reimplemented from shapes::Shape.
Definition at line 371 of file shapes.cpp.
|
virtual |
| double shapes::Cone::length |
|
static |