computational.geometry.meshgeneration
Class MeshGeneration

java.lang.Object
  extended by computational.geometry.meshgeneration.MeshGeneration
Direct Known Subclasses:
NonUniformMeshGeneration

public abstract class MeshGeneration
extends java.lang.Object


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

DESTINATION

public static final MyPoint DESTINATION

history

protected LogManager history

MAXGRIDEDGE

public static final int MAXGRIDEDGE
Public Private and protected variables

See Also:
Constant Field Values

ORIGIN

public static final MyPoint ORIGIN

UNDEF

public static final MyPoint UNDEF

UNITYINGRID

public static final int UNITYINGRID
See Also:
Constant Field Values
Constructor Detail

MeshGeneration

public MeshGeneration()
CONSTRUCTORS


MeshGeneration

public MeshGeneration(Square U)

MeshGeneration

public MeshGeneration(Square U,
                      LogManager history)
Method Detail

addPoint

public boolean addPoint(MyPoint P)
CONCRETE METHODS to add/set point


amplitudeisPowerOf2

public boolean amplitudeisPowerOf2(int maxvalue)

build_grid

public java.util.LinkedList build_grid()

build_Polygon_From_Points

public Polygon build_Polygon_From_Points()

build_Polygon

public java.util.Collection build_Polygon()

checkPreconditions

public abstract void checkPreconditions()
                                 throws PreconditionViolatedException
ABSTRACTION

Throws:
PreconditionViolatedException

clear

public void clear()

deletegrid

public void deletegrid()

draw_grid

public void draw_grid(java.awt.Graphics gfx)
PAINTING


draw_Polygon

public void draw_Polygon(java.awt.Graphics gfx)

draw_Segment

public void draw_Segment(java.awt.Graphics gfx)

getLogManager

public LogManager getLogManager()
CONCRETE METHODS


getPoint

public MyPoint getPoint(int i)

getPolygonList

public java.util.List getPolygonList()

getSquare

public Square getSquare()

getSquareinGrid

public Square getSquareinGrid()

griddrawn

public void griddrawn(boolean b)

isgridcreated

public boolean isgridcreated()

isNumberofPointsCorrect

public boolean isNumberofPointsCorrect()

isUpdated

public boolean isUpdated()

NUMG

public abstract java.util.Collection NUMG()

PerformRigthPoint

public MyPoint PerformRigthPoint(MyPoint Temp,
                                 MyPoint Origin)
CONCRETE METHODS to setup in correct way the edge of Polygon


PointsisEmpty

public boolean PointsisEmpty()

PointsSize

public int PointsSize()

removePoint

public MyPoint removePoint(int i)

setLogManager

public void setLogManager(LogManager history)

setPoints

public void setPoints(java.util.List Points)

setPoligonList

public void setPoligonList(java.util.LinkedList PL1)
CONCRETE METHODS to set List of edge to elaborate showPreconditionViolatedDi


setSquare

public void setSquare(MyPoint O,
                      MyPoint D)

setSquare

public void setSquare(Square U)

setUpdated

public void setUpdated(boolean updated)

update

public abstract void update()