ij3d.geom
Class ColorPoint3D

java.lang.Object
  extended by ij3d.geom.Point3D
      extended by ij3d.geom.ColorPoint3D

public class ColorPoint3D
extends Point3D

Description of the Class

Author:
thomas

Constructor Summary
ColorPoint3D(float x, float y, float z, float R, float G, float B)
          Constructor for the Point3D object
 
Method Summary
 double dist(Pixel3D autre)
          Description of the Method
 double distance(Point3D other)
          Description of the Method
 double distanceSquare(Point3D other)
          Description of the Method
 float getB()
          Gets the b attribute of the Point3D object
 float getG()
          Gets the g attribute of the Point3D object
 Point3D getPosition()
          Gets the position attribute of the Point3D object
 float getR()
          Gets the r attribute of the Point3D object
 Vector3D getVector3D()
          Gets the vector3D attribute of the Point3D object
 double getX()
          Get the value of x
 double getY()
          Get the value of y
 double getZ()
          Get the value of z
 void setPixel(int x, int y, int z, double value)
          Sets the pixel attribute of the Pixel3D object
 void setPixel(int x, int y, int z, float value)
          Sets the pixel attribute of the Pixel3D object
 java.lang.String toString()
          Description of the Method
 void translate(Vector3D v)
          Description of the Method
 
Methods inherited from class ij3d.geom.Point3D
setX, setY, setZ, xmlWrite
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ColorPoint3D

public ColorPoint3D(float x,
                    float y,
                    float z,
                    float R,
                    float G,
                    float B)
Constructor for the Point3D object

Parameters:
x - Description of the Parameter
y - Description of the Parameter
z - Description of the Parameter
R - Description of the Parameter
G - Description of the Parameter
B - Description of the Parameter
Method Detail

getR

public float getR()
Gets the r attribute of the Point3D object

Returns:
The r value

getG

public float getG()
Gets the g attribute of the Point3D object

Returns:
The g value

getB

public float getB()
Gets the b attribute of the Point3D object

Returns:
The b value

setPixel

public void setPixel(int x,
                     int y,
                     int z,
                     float value)
Sets the pixel attribute of the Pixel3D object

Parameters:
x - The new pixel value
y - The new pixel value
z - The new pixel value
value - The new pixel value

setPixel

public void setPixel(int x,
                     int y,
                     int z,
                     double value)
Sets the pixel attribute of the Pixel3D object

Parameters:
x - The new pixel value
y - The new pixel value
z - The new pixel value
value - The new pixel value

toString

public java.lang.String toString()
Description copied from class: Point3D
Description of the Method

Overrides:
toString in class Point3D
Returns:
Description of the Return Value

dist

public double dist(Pixel3D autre)
Description of the Method

Parameters:
autre - Description of the Parameter
Returns:
Description of the Return Value

getX

public double getX()
Get the value of x

Overrides:
getX in class Point3D
Returns:
the value of x

getY

public double getY()
Get the value of y

Overrides:
getY in class Point3D
Returns:
the value of y

getZ

public double getZ()
Get the value of z

Overrides:
getZ in class Point3D
Returns:
the value of z

getVector3D

public Vector3D getVector3D()
Gets the vector3D attribute of the Point3D object

Overrides:
getVector3D in class Point3D
Returns:
The vector3D value

getPosition

public Point3D getPosition()
Gets the position attribute of the Point3D object

Overrides:
getPosition in class Point3D
Returns:
The position value

translate

public void translate(Vector3D v)
Description of the Method

Overrides:
translate in class Point3D
Parameters:
v - Description of the Parameter

distance

public double distance(Point3D other)
Description of the Method

Overrides:
distance in class Point3D
Parameters:
other - Description of the Parameter
Returns:
Description of the Return Value

distanceSquare

public double distanceSquare(Point3D other)
Description of the Method

Overrides:
distanceSquare in class Point3D
Parameters:
other - Description of the Parameter
Returns:
Description of the Return Value