edu.uthscsa.ric.visualization
Class ShapeData

java.lang.Object
  extended by edu.uthscsa.ric.visualization.ShapeData

public class ShapeData
extends Object

ShapeData is a container for line and point data.


Constructor Summary
ShapeData(Point3d[] points, float[] color)
          Construtor.
 
Method Summary
 float[] getColor()
          Returns a three float array of RGB values representing the surface color.
protected  int getNumBytes()
          Returns number of bytes required to store this shape.
 Point3d[] getPoints()
          Returns point array
 boolean isOnSurface()
          Returns true if this shape is a point and intersects a surface.
 void setOnSurface(boolean bool)
          Set if this shape is a point and intersects a surface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShapeData

public ShapeData(Point3d[] points,
                 float[] color)
Construtor.

Parameters:
points - if array length is one, this defines a point
color - a three float array containing RGB values
Method Detail

getPoints

public Point3d[] getPoints()
Returns point array

Returns:
point array

getColor

public float[] getColor()
Returns a three float array of RGB values representing the surface color.

Returns:
a three float array of RGB values

getNumBytes

protected int getNumBytes()
Returns number of bytes required to store this shape.

Returns:
number of bytes required to store this shape

setOnSurface

public void setOnSurface(boolean bool)
Set if this shape is a point and intersects a surface.

Parameters:
bool -

isOnSurface

public boolean isOnSurface()
Returns true if this shape is a point and intersects a surface.

Returns:
true if this shape is a point and intersects a surface