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; \
56 template <
typename TOutputImage>
82 static constexpr
unsigned int OutputImageDimension = OutputImageType::ImageDimension;
128 this->SetFloatSpacingCallback(f);
133 itkSetMacro(OriginCallback, OriginCallbackType);
134 itkGetConstMacro(OriginCallback, OriginCallbackType);
135 itkSetMacro(FloatOriginCallback, FloatOriginCallbackType);
136 itkGetConstMacro(FloatOriginCallback, FloatOriginCallbackType);
140 this->SetFloatOriginCallback(f);
145 itkSetMacro(DirectionCallback, DirectionCallbackType);
146 itkGetConstMacro(DirectionCallback, DirectionCallbackType);
150 itkSetMacro(ScalarTypeCallback, ScalarTypeCallbackType);
151 itkGetConstMacro(ScalarTypeCallback, ScalarTypeCallbackType);
155 itkSetMacro(NumberOfComponentsCallback, NumberOfComponentsCallbackType);
156 itkGetConstMacro(NumberOfComponentsCallback, NumberOfComponentsCallbackType);
160 itkSetMacro(PropagateUpdateExtentCallback, PropagateUpdateExtentCallbackType);
161 itkGetConstMacro(PropagateUpdateExtentCallback, PropagateUpdateExtentCallbackType);
165 itkSetMacro(UpdateDataCallback, UpdateDataCallbackType);
166 itkGetConstMacro(UpdateDataCallback, UpdateDataCallbackType);
170 itkSetMacro(DataExtentCallback, DataExtentCallbackType);
171 itkGetConstMacro(DataExtentCallback, DataExtentCallbackType);
175 itkSetMacro(BufferPointerCallback, BufferPointerCallbackType);
176 itkGetConstMacro(BufferPointerCallback, BufferPointerCallbackType);
181 itkGetConstMacro(CallbackUserData,
void *);
188 PrintSelf(std::ostream & os,
Indent indent)
const override;
191 PropagateRequestedRegion(
DataObject *)
override;
194 UpdateOutputInformation()
override;
197 GenerateData()
override;
200 GenerateOutputInformation()
override;
203 void * m_CallbackUserData{
nullptr };
219 std::string m_ScalarTypeName{};
223 #ifndef ITK_MANUAL_INSTANTIATION
224 # include "itkVTKImageImport.hxx"
227 #endif // itkVTKImageImport_h