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 >
79 itkStaticConstMacro(OutputImageDimension,
unsigned int,
80 OutputImageType::ImageDimension);
84 typedef void ( * UpdateInformationCallbackType )(
void *);
85 typedef int ( * PipelineModifiedCallbackType )(
void *);
86 typedef int * ( * WholeExtentCallbackType )(
void *);
87 typedef double * ( * SpacingCallbackType )(
void *);
88 typedef double * ( * OriginCallbackType )(
void *);
89 typedef const char * ( *ScalarTypeCallbackType )(
void *);
90 typedef int ( * NumberOfComponentsCallbackType )(
void *);
91 typedef void ( * PropagateUpdateExtentCallbackType )(
void *,
int *);
92 typedef void ( * UpdateDataCallbackType )(
void *);
93 typedef int * ( * DataExtentCallbackType )(
void *);
94 typedef void * ( * BufferPointerCallbackType )(
void *);
98 typedef float * ( *FloatSpacingCallbackType )(
void *);
99 typedef float * ( *FloatOriginCallbackType )(
void *);
103 itkSetMacro(UpdateInformationCallback, UpdateInformationCallbackType);
104 itkGetConstMacro(UpdateInformationCallback, UpdateInformationCallbackType);
108 itkSetMacro(PipelineModifiedCallback, PipelineModifiedCallbackType);
109 itkGetConstMacro(PipelineModifiedCallback, PipelineModifiedCallbackType);
113 itkSetMacro(WholeExtentCallback, WholeExtentCallbackType);
114 itkGetConstMacro(WholeExtentCallback, WholeExtentCallbackType);
118 itkSetMacro(SpacingCallback, SpacingCallbackType);
119 itkGetConstMacro(SpacingCallback, SpacingCallbackType);
120 itkSetMacro(FloatSpacingCallback, FloatSpacingCallbackType);
121 itkGetConstMacro(FloatSpacingCallback, FloatSpacingCallbackType);
122 void SetSpacingCallback(FloatSpacingCallbackType f)
123 { this->SetFloatSpacingCallback(f); }
127 itkSetMacro(OriginCallback, OriginCallbackType);
128 itkGetConstMacro(OriginCallback, OriginCallbackType);
129 itkSetMacro(FloatOriginCallback, FloatOriginCallbackType);
130 itkGetConstMacro(FloatOriginCallback, FloatOriginCallbackType);
131 void SetOriginCallback(FloatOriginCallbackType f)
132 { this->SetFloatOriginCallback(f); }
136 itkSetMacro(ScalarTypeCallback, ScalarTypeCallbackType);
137 itkGetConstMacro(ScalarTypeCallback, ScalarTypeCallbackType);
141 itkSetMacro(NumberOfComponentsCallback, NumberOfComponentsCallbackType);
142 itkGetConstMacro(NumberOfComponentsCallback, NumberOfComponentsCallbackType);
146 itkSetMacro(PropagateUpdateExtentCallback, PropagateUpdateExtentCallbackType);
147 itkGetConstMacro(PropagateUpdateExtentCallback, PropagateUpdateExtentCallbackType);
151 itkSetMacro(UpdateDataCallback, UpdateDataCallbackType);
152 itkGetConstMacro(UpdateDataCallback, UpdateDataCallbackType);
156 itkSetMacro(DataExtentCallback, DataExtentCallbackType);
157 itkGetConstMacro(DataExtentCallback, DataExtentCallbackType);
161 itkSetMacro(BufferPointerCallback, BufferPointerCallbackType);
162 itkGetConstMacro(BufferPointerCallback, BufferPointerCallbackType);
167 itkGetConstMacro(CallbackUserData,
void *);
173 void PrintSelf(std::ostream & os,
Indent indent)
const;
175 virtual void PropagateRequestedRegion(
DataObject *);
177 virtual void UpdateOutputInformation();
179 virtual void GenerateData();
181 virtual void GenerateOutputInformation();
185 void operator=(
const Self &);
206 #ifndef ITK_MANUAL_INSTANTIATION
207 #include "itkVTKImageImport.hxx"
210 #endif // __itkVTKImageImport_h