ij3d.geom
Class ObjectCreator3D

java.lang.Object
  extended by ij3d.geom.ObjectCreator3D

public class ObjectCreator3D
extends java.lang.Object

Creation de forme primitive dans une image

Author:
cedric

Constructor Summary
ObjectCreator3D(ij.ImageStack stack)
           
ObjectCreator3D(IntImage3D image)
          Constructor for the ObjectCreator3D object
ObjectCreator3D(int sizex, int sizey, int sizez)
          Constructor for the ObjectCreator3D object
ObjectCreator3D(int sizex, int sizey, int sizez, int type)
          Constructor for the ObjectCreator3D object
 
Method Summary
 void createCube(int centerx, int centery, int centerz, double rx, double ry, double rz, float value)
          Creation d'une brique
 void createCube(Vector3D V, double rx, double ry, double rz, float val)
          Description of the Method
 void createCubeUnit(double centerx, double centery, double centerz, double rx, double ry, double rz, float value)
          Description of the Method
 void createCubeUnit(Vector3D V, double rx, double ry, double rz, float val)
          Description of the Method
 void createEllipsoid(int centerx, int centery, int centerz, double rx, double ry, double rz, float value, boolean gauss)
          Creation d'une ellipsoide
 void createEllipsoid(Vector3D V, double rx, double ry, double rz, float col)
          Description of the Method
 void createEllipsoidAxes(int centerx, int centery, int centerz, double rx, double ry, double rz, float value, Matrix M, boolean gauss)
          Creation d'une ellipsoide
 void createEllipsoidAxes(int centerx, int centery, int centerz, double rx, double ry, double rz, float value, Vector3D V, boolean gauss)
           
 void createEllipsoidUnit(double centerx, double centery, double centerz, double rx, double ry, double rz, float value, boolean gauss)
          Description of the Method
 void createEllipsoidUnit(Vector3D V, double rx, double ry, double rz, float col)
          Description of the Method
 void createLine(int x0, int y0, int z0, int x1, int y1, int z1, float val, int rad)
          Create a 3D line
 void createLine(Point3D P1, Point3D P2, float val, int rad)
           
 void createLine(Vector3D V1, Vector3D V2, float val, int rad)
          Description of the Method
 void createLineUnit(Vector3D V1, Vector3D V2, float val, int rad)
          Description of the Method
 void createPixel(int x, int y, int z, int col)
          Description of the Method
 ij.measure.Calibration getCalibration()
          Gets the calibration attribute of the Object3D object
 Image3D getImage3D()
          Gets the image3D attribute of the ObjectCreator3D object
 ij.ImageStack getStack()
          Retourne l'image associée
 void reset()
           
 void setCalibration(ij.measure.Calibration cal)
          Sets the calibration attribute of the Object3D object
 void setResolution(double rxy, double rz, java.lang.String u)
          Sets the resolution attribute of the ObjectCreator3D object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectCreator3D

public ObjectCreator3D(IntImage3D image)
Constructor for the ObjectCreator3D object

Parameters:
image - The image3D to draw inside

ObjectCreator3D

public ObjectCreator3D(ij.ImageStack stack)
Parameters:
stack -

ObjectCreator3D

public ObjectCreator3D(int sizex,
                       int sizey,
                       int sizez,
                       int type)
Constructor for the ObjectCreator3D object

Parameters:
sizex - Taille x du volume
sizey - Taille y du volume
sizez - Taille z du volume
type - Type du volume (entier ou réel)

ObjectCreator3D

public ObjectCreator3D(int sizex,
                       int sizey,
                       int sizez)
Constructor for the ObjectCreator3D object

Parameters:
sizex - Taille x du volume
sizey - Taille y du volume
sizez - Taille z du volume
Method Detail

setResolution

public void setResolution(double rxy,
                          double rz,
                          java.lang.String u)
Sets the resolution attribute of the ObjectCreator3D object

Parameters:
rxy - The new resolution in XY
rz - The new resolution in Z
u - The new resolution unit

getCalibration

public ij.measure.Calibration getCalibration()
Gets the calibration attribute of the Object3D object

Returns:
The calibration value

setCalibration

public void setCalibration(ij.measure.Calibration cal)
Sets the calibration attribute of the Object3D object

Parameters:
cal - The new calibration value

createEllipsoidUnit

public void createEllipsoidUnit(double centerx,
                                double centery,
                                double centerz,
                                double rx,
                                double ry,
                                double rz,
                                float value,
                                boolean gauss)
Description of the Method

Parameters:
centerx - Description of the Parameter
centery - Description of the Parameter
centerz - Description of the Parameter
rx - Description of the Parameter
ry - Description of the Parameter
rz - Description of the Parameter
value - Description of the Parameter
gauss - Description of the Parameter

createEllipsoid

public void createEllipsoid(Vector3D V,
                            double rx,
                            double ry,
                            double rz,
                            float col)
Description of the Method

Parameters:
V - Description of the Parameter
rx - Description of the Parameter
ry - Description of the Parameter
rz - Description of the Parameter
col - Description of the Parameter

createEllipsoidUnit

public void createEllipsoidUnit(Vector3D V,
                                double rx,
                                double ry,
                                double rz,
                                float col)
Description of the Method

Parameters:
V - Description of the Parameter
rx - Description of the Parameter
ry - Description of the Parameter
rz - Description of the Parameter
col - Description of the Parameter

createEllipsoid

public void createEllipsoid(int centerx,
                            int centery,
                            int centerz,
                            double rx,
                            double ry,
                            double rz,
                            float value,
                            boolean gauss)
Creation d'une ellipsoide

Parameters:
rx - Rayon en x (unit)
ry - Rayon en y (unit)
rz - Rayon en z (unit)
centerx - Centre en x
centery - Centre en y
centerz - Centre en z
value - Valeur à remplir
gauss - uniform or ramp values

createEllipsoidAxes

public void createEllipsoidAxes(int centerx,
                                int centery,
                                int centerz,
                                double rx,
                                double ry,
                                double rz,
                                float value,
                                Matrix M,
                                boolean gauss)
Creation d'une ellipsoide

Parameters:
rx - Rayon en x (unit)
ry - Rayon en y (unit)
rz - Rayon en z (unit)
centerx - Centre en x
centery - Centre en y
centerz - Centre en z
value - Valeur à remplir
gauss - uniform or ramp values
M - Description of the Parameter

createEllipsoidAxes

public void createEllipsoidAxes(int centerx,
                                int centery,
                                int centerz,
                                double rx,
                                double ry,
                                double rz,
                                float value,
                                Vector3D V,
                                boolean gauss)
Parameters:
centerx -
centery -
centerz -
rx -
ry -
rz -
value -
V -
gauss -

createCube

public void createCube(Vector3D V,
                       double rx,
                       double ry,
                       double rz,
                       float val)
Description of the Method

Parameters:
V - Description of the Parameter
rx - Description of the Parameter
ry - Description of the Parameter
rz - Description of the Parameter
val - Description of the Parameter

createCubeUnit

public void createCubeUnit(Vector3D V,
                           double rx,
                           double ry,
                           double rz,
                           float val)
Description of the Method

Parameters:
V - Description of the Parameter
rx - Description of the Parameter
ry - Description of the Parameter
rz - Description of the Parameter
val - Description of the Parameter

createCubeUnit

public void createCubeUnit(double centerx,
                           double centery,
                           double centerz,
                           double rx,
                           double ry,
                           double rz,
                           float value)
Description of the Method

Parameters:
centerx - Description of the Parameter
centery - Description of the Parameter
centerz - Description of the Parameter
rx - Description of the Parameter
ry - Description of the Parameter
rz - Description of the Parameter
value - Description of the Parameter

createCube

public void createCube(int centerx,
                       int centery,
                       int centerz,
                       double rx,
                       double ry,
                       double rz,
                       float value)
Creation d'une brique

Parameters:
rx - Rayon en x (unit)
ry - Rayon en y (unit)
rz - Rayon en z (unit)
centerx - Centre en x
centery - Centre en y
centerz - Centre en z
value - Valeur à remplir

createPixel

public void createPixel(int x,
                        int y,
                        int z,
                        int col)
Description of the Method

Parameters:
x - Description of the Parameter
y - Description of the Parameter
z - Description of the Parameter
col - Description of the Parameter

createLine

public void createLine(int x0,
                       int y0,
                       int z0,
                       int x1,
                       int y1,
                       int z1,
                       float val,
                       int rad)
Create a 3D line

Parameters:
x0 - x origin
y0 - y origin
z0 - z origin
x1 - x end
y1 - y end
z1 - z end
val - pixel value
rad - radius for the line (as small spheres) (pix)

createLine

public void createLine(Vector3D V1,
                       Vector3D V2,
                       float val,
                       int rad)
Description of the Method

Parameters:
V1 - Description of the Parameter
val - Description of the Parameter
rad - Description of the Parameter
V2 - Description of the Parameter

createLine

public void createLine(Point3D P1,
                       Point3D P2,
                       float val,
                       int rad)
Parameters:
P1 -
P2 -
val -
rad -

createLineUnit

public void createLineUnit(Vector3D V1,
                           Vector3D V2,
                           float val,
                           int rad)
Description of the Method

Parameters:
V1 - Description of the Parameter
V2 - Description of the Parameter
val - Description of the Parameter
rad - Description of the Parameter

getStack

public ij.ImageStack getStack()
Retourne l'image associée

Returns:
The stack

getImage3D

public Image3D getImage3D()
Gets the image3D attribute of the ObjectCreator3D object

Returns:
The image3D value

reset

public void reset()