VolumeJ
Class VJCell

java.lang.Object
  |
  +--VolumeJ.VJCell

public class VJCell
extends java.lang.Object

VJCell. For patenting and copyrighting reasons all Javadoc comments have been removed. Copyright (c) 2001-2003, Michael Abramoff. All rights reserved. Patent pending.


Field Summary
 int ix
          Position of this cell in objectspace coordinates.
 int iy
          Position of this cell in objectspace coordinates.
 int iz
          Position of this cell in objectspace coordinates.
(package private)  float[] jinc
           
(package private)  float[] kinc
           
(package private)  java.lang.String s
           
 
Constructor Summary
VJCell(VJMatrix m, VJMatrix mi)
          A cell is the unit of a volume in isosurface rendering A cell consists of eight voxels, and has the same position as its lowerleftanterior voxel.
 
Method Summary
 float[] intersect(int i, int j, int kdummy)
           
 float[] intersectTracing(int i, int j, int kdummy)
           
 void move(float ox, float oy, float oz)
           
 java.lang.String toString()
           
 java.lang.String toString(Volume v)
          Format a String of the contents of this cell, als include the volume values at the vertex of this cell.
 java.lang.String toStringFaces()
          Format a String from the equations of all faces in this cell.
 java.lang.String toStringVertices(float[][] vertex)
          Format a String from the extents of this cell.
static float[][] transformVertices(VJMatrix m, float[][] vertex)
          Transform the vertex coordinates of a cell into a different coordinate system.
static float[][] vertices(int x, int y, int z)
          Compute the vertex coordinates of a cell at x, y, z.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ix

public int ix
Position of this cell in objectspace coordinates.

iy

public int iy
Position of this cell in objectspace coordinates.

iz

public int iz
Position of this cell in objectspace coordinates.

jinc

float[] jinc

kinc

float[] kinc

s

java.lang.String s
Constructor Detail

VJCell

public VJCell(VJMatrix m,
              VJMatrix mi)
A cell is the unit of a volume in isosurface rendering A cell consists of eight voxels, and has the same position as its lowerleftanterior voxel. This class defines methods to convert voxel positions to cell positions and vv.
Method Detail

move

public void move(float ox,
                 float oy,
                 float oz)

intersect

public float[] intersect(int i,
                         int j,
                         int kdummy)

intersectTracing

public float[] intersectTracing(int i,
                                int j,
                                int kdummy)

transformVertices

public static float[][] transformVertices(VJMatrix m,
                                          float[][] vertex)
Transform the vertex coordinates of a cell into a different coordinate system. The matrix of coordinates is transformed using transformation matrix m.
Parameters:
m - the transformation matrix to convert coordinates from one system to another.
vertex - [8][4] float the homogenuous coordinates of all vertices of a cell.
Returns:
a float[8][4] containing the transformed coordinates of all vertices (same order as param vertex).

vertices

public static float[][] vertices(int x,
                                 int y,
                                 int z)
Compute the vertex coordinates of a cell at x, y, z.
Parameters:
x, - y, z the position of a cell in objectspace.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toStringFaces

public java.lang.String toStringFaces()
Format a String from the equations of all faces in this cell.

toStringVertices

public java.lang.String toStringVertices(float[][] vertex)
Format a String from the extents of this cell.
Returns:
a String with the extents of this cell in standard order.

toString

public java.lang.String toString(Volume v)
Format a String of the contents of this cell, als include the volume values at the vertex of this cell. Are printed in order: tlf trf tlb trb blf brf blb brb