class K2dDomain

Representation of the domain. More...

Definition#include <k2dgrflow/k2ddomain.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Private Members


Detailed Description

Representation of the domain. Contains a list of borders.

 K2dDomain ()

K2dDomain

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

 ~K2dDomain ()

~K2dDomain

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

void  appendBorder (const K2dBorderBase* item)

appendBorder

Append a border item at the end of the domain

bool  closed ()

closed

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

void  EasyMeshFile (QTextStream &cout)

EasyMeshFile

write the domain to a textstream as required by the EasyMesh programm

QListIterator<K2dBorderBase>  iterator ()

iterator

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

K2dBorderBase*  border (uint index)

border

Return a pointer to the border at postition index. Beware that you will actually have children of BorderBase returned to you

K2dDomain  copy ()

copy

[const]

We need the possibility to make a deep copy of the domain

friend QTextStreamoperator<< ( QTextStream &, K2dDomain const & )

operator<<

Related Function : write a domain to the ouputstream in a nice text format.

DomainType domain

domain

[private]