Public Member Functions | Public Attributes | Static Public Attributes
shapes::Cone Class Reference

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>

Inheritance diagram for shapes::Cone:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual Shapeclone () const
 Create a copy of this shape.
 Cone ()
 Cone (double r, double l)
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 (height) of the cone.
double radius
 The radius of the cone.

Static Public Attributes

static const std::string STRING_NAME = "cone"
 The type of the shape, as a string.

Detailed Description

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.

Definition at line 137 of file shapes.h.


Constructor & Destructor Documentation

Definition at line 84 of file shapes.cpp.

shapes::Cone::Cone ( double  r,
double  l 
)

Definition at line 90 of file shapes.cpp.


Member Function Documentation

shapes::Shape * shapes::Cone::clone ( ) const [virtual]

Create a copy of this shape.

Implements shapes::Shape.

Definition at line 177 of file shapes.cpp.

void shapes::Cone::print ( std::ostream &  out = std::cout) const [virtual]

Print information about this shape.

Reimplemented from shapes::Shape.

Definition at line 331 of file shapes.cpp.

void shapes::Cone::scaleAndPadd ( double  scale,
double  padd 
) [virtual]

Scale and padd this shape.

Implements shapes::Shape.

Definition at line 256 of file shapes.cpp.


Member Data Documentation

The length (height) of the cone.

Definition at line 151 of file shapes.h.

The radius of the cone.

Definition at line 154 of file shapes.h.

const std::string shapes::Cone::STRING_NAME = "cone" [static]

The type of the shape, as a string.

Definition at line 144 of file shapes.h.


The documentation for this class was generated from the following files:


geometric_shapes
Author(s): Ioan Sucan
autogenerated on Wed Aug 26 2015 11:40:00