1 #ifndef MITKPLANARFIGUREMASKGENERATOR
2 #define MITKPLANARFIGUREMASKGENERATOR
9 #include <vtkSmartPointer.h>
10 #include <itkVTKImageExport.h>
11 #include <itkVTKImageImport.h>
12 #include <vtkImageImport.h>
13 #include <vtkImageExport.h>
50 void SetTimeStep(
unsigned int timeStep);
54 PlanarFigureMaskGenerator():Superclass(){
55 m_InternalMaskUpdateTime = 0;
57 m_ReferenceImage =
nullptr;
64 template <
typename TPixel,
unsigned int VImageDimension >
65 void InternalCalculateMaskFromPlanarFigure(
66 const itk::Image< TPixel, VImageDimension > *image,
unsigned int axis );
74 template <
typename ITK_Exporter,
typename VTK_Importer>
75 void ConnectPipelines(ITK_Exporter exporter, vtkSmartPointer<VTK_Importer> importer)
77 importer->SetUpdateInformationCallback(exporter->GetUpdateInformationCallback());
79 importer->SetPipelineModifiedCallback(exporter->GetPipelineModifiedCallback());
80 importer->SetWholeExtentCallback(exporter->GetWholeExtentCallback());
81 importer->SetSpacingCallback(exporter->GetSpacingCallback());
82 importer->SetOriginCallback(exporter->GetOriginCallback());
83 importer->SetScalarTypeCallback(exporter->GetScalarTypeCallback());
85 importer->SetNumberOfComponentsCallback(exporter->GetNumberOfComponentsCallback());
87 importer->SetPropagateUpdateExtentCallback(exporter->GetPropagateUpdateExtentCallback());
88 importer->SetUpdateDataCallback(exporter->GetUpdateDataCallback());
89 importer->SetDataExtentCallback(exporter->GetDataExtentCallback());
90 importer->SetBufferPointerCallback(exporter->GetBufferPointerCallback());
91 importer->SetCallbackUserData(exporter->GetCallbackUserData());
95 template <
typename VTK_Exporter,
typename ITK_Importer>
96 void ConnectPipelines(vtkSmartPointer<VTK_Exporter> exporter, ITK_Importer importer)
98 importer->SetUpdateInformationCallback(exporter->GetUpdateInformationCallback());
100 importer->SetPipelineModifiedCallback(exporter->GetPipelineModifiedCallback());
101 importer->SetWholeExtentCallback(exporter->GetWholeExtentCallback());
102 importer->SetSpacingCallback(exporter->GetSpacingCallback());
103 importer->SetOriginCallback(exporter->GetOriginCallback());
104 importer->SetScalarTypeCallback(exporter->GetScalarTypeCallback());
106 importer->SetNumberOfComponentsCallback(exporter->GetNumberOfComponentsCallback());
108 importer->SetPropagateUpdateExtentCallback(exporter->GetPropagateUpdateExtentCallback());
109 importer->SetUpdateDataCallback(exporter->GetUpdateDataCallback());
110 importer->SetDataExtentCallback(exporter->GetDataExtentCallback());
111 importer->SetBufferPointerCallback(exporter->GetBufferPointerCallback());
112 importer->SetCallbackUserData(exporter->GetCallbackUserData());
115 bool IsUpdateRequired()
const;
121 unsigned int m_PlanarFigureAxis;
122 unsigned long m_InternalMaskUpdateTime;
126 #endif // MITKPLANARFIGUREMASKGENERATOR
itk::SmartPointer< Self > Pointer
Base Class for all Mask Generators. Mask generators are classes that provide functionality for the cr...
DataCollection - Class to facilitate loading/accessing structured data.
#define MITKIMAGESTATISTICS_EXPORT
Image class for storing images.
BaseGeometry Describes the geometry of a data object.