bbvtk::MIPCreator Class Reference

#include <bbvtkMIPCreator.h>

List of all members.

Public Member Functions

 BBTK_BLACK_BOX_INTERFACE (MIPCreator, bbtk::AtomicBlackBox)
 BBTK_DECLARE_INPUT (In, vtkImageData *)
 BBTK_DECLARE_INPUT (Shift, int)
 BBTK_DECLARE_INPUT (Scale, float)
 BBTK_DECLARE_OUTPUT (Out, vtkProp3D *)
 BBTK_PROCESS (Process)
void Process ()

Protected Member Functions

virtual void bbUserConstructor ()
virtual void bbUserCopyConstructor ()
virtual void bbUserDestructor ()
void Init ()

Private Attributes

vtkImageShiftScale * mCast
vtkVolumeRayCastMIPFunction * mMIP
vtkVolumeRayCastMapper * mMapper
vtkVolume * mVolume


Detailed Description

Definition at line 69 of file bbvtkMIPCreator.h.


Member Function Documentation

bbvtk::MIPCreator::BBTK_BLACK_BOX_INTERFACE ( MIPCreator  ,
bbtk::AtomicBlackBox   
)

bbvtk::MIPCreator::BBTK_DECLARE_INPUT ( In  ,
vtkImageData *   
)

bbvtk::MIPCreator::BBTK_DECLARE_INPUT ( Shift  ,
int   
)

bbvtk::MIPCreator::BBTK_DECLARE_INPUT ( Scale  ,
float   
)

bbvtk::MIPCreator::BBTK_DECLARE_OUTPUT ( Out  ,
vtkProp3D *   
)

bbvtk::MIPCreator::BBTK_PROCESS ( Process   ) 

void bbvtk::MIPCreator::Process (  ) 

Definition at line 100 of file bbvtkMIPCreator.cxx.

References mCast, and mMapper.

00101    {
00102      mCast->SetInput( bbGetInputIn() );
00103      mCast->SetScale( bbGetInputScale() / 100. );
00104      mCast->SetShift( -bbGetInputShift() );
00105 
00106      mMapper->Update();
00107      
00108      //     mVolume->GetProperty()->SetColor( bbGetInputColour()[0],  bbGetInputColour()[1], bbGetInputColour()[2] );
00109      //     mVolume->GetProperty()->SetOpacity( bbGetInputOpacity() );
00110      
00111    }

void bbvtk::MIPCreator::bbUserConstructor (  )  [protected, virtual]

Definition at line 55 of file bbvtkMIPCreator.cxx.

00056    { 
00057      Init();
00058      bbSetInputShift(0);
00059      bbSetInputScale(1.);
00060    }

void bbvtk::MIPCreator::bbUserCopyConstructor (  )  [protected, virtual]

Definition at line 61 of file bbvtkMIPCreator.cxx.

References Init().

00062    { 
00063      Init();
00064    }

void bbvtk::MIPCreator::bbUserDestructor (  )  [protected, virtual]

Definition at line 90 of file bbvtkMIPCreator.cxx.

References mCast, mMapper, mMIP, and mVolume.

00091    { 
00092      mCast->Delete();
00093      mMIP->Delete();
00094      mMapper->Delete();
00095      mVolume->Delete();
00096 
00097    }

void bbvtk::MIPCreator::Init (  )  [protected]

Definition at line 66 of file bbvtkMIPCreator.cxx.

References mCast, mMapper, mMIP, and mVolume.

Referenced by bbUserCopyConstructor().

00067    { 
00068 
00069     // Create the pipeline
00070     mCast = vtkImageShiftScale::New();
00071     mCast->SetOutputScalarTypeToUnsignedChar();
00072     mCast->ClampOverflowOn();
00073     
00074     mMIP = vtkVolumeRayCastMIPFunction::New();
00075     mMIP->SetMaximizeMethodToScalarValue();
00076     
00077     mMapper = vtkVolumeRayCastMapper::New();
00078     mMapper->SetVolumeRayCastFunction(mMIP);
00079     mMapper->SetInput(mCast->GetOutput()); // (smoother.GetOutput())
00080     
00081     mVolume = vtkVolume::New();
00082     mVolume->SetMapper(mMapper);
00083 
00084     //  mMapper->ScalarVisibilityOff();
00085     //    mMapper->ImmediateModeRenderingOn();
00086 
00087     bbSetOutputOut(mVolume);
00088 }


Member Data Documentation

vtkImageShiftScale* bbvtk::MIPCreator::mCast [private]

Definition at line 87 of file bbvtkMIPCreator.h.

Referenced by bbUserDestructor(), Init(), and Process().

vtkVolumeRayCastMIPFunction* bbvtk::MIPCreator::mMIP [private]

Definition at line 88 of file bbvtkMIPCreator.h.

Referenced by bbUserDestructor(), and Init().

vtkVolumeRayCastMapper* bbvtk::MIPCreator::mMapper [private]

Definition at line 89 of file bbvtkMIPCreator.h.

Referenced by bbUserDestructor(), Init(), and Process().

vtkVolume* bbvtk::MIPCreator::mVolume [private]

Definition at line 90 of file bbvtkMIPCreator.h.

Referenced by bbUserDestructor(), and Init().


The documentation for this class was generated from the following files:

Generated on Tue Oct 21 16:06:58 2008 for vtk by  doxygen 1.5.6