#include <boundary_1.h>
Public Member Functions | |
Boundary_1 () | |
Boundary_1 (const Point &from, const Point &to, bool colour=black) | |
Boundary_1 (const Boundary_1 &toCopy) | |
virtual | ~Boundary_1 () |
virtual data_t | intersect (const Point &p, const Point &v) const |
virtual void | addSegment (const Point &from, const Point &to) |
virtual void | addSegment (const Field *field) |
virtual void | toXML (std::ostream &doc, const std::string &componentsDir, const std::string &baseURI) const |
data_t | getFrom () const |
void | setFrom (data_t value) |
data_t | getTo () const |
void | setTo (data_t value) |
bool | getColour () const |
void | setColour (bool value) |
virtual Point | getStart () const |
virtual Point | getEnd () const |
int | whereIs (const Point &p) const |
Point | findNearest (const Point &p) const |
|
empty constructor creates the root boundary |
|
Constructor
|
|
copy constructor
|
|
Destructor |
|
adds a segment of the opposite colour.
|
|
adds a segment of the opposite colour.
|
|
finds the nearest point to and of the boundary points of this segment and its children
|
|
Get the value of _colour represents whether this boundary segment is a negative segment ("hole") or a positive segment. Negative segments are black, positive segments are red.
|
|
|
|
Get the value of _from the start of this boundary segment
|
|
|
|
Get the value of _to the end of this boundary segment
|
|
Finds the distance from a point to the boundary in the direction of a vector.
|
|
Set the value of _colour represents whether this boundary segment is a negative segment ("hole") or a positive segment. Negative segments are black, positive segments are red. |
|
Set the value of _from the start of this boundary segment |
|
Set the value of _to the end of this boundary segment |
|
represents the segment as an XML string that will be put onto doc
|
|
|