|
BIJ API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--VolumeJ.VJVoxelLoc
This class defines a voxel location for interpolation and rendering. It is useful because it keeps both the integer part of the voxel location (nearest neighbor voxel), and the weights to each of the eight surrounding voxels that can be used for higher order interpolation. Voxel locations are always in object space. Copyright (c) 1999-2002, Michael Abramoff. All rights reserved.
Field Summary | |
float |
blb
|
float |
blf
|
float |
brb
|
float |
brf
|
float |
dx
Difference between ix/iy/iz and x/y/z [0-1]. |
float |
dy
|
float |
dz
|
boolean |
hasWeights
|
int |
ix
integer floor of voxel location. |
int |
iy
|
int |
iz
|
float |
tlb
|
float |
tlf
trilinear interpolation weights. |
float |
trb
|
float |
trf
|
float |
x
|
float |
y
|
float |
z
|
Constructor Summary | |
VJVoxelLoc()
Empty VJVoxelLoc creator. |
|
VJVoxelLoc(float[] v)
Create a new VJVoxelLoc from a vector. |
|
VJVoxelLoc(float[] vs,
VJMatrix m)
Create a new VJVoxelLoc from a transformed vector location. |
|
VJVoxelLoc(float x,
float y,
float z)
Create a new VJVoxelLoc for an objectspace location x,y,z. |
|
VJVoxelLoc(float x,
float y,
float z,
VJMatrix m)
Create a new VJVoxelLoc from a transformed vector location. |
Method Summary | |
int |
getnnx()
Get the x-position rounded to the nearest int for nearest neighborhood interpolation. |
int |
getnny()
Get the y-position rounded to the nearest int for nearest neighborhood interpolation. |
int |
getnnz()
Get the z-position rounded to the nearest int for nearest neighborhood interpolation. |
void |
getWeights()
|
float |
getx()
Get the x-position. |
float |
gety()
Get the y-position. |
float |
getz()
Get the z-position. |
void |
move(float[] dos)
Move the location of this voxel with delta's in dos. |
void |
setx(int x)
Set the value for x. |
void |
sety(int y)
Set the value for x. |
void |
setz(float z)
Set the value for z. |
void |
setz(int z)
Set the value for z. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
|
Field Detail |
public int ix
public int iy
public int iz
public float x
public float y
public float z
public float dx
public float dy
public float dz
public float tlf
public float blf
public float trf
public float brf
public float tlb
public float blb
public float trb
public float brb
public boolean hasWeights
Constructor Detail |
public VJVoxelLoc()
public VJVoxelLoc(float x, float y, float z)
x,y,z
- float the object space location.public VJVoxelLoc(float[] vs, VJMatrix m)
vs
- float[4] the location vector (homogenous).m
- the the transformation matrix.public VJVoxelLoc(float x, float y, float z, VJMatrix m)
x,
- y, z the location vector in un-transformed coordinates.m
- the transformation matrix.public VJVoxelLoc(float[] v)
v
- the location vector (homogenous).Method Detail |
public float getx()
public float gety()
public float getz()
public int getnnx()
public int getnny()
public int getnnz()
public void setz(float z)
z
- the value to set.public void setx(int x)
x
- an int with the x value.public void sety(int y)
y
- an int with the y value.public void setz(int z)
z
- an int with the z value.public void getWeights()
public void move(float[] dos)
dos
- float[>=3] a vector containing the motion.public java.lang.String toString()
toString
in class java.lang.Object
|
BIJ API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |