java.lang.Objectcomputational.geometry.meshgeneration.MeshGeneration
public abstract class MeshGeneration
Field Summary | |
---|---|
static MyPoint |
DESTINATION
|
protected LogManager |
history
|
static int |
MAXGRIDEDGE
Public Private and protected variables |
static MyPoint |
ORIGIN
|
static MyPoint |
UNDEF
|
static int |
UNITYINGRID
|
Constructor Summary | |
---|---|
MeshGeneration()
CONSTRUCTORS |
|
MeshGeneration(Square U)
|
|
MeshGeneration(Square U,
LogManager history)
|
Method Summary | |
---|---|
boolean |
addPoint(MyPoint P)
CONCRETE METHODS to add/set point |
boolean |
amplitudeisPowerOf2(int maxvalue)
|
java.util.LinkedList |
build_grid()
|
Polygon |
build_Polygon_From_Points()
|
java.util.Collection |
build_Polygon()
|
abstract void |
checkPreconditions()
ABSTRACTION |
void |
clear()
|
void |
deletegrid()
|
void |
draw_grid(java.awt.Graphics gfx)
PAINTING |
void |
draw_Polygon(java.awt.Graphics gfx)
|
void |
draw_Segment(java.awt.Graphics gfx)
|
LogManager |
getLogManager()
CONCRETE METHODS |
MyPoint |
getPoint(int i)
|
java.util.List |
getPolygonList()
|
Square |
getSquare()
|
Square |
getSquareinGrid()
|
void |
griddrawn(boolean b)
|
boolean |
isgridcreated()
|
boolean |
isNumberofPointsCorrect()
|
boolean |
isUpdated()
|
abstract java.util.Collection |
NUMG()
|
MyPoint |
PerformRigthPoint(MyPoint Temp,
MyPoint Origin)
CONCRETE METHODS to setup in correct way the edge of Polygon |
boolean |
PointsisEmpty()
|
int |
PointsSize()
|
MyPoint |
removePoint(int i)
|
void |
setLogManager(LogManager history)
|
void |
setPoints(java.util.List Points)
|
void |
setPoligonList(java.util.LinkedList PL1)
CONCRETE METHODS to set List of edge to elaborate showPreconditionViolatedDi |
void |
setSquare(MyPoint O,
MyPoint D)
|
void |
setSquare(Square U)
|
void |
setUpdated(boolean updated)
|
abstract void |
update()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final MyPoint DESTINATION
protected LogManager history
public static final int MAXGRIDEDGE
public static final MyPoint ORIGIN
public static final MyPoint UNDEF
public static final int UNITYINGRID
Constructor Detail |
---|
public MeshGeneration()
public MeshGeneration(Square U)
public MeshGeneration(Square U, LogManager history)
Method Detail |
---|
public boolean addPoint(MyPoint P)
public boolean amplitudeisPowerOf2(int maxvalue)
public java.util.LinkedList build_grid()
public Polygon build_Polygon_From_Points()
public java.util.Collection build_Polygon()
public abstract void checkPreconditions() throws PreconditionViolatedException
PreconditionViolatedException
public void clear()
public void deletegrid()
public void draw_grid(java.awt.Graphics gfx)
public void draw_Polygon(java.awt.Graphics gfx)
public void draw_Segment(java.awt.Graphics gfx)
public LogManager getLogManager()
public MyPoint getPoint(int i)
public java.util.List getPolygonList()
public Square getSquare()
public Square getSquareinGrid()
public void griddrawn(boolean b)
public boolean isgridcreated()
public boolean isNumberofPointsCorrect()
public boolean isUpdated()
public abstract java.util.Collection NUMG()
public MyPoint PerformRigthPoint(MyPoint Temp, MyPoint Origin)
public boolean PointsisEmpty()
public int PointsSize()
public MyPoint removePoint(int i)
public void setLogManager(LogManager history)
public void setPoints(java.util.List Points)
public void setPoligonList(java.util.LinkedList PL1)
public void setSquare(MyPoint O, MyPoint D)
public void setSquare(Square U)
public void setUpdated(boolean updated)
public abstract void update()