edu.jhu.ece.iacl.jist.structures.image
Class VoxelUByte

java.lang.Object
  extended by java.lang.Number
      extended by edu.jhu.ece.iacl.jist.structures.image.Voxel
          extended by edu.jhu.ece.iacl.jist.structures.image.VoxelUByte
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<Voxel>

public class VoxelUByte
extends Voxel

Unsigned Byte Voxel Type Values are stored as signed byte, but recalled as unsigned byte.

Author:
Blake Lucas
See Also:
Serialized Form

Constructor Summary
VoxelUByte()
          Instantiates a new voxel u byte.
VoxelUByte(byte b)
          Instantiates a new voxel u byte.
VoxelUByte(short b)
          Instantiates a new voxel u byte.
VoxelUByte(Voxel v)
          Instantiates a new voxel u byte.
 
Method Summary
 VoxelUByte add(Voxel v)
          Adds the.
 Voxel clone()
           
 int compareTo(Voxel obj)
           
 VoxelUByte div(Voxel v)
          Div.
 boolean getBoolean()
          Gets the boolean.
 java.awt.Color getColor()
          Gets the color.
 double getDouble()
          Gets the double.
 float getFloat()
          Gets the float.
 int getInt()
          Gets the int.
 short getShort()
          Gets the short.
 VoxelType getType()
          Gets the type.
 short getUByte()
          Gets the u byte.
 VoxelUByte mul(Voxel v)
          Mul.
 Voxel neg()
          Neg.
 void set(boolean vox)
          Sets the.
 void set(byte vox)
          Sets the.
 void set(java.awt.Color vox)
          Sets the.
 void set(double vox)
          Sets the.
 void set(int vox)
          Sets the.
 void set(short vox)
          Sets the.
 void set(Voxel v)
          Sets the.
 VoxelUByte sub(Voxel v)
          Sub.
 java.lang.String toString()
           
 
Methods inherited from class edu.jhu.ece.iacl.jist.structures.image.Voxel
byteValue, doubleValue, equals, floatValue, getRestriction, getVector, intValue, longValue, round, set, set, shortValue
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VoxelUByte

public VoxelUByte(short b)
Instantiates a new voxel u byte.

Parameters:
b - the b

VoxelUByte

public VoxelUByte(byte b)
Instantiates a new voxel u byte.

Parameters:
b - the b

VoxelUByte

public VoxelUByte()
Instantiates a new voxel u byte.


VoxelUByte

public VoxelUByte(Voxel v)
Instantiates a new voxel u byte.

Parameters:
v - the v
Method Detail

getBoolean

public boolean getBoolean()
Description copied from class: Voxel
Gets the boolean.

Specified by:
getBoolean in class Voxel
Returns:
the boolean

getShort

public short getShort()
Description copied from class: Voxel
Gets the short.

Specified by:
getShort in class Voxel
Returns:
the short

getColor

public java.awt.Color getColor()
Description copied from class: Voxel
Gets the color.

Specified by:
getColor in class Voxel
Returns:
the color

getFloat

public float getFloat()
Description copied from class: Voxel
Gets the float.

Overrides:
getFloat in class Voxel
Returns:
the float

getDouble

public double getDouble()
Description copied from class: Voxel
Gets the double.

Specified by:
getDouble in class Voxel
Returns:
the double

clone

public Voxel clone()
Specified by:
clone in class Voxel

set

public void set(Voxel v)
Description copied from class: Voxel
Sets the.

Specified by:
set in class Voxel
Parameters:
v - the v

set

public void set(byte vox)
Description copied from class: Voxel
Sets the.

Overrides:
set in class Voxel
Parameters:
vox - the vox

set

public void set(boolean vox)
Description copied from class: Voxel
Sets the.

Specified by:
set in class Voxel
Parameters:
vox - the vox

set

public void set(short vox)
Description copied from class: Voxel
Sets the.

Specified by:
set in class Voxel
Parameters:
vox - the vox

set

public void set(int vox)
Description copied from class: Voxel
Sets the.

Specified by:
set in class Voxel
Parameters:
vox - the vox

set

public void set(java.awt.Color vox)
Description copied from class: Voxel
Sets the.

Specified by:
set in class Voxel
Parameters:
vox - the vox

set

public void set(double vox)
Description copied from class: Voxel
Sets the.

Specified by:
set in class Voxel
Parameters:
vox - the vox

add

public VoxelUByte add(Voxel v)
Description copied from class: Voxel
Adds the.

Specified by:
add in class Voxel
Parameters:
v - the v
Returns:
the voxel

sub

public VoxelUByte sub(Voxel v)
Description copied from class: Voxel
Sub.

Specified by:
sub in class Voxel
Parameters:
v - the v
Returns:
the voxel

mul

public VoxelUByte mul(Voxel v)
Description copied from class: Voxel
Mul.

Specified by:
mul in class Voxel
Parameters:
v - the v
Returns:
the voxel

div

public VoxelUByte div(Voxel v)
Description copied from class: Voxel
Div.

Specified by:
div in class Voxel
Parameters:
v - the v
Returns:
the voxel

neg

public Voxel neg()
Description copied from class: Voxel
Neg.

Specified by:
neg in class Voxel
Returns:
the voxel

compareTo

public int compareTo(Voxel obj)

getInt

public int getInt()
Description copied from class: Voxel
Gets the int.

Specified by:
getInt in class Voxel
Returns:
the int

getUByte

public short getUByte()
Description copied from class: Voxel
Gets the u byte.

Overrides:
getUByte in class Voxel
Returns:
the u byte

toString

public java.lang.String toString()
Specified by:
toString in class Voxel

getType

public VoxelType getType()
Description copied from class: Voxel
Gets the type.

Specified by:
getType in class Voxel
Returns:
the type