23 #ifndef vtkImageImport_h
24 #define vtkImageImport_h
26 #include "vtkIOImageModule.h"
29 VTK_ABI_NAMESPACE_BEGIN
51 void SetImportVoidPointer(
void* ptr);
62 void SetImportVoidPointer(
void* ptr,
int save);
69 vtkSetMacro(DataScalarType,
int);
76 vtkGetMacro(DataScalarType,
int);
79 return vtkImageScalarTypeNameMacro(this->DataScalarType);
88 vtkSetMacro(NumberOfScalarComponents,
int);
89 vtkGetMacro(NumberOfScalarComponents,
int);
99 vtkSetVector6Macro(DataExtent,
int);
100 vtkGetVector6Macro(DataExtent,
int);
109 vtkSetVector3Macro(DataSpacing,
double);
110 vtkGetVector3Macro(DataSpacing,
double);
118 vtkSetVector3Macro(DataOrigin,
double);
119 vtkGetVector3Macro(DataOrigin,
double);
128 vtkSetVectorMacro(DataDirection,
double, 9);
129 vtkGetVectorMacro(DataDirection,
double, 9);
138 vtkSetVector6Macro(WholeExtent,
int);
139 vtkGetVector6Macro(WholeExtent,
int);
158 vtkSetStringMacro(ScalarArrayName);
159 vtkGetStringMacro(ScalarArrayName);
167 typedef void (*UpdateInformationCallbackType)(
void*);
168 typedef int (*PipelineModifiedCallbackType)(
void*);
169 typedef int* (*WholeExtentCallbackType)(
void*);
170 typedef double* (*SpacingCallbackType)(
void*);
171 typedef double* (*OriginCallbackType)(
void*);
172 typedef double* (*DirectionCallbackType)(
void*);
173 typedef const char* (*ScalarTypeCallbackType)(
void*);
174 typedef int (*NumberOfComponentsCallbackType)(
void*);
175 typedef void (*PropagateUpdateExtentCallbackType)(
void*,
int*);
176 typedef void (*UpdateDataCallbackType)(
void*);
177 typedef int* (*DataExtentCallbackType)(
void*);
178 typedef void* (*BufferPointerCallbackType)(
void*);
187 vtkSetMacro(UpdateInformationCallback, UpdateInformationCallbackType);
188 vtkGetMacro(UpdateInformationCallback, UpdateInformationCallbackType);
198 vtkSetMacro(PipelineModifiedCallback, PipelineModifiedCallbackType);
199 vtkGetMacro(PipelineModifiedCallback, PipelineModifiedCallbackType);
209 vtkSetMacro(WholeExtentCallback, WholeExtentCallbackType);
210 vtkGetMacro(WholeExtentCallback, WholeExtentCallbackType);
219 vtkSetMacro(SpacingCallback, SpacingCallbackType);
220 vtkGetMacro(SpacingCallback, SpacingCallbackType);
229 vtkSetMacro(OriginCallback, OriginCallbackType);
230 vtkGetMacro(OriginCallback, OriginCallbackType);
239 vtkSetMacro(DirectionCallback, DirectionCallbackType);
240 vtkGetMacro(DirectionCallback, DirectionCallbackType);
249 vtkSetMacro(ScalarTypeCallback, ScalarTypeCallbackType);
250 vtkGetMacro(ScalarTypeCallback, ScalarTypeCallbackType);
259 vtkSetMacro(NumberOfComponentsCallback, NumberOfComponentsCallbackType);
260 vtkGetMacro(NumberOfComponentsCallback, NumberOfComponentsCallbackType);
271 vtkSetMacro(PropagateUpdateExtentCallback, PropagateUpdateExtentCallbackType);
272 vtkGetMacro(PropagateUpdateExtentCallback, PropagateUpdateExtentCallbackType);
281 vtkSetMacro(UpdateDataCallback, UpdateDataCallbackType);
282 vtkGetMacro(UpdateDataCallback, UpdateDataCallbackType);
293 vtkSetMacro(DataExtentCallback, DataExtentCallbackType);
294 vtkGetMacro(DataExtentCallback, DataExtentCallbackType);
304 vtkSetMacro(BufferPointerCallback, BufferPointerCallbackType);
305 vtkGetMacro(BufferPointerCallback, BufferPointerCallbackType);
313 vtkSetMacro(CallbackUserData,
void*);
314 vtkGetMacro(CallbackUserData,
void*);
321 int InvokePipelineModifiedCallbacks();
322 void InvokeUpdateInformationCallbacks();
323 void InvokeExecuteInformationCallbacks();
324 void InvokeExecuteDataCallbacks();
325 void LegacyCheckWholeExtent();
342 double DataSpacing[3];
343 double DataOrigin[3];
344 double DataDirection[9];
369 VTK_ABI_NAMESPACE_END
void SetDataScalarTypeToDouble()
Set/Get the data type of pixels in the imported data.
void SetDataScalarTypeToShort()
Set/Get the data type of pixels in the imported data.
const char * GetDataScalarTypeAsString()
Set/Get the data type of pixels in the imported data.
void * GetImportVoidPointer()
Set the pointer from which the image data is imported.
vtkTypeUInt32 vtkMTimeType
#define VTK_UNSIGNED_SHORT
WholeExtentCallbackType WholeExtentCallback
DirectionCallbackType DirectionCallback
virtual int ComputePipelineMTime(vtkInformation *request, vtkInformationVector **inInfoVec, vtkInformationVector *outInfoVec, int requestFromOutputPort, vtkMTimeType *mtime)
A special version of ProcessRequest meant specifically for the pipeline modified time request...
virtual void ExecuteDataWithInformation(vtkDataObject *output, vtkInformation *outInfo)
This is a convenience method that is implemented in many subclasses instead of RequestData.
BufferPointerCallbackType BufferPointerCallback
void SetDataScalarTypeToFloat()
Set/Get the data type of pixels in the imported data.
void SetDataExtentToWholeExtent()
Get/Set the extent of the data buffer.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to translate the update extent requests from each output port ...
void SetDataScalarTypeToInt()
Set/Get the data type of pixels in the imported data.
Import data from a C array.
UpdateDataCallbackType UpdateDataCallback
a simple class to control print indentation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
void SetDataScalarTypeToUnsignedChar()
Set/Get the data type of pixels in the imported data.
void save(Archiver &ar, const std::string &str, const unsigned int vtkNotUsed(version))
void SetDataScalarTypeToUnsignedShort()
Set/Get the data type of pixels in the imported data.
PropagateUpdateExtentCallbackType PropagateUpdateExtentCallback
NumberOfComponentsCallbackType NumberOfComponentsCallback
#define VTK_UNSIGNED_CHAR
ScalarTypeCallbackType ScalarTypeCallback
Generic algorithm superclass for image algs.
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int NumberOfScalarComponents
UpdateInformationCallbackType UpdateInformationCallback
OriginCallbackType OriginCallback
general representation of visualization data
PipelineModifiedCallbackType PipelineModifiedCallback
SpacingCallbackType SpacingCallback
DataExtentCallbackType DataExtentCallback