#include <PlaneInt.h>
Inheritance diagram for Go::PlaneInt:
Public Member Functions | |
PlaneInt () | |
Constructor. | |
PlaneInt (Point point, Point normal) | |
Constructor. | |
PlaneInt (double a, double b, double c, double d) | |
Constructor. | |
virtual | ~PlaneInt () |
Constructor. | |
void | read (std::istream &is) |
Read a plane description from file. | |
double | a () const |
Get the x multiplicator. | |
double | b () const |
Get the y multiplicator. | |
double | c () const |
Get the z multiplicator. | |
double | d () const |
Get the constant. | |
boost::shared_ptr< SplineSurface > | surface (Point mid_pt, double length_x, double length_y) const |
Get a SplineSuface representing the plane. |
Definition at line 56 of file PlaneInt.h.
Go::PlaneInt::PlaneInt | ( | ) |
Constructor.
Used when reading from file.
Go::PlaneInt::PlaneInt | ( | Point | point, | |
Point | normal | |||
) |
Constructor.
point | reference point in the plane. | |
normal | normal to the plane. |
Go::PlaneInt::PlaneInt | ( | double | a, | |
double | b, | |||
double | c, | |||
double | d | |||
) |
Constructor.
The plane is described by the expression .
a | the x multiplicator. | |
b | the y multiplicator. | |
c | the z multiplicator. | |
d | the constant. |
void Go::PlaneInt::read | ( | std::istream & | is | ) |
Read a plane description from file.
is | the stream containing the plane description. |
double Go::PlaneInt::a | ( | ) | const |
Get the x multiplicator.
double Go::PlaneInt::b | ( | ) | const |
Get the y multiplicator.
double Go::PlaneInt::c | ( | ) | const |
Get the z multiplicator.
double Go::PlaneInt::d | ( | ) | const |
Get the constant.
boost::shared_ptr<SplineSurface> Go::PlaneInt::surface | ( | Point | mid_pt, | |
double | length_x, | |||
double | length_y | |||
) | const |
Get a SplineSuface representing the plane.
This can be used to visualize the object. Since the object is to be tesselated we make sure it is bounded.
mid_pt | the intersection of the diagonals in a rectangle in the plane. | |
length_x | the length of the rectangle in the x direction. | |
length_y | the length of the rectangle in the y direction. |