diff options
author | Rami Santina <[email protected]> | 2011-03-30 16:38:14 +0300 |
---|---|---|
committer | Rami Santina <[email protected]> | 2011-03-30 16:38:14 +0300 |
commit | 8e5d620eae1dcc1f1178e09c1d5172324541f503 (patch) | |
tree | f2d26265a6d2ee46fba6bae368fbde36428418a8 /src/jogamp/graph/curve/tess/GraphOutline.java | |
parent | 133edeb70921dbcae3ec7cc76f1bc6dd0cd36da8 (diff) | |
parent | 630a9ea52b16da6badb31a98b70893f8d294b4e8 (diff) |
Merge with sgothel
Diffstat (limited to 'src/jogamp/graph/curve/tess/GraphOutline.java')
-rw-r--r-- | src/jogamp/graph/curve/tess/GraphOutline.java | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/jogamp/graph/curve/tess/GraphOutline.java b/src/jogamp/graph/curve/tess/GraphOutline.java index bb262ce5b..5dae296e5 100644 --- a/src/jogamp/graph/curve/tess/GraphOutline.java +++ b/src/jogamp/graph/curve/tess/GraphOutline.java @@ -32,27 +32,27 @@ import java.util.ArrayList; import com.jogamp.graph.geom.Outline; import com.jogamp.graph.geom.Vertex; -public class GraphOutline <T extends Vertex> { - final private Outline<T> outline; - final private ArrayList<GraphVertex<T>> controlpoints = new ArrayList<GraphVertex<T>>(3); +public class GraphOutline { + final private Outline outline; + final private ArrayList<GraphVertex> controlpoints = new ArrayList<GraphVertex>(3); public GraphOutline(){ - this.outline = new Outline<T>(); + this.outline = new Outline(); } /**Create a control polyline of control vertices * the curve pieces can be identified by onCurve flag * of each cp the control polyline is open by default */ - public GraphOutline(Outline<T> ol){ + public GraphOutline(Outline ol){ this.outline = ol; - ArrayList<T> vertices = this.outline.getVertices(); - for(T v:vertices){ - this.controlpoints.add(new GraphVertex<T>(v)); + ArrayList<Vertex> vertices = this.outline.getVertices(); + for(Vertex v:vertices){ + this.controlpoints.add(new GraphVertex(v)); } } - public Outline<T> getOutline() { + public Outline getOutline() { return outline; } @@ -61,11 +61,11 @@ public class GraphOutline <T extends Vertex> { }*/ - public ArrayList<GraphVertex<T>> getGraphPoint() { + public ArrayList<GraphVertex> getGraphPoint() { return controlpoints; } - public ArrayList<T> getPoints() { + public ArrayList<Vertex> getPoints() { return outline.getVertices(); } @@ -73,7 +73,7 @@ public class GraphOutline <T extends Vertex> { this.controlpoints = controlpoints; }*/ - public void addVertex(GraphVertex<T> v) { + public void addVertex(GraphVertex v) { controlpoints.add(v); outline.addVertex(v.getPoint()); } |