|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdevisor2.foundation.base.DomainBoundary
This class DomainBoundary describes the boundaries of the domain.
A DomainBoundary contains several boundaries, each of which is composed
of the actual boundary segments.
Here, methods to modify the boundaries are provided.
Field Summary | |
protected java.util.Vector |
boundaries
the boundaries themselves |
protected ControlCenter |
cc
|
protected BasicDomain |
domain
the domain which contains this DomainBoundary |
Constructor Summary | |
DomainBoundary(BasicDomain d)
creates a new domain boundary |
Method Summary | |
void |
addBoundary()
adds a new boundary to the domain |
void |
addBoundary(Boundary b)
adds the given boundary to the domain |
void |
addMultipleBoundaryNodes(double incr,
double startt,
double endt,
Boundary boundary)
Adds multiple Boundary Nodes to the specified boundary, evenly distributed between the given start and end parameter values with the given increment |
void |
addSegment(Boundary boundary,
Segment s)
adds a segment to the domain boundary, as last segment to the given boundary |
void |
adjustBoundaryNodes(Boundary bn,
int von,
int bis)
adjusts all boundary nodes on boundary bn |
int |
continousBoundary()
|
double |
crossProduct(int a1,
int a2,
int a3,
Node[] store)
calculates the crossproduct of the vectors in the given arrays at indices a1,a2 and a3 |
void |
delBoundary(Boundary b)
|
void |
delSegment(Segment s)
deletes a segment of the domain boundary |
void |
draw(java.awt.Graphics g)
draws the whole domain boundary |
java.util.Vector |
getBoundaries()
|
Boundary |
getBoundary(int boundarynumber)
returns the boundary object with the index boundarynumber (0..count-1) |
int |
getBoundaryCount()
returns the number of boundaries in the domain |
double |
getBoundaryLength(Boundary b,
double dt1,
double dt2)
|
Node |
getCartesianCoords(Boundary boundary,
double tsearch)
returns the coordinates of a parameter value on a boundary |
int[] |
getIntersection(int[] x)
returns the possible intersection point with an line: |
Boundary |
getLastBoundary()
|
int[] |
getPerimeter()
gets the perimeter of the domain boundary |
boolean |
isBoundary(Boundary b)
|
int |
linkBoundaries()
|
void |
printDomainBoundary()
prints out the DomainBoundary |
BoundaryNode |
reconfigureBoundaryNode(BoundaryNode n)
resets the boundary, segment and parameter value attributes of the given BoundaryNode according to its cartesian coords (used for copy and paste). |
void |
swapOrientation(Boundary b)
swaps/inverts the orientation of the given boundary |
void |
updateNumbering()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Vector boundaries
protected BasicDomain domain
protected ControlCenter cc
Constructor Detail |
public DomainBoundary(BasicDomain d)
Method Detail |
public java.util.Vector getBoundaries()
public int getBoundaryCount()
public boolean isBoundary(Boundary b)
public Boundary getLastBoundary()
public void addSegment(Boundary boundary, Segment s)
boundary
- boundary the segment should be inserted ins
- segment to be insertedBoundary.addSegment
public void delBoundary(Boundary b)
public Boundary getBoundary(int boundarynumber)
public void delSegment(Segment s)
Boundary.delSegment
public Node getCartesianCoords(Boundary boundary, double tsearch)
boundary
- boundary where the parameter value should be locatedtsearch
- parameter value
public BoundaryNode reconfigureBoundaryNode(BoundaryNode n)
public void addBoundary()
public void addBoundary(Boundary b)
public void addMultipleBoundaryNodes(double incr, double startt, double endt, Boundary boundary)
incr
- - incrementstartt
- - start parameter valueendt
- - end parameter valueboundary
- - the boundary to add nodes topublic void draw(java.awt.Graphics g)
g
- graphics context
public void updateNumbering()
public void swapOrientation(Boundary b)
public int linkBoundaries()
public int continousBoundary()
public void adjustBoundaryNodes(Boundary bn, int von, int bis)
public int[] getPerimeter()
public int[] getIntersection(int[] x)
public double getBoundaryLength(Boundary b, double dt1, double dt2)
public double crossProduct(int a1, int a2, int a3, Node[] store)
public void printDomainBoundary()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |