32 #ifndef vtkImageImport_h 33 #define vtkImageImport_h 35 #include "vtkIOImageModule.h" 59 void SetImportVoidPointer(
void *ptr);
70 void SetImportVoidPointer(
void *ptr,
int save);
86 vtkGetMacro(DataScalarType,
int);
88 return vtkImageScalarTypeNameMacro(this->DataScalarType); }
97 vtkGetMacro(NumberOfScalarComponents,
int);
107 vtkSetVector6Macro(DataExtent,
int);
108 vtkGetVector6Macro(DataExtent,
int);
110 {this->SetDataExtent(this->GetWholeExtent());}
118 vtkSetVector3Macro(DataSpacing,
double);
119 vtkGetVector3Macro(DataSpacing,
double);
127 vtkSetVector3Macro(DataOrigin,
double);
128 vtkGetVector3Macro(DataOrigin,
double);
137 vtkSetVector6Macro(WholeExtent,
int);
138 vtkGetVector6Macro(WholeExtent,
int);
154 int requestFromOutputPort,
162 vtkSetStringMacro(ScalarArrayName);
171 typedef void (*UpdateInformationCallbackType)(
void*);
172 typedef int (*PipelineModifiedCallbackType)(
void*);
173 typedef int* (*WholeExtentCallbackType)(
void*);
174 typedef double* (*SpacingCallbackType)(
void*);
175 typedef double* (*OriginCallbackType)(
void*);
176 typedef const char* (*ScalarTypeCallbackType)(
void*);
177 typedef int (*NumberOfComponentsCallbackType)(
void*);
178 typedef void (*PropagateUpdateExtentCallbackType)(
void*,
int*);
179 typedef void (*UpdateDataCallbackType)(
void*);
180 typedef int* (*DataExtentCallbackType)(
void*);
181 typedef void* (*BufferPointerCallbackType)(
void*);
190 vtkSetMacro(UpdateInformationCallback, UpdateInformationCallbackType);
191 vtkGetMacro(UpdateInformationCallback, UpdateInformationCallbackType);
201 vtkSetMacro(PipelineModifiedCallback, PipelineModifiedCallbackType);
202 vtkGetMacro(PipelineModifiedCallback, PipelineModifiedCallbackType);
212 vtkSetMacro(WholeExtentCallback, WholeExtentCallbackType);
213 vtkGetMacro(WholeExtentCallback, WholeExtentCallbackType);
223 vtkGetMacro(SpacingCallback, SpacingCallbackType);
233 vtkGetMacro(OriginCallback, OriginCallbackType);
242 vtkSetMacro(ScalarTypeCallback, ScalarTypeCallbackType);
243 vtkGetMacro(ScalarTypeCallback, ScalarTypeCallbackType);
252 vtkSetMacro(NumberOfComponentsCallback, NumberOfComponentsCallbackType);
253 vtkGetMacro(NumberOfComponentsCallback, NumberOfComponentsCallbackType);
264 vtkSetMacro(PropagateUpdateExtentCallback,PropagateUpdateExtentCallbackType);
265 vtkGetMacro(PropagateUpdateExtentCallback,PropagateUpdateExtentCallbackType);
274 vtkSetMacro(UpdateDataCallback, UpdateDataCallbackType);
275 vtkGetMacro(UpdateDataCallback, UpdateDataCallbackType);
286 vtkSetMacro(DataExtentCallback, DataExtentCallbackType);
287 vtkGetMacro(DataExtentCallback, DataExtentCallbackType);
297 vtkSetMacro(BufferPointerCallback, BufferPointerCallbackType);
298 vtkGetMacro(BufferPointerCallback, BufferPointerCallbackType);
307 vtkGetMacro(CallbackUserData,
void*);
314 int InvokePipelineModifiedCallbacks();
315 void InvokeUpdateInformationCallbacks();
316 void InvokeExecuteInformationCallbacks();
317 void InvokeExecuteDataCallbacks();
318 void LegacyCheckWholeExtent();
326 vtkInformationVector *) VTK_OVERRIDE;
329 void *ImportVoidPointer;
332 int NumberOfScalarComponents;
337 double DataSpacing[3];
338 double DataOrigin[3];
340 char *ScalarArrayName;
341 void* CallbackUserData;
343 UpdateInformationCallbackType UpdateInformationCallback;
344 PipelineModifiedCallbackType PipelineModifiedCallback;
345 WholeExtentCallbackType WholeExtentCallback;
346 SpacingCallbackType SpacingCallback;
347 OriginCallbackType OriginCallback;
348 ScalarTypeCallbackType ScalarTypeCallback;
349 NumberOfComponentsCallbackType NumberOfComponentsCallback;
350 PropagateUpdateExtentCallbackType PropagateUpdateExtentCallback;
351 UpdateDataCallbackType UpdateDataCallback;
352 DataExtentCallbackType DataExtentCallback;
353 BufferPointerCallbackType BufferPointerCallback;
355 void ExecuteDataWithInformation(
vtkDataObject *d, vtkInformation* outInfo) VTK_OVERRIDE;
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
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...
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.
a simple class to control print indentation
void SetDataScalarTypeToUnsignedChar()
Set/Get the data type of pixels in the imported data.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
void SetDataScalarTypeToUnsignedShort()
Set/Get the data type of pixels in the imported data.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void save(Archiver &ar, const vtkUnicodeString &str, const unsigned int vtkNotUsed(version))
#define VTK_UNSIGNED_CHAR
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.
general representation of visualization data