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

Definition of a box Aligned with the XYZ axes. More...

#include <shapes.h>

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

List of all members.

Public Member Functions

 Box ()
 Box (double x, double y, double z)
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.

Public Attributes

double size [3]
 x, y, z dimensions of the box (axis-aligned)

Static Public Attributes

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

Detailed Description

Definition of a box Aligned with the XYZ axes.

Definition at line 159 of file shapes.h.


Constructor & Destructor Documentation

Definition at line 97 of file shapes.cpp.

shapes::Box::Box ( double  x,
double  y,
double  z 
)

Definition at line 103 of file shapes.cpp.


Member Function Documentation

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

Create a copy of this shape.

Implements shapes::Shape.

Definition at line 182 of file shapes.cpp.

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

Print information about this shape.

Reimplemented from shapes::Shape.

Definition at line 336 of file shapes.cpp.

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

Scale and padd this shape.

Implements shapes::Shape.

Definition at line 262 of file shapes.cpp.


Member Data Documentation

double shapes::Box::size[3]

x, y, z dimensions of the box (axis-aligned)

Definition at line 173 of file shapes.h.

const std::string shapes::Box::STRING_NAME = "box" [static]

The type of the shape, as a string.

Definition at line 166 of file shapes.h.


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


geometric_shapes
Author(s): Ioan Sucan
autogenerated on Mon Oct 6 2014 00:11:20