Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef PLANECUTFILTER_H_HEADER_INCLUDED_C1F48A22
00020 #define PLANECUTFILTER_H_HEADER_INCLUDED_C1F48A22
00021
00022 #include "mitkCommon.h"
00023 #include "MitkExtExports.h"
00024 #include "mitkImageToImageFilter.h"
00025 #include "mitkPlaneGeometry.h"
00026
00027 namespace itk
00028 {
00029 template <class TPixel, unsigned int VImageDimension> class ITK_EXPORT Image;
00030 }
00031
00032 namespace mitk {
00033
00040 class MitkExt_EXPORT PlaneCutFilter : public ImageToImageFilter
00041 {
00042 public:
00043 mitkClassMacro(PlaneCutFilter, ImageToImageFilter);
00044
00046 itkNewMacro(Self);
00047
00048 typedef enum {FILL, FILL_INVERSE} FillMode;
00049
00050
00051
00052 itkSetMacro(BackgroundLevel, float);
00053 itkGetMacro(BackgroundLevel, float);
00054
00055 itkSetMacro(FillMode, FillMode);
00056 itkGetMacro(FillMode, FillMode);
00057
00058 itkSetObjectMacro(Plane, const PlaneGeometry);
00059 itkGetObjectMacro(Plane, const PlaneGeometry);
00060 protected:
00061 float m_BackgroundLevel;
00062 PlaneGeometry::ConstPointer m_Plane;
00063 FillMode m_FillMode;
00064
00065 PlaneCutFilter();
00066 ~PlaneCutFilter();
00067 virtual void GenerateData();
00068
00069 template <typename TPixel, unsigned int VImageDimension>
00070 void _computeIntersection(itk::Image<TPixel, VImageDimension> *itkImage, const PlaneGeometry *plane, const Geometry3D *geometry);
00071 };
00072
00073 }
00074
00075 #endif
00076
00077