mathcomp.gui.cfd
Class PolyData
java.lang.Object
mathcomp.gui.cfd.PolyData
public class PolyData
- extends java.lang.Object
- Author:
- chwust
To change the template for this generated type comment go to
Window - Preferences - Java - Code Generation - Code and Comments
Method Summary |
void |
addEdge(int a,
int b,
int m)
|
void |
addEdge(java.awt.geom.Point2D.Double a,
java.awt.geom.Point2D.Double b)
|
void |
addEdge(java.awt.geom.Point2D.Double a,
java.awt.geom.Point2D.Double b,
int marker)
|
void |
addHole(double x,
double y)
|
static PolyData |
createFromFile(java.lang.String filename)
|
static PolyData |
createFromReader(java.io.BufferedReader in)
|
PolyData |
createInnerSurface(double per,
double amp,
int mode,
boolean glueIgnore,
boolean slipIgnore,
boolean fpIgnore,
boolean inIgnore,
boolean outIgnore)
mode = 0 random; mode = 1 sinus |
java.awt.geom.Rectangle2D |
getBounds()
|
java.util.Vector |
getEdgeA()
|
java.util.Vector |
getEdgeB()
|
java.util.Vector |
getEdgeMarkers()
|
java.util.Set |
getHoles()
|
java.util.Map |
getNodeMarkers()
|
java.util.Vector |
getNodes()
|
Skeleton |
getSkeleton()
|
double |
getVecLength(double x,
double y)
|
void |
overwriteType(int oldT,
int newT)
|
void |
parseSkeleton()
Starts the parsing from skeleton data to poly data
if branches are painted as branch-branching they're added to the branchesToSkip Set and will be ignored
other branches are parsed just bay giving the initial left, center and right node to the parseBranch method |
void |
printPoly()
|
java.awt.geom.Point2D.Double |
scaleToLength(java.awt.geom.Point2D.Double p,
double length)
|
void |
setBounds(java.awt.geom.Rectangle2D bounds)
|
void |
setEdgeInfo(int selectedEdgeID,
int info)
|
void |
setNodeInfo(int selectedNodeID,
int info)
|
void |
setNodes(java.util.Vector nodes)
|
void |
setSkeleton(Skeleton skeleton)
|
void |
writeToFile(java.io.File file)
Writes this grid to file . |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PolyData
public PolyData()
PolyData
public PolyData(Skeleton skel)
addEdge
public void addEdge(java.awt.geom.Point2D.Double a,
java.awt.geom.Point2D.Double b)
addEdge
public void addEdge(int a,
int b,
int m)
addEdge
public void addEdge(java.awt.geom.Point2D.Double a,
java.awt.geom.Point2D.Double b,
int marker)
printPoly
public void printPoly()
parseSkeleton
public void parseSkeleton()
- Starts the parsing from skeleton data to poly data
if branches are painted as branch-branching they're added to the branchesToSkip Set and will be ignored
other branches are parsed just bay giving the initial left, center and right node to the parseBranch method
createInnerSurface
public PolyData createInnerSurface(double per,
double amp,
int mode,
boolean glueIgnore,
boolean slipIgnore,
boolean fpIgnore,
boolean inIgnore,
boolean outIgnore)
- mode = 0 random; mode = 1 sinus
- Parameters:
per
- amp
- mode
-
scaleToLength
public java.awt.geom.Point2D.Double scaleToLength(java.awt.geom.Point2D.Double p,
double length)
getVecLength
public double getVecLength(double x,
double y)
writeToFile
public void writeToFile(java.io.File file)
- Writes this grid to
file
.
- Parameters:
file
- - See Also:
#writeToWriter(PrintWriter)
createFromFile
public static PolyData createFromFile(java.lang.String filename)
createFromReader
public static PolyData createFromReader(java.io.BufferedReader in)
throws java.io.IOException
- Throws:
java.io.IOException
addHole
public void addHole(double x,
double y)
overwriteType
public void overwriteType(int oldT,
int newT)
getSkeleton
public Skeleton getSkeleton()
setSkeleton
public void setSkeleton(Skeleton skeleton)
getNodes
public java.util.Vector getNodes()
getEdgeA
public java.util.Vector getEdgeA()
getEdgeB
public java.util.Vector getEdgeB()
getEdgeMarkers
public java.util.Vector getEdgeMarkers()
getNodeMarkers
public java.util.Map getNodeMarkers()
getBounds
public java.awt.geom.Rectangle2D getBounds()
- Returns:
- Returns the bounds.
setBounds
public void setBounds(java.awt.geom.Rectangle2D bounds)
- Parameters:
bounds
- The bounds to set.
setNodes
public void setNodes(java.util.Vector nodes)
setNodeInfo
public void setNodeInfo(int selectedNodeID,
int info)
setEdgeInfo
public void setEdgeInfo(int selectedEdgeID,
int info)
getHoles
public java.util.Set getHoles()