32 #ifndef vtkImageImport_h 33 #define vtkImageImport_h 35 #include "vtkIOImageModule.h" 59 void SetImportVoidPointer(
void *ptr);
70 void SetImportVoidPointer(
void *ptr,
int save);
77 vtkSetMacro(DataScalarType,
int);
86 vtkGetMacro(DataScalarType,
int);
88 return vtkImageScalarTypeNameMacro(this->DataScalarType); }
96 vtkSetMacro(NumberOfScalarComponents,
int);
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);
163 vtkGetStringMacro(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);
222 vtkSetMacro(SpacingCallback, SpacingCallbackType);
223 vtkGetMacro(SpacingCallback, SpacingCallbackType);
232 vtkSetMacro(OriginCallback, OriginCallbackType);
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);
306 vtkSetMacro(CallbackUserData,
void*);
307 vtkGetMacro(CallbackUserData,
void*);
314 int InvokePipelineModifiedCallbacks();
315 void InvokeUpdateInformationCallbacks();
316 void InvokeExecuteInformationCallbacks();
317 void InvokeExecuteDataCallbacks();
318 void LegacyCheckWholeExtent();
337 double DataSpacing[3];
338 double DataOrigin[3];
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
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 SetDataScalarTypeToUnsignedShort()
Set/Get the data type of pixels in the imported data.
void save(Archiver &ar, const vtkUnicodeString &str, const unsigned int vtkNotUsed(version))
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