Program: bbtk
Module: $RCSfile: bbvtkImagePlanes.cxx,v $
Language: C++
- Date: $Date: 2009/04/30 14:31:33 $
- Version: $Revision: 1.23 $
+ Date: $Date: 2009/06/09 08:41:53 $
+ Version: $Revision: 1.26 $
=========================================================================*/
/* ---------------------------------------------------------------------
};
//================================================================
- //vtkCxxRevisionMacro(ImagePlanes::VtkCallbackType, "$Revision: 1.23 $");
+ //vtkCxxRevisionMacro(ImagePlanes::VtkCallbackType, "$Revision: 1.26 $");
//================================================================
BBTK_ADD_BLACK_BOX_TO_PACKAGE(vtk,ImagePlanes)
BBTK_BLACK_BOX_IMPLEMENTATION(ImagePlanes,bbtk::AtomicBlackBox);
- void ImagePlanes::bbUserConstructor()
+
+
+ void ImagePlanes::bbUserSetDefaultValues()
{
bbSetOutputPlaneX(0);
bbSetOutputPlaneY(0);
mVtkCallback = 0;
}
- void ImagePlanes::bbUserCopyConstructor(bbtk::BlackBox::Pointer)
- {
- bbSetOutputPlaneX(0);
- bbSetOutputPlaneY(0);
- bbSetOutputPlaneZ(0);
- bbSetOutputImageX(0);
- bbSetOutputImageY(0);
- bbSetOutputImageZ(0);
- mVtkCallback = 0;
- }
- void ImagePlanes::Init()
+
+ void ImagePlanes::bbUserInitializeProcessing()
{
/// CREATION DES WIDGETS
}
//---------------------------------------------------------------------
- void ImagePlanes::bbUserDestructor()
+ void ImagePlanes::bbUserFinalizeProcessing()
{
+
if (bbGetOutputPlaneX())
{
- bbGetOutputPlaneX()->SetInput(NULL);
- // if (mVtkCallback) bbGetOutputPlaneX()->RemoveObserver(mVtkCallback);
+
+ /*
+
+ bbGetOutputPlaneX()->RemoveObserver(mVtkCallback);
+ bbGetOutputPlaneY()->RemoveObserver(mVtkCallback);
+ bbGetOutputPlaneZ()->RemoveObserver(mVtkCallback);
+
+
bbGetOutputPlaneX()->Delete();
- }
- if (bbGetOutputPlaneY())
- {
- bbGetOutputPlaneY()->SetInput(NULL);
- // if (mVtkCallback) bbGetOutputPlaneY()->RemoveObserver(mVtkCallback);
bbGetOutputPlaneY()->Delete();
- }
- if (bbGetOutputPlaneZ())
- {
- bbGetOutputPlaneZ()->SetInput(NULL);
- // if (mVtkCallback) bbGetOutputPlaneZ()->RemoveObserver(mVtkCallback);
bbGetOutputPlaneZ()->Delete();
+ mVtkCallback->Delete();
+ */
+ //bbGetOutputPlaneX()->SetInput(NULL);
+ //bbGetOutputPlaneY()->SetInput(NULL);
+ //bbGetOutputPlaneZ()->SetInput(NULL);
+
}
- if (mVtkCallback)
- {
- // mVtkCallback->Delete();
- }
+
}
//---------------------------------------------------------------------
{
if (bbGetInputIn()!=0)
{
- // Create the widgets if not already done
- Init();
if ( bbGetInputStatus("In") != bbtk::UPTODATE )
{
bbGetOutputPlaneX()->SetInput(bbGetInputIn());
bbGetOutputPlaneX()->SetPlaneOrientationToXAxes();
bbGetOutputPlaneX()->SetSlicePosition((xMax+xMin)/2.*xSpacing);
-
+
+
+// bbGetOutputPlaneX()->SetOrigin( 58*xSpacing , 80*ySpacing , 82*zSpacing );
+// bbGetOutputPlaneX()->SetPoint1( 0*xSpacing, 146*ySpacing, 186*zSpacing);
+// bbGetOutputPlaneX()->SetPoint2( 126*xSpacing, 146*ySpacing, 0*zSpacing);
+
+
bbGetOutputPlaneY()->SetInput(bbGetInputIn());
bbGetOutputPlaneY()->SetPlaneOrientationToYAxes();
bbGetOutputPlaneY()->SetSlicePosition((yMax+yMin)/2.*ySpacing);
bbGetOutputPlaneZ()->GetResliceOutput()->Update();
}
}
+
+
+ //-----------------------------------------------------------------
+ void vtkImageDataPointerRelay::bbUserSetDefaultValues()
+ {
+ }
+
+ //-----------------------------------------------------------------
+ void vtkImageDataPointerRelay::bbUserInitializeProcessing()
+ {
+ }
+
+ //-----------------------------------------------------------------
+ void vtkImageDataPointerRelay::bbUserFinalizeProcessing()
+ {
+ }
+
+
+
}//namespace bbtk
#endif // _USE_VTK_