Public Member Functions | |
void | addNeighbor (Vertex v) |
void | addNeighbor (Collection< Vertex > neig) |
void | addNeighbor (Vertex[] neig) |
Object | clone () |
boolean | equals (Object o) |
float[] | getClusterCurvatureVal () |
int | getClusterLabel () |
Set< Vertex > | getNeighbors () |
Vector3f | getNormalVector () |
float | getPointarea () |
int | hashCode () |
boolean | isSharpVertex () |
void | isSharpVertex (final boolean value) |
boolean | sameCoordinates (Point3f p) |
void | setClusterCurvatureVal (final float newKMin, final float newKMax, final float newKMinKMax) |
void | setClusterLabel (final int newLabel) |
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 float[] | clusterCurvatureVal = { 0.0f, 0.0f, 0.0f } |
int | clusterLabel = -1 |
boolean | isSharpVertex = false |
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, Voronoi area assigned and curvature values 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 85 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 95 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 107 of file Vertex.java.
void edu.tum.cs.vis.model.util.Vertex.addNeighbor | ( | Vertex | v | ) | [inline] |
Adds 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 244 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 259 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 277 of file Vertex.java.
Object edu.tum.cs.vis.model.util.Vertex.clone | ( | ) | [inline] |
Definition at line 117 of file Vertex.java.
boolean edu.tum.cs.vis.model.util.Vertex.equals | ( | Object | o | ) | [inline] |
Definition at line 132 of file Vertex.java.
float [] edu.tum.cs.vis.model.util.Vertex.getClusterCurvatureVal | ( | ) | [inline] |
Gets cluster kMin
, kMax
and kMinMax
curvature values of the vertex
Definition at line 326 of file Vertex.java.
int edu.tum.cs.vis.model.util.Vertex.getClusterLabel | ( | ) | [inline] |
Gets cluster label id of the vertex
Definition at line 309 of file Vertex.java.
Set<Vertex> edu.tum.cs.vis.model.util.Vertex.getNeighbors | ( | ) | [inline] |
Returns the vertex 1-ring neighborhood vertices
Definition at line 233 of file Vertex.java.
Vector3f edu.tum.cs.vis.model.util.Vertex.getNormalVector | ( | ) | [inline] |
Gets the normal vector of the vertex
Definition at line 165 of file Vertex.java.
float edu.tum.cs.vis.model.util.Vertex.getPointarea | ( | ) | [inline] |
Gets the Voronoi area (pointarea) of the vertex
Definition at line 174 of file Vertex.java.
int edu.tum.cs.vis.model.util.Vertex.hashCode | ( | ) | [inline] |
Definition at line 183 of file Vertex.java.
boolean edu.tum.cs.vis.model.util.Vertex.isSharpVertex | ( | ) | [inline] |
Returns if the Vertex is sharp or not
Definition at line 292 of file Vertex.java.
void edu.tum.cs.vis.model.util.Vertex.isSharpVertex | ( | final boolean | value | ) | [inline] |
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 147 of file Vertex.java.
void edu.tum.cs.vis.model.util.Vertex.setClusterCurvatureVal | ( | final float | newKMin, |
final float | newKMax, | ||
final float | newKMinKMax | ||
) | [inline] |
Sets the cluster kMin
, kMax
and kMinkMax
curvature values for the vertex
values | of the curvature properties of the associated cluster of the vertex: clusterCurvatureVal[0] = kMin (minimum curvature value), clusterCurvatureVal[1] = kMax (maximum curvature value), clusterCurvatureVal[2] = kMinkMax (min-max curvature property value) |
Definition at line 340 of file Vertex.java.
void edu.tum.cs.vis.model.util.Vertex.setClusterLabel | ( | final int | newLabel | ) | [inline] |
Sets cluster label id to the specified value
newLabel | of cluster to be set |
Definition at line 319 of file Vertex.java.
void edu.tum.cs.vis.model.util.Vertex.setNormalVector | ( | Vector3f | normalVector | ) | [inline] |
Sets the normal vector of the vertex
normalVector | the normalVector to set |
Definition at line 195 of file Vertex.java.
void edu.tum.cs.vis.model.util.Vertex.setPointarea | ( | float | pointarea | ) | [inline] |
Sets the Voronoi area (pointarea) of the vertex
pointarea | the pointarea to set |
Definition at line 205 of file Vertex.java.
void edu.tum.cs.vis.model.util.Vertex.transform | ( | float | matrix[][] | ) | [inline] |
Apply a 4x4 transformation matrix to the vector
matrix | the transformation matrix |
Definition at line 216 of file Vertex.java.
final float [] edu.tum.cs.vis.model.util.Vertex.clusterCurvatureVal = { 0.0f, 0.0f, 0.0f } [private] |
Cluster label principal curvature values: kMin
is stored first, kMax
second and kMinkMax
curvature third
Definition at line 63 of file Vertex.java.
int edu.tum.cs.vis.model.util.Vertex.clusterLabel = -1 [private] |
Cluster label id which vertex belongs to: -1 = unassigned
Definition at line 57 of file Vertex.java.
Color of vertex. May be used to color vertex instead of triangle.
Definition at line 47 of file Vertex.java.
boolean edu.tum.cs.vis.model.util.Vertex.isSharpVertex = false [private] |
States whether the vertex is a sharp vertex or not
Definition at line 68 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 73 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] |
auto generated
Definition at line 32 of file Vertex.java.