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

Definition of a cylinder Length is along z axis. Origin is at center of mass. More...

#include <shapes.h>

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

List of all members.

Public Member Functions

virtual Shapeclone () 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.

Detailed Description

Definition of a cylinder Length is along z axis. Origin is at center of mass.

Definition at line 112 of file shapes.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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

Create a copy of this shape.

Implements shapes::Shape.

Definition at line 172 of file shapes.cpp.

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]

Scale and padd this shape.

Implements shapes::Shape.

Definition at line 250 of file shapes.cpp.


Member Data Documentation

The length of the cylinder.

Definition at line 128 of file shapes.h.

The radius of the cylinder.

Definition at line 131 of file shapes.h.

const std::string shapes::Cylinder::STRING_NAME = "cylinder" [static]

The type of the shape, as a string.

Definition at line 121 of file shapes.h.


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


geometric_shapes
Author(s): Ioan Sucan , Gil Jones
autogenerated on Thu Jun 6 2019 20:13:53