|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdevisor2.foundation.GridItem
devisor2.foundation.elements.Cell
devisor2.foundation.elements.Cell2D
devisor2.foundation.elements.Quad
devisor2.foundation.elements.Macro
The Macro class represents a Quad which can refine itself nonuniformly.
| Field Summary | |
protected int |
aniso
|
protected double[] |
anisofaktor
|
protected int |
m
level of refinement in y direction |
protected int |
n
level of refinement in x direction |
| Fields inherited from class devisor2.foundation.elements.Quad |
middlez |
| Fields inherited from class devisor2.foundation.elements.Cell2D |
edges, poly_world |
| Fields inherited from class devisor2.foundation.elements.Cell |
children, level, marker, material_number, matrixblock, neighbours, nodes, number, parallelblock, parameters, parent, values |
| Fields inherited from class devisor2.foundation.GridItem |
cc, marked, transformed, xmax, xmin, ymax, ymin |
| Constructor Summary | |
Macro()
Empty constructor. |
|
Macro(int i,
int nn,
int mm,
Edge e1,
Edge e2,
Edge e3,
Edge e4)
Calls one constructor of Cell, and defines the array of edges of the cell. |
|
| Method Summary | |
java.lang.Object |
clone()
clones this Macro element shallowly, which means no nodes are recursivly cloned as well. |
void |
draw(java.awt.Graphics g)
Draws the perimeter of the macro. |
void |
fill(java.awt.Graphics g)
Draws the Macro filled with its color. |
double[] |
getAnisotropyFactors()
|
int |
getAnisotropyMode()
|
Edge |
getEdge(int i)
Returns the ith edge of the cell modulo NPT, i.e. |
int |
getNPT()
|
double[] |
getParameters()
returns all parameters of the griditem in an int array |
java.awt.Rectangle |
getPerimeter()
returns the perimeter of the Macro element, that is the smallest bounding box completely containing the Macro |
int |
getRefinement(int index)
|
boolean |
isHit(int x,
int y)
Determines if the item has been hit by a click on the grid ALL IN SCREEN COORDINATES to avoid the snap mechanism |
boolean |
isInside(int[] topleft,
int[] bottomright)
Is the item inside a given rectangular area? All in WORLD COORDINATES!!! |
void |
performTransformation(GridTransformation trafo)
transforms the Macro element by changing all nodes |
void |
setAnisotropy(int aiso,
double r1,
double r2,
double r3)
|
void |
setParameters(double[] params)
sets all parameters of the GridItem according to the given int array |
void |
setRefinement(int index,
int nr)
|
java.lang.String |
toString()
|
void |
updateInnerData()
updates the inner variables xmin, xmax, ymin, ymax and the polygonal representation of the macro object |
| Methods inherited from class devisor2.foundation.elements.Quad |
getArea, getAspectRatio, getSmallestInnerAngle, performMirror, setCell |
| Methods inherited from class devisor2.foundation.elements.Cell2D |
getEdges, getNode, getNodes, setCell, setCell, setEdge, setNode, updateCellNeighbours, updateCellNodes |
| Methods inherited from class devisor2.foundation.elements.Cell |
defValue, getChildren, getLevel, getMarker, getMatrixBlock, getNeighbours, getNodeAverageValue, getNumber, getParallelBlock, getParent, getValue, isRect, setLevel, setMarker, setMatrixBlock, setNumber, setParallelBlock, setValue |
| Methods inherited from class devisor2.foundation.GridItem |
clearTransformedFlag, isMarked, setMarker, setMarker, unsetMarker |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected int n
protected int m
protected int aniso
protected double[] anisofaktor
| Constructor Detail |
public Macro()
Cell
public Macro(int i,
int nn,
int mm,
Edge e1,
Edge e2,
Edge e3,
Edge e4)
Cell| Method Detail |
public void setAnisotropy(int aiso,
double r1,
double r2,
double r3)
public int getAnisotropyMode()
public double[] getAnisotropyFactors()
public int getRefinement(int index)
public void setRefinement(int index,
int nr)
public Edge getEdge(int i)
getEdge in class QuadEdgepublic void draw(java.awt.Graphics g)
draw in class Quadpublic int getNPT()
getNPT in class Quadpublic void fill(java.awt.Graphics g)
fill in class QuadCellpublic void updateInnerData()
updateInnerData in class Quad
public boolean isInside(int[] topleft,
int[] bottomright)
isInside in class Quadtopleft - - the topleft corner of the rectanglebottomright - - the bottom right corner of the rectangle
public boolean isHit(int x,
int y)
isHit in class Quadpublic java.awt.Rectangle getPerimeter()
getPerimeter in class Quadpublic void performTransformation(GridTransformation trafo)
performTransformation in class Quadpublic java.lang.Object clone()
clone in class Quadpublic double[] getParameters()
GridItem
getParameters in class Quadpublic void setParameters(double[] params)
GridItem
setParameters in class Quadpublic java.lang.String toString()
toString in class Quad
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||