Definition of a box Aligned with the XYZ axes. More...
#include <shapes.h>
Public Member Functions | |
Box () | |
Box (double x, double y, double z) | |
virtual Shape * | clone () 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. |
shapes::Box::Box | ( | ) |
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.
shapes::Shape * shapes::Box::clone | ( | ) | const [virtual] |
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] |
double shapes::Box::size[3] |
const std::string shapes::Box::STRING_NAME = "box" [static] |