class K2dDomain
|
Representation of the domain. More... |
|
|
Public Methods
Private Members
Representation of the domain. Contains a list of borders.
Construction of a domain. Is a list with autodelete TRUE, since a border should be only added
once, and has no meaning outside the domain
bool addBorder (uint index, const K2dBorderBase* item )
| addBorder |
Add a border item at postition index (range 0..nrOfBorders()-1 )
Since BorderBase is abstract, children have to be added
bool removeBorder (uint index)
| removeBorder |
Remove border at position index
Append a border item at the end of the domain
Returns true if the border is closed, false if not closed
void draw (QPainter* , bool meshed = false )
| draw |
draw on a painter the domain (= the borders), meshed or not
write the domain to a textstream as required by the EasyMesh programm
Return a listinterator over the borders in the domain
double minCo (uint coord)
| minCo |
Return the min or maximum of a certain coordinate over the total domain.
with this, you can draw a rectangle around the domain
double maxCo (uint coord)
| maxCo |
uint nrOfBorders ()
| nrOfBorders |
Returns the number of Borders in the domain
uint nrOfPoints ()
| nrOfPoints |
Return the number of points we represent the borders with
uint nrOfSegments ()
| nrOfSegments |
Return the number of segments we represent the borders with
Return a pointer to the border at postition index. Beware that
you will actually have children of BorderBase returned to you
[const]
We need the possibility to make a deep copy of the domain
Related Function : write a domain to the ouputstream in a nice text format.
[private]
- Author: benny
- Generated: benny@okidoki on Thu Jun 21 10:41:51 2001, using kdoc 2.0a53.