35 #ifndef vtkImageImport_h
36 #define vtkImageImport_h
38 #include "vtkIOImageModule.h"
62 void SetImportVoidPointer(
void* ptr);
73 void SetImportVoidPointer(
void* ptr,
int save);
80 vtkSetMacro(DataScalarType,
int);
87 vtkGetMacro(DataScalarType,
int);
90 return vtkImageScalarTypeNameMacro(this->DataScalarType);
99 vtkSetMacro(NumberOfScalarComponents,
int);
100 vtkGetMacro(NumberOfScalarComponents,
int);
110 vtkSetVector6Macro(DataExtent,
int);
111 vtkGetVector6Macro(DataExtent,
int);
120 vtkSetVector3Macro(DataSpacing,
double);
121 vtkGetVector3Macro(DataSpacing,
double);
129 vtkSetVector3Macro(DataOrigin,
double);
130 vtkGetVector3Macro(DataOrigin,
double);
139 vtkSetVectorMacro(DataDirection,
double, 9);
140 vtkGetVectorMacro(DataDirection,
double, 9);
149 vtkSetVector6Macro(WholeExtent,
int);
150 vtkGetVector6Macro(WholeExtent,
int);
169 vtkSetStringMacro(ScalarArrayName);
170 vtkGetStringMacro(ScalarArrayName);
178 typedef void (*UpdateInformationCallbackType)(
void*);
179 typedef int (*PipelineModifiedCallbackType)(
void*);
180 typedef int* (*WholeExtentCallbackType)(
void*);
181 typedef double* (*SpacingCallbackType)(
void*);
182 typedef double* (*OriginCallbackType)(
void*);
183 typedef double* (*DirectionCallbackType)(
void*);
184 typedef const char* (*ScalarTypeCallbackType)(
void*);
185 typedef int (*NumberOfComponentsCallbackType)(
void*);
186 typedef void (*PropagateUpdateExtentCallbackType)(
void*,
int*);
187 typedef void (*UpdateDataCallbackType)(
void*);
188 typedef int* (*DataExtentCallbackType)(
void*);
189 typedef void* (*BufferPointerCallbackType)(
void*);
198 vtkSetMacro(UpdateInformationCallback, UpdateInformationCallbackType);
199 vtkGetMacro(UpdateInformationCallback, UpdateInformationCallbackType);
209 vtkSetMacro(PipelineModifiedCallback, PipelineModifiedCallbackType);
210 vtkGetMacro(PipelineModifiedCallback, PipelineModifiedCallbackType);
220 vtkSetMacro(WholeExtentCallback, WholeExtentCallbackType);
221 vtkGetMacro(WholeExtentCallback, WholeExtentCallbackType);
230 vtkSetMacro(SpacingCallback, SpacingCallbackType);
231 vtkGetMacro(SpacingCallback, SpacingCallbackType);
240 vtkSetMacro(OriginCallback, OriginCallbackType);
241 vtkGetMacro(OriginCallback, OriginCallbackType);
250 vtkSetMacro(DirectionCallback, DirectionCallbackType);
251 vtkGetMacro(DirectionCallback, DirectionCallbackType);
260 vtkSetMacro(ScalarTypeCallback, ScalarTypeCallbackType);
261 vtkGetMacro(ScalarTypeCallback, ScalarTypeCallbackType);
270 vtkSetMacro(NumberOfComponentsCallback, NumberOfComponentsCallbackType);
271 vtkGetMacro(NumberOfComponentsCallback, NumberOfComponentsCallbackType);
282 vtkSetMacro(PropagateUpdateExtentCallback, PropagateUpdateExtentCallbackType);
283 vtkGetMacro(PropagateUpdateExtentCallback, PropagateUpdateExtentCallbackType);
292 vtkSetMacro(UpdateDataCallback, UpdateDataCallbackType);
293 vtkGetMacro(UpdateDataCallback, UpdateDataCallbackType);
304 vtkSetMacro(DataExtentCallback, DataExtentCallbackType);
305 vtkGetMacro(DataExtentCallback, DataExtentCallbackType);
315 vtkSetMacro(BufferPointerCallback, BufferPointerCallbackType);
316 vtkGetMacro(BufferPointerCallback, BufferPointerCallbackType);
324 vtkSetMacro(CallbackUserData,
void*);
325 vtkGetMacro(CallbackUserData,
void*);
332 int InvokePipelineModifiedCallbacks();
333 void InvokeUpdateInformationCallbacks();
334 void InvokeExecuteInformationCallbacks();
335 void InvokeExecuteDataCallbacks();
336 void LegacyCheckWholeExtent();
353 double DataSpacing[3];
354 double DataOrigin[3];
355 double DataDirection[9];
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