Definition of a plane with equation ax + by + cz + d = 0. More...
#include <shapes.h>
Public Member Functions | |
virtual Shape * | clone () const |
Create a copy of this shape. | |
virtual bool | isFixed () const |
Return a flag indicating whether this shape can be scaled and/or padded. | |
Plane () | |
Plane (double pa, double pb, double pc, double pd) | |
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 | a |
The plane equation is ax + by + cz + d = 0. | |
double | b |
double | c |
double | d |
Static Public Attributes | |
static const std::string | STRING_NAME = "plane" |
The type of the shape, as a string. |
Definition at line 145 of file shapes.cpp.
shapes::Plane::Plane | ( | double | pa, |
double | pb, | ||
double | pc, | ||
double | pd | ||
) |
Definition at line 151 of file shapes.cpp.
shapes::Shape * shapes::Plane::clone | ( | ) | const [virtual] |
bool shapes::Plane::isFixed | ( | ) | const [virtual] |
Return a flag indicating whether this shape can be scaled and/or padded.
Reimplemented from shapes::Shape.
Definition at line 376 of file shapes.cpp.
void shapes::Plane::print | ( | std::ostream & | out = std::cout | ) | const [virtual] |
Print information about this shape.
Reimplemented from shapes::Shape.
Definition at line 346 of file shapes.cpp.
void shapes::Plane::scaleAndPadd | ( | double | scale, |
double | padd | ||
) | [virtual] |
double shapes::Plane::a |
double shapes::Plane::b |
double shapes::Plane::c |
double shapes::Plane::d |
const std::string shapes::Plane::STRING_NAME = "plane" [static] |