|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmathcomp.monitor.DefaultReportable
mathcomp.monitor.DefaultAlgorithm
mathcomp.gridgeom.GridRefiner
public class GridRefiner
A GridRefiner refines a grid. Each triangle has an state, either
RED
or GREEN
. There are only three green refinements,
one for each possible edge in a triangle.
refine()
Nested Class Summary | |
---|---|
static class |
GridRefiner.AllRefinementList
Marks all elements red. |
static class |
GridRefiner.GreenRefinement
Seperates an Triangle through a line from node i
to the middle of edge i . |
static class |
GridRefiner.ListRefinementList
Marks all elements red in list . |
static class |
GridRefiner.NodeRefinementList
Marks all elements red that contain the node k . |
static class |
GridRefiner.PointRefinementList
Marks the triangle, that contains pnt . |
static class |
GridRefiner.RandomRefinementList
Marks elements at random. |
static class |
GridRefiner.RectRefinementList
Marks all elements red inside rect . |
static class |
GridRefiner.RedRefinement
Refines an element into four congruent elements. |
static class |
GridRefiner.RefinementListCreator
Lists which elements should be refined. |
static class |
GridRefiner.YellowRefinement
Just for marking yellow Refinement. |
static class |
GridRefiner.YellowRefinementListCreator
|
Field Summary | |
---|---|
static GridRefiner.AllRefinementList |
ALL
Singelton for GridRefiner.AllRefinementList |
static GridRefiner.GreenRefinement[] |
GREEN
The singletons for green refinement. |
static GridRefiner.RedRefinement |
RED
The singleton for red refinement. |
boolean |
shouldMarkGreens
|
boolean |
shouldMoveBoundary
|
static GridRefiner.YellowRefinement |
YELLOW
|
Constructor Summary | |
---|---|
GridRefiner()
|
Method Summary | |
---|---|
java.util.List |
createRefinementList()
|
Grid |
getGrid()
Returns the grid. |
Grid |
getNewGrid()
|
GridRefiner.RefinementListCreator |
getRefinementListCreator()
|
RefinerDesc |
getRefinerDesc()
|
mathcomp.gridgeom.GridRefiner.TriangleRefiner |
getState(Triangle t)
|
java.util.Set |
getStatesKeys()
|
void |
move(Node k,
Triangle t,
int i)
|
Grid |
refine()
First the RefinementListCreator is used to mark some
triangles RED. |
void |
report()
|
void |
run()
|
void |
setGrid(Grid grid)
Sets the grid. |
void |
setRefinementListCreator(GridRefiner.RefinementListCreator refinementListCreator)
|
void |
setRefinerDesc(RefinerDesc refinerDesc)
|
mathcomp.gridgeom.GridRefiner.TriangleRefiner |
setState(Triangle t,
mathcomp.gridgeom.GridRefiner.TriangleRefiner state)
|
Methods inherited from class mathcomp.monitor.DefaultAlgorithm |
---|
algoAbortIfNeeded, algoCancel, algoClear, algoCount, algoIncrement, algoMax, isAlgoCancel, setAlgoCount, setAlgoMax |
Methods inherited from class mathcomp.monitor.DefaultReportable |
---|
getReport, setReport |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface mathcomp.monitor.Reportable |
---|
getReport, setReport |
Field Detail |
---|
public static final GridRefiner.AllRefinementList ALL
GridRefiner.AllRefinementList
public static final GridRefiner.RedRefinement RED
public static final GridRefiner.GreenRefinement[] GREEN
public static final GridRefiner.YellowRefinement YELLOW
public boolean shouldMarkGreens
public boolean shouldMoveBoundary
Constructor Detail |
---|
public GridRefiner()
Method Detail |
---|
public Grid refine()
RefinementListCreator
is used to mark some
triangles RED. Then a GreenClosure
is
performed. Finally the refined grid is created by
createRefinedGrid()
GreenClosure
,
createRefinedGrid()
public java.util.List createRefinementList()
public mathcomp.gridgeom.GridRefiner.TriangleRefiner getState(Triangle t)
public mathcomp.gridgeom.GridRefiner.TriangleRefiner setState(Triangle t, mathcomp.gridgeom.GridRefiner.TriangleRefiner state)
public Grid getGrid()
public void setGrid(Grid grid)
grid
- The grid to setpublic GridRefiner.RefinementListCreator getRefinementListCreator()
public void setRefinementListCreator(GridRefiner.RefinementListCreator refinementListCreator)
public void move(Node k, Triangle t, int i)
public Grid getNewGrid()
public void run()
run
in interface java.lang.Runnable
public void report()
report
in interface Reportable
report
in class DefaultReportable
public RefinerDesc getRefinerDesc()
public void setRefinerDesc(RefinerDesc refinerDesc)
public java.util.Set getStatesKeys()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |