summaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/graph/geom/Outline.java
diff options
context:
space:
mode:
authorRami Santina <[email protected]>2011-03-25 12:00:55 +0200
committerRami Santina <[email protected]>2011-03-25 12:00:55 +0200
commit526af50c03af2e00a028caf4b8504e6c3f3c4221 (patch)
tree69b63713bc99051f26bb7ca172ed5464fec13485 /src/com/jogamp/graph/geom/Outline.java
parentb01b243241635ab4d210aa88cdbff6cc5713a815 (diff)
Refactored Vertex Point PointTex GraphPoint namings
Vertex class --> SVertex (Simple vertex wwhere memory impl is float[]) Point interface --> Vertex (which combines in it PointTex Interface) GraphPoint --> GraphVertex
Diffstat (limited to 'src/com/jogamp/graph/geom/Outline.java')
-rw-r--r--src/com/jogamp/graph/geom/Outline.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/com/jogamp/graph/geom/Outline.java b/src/com/jogamp/graph/geom/Outline.java
index b8b824a1c..d9bde4177 100644
--- a/src/com/jogamp/graph/geom/Outline.java
+++ b/src/com/jogamp/graph/geom/Outline.java
@@ -29,7 +29,7 @@ package com.jogamp.graph.geom;
import java.util.ArrayList;
-import com.jogamp.graph.geom.Point;
+import com.jogamp.graph.geom.Vertex;
import jogamp.graph.math.VectorFloatUtil;
@@ -45,7 +45,7 @@ import jogamp.graph.math.VectorFloatUtil;
* @see OutlineShape, Region
*
*/
-public class Outline<T extends Point> implements Comparable<Outline<T>>{
+public class Outline<T extends Vertex> implements Comparable<Outline<T>>{
private ArrayList<T> vertices = new ArrayList<T>(3);
private boolean closed = false;
@@ -68,20 +68,20 @@ public class Outline<T extends Point> implements Comparable<Outline<T>>{
box.resize(vertex.getX(), vertex.getY(), vertex.getZ());
}
- public final void addVertex(Point.Factory<? extends Point> factory, float x, float y, boolean onCurve) {
+ public final void addVertex(Vertex.Factory<? extends Vertex> factory, float x, float y, boolean onCurve) {
addVertex(factory, x, y, 0f, onCurve);
}
@SuppressWarnings("unchecked")
- public final void addVertex(Point.Factory<? extends Point> factory, float x, float y, float z, boolean onCurve) {
- Point v = factory.create(x, y, z);
+ public final void addVertex(Vertex.Factory<? extends Vertex> factory, float x, float y, float z, boolean onCurve) {
+ Vertex v = factory.create(x, y, z);
v.setOnCurve(onCurve);
addVertex((T)v);
}
@SuppressWarnings("unchecked")
- public final void addVertex(Point.Factory<? extends Point> factory, float[] coordsBuffer, int offset, int length, boolean onCurve) {
- Point v = factory.create(coordsBuffer, offset, length);
+ public final void addVertex(Vertex.Factory<? extends Vertex> factory, float[] coordsBuffer, int offset, int length, boolean onCurve) {
+ Vertex v = factory.create(coordsBuffer, offset, length);
v.setOnCurve(onCurve);
addVertex((T)v);
}