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

Definition of a sphere. More...

#include <shapes.h>

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

List of all members.

Public Member Functions

virtual Shapeclone () const
 Create a copy of this shape.
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.
 Sphere ()
 Sphere (double r)
 The radius of the shpere.

Public Attributes

double radius
 The radius of the sphere.

Static Public Attributes

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

Detailed Description

Definition of a sphere.

Definition at line 91 of file shapes.h.


Constructor & Destructor Documentation

Definition at line 59 of file shapes.cpp.

shapes::Sphere::Sphere ( double  r)

The radius of the shpere.

Definition at line 65 of file shapes.cpp.


Member Function Documentation

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

Create a copy of this shape.

Implements shapes::Shape.

Definition at line 167 of file shapes.cpp.

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

Print information about this shape.

Reimplemented from shapes::Shape.

Definition at line 321 of file shapes.cpp.

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

Scale and padd this shape.

Implements shapes::Shape.

Definition at line 245 of file shapes.cpp.


Member Data Documentation

The radius of the sphere.

Definition at line 107 of file shapes.h.

const std::string shapes::Sphere::STRING_NAME = "sphere" [static]

The type of the shape, as a string.

Definition at line 100 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