Public Member Functions | Public Attributes | Private Attributes | Static Private Attributes
edu.tum.cs.vis.model.util.Vertex Class Reference
Inheritance diagram for edu.tum.cs.vis.model.util.Vertex:
Inheritance graph
[legend]

List of all members.

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< VertexgetNeighbors ()
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< Vertexneighbors = new HashSet<Vertex>()
Vector3f normalVector = new Vector3f()
float pointarea = 0f

Static Private Attributes

static final long serialVersionUID = 4454667509075960402L

Detailed Description

A vertex (corner point) of a triangle or line. Vertex may have normal vector, Voronoi area assigned and curvature values assigned.

Author:
Stefan Profanter
Andrei Stoica - added curvature support and its functionality

Definition at line 27 of file Vertex.java.


Constructor & Destructor Documentation

edu.tum.cs.vis.model.util.Vertex.Vertex ( float  x,
float  y,
float  z 
) [inline]

Constructor for vertex

Parameters:
xx coordinate
yy coordinate
zz coordinate

Definition at line 85 of file Vertex.java.

edu.tum.cs.vis.model.util.Vertex.Vertex ( Tuple3f  p) [inline]

Constructor for vertex

Parameters:
pcoordinates 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

Parameters:
ppoint of the vertex
normnormal vector of the vertex

Definition at line 107 of file Vertex.java.


Member Function Documentation

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).

Parameters:
vvertex 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).

Parameters:
neiglist of neighbors to add

Definition at line 259 of file Vertex.java.

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).

Parameters:
neiglist of neighbors to add

Definition at line 277 of file Vertex.java.

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.

Gets cluster kMin, kMax and kMinMax curvature values of the vertex

Definition at line 326 of file Vertex.java.

Gets cluster label id of the vertex

Definition at line 309 of file Vertex.java.

Returns the vertex 1-ring neighborhood vertices

Returns:
the neighbors

Definition at line 233 of file Vertex.java.

Gets the normal vector of the vertex

Returns:
the normalVector

Definition at line 165 of file Vertex.java.

Gets the Voronoi area (pointarea) of the vertex

Returns:
the pointarea

Definition at line 174 of file Vertex.java.

Definition at line 183 of file Vertex.java.

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]

Sets a Vertex to be sharp

Parameters:
valueto be set

Definition at line 302 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.

Parameters:
ppoint
Returns:
true if x,y,z are equal

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

Parameters:
valuesof 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

Parameters:
newLabelof 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

Parameters:
normalVectorthe 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

Parameters:
pointareathe 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

Parameters:
matrixthe transformation matrix

Definition at line 216 of file Vertex.java.


Member Data Documentation

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.

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.

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.

Overrides color of triangle with this color.

Definition at line 52 of file Vertex.java.

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.


The documentation for this class was generated from the following file:


knowrob_cad_parser
Author(s): Stefan Profanter
autogenerated on Mon Oct 6 2014 01:29:56