edu.jhu.ece.iacl.jist.structures.geom
Class EmbeddedPointSet

java.lang.Object
  extended by edu.jhu.ece.iacl.jist.structures.geom.EmbeddedPointSet

public class EmbeddedPointSet
extends java.lang.Object

The Class EmbeddedPointSet.


Nested Class Summary
 class EmbeddedPointSet.PointLocatorResult
          The Class PointLocatorResult.
 
Field Summary
protected  int[] adjacencies
          The adjacencies.
protected  double[][] cellData
          The cell data.
protected  int[] indexes
          The indexes.
protected  java.lang.String name
          The name.
protected  double[][] pointData
          The point data.
protected  Point3f[] points
          The points.
 
Constructor Summary
EmbeddedPointSet()
          Instantiates a new embedded point set.
EmbeddedPointSet(Point3f[] pts)
          Instantiates a new embedded point set.
EmbeddedPointSet(Point3f[] pts, int[] indexes)
          Instantiates a new embedded point set.
EmbeddedPointSet(Point3f[] pts, int[] indexes, int[] adjacencies)
          Instantiates a new embedded point set.
 
Method Summary
 int[] getAdjacencies()
          Gets the adjacencies.
 Vector4d getBarycentrics(Point3f pt, int id)
          Gets the barycentrics.
 double[][] getCellData()
          Gets the cell data.
 int getContainingTetrahedron(Point3f rkP)
          Gets the containing tetrahedron.
 EmbeddedSurface getHull()
          Gets the hull.
 int getIndexCount()
          Gets the index count.
 int[] getIndexes()
          Gets the indexes.
 EmbeddedPointSet.PointLocatorResult getLocatorResult()
          Gets the locator result.
 java.lang.String getName()
          Gets the name.
 Point3f getPoint(int i)
          Gets the point.
 int getPointCount()
          Gets the point count.
 double[][] getPointData()
          Gets the point data.
 double[] getPointData(int i)
          Gets the point data.
 double getPointData(int i, int j)
          Gets the point data.
 Point3f[] getPoints()
          Gets the points.
 int getTetrahedraCount()
          Gets the tetrahedra count.
 int[] getTetrahedron(int i)
          Gets the tetrahedron.
 void getTetrahedron(int i, int[] tetra)
          Gets the tetrahedron.
 double getVolume()
          Gets the volume.
 double getVolume(int i)
          Gets the volume.
 void setAdjacencies(int[] adjacencies)
          Sets the adjacencies.
 void setCellData(double[][] cellData)
          Sets the cell data.
 void setIndexes(int[] indexes)
          Sets the indexes.
 void setName(java.lang.String name)
          Sets the name.
 void setPointData(double[][] data)
          Sets the point data.
 void setPoints(Point3f[] points)
          Sets the points.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

points

protected Point3f[] points
The points.


indexes

protected int[] indexes
The indexes.


adjacencies

protected int[] adjacencies
The adjacencies.


pointData

protected double[][] pointData
The point data.


cellData

protected double[][] cellData
The cell data.


name

protected java.lang.String name
The name.

Constructor Detail

EmbeddedPointSet

public EmbeddedPointSet()
Instantiates a new embedded point set.


EmbeddedPointSet

public EmbeddedPointSet(Point3f[] pts)
Instantiates a new embedded point set.

Parameters:
pts - the pts

EmbeddedPointSet

public EmbeddedPointSet(Point3f[] pts,
                        int[] indexes)
Instantiates a new embedded point set.

Parameters:
pts - the pts
indexes - the indexes

EmbeddedPointSet

public EmbeddedPointSet(Point3f[] pts,
                        int[] indexes,
                        int[] adjacencies)
Instantiates a new embedded point set.

Parameters:
pts - the pts
indexes - the indexes
adjacencies - the adjacencies
Method Detail

getPointCount

public int getPointCount()
Gets the point count.

Returns:
the point count

getIndexCount

public int getIndexCount()
Gets the index count.

Returns:
the index count

getTetrahedraCount

public int getTetrahedraCount()
Gets the tetrahedra count.

Returns:
the tetrahedra count

getPoints

public Point3f[] getPoints()
Gets the points.

Returns:
the points

getPoint

public Point3f getPoint(int i)
Gets the point.

Parameters:
i - the i
Returns:
the point

getTetrahedron

public int[] getTetrahedron(int i)
Gets the tetrahedron.

Parameters:
i - the i
Returns:
the tetrahedron

getTetrahedron

public void getTetrahedron(int i,
                           int[] tetra)
Gets the tetrahedron.

Parameters:
i - the i
tetra - the tetra

getVolume

public double getVolume()
Gets the volume.

Returns:
the volume

getVolume

public double getVolume(int i)
Gets the volume.

Parameters:
i - the i
Returns:
the volume

setPoints

public void setPoints(Point3f[] points)
Sets the points.

Parameters:
points - the new points

getIndexes

public int[] getIndexes()
Gets the indexes.

Returns:
the indexes

setIndexes

public void setIndexes(int[] indexes)
Sets the indexes.

Parameters:
indexes - the new indexes

getAdjacencies

public int[] getAdjacencies()
Gets the adjacencies.

Returns:
the adjacencies

setAdjacencies

public void setAdjacencies(int[] adjacencies)
Sets the adjacencies.

Parameters:
adjacencies - the new adjacencies

getPointData

public double[][] getPointData()
Gets the point data.

Returns:
the point data

getPointData

public double[] getPointData(int i)
Gets the point data.

Parameters:
i - the i
Returns:
the point data

getPointData

public double getPointData(int i,
                           int j)
Gets the point data.

Parameters:
i - the i
j - the j
Returns:
the point data

setPointData

public void setPointData(double[][] data)
Sets the point data.

Parameters:
data - the new point data

getName

public java.lang.String getName()
Gets the name.

Returns:
the name

setName

public void setName(java.lang.String name)
Sets the name.

Parameters:
name - the new name

getCellData

public double[][] getCellData()
Gets the cell data.

Returns:
the cell data

setCellData

public void setCellData(double[][] cellData)
Sets the cell data.

Parameters:
cellData - the new cell data

getHull

public EmbeddedSurface getHull()
Gets the hull.

Returns:
the hull

getLocatorResult

public EmbeddedPointSet.PointLocatorResult getLocatorResult()
Gets the locator result.

Returns:
the locator result

getContainingTetrahedron

public int getContainingTetrahedron(Point3f rkP)
Gets the containing tetrahedron.

Parameters:
rkP - the rk p
Returns:
the containing tetrahedron

getBarycentrics

public Vector4d getBarycentrics(Point3f pt,
                                int id)
Gets the barycentrics.

Parameters:
pt - the pt
id - the id
Returns:
the barycentrics