Public Member Functions | |
void | addNeighbor (Vertex v) |
void | addNeighbor (Collection< Vertex > neig) |
void | addNeighbor (Vertex[] neig) |
Object | clone () |
boolean | equals (Object o) |
Set< Vertex > | getNeighbors () |
Vector3f | getNormalVector () |
float | getPointarea () |
int | hashCode () |
boolean | sameCoordinates (Point3f p) |
void | setNormalVector (Vector3f normalVector) |
void | setPointarea (float pointarea) |
void | transform (float[][] matrix) |
Vertex (float x, float y, float z) | |
Vertex (Tuple3f p) | |
Vertex (Tuple3f p, Vector3f norm) | |
Public Attributes | |
Color | color |
Color | overrideColor = null |
Private Attributes | |
final Set< Vertex > | neighbors = new HashSet<Vertex>() |
Vector3f | normalVector = new Vector3f() |
float | pointarea = 0f |
Static Private Attributes | |
static final long | serialVersionUID = 4454667509075960402L |
A vertex (corner point) of a triangle or line. Vertex may have normal vector and voronoi area assigned.
Definition at line 27 of file Vertex.java.
edu.tum.cs.vis.model.util.Vertex.Vertex | ( | float | x, |
float | y, | ||
float | z | ||
) | [inline] |
Constructor for vertex
x | x coordinate |
y | y coordinate |
z | z coordinate |
Definition at line 69 of file Vertex.java.
edu.tum.cs.vis.model.util.Vertex.Vertex | ( | Tuple3f | p | ) | [inline] |
Constructor for vertex
p | coordinates for new vertex |
Definition at line 79 of file Vertex.java.
edu.tum.cs.vis.model.util.Vertex.Vertex | ( | Tuple3f | p, |
Vector3f | norm | ||
) | [inline] |
Create a new vertex at given point p
with given normal vector norm
p | point of the vertex |
norm | normal vector of the vertex |
Definition at line 91 of file Vertex.java.
void edu.tum.cs.vis.model.util.Vertex.addNeighbor | ( | Vertex | v | ) | [inline] |
Add neighbor vertex to the neighbors list. You have to check, that v is really a direct neighbor (this one is connected to v through a single edge).
v | vertex to add |
Definition at line 205 of file Vertex.java.
void edu.tum.cs.vis.model.util.Vertex.addNeighbor | ( | Collection< Vertex > | neig | ) | [inline] |
Add list of vertices as neighbors. You have to check, that v is really a direct neighbor (this one is connected to v through a single edge).
neig | list of neighbors to add |
Definition at line 220 of file Vertex.java.
void edu.tum.cs.vis.model.util.Vertex.addNeighbor | ( | Vertex[] | neig | ) | [inline] |
Add list of vertices as neighbors. You have to check, that v is really a direct neighbor (this one is connected to v through a single edge).
neig | list of neighbors to add |
Definition at line 238 of file Vertex.java.
Object edu.tum.cs.vis.model.util.Vertex.clone | ( | ) | [inline] |
Definition at line 97 of file Vertex.java.
boolean edu.tum.cs.vis.model.util.Vertex.equals | ( | Object | o | ) | [inline] |
Definition at line 108 of file Vertex.java.
Set<Vertex> edu.tum.cs.vis.model.util.Vertex.getNeighbors | ( | ) | [inline] |
Definition at line 194 of file Vertex.java.
Vector3f edu.tum.cs.vis.model.util.Vertex.getNormalVector | ( | ) | [inline] |
float edu.tum.cs.vis.model.util.Vertex.getPointarea | ( | ) | [inline] |
int edu.tum.cs.vis.model.util.Vertex.hashCode | ( | ) | [inline] |
Definition at line 146 of file Vertex.java.
boolean edu.tum.cs.vis.model.util.Vertex.sameCoordinates | ( | Point3f | p | ) | [inline] |
Check if p has same coordinates as this vertex.
p | point |
Definition at line 123 of file Vertex.java.
void edu.tum.cs.vis.model.util.Vertex.setNormalVector | ( | Vector3f | normalVector | ) | [inline] |
set normal vector of vertex
normalVector | the normalVector to set |
Definition at line 158 of file Vertex.java.
void edu.tum.cs.vis.model.util.Vertex.setPointarea | ( | float | pointarea | ) | [inline] |
set Voronoi area of vertex
pointarea | the pointarea to set |
Definition at line 168 of file Vertex.java.
void edu.tum.cs.vis.model.util.Vertex.transform | ( | float | matrix[][] | ) | [inline] |
Apply 4x4 transformation matrix to the vector
matrix | the transformation matrix |
Definition at line 179 of file Vertex.java.
Color of vertex. May be used to color vertex instead of triangle.
Definition at line 47 of file Vertex.java.
final Set<Vertex> edu.tum.cs.vis.model.util.Vertex.neighbors = new HashSet<Vertex>() [private] |
List of direct neighbors of vertex
Definition at line 57 of file Vertex.java.
Vector3f edu.tum.cs.vis.model.util.Vertex.normalVector = new Vector3f() [private] |
normal vector of vertex
Definition at line 37 of file Vertex.java.
Color edu.tum.cs.vis.model.util.Vertex.overrideColor = null |
Overrides color of triangle with this color.
Definition at line 52 of file Vertex.java.
float edu.tum.cs.vis.model.util.Vertex.pointarea = 0f [private] |
voronoi area of vertex
Definition at line 42 of file Vertex.java.
final long edu.tum.cs.vis.model.util.Vertex.serialVersionUID = 4454667509075960402L [static, private] |
Definition at line 32 of file Vertex.java.