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);
84 vtkGetMacro(DataScalarType,
int);
87 return vtkImageScalarTypeNameMacro(this->DataScalarType);
96 vtkSetMacro(NumberOfScalarComponents,
int);
97 vtkGetMacro(NumberOfScalarComponents,
int);
107 vtkSetVector6Macro(DataExtent,
int);
108 vtkGetVector6Macro(DataExtent,
int);
117 vtkSetVector3Macro(DataSpacing,
double);
118 vtkGetVector3Macro(DataSpacing,
double);
126 vtkSetVector3Macro(DataOrigin,
double);
127 vtkGetVector3Macro(DataOrigin,
double);
136 vtkSetVectorMacro(DataDirection,
double, 9);
137 vtkGetVectorMacro(DataDirection,
double, 9);
146 vtkSetVector6Macro(WholeExtent,
int);
147 vtkGetVector6Macro(WholeExtent,
int);
166 vtkSetStringMacro(ScalarArrayName);
167 vtkGetStringMacro(ScalarArrayName);
175 typedef void (*UpdateInformationCallbackType)(
void*);
176 typedef int (*PipelineModifiedCallbackType)(
void*);
177 typedef int* (*WholeExtentCallbackType)(
void*);
178 typedef double* (*SpacingCallbackType)(
void*);
179 typedef double* (*OriginCallbackType)(
void*);
180 typedef double* (*DirectionCallbackType)(
void*);
181 typedef const char* (*ScalarTypeCallbackType)(
void*);
182 typedef int (*NumberOfComponentsCallbackType)(
void*);
183 typedef void (*PropagateUpdateExtentCallbackType)(
void*,
int*);
184 typedef void (*UpdateDataCallbackType)(
void*);
185 typedef int* (*DataExtentCallbackType)(
void*);
186 typedef void* (*BufferPointerCallbackType)(
void*);
195 vtkSetMacro(UpdateInformationCallback, UpdateInformationCallbackType);
196 vtkGetMacro(UpdateInformationCallback, UpdateInformationCallbackType);
206 vtkSetMacro(PipelineModifiedCallback, PipelineModifiedCallbackType);
207 vtkGetMacro(PipelineModifiedCallback, PipelineModifiedCallbackType);
217 vtkSetMacro(WholeExtentCallback, WholeExtentCallbackType);
218 vtkGetMacro(WholeExtentCallback, WholeExtentCallbackType);
227 vtkSetMacro(SpacingCallback, SpacingCallbackType);
228 vtkGetMacro(SpacingCallback, SpacingCallbackType);
237 vtkSetMacro(OriginCallback, OriginCallbackType);
238 vtkGetMacro(OriginCallback, OriginCallbackType);
247 vtkSetMacro(DirectionCallback, DirectionCallbackType);
248 vtkGetMacro(DirectionCallback, DirectionCallbackType);
257 vtkSetMacro(ScalarTypeCallback, ScalarTypeCallbackType);
258 vtkGetMacro(ScalarTypeCallback, ScalarTypeCallbackType);
267 vtkSetMacro(NumberOfComponentsCallback, NumberOfComponentsCallbackType);
268 vtkGetMacro(NumberOfComponentsCallback, NumberOfComponentsCallbackType);
279 vtkSetMacro(PropagateUpdateExtentCallback, PropagateUpdateExtentCallbackType);
280 vtkGetMacro(PropagateUpdateExtentCallback, PropagateUpdateExtentCallbackType);
289 vtkSetMacro(UpdateDataCallback, UpdateDataCallbackType);
290 vtkGetMacro(UpdateDataCallback, UpdateDataCallbackType);
301 vtkSetMacro(DataExtentCallback, DataExtentCallbackType);
302 vtkGetMacro(DataExtentCallback, DataExtentCallbackType);
312 vtkSetMacro(BufferPointerCallback, BufferPointerCallbackType);
313 vtkGetMacro(BufferPointerCallback, BufferPointerCallbackType);
321 vtkSetMacro(CallbackUserData,
void*);
322 vtkGetMacro(CallbackUserData,
void*);
329 int InvokePipelineModifiedCallbacks();
330 void InvokeUpdateInformationCallbacks();
331 void InvokeExecuteInformationCallbacks();
332 void InvokeExecuteDataCallbacks();
333 void LegacyCheckWholeExtent();
350 double DataSpacing[3];
351 double DataOrigin[3];
352 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 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