/*========================================================================= Program: bbtk Module: $RCSfile: bbvtkMIPCreator.h,v $ Language: C++ Date: $Date: 2008/03/19 13:30:18 $ Version: $Revision: 1.1 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or http://www.creatis.insa-lyon.fr/Public/bbtk/License.html for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notices for more information. =========================================================================*//** * \brief Short description in one line * * Long description which * can span multiple lines */ /** * \file * \brief Pattern for the definition of a new type of Node (header) */ /** * \class bbtk::NodePatern * \brief Pattern for the definition of a new type of Node */ #ifdef _USE_VTK_ #ifndef __bbvtkMIPCreator_h_INCLUDED__ #define __bbvtkMIPCreator_h_INCLUDED__ #include "bbtkAtomicBlackBox.h" #include "vtkImageData.h" #include #include #include #include "vtkProp3D.h" #include "vtkVolume.h" namespace bbvtk { class /*BBTK_EXPORT*/ MIPCreator : public bbtk::AtomicBlackBox { public: BBTK_USER_BLACK_BOX_INTERFACE(MIPCreator,bbtk::AtomicBlackBox); // BBTK_DECLARE_INPUT(Contour,int); 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: virtual void bbUserConstructor(); virtual void bbUserCopyConstructor(); void Init(); private: vtkImageShiftScale* mCast; vtkVolumeRayCastMIPFunction* mMIP; vtkVolumeRayCastMapper* mMapper; vtkVolume* mVolume; }; //================================================================= // UserBlackBox description BBTK_BEGIN_DESCRIBE_BLACK_BOX(MIPCreator,bbtk::AtomicBlackBox); BBTK_NAME("MIPCreator"); BBTK_AUTHOR("laurent.guigues@creatis.insa-lyon.fr"); BBTK_DESCRIPTION("Creates a Maximum Intensity Projection (MIP) view of a 3D image. Creates a vtkProp3D object to insert into a 3D scene (e.g. a Viewer3D)"); BBTK_CATEGORY("3D object creator"); BBTK_INPUT(MIPCreator,Shift,"Gray scale shift",int); BBTK_INPUT(MIPCreator,Scale,"Gray scale scaling",float); BBTK_INPUT(MIPCreator,In,"Input Image",vtkImageData *); BBTK_OUTPUT(MIPCreator,Out,"MIP object to plug into a 3D viewer",vtkProp3D*); BBTK_END_DESCRIBE_BLACK_BOX(MIPCreator); //================================================================= }//namespace bbvtk #endif //__bbtvtkMIPCreator_h__ #endif //_USE_VTK_