18 #ifndef itkVTKImageImport_h
19 #define itkVTKImageImport_h
24 #define itkSetMacro2(name, type) \
25 virtual void Set##name (type _arg) \
27 itkDebugMacro("setting " #name " to " << _arg); \
28 if ( this->m_##name != _arg ) \
30 this->m_##name = _arg; \
55 template<
typename TOutputImage >
81 static constexpr
unsigned int OutputImageDimension = OutputImageType::ImageDimension;
124 { this->SetFloatSpacingCallback(f); }
128 itkSetMacro(OriginCallback, OriginCallbackType);
129 itkGetConstMacro(OriginCallback, OriginCallbackType);
130 itkSetMacro(FloatOriginCallback, FloatOriginCallbackType);
131 itkGetConstMacro(FloatOriginCallback, FloatOriginCallbackType);
133 { this->SetFloatOriginCallback(f); }
137 itkSetMacro(ScalarTypeCallback, ScalarTypeCallbackType);
138 itkGetConstMacro(ScalarTypeCallback, ScalarTypeCallbackType);
142 itkSetMacro(NumberOfComponentsCallback, NumberOfComponentsCallbackType);
143 itkGetConstMacro(NumberOfComponentsCallback, NumberOfComponentsCallbackType);
147 itkSetMacro(PropagateUpdateExtentCallback, PropagateUpdateExtentCallbackType);
148 itkGetConstMacro(PropagateUpdateExtentCallback, PropagateUpdateExtentCallbackType);
152 itkSetMacro(UpdateDataCallback, UpdateDataCallbackType);
153 itkGetConstMacro(UpdateDataCallback, UpdateDataCallbackType);
157 itkSetMacro(DataExtentCallback, DataExtentCallbackType);
158 itkGetConstMacro(DataExtentCallback, DataExtentCallbackType);
162 itkSetMacro(BufferPointerCallback, BufferPointerCallbackType);
163 itkGetConstMacro(BufferPointerCallback, BufferPointerCallbackType);
168 itkGetConstMacro(CallbackUserData,
void *);
174 void PrintSelf(std::ostream & os,
Indent indent)
const override;
176 void PropagateRequestedRegion(
DataObject *)
override;
178 void UpdateOutputInformation()
override;
180 void GenerateData()
override;
182 void GenerateOutputInformation()
override;
204 #ifndef ITK_MANUAL_INSTANTIATION
205 #include "itkVTKImageImport.hxx"
208 #endif // itkVTKImageImport_h
int(*)(void *) NumberOfComponentsCallbackType
typename OutputImageType::Pointer OutputImagePointer
PipelineModifiedCallbackType m_PipelineModifiedCallback
void(*)(void *) UpdateInformationCallbackType
void * m_CallbackUserData
UpdateInformationCallbackType m_UpdateInformationCallback
typename OutputImageType::IndexType OutputIndexType
BufferPointerCallbackType m_BufferPointerCallback
Connect the end of an VTK pipeline to an ITK image pipeline.
NumberOfComponentsCallbackType m_NumberOfComponentsCallback
PropagateUpdateExtentCallbackType m_PropagateUpdateExtentCallback
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
FloatSpacingCallbackType m_FloatSpacingCallback
DataExtentCallbackType m_DataExtentCallback
const char *(*)(void *) ScalarTypeCallbackType
Base class for all process objects that output image data.
#define itkSetMacro2(name, type)
void *(*)(void *) BufferPointerCallbackType
std::string m_ScalarTypeName
void SetOriginCallback(FloatOriginCallbackType f)
void(*)(void *, int *) PropagateUpdateExtentCallbackType
int *(*)(void *) WholeExtentCallbackType
typename OutputImageType::SizeType OutputSizeType
SpacingCallbackType m_SpacingCallback
ImageBaseType::SizeType SizeType
ImageBaseType::IndexType IndexType
TOutputImage OutputImageType
double *(*)(void *) OriginCallbackType
float *(*)(void *) FloatOriginCallbackType
int(*)(void *) PipelineModifiedCallbackType
double *(*)(void *) SpacingCallbackType
FloatOriginCallbackType m_FloatOriginCallback
typename OutputImageType::RegionType OutputRegionType
UpdateDataCallbackType m_UpdateDataCallback
Control indentation during Print() invocation.
WholeExtentCallbackType m_WholeExtentCallback
void SetSpacingCallback(FloatSpacingCallbackType f)
~VTKImageImport() override
OriginCallbackType m_OriginCallback
float *(*)(void *) FloatSpacingCallbackType
ScalarTypeCallbackType m_ScalarTypeCallback
ImageBaseType::RegionType RegionType
typename OutputImageType::PixelType OutputPixelType
int *(*)(void *) DataExtentCallbackType
void(*)(void *) UpdateDataCallbackType
Base class for all data objects in ITK.