#include <bbvtkMIPCreator.h>
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 |
Definition at line 69 of file bbvtkMIPCreator.h.
| 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] |
| void bbvtk::MIPCreator::bbUserDestructor | ( | ) | [protected, virtual] |
| 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 }
vtkImageShiftScale* bbvtk::MIPCreator::mCast [private] |
Definition at line 87 of file bbvtkMIPCreator.h.
Referenced by bbUserDestructor(), Init(), and Process().
vtkVolumeRayCastMIPFunction* bbvtk::MIPCreator::mMIP [private] |
vtkVolumeRayCastMapper* bbvtk::MIPCreator::mMapper [private] |
Definition at line 89 of file bbvtkMIPCreator.h.
Referenced by bbUserDestructor(), Init(), and Process().
vtkVolume* bbvtk::MIPCreator::mVolume [private] |
1.5.6