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)
Set< VertexgetNeighbors ()
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< 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 and voronoi area assigned.

Author:
Stefan Profanter

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 69 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 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

Parameters:
ppoint of the vertex
normnormal vector of the vertex

Definition at line 91 of file Vertex.java.


Member Function Documentation

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

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

Parameters:
neiglist of neighbors to add

Definition at line 220 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 238 of file Vertex.java.

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.

Returns:
the neighbors

Definition at line 194 of file Vertex.java.

Get normal vector of vertex

Returns:
the normalVector

Definition at line 132 of file Vertex.java.

Get voronoi area of vertex

Returns:
the pointarea

Definition at line 141 of file Vertex.java.

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.

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

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

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

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

Parameters:
matrixthe transformation matrix

Definition at line 179 of file Vertex.java.


Member Data Documentation

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.

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]

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 Sat Dec 28 2013 17:09:45