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 | |
Cone * | clone () const override |
Create a copy of this shape. More... | |
Cone () | |
Cone (double r, double l) | |
void | print (std::ostream &out=std::cout) const override |
Print information about this shape. More... | |
void | scaleAndPadd (double scale, double padd) override |
Scale and padd 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 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... | |
![]() | |
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.
|
overridevirtual |
|
overridevirtual |
Print information about this shape.
Reimplemented from shapes::Shape.
Definition at line 371 of file shapes.cpp.
|
overridevirtual |
double shapes::Cone::length |
|
static |