//==================================================================
BBTK_DECLARE_INPUT(In, std::vector<std::string>);
+ BBTK_DECLARE_INPUT(IPPSort, bool);
+
BBTK_DECLARE_OUTPUT(Out, vtkImageData *);
BBTK_DECLARE_OUTPUT(IPP, std::vector<double>);
BBTK_DECLARE_OUTPUT(IOP, std::vector<double>);
BBTK_DESCRIPTION("Get Dicom info from a File Set and read (as a vtkImageData)");
BBTK_CATEGORY("");
-BBTK_INPUT(GetXCoherentInfoGdcmReader,In,"Dicom image file name",std::vector<std::string>,"");
+BBTK_INPUT(GetXCoherentInfoGdcmReader,In, "Dicom image file name",std::vector<std::string>,"");
+BBTK_INPUT(GetXCoherentInfoGdcmReader,IPPSort,"Sort on Image Position Patient",bool,"");
BBTK_OUTPUT(GetXCoherentInfoGdcmReader,Out, "Output image", vtkImageData *,"");
BBTK_OUTPUT(GetXCoherentInfoGdcmReader,IPP, "Image Position (Patient)", std::vector<double>,"");
Program: bbtk
Module: $RCSfile: bbvtkImagePlanes.cxx,v $
Language: C++
- Date: $Date: 2009/03/12 09:36:21 $
- Version: $Revision: 1.21 $
+ Date: $Date: 2009/04/17 09:24:02 $
+ Version: $Revision: 1.22 $
=========================================================================*/
/* ---------------------------------------------------------------------
{
//================================================================
- class ImagePlanes::VtkCallbackType : public vtkCommand
+ class ImagePlanes::VtkCallbackType : public vtkCommand
{
public:
static VtkCallbackType *New()
};
//================================================================
- //vtkCxxRevisionMacro(ImagePlanes::VtkCallbackType, "$Revision: 1.21 $");
-
+ //vtkCxxRevisionMacro(ImagePlanes::VtkCallbackType, "$Revision: 1.22 $");
//================================================================
double xSpacing, ySpacing, zSpacing;
bbGetInputIn()->GetSpacing(xSpacing, ySpacing, zSpacing);
-
bbGetOutputPlaneX()->SetInput(bbGetInputIn());
bbGetOutputPlaneX()->SetPlaneOrientationToXAxes();
bbGetOutputPlaneX()->SetSlicePosition((xMax+xMin)/2.*xSpacing);
bbGetOutputPlaneZ()->SetWindowLevel(range[1] - range[0],
0.5*(range[1]+range[0]));
}
- }
-
+ }
// UPDATE DES SORTIES
bbGetOutputPlaneX()->GetResliceOutput()->Update();
bbGetOutputPlaneY()->GetResliceOutput()->Update();
- bbGetOutputPlaneZ()->GetResliceOutput()->Update();
-
-
+ bbGetOutputPlaneZ()->GetResliceOutput()->Update();
}
}
}//namespace bbtk
Program: bbtk
Module: $RCSfile: bbvtkImagePlanes.h,v $
Language: C++
- Date: $Date: 2009/02/27 11:20:26 $
- Version: $Revision: 1.13 $
+ Date: $Date: 2009/04/17 09:24:02 $
+ Version: $Revision: 1.14 $
=========================================================================*/
/* ---------------------------------------------------------------------
* \class bbtk::NodePatern
* \brief Pattern for the definition of a new type of Node
*/
-
-
#ifdef _USE_VTK_
#ifndef __bbvtkImagePlanes_h_INCLUDED__
#define __bbvtkImagePlanes_h_INCLUDED__
-
#include "bbtkAtomicBlackBox.h"
-
class vtkImageData;
class vtkImagePlaneWidget;
-
namespace bbvtk
{
-
typedef std::vector<double> winLevel;
-
-
class /*BBTK_EXPORT*/ ImagePlanes : public bbtk::AtomicBlackBox
{
public:
BBTK_BLACK_BOX_INTERFACE(ImagePlanes,bbtk::AtomicBlackBox);
// BBTK_DECLARE_INPUT(Contour,int);
- BBTK_DECLARE_INPUT(In,vtkImageData *);
- BBTK_DECLARE_INPUT(WindowLevel,winLevel);
+ BBTK_DECLARE_INPUT(In, vtkImageData *);
+ BBTK_DECLARE_INPUT(WindowLevel, winLevel);
BBTK_DECLARE_OUTPUT(PlaneX,vtkImagePlaneWidget*);
BBTK_DECLARE_OUTPUT(PlaneY,vtkImagePlaneWidget*);
BBTK_AUTHOR("laurent.guigues@creatis.insa-lyon.fr");
BBTK_DESCRIPTION("Creates three 3D planes with the input image mapped onto with which the user can interact. The output vtkImagePlaneWidget objects are to be inserted into a 3D scene (e.g. a Viewer3D)");
BBTK_CATEGORY("3D object creator");
- BBTK_INPUT(ImagePlanes,In,"Input Image",vtkImageData *,"");
- BBTK_INPUT(ImagePlanes,WindowLevel,"Widdow Level",winLevel,"");
+ BBTK_INPUT(ImagePlanes, In, "Input Image", vtkImageData *, "");
+ BBTK_INPUT(ImagePlanes, WindowLevel, "Widdow Level", winLevel, "");
BBTK_OUTPUT(ImagePlanes,PlaneX,"The image plane in X direction",vtkImagePlaneWidget*,"");
BBTK_OUTPUT(ImagePlanes,PlaneY,"The image plane in Y direction",vtkImagePlaneWidget*,"");
BBTK_OUTPUT(ImagePlanes,PlaneZ,"The image plane in Z direction",vtkImagePlaneWidget*,"");
- BBTK_OUTPUT(ImagePlanes,ImageX,"The image in X direction",vtkImageData*,"");
- BBTK_OUTPUT(ImagePlanes,ImageY,"The image in Y direction",vtkImageData*,"");
- BBTK_OUTPUT(ImagePlanes,ImageZ,"The image in Z direction",vtkImageData*,"");
+ BBTK_OUTPUT(ImagePlanes,ImageX,"The image in X direction", vtkImageData*, "");
+ BBTK_OUTPUT(ImagePlanes,ImageY,"The image in Y direction", vtkImageData*, "");
+ BBTK_OUTPUT(ImagePlanes,ImageZ,"The image in Z direction", vtkImageData*, "");
BBTK_END_DESCRIBE_BLACK_BOX(ImagePlanes);
//=================================================================
-
-
-
}//namespace bbvtk
/*
namespace bbvtk
{
- typedef vtkImageData* vtkImageDataPointer;
+ typedef vtkImageData* vtkImageDataPointer;
}
*/
- typedef vtkImageData* vtkImageDataPointer;
+typedef vtkImageData* vtkImageDataPointer;
namespace bbtk
{
- BBTK_DEFINE_HUMAN_READABLE_TYPE_NAME(vtkImageDataPointer,
- "vtkImageDataPointer");
+ BBTK_DEFINE_HUMAN_READABLE_TYPE_NAME(vtkImageDataPointer, "vtkImageDataPointer");
}