Program: bbtk
Module: $RCSfile: bbvtkMIPCreator.cxx,v $
Language: C++
- Date: $Date: 2009/05/15 14:58:01 $
- Version: $Revision: 1.6 $
+ Date: $Date: 2010/04/08 14:37:59 $
+ Version: $Revision: 1.7 $
=========================================================================*/
/* ---------------------------------------------------------------------
* \brief
*/
-
-
#ifdef _USE_VTK_
-
#include "bbvtkMIPCreator.h"
#include "bbvtkPackage.h"
namespace bbvtk
{
-
-
BBTK_ADD_BLACK_BOX_TO_PACKAGE(vtk,MIPCreator)
BBTK_BLACK_BOX_IMPLEMENTATION(MIPCreator,bbtk::AtomicBlackBox);
-
-
-
-
-
+
//---------------------------------------------------------------------
void MIPCreator::bbUserSetDefaultValues()
{
mMapper = NULL;
mVolume = NULL;
}
-
//---------------------------------------------------------------------
void MIPCreator::bbUserInitializeProcessing()
- {
-
+ {
// Create the pipeline
mCast = vtkImageShiftScale::New();
mCast->SetOutputScalarTypeToUnsignedChar();
mVolume->SetMapper(mMapper);
// mMapper->ScalarVisibilityOff();
- // mMapper->ImmediateModeRenderingOn();
+ // mMapper->ImmediateModeRenderingOn();
bbSetOutputOut(mVolume);
}
- //---------------------------------------------------------------------
+//---------------------------------------------------------------------
void MIPCreator::bbUserFinalizeProcessing()
{
if (mCast!=NULL)
mVolume->Delete();
mVolume=NULL;
}
-
-
}
//---------------------------------------------------------------------