35 #ifndef vtkImageImport_h
36 #define vtkImageImport_h
38 #include "vtkIOImageModule.h"
89 vtkGetMacro(DataScalarType,
int);
91 return vtkImageScalarTypeNameMacro(this->DataScalarType); }
100 vtkGetMacro(NumberOfScalarComponents,
int);
110 vtkSetVector6Macro(DataExtent,
int);
111 vtkGetVector6Macro(DataExtent,
int);
113 {this->SetDataExtent(this->GetWholeExtent());}
121 vtkSetVector3Macro(DataSpacing,
double);
122 vtkGetVector3Macro(DataSpacing,
double);
130 vtkSetVector3Macro(DataOrigin,
double);
131 vtkGetVector3Macro(DataOrigin,
double);
140 vtkSetVector6Macro(WholeExtent,
int);
141 vtkGetVector6Macro(WholeExtent,
int);
157 int requestFromOutputPort,
165 vtkSetStringMacro(ScalarArrayName);
174 typedef void (*UpdateInformationCallbackType)(
void*);
175 typedef int (*PipelineModifiedCallbackType)(
void*);
176 typedef int* (*WholeExtentCallbackType)(
void*);
177 typedef double* (*SpacingCallbackType)(
void*);
178 typedef double* (*OriginCallbackType)(
void*);
179 typedef const char* (*ScalarTypeCallbackType)(
void*);
180 typedef int (*NumberOfComponentsCallbackType)(
void*);
181 typedef void (*PropagateUpdateExtentCallbackType)(
void*,
int*);
182 typedef void (*UpdateDataCallbackType)(
void*);
183 typedef int* (*DataExtentCallbackType)(
void*);
184 typedef void* (*BufferPointerCallbackType)(
void*);
193 vtkSetMacro(UpdateInformationCallback, UpdateInformationCallbackType);
194 vtkGetMacro(UpdateInformationCallback, UpdateInformationCallbackType);
204 vtkSetMacro(PipelineModifiedCallback, PipelineModifiedCallbackType);
205 vtkGetMacro(PipelineModifiedCallback, PipelineModifiedCallbackType);
216 vtkGetMacro(WholeExtentCallback, WholeExtentCallbackType);
226 vtkGetMacro(SpacingCallback, SpacingCallbackType);
236 vtkGetMacro(OriginCallback, OriginCallbackType);
246 vtkGetMacro(ScalarTypeCallback, ScalarTypeCallbackType);
255 vtkSetMacro(NumberOfComponentsCallback, NumberOfComponentsCallbackType);
256 vtkGetMacro(NumberOfComponentsCallback, NumberOfComponentsCallbackType);
267 vtkSetMacro(PropagateUpdateExtentCallback,PropagateUpdateExtentCallbackType);
268 vtkGetMacro(PropagateUpdateExtentCallback,PropagateUpdateExtentCallbackType);
278 vtkGetMacro(UpdateDataCallback, UpdateDataCallbackType);
290 vtkGetMacro(DataExtentCallback, DataExtentCallbackType);
301 vtkGetMacro(BufferPointerCallback, BufferPointerCallbackType);
310 vtkGetMacro(CallbackUserData,
void*);
340 double DataSpacing[3];
341 double DataOrigin[3];
general representation of visualization data
Generic algorithm superclass for image algs.
Import data from a C array.
void SetDataExtentToWholeExtent()
static vtkImageImport * New()
int NumberOfScalarComponents
virtual void ExecuteDataWithInformation(vtkDataObject *d, vtkInformation *outInfo)
This is a convenience method that is implemented in many subclasses instead of RequestData.
void SetImportVoidPointer(void *ptr, int save)
Set the pointer from which the image data is imported.
NumberOfComponentsCallbackType NumberOfComponentsCallback
UpdateDataCallbackType UpdateDataCallback
void SetImportVoidPointer(void *ptr)
Set the pointer from which the image data is imported.
void SetDataScalarTypeToUnsignedShort()
void InvokeExecuteDataCallbacks()
void InvokeUpdateInformationCallbacks()
void SetDataScalarTypeToDouble()
void SetDataScalarTypeToShort()
const char * GetDataScalarTypeAsString()
void InvokeExecuteInformationCallbacks()
PipelineModifiedCallbackType PipelineModifiedCallback
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual int ComputePipelineMTime(vtkInformation *request, vtkInformationVector **inInfoVec, vtkInformationVector *outInfoVec, int requestFromOutputPort, vtkMTimeType *mtime)
Override vtkAlgorithm.
virtual int RequestUpdateExtent(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Propagates the update extent through the callback if it is set.
void LegacyCheckWholeExtent()
WholeExtentCallbackType WholeExtentCallback
void SetDataScalarTypeToUnsignedChar()
PropagateUpdateExtentCallbackType PropagateUpdateExtentCallback
int InvokePipelineModifiedCallbacks()
Invoke the appropriate callbacks.
void CopyImportVoidPointer(void *ptr, vtkIdType size)
Import data and make an internal copy of it.
SpacingCallbackType SpacingCallback
void * GetImportVoidPointer()
ScalarTypeCallbackType ScalarTypeCallback
OriginCallbackType OriginCallback
BufferPointerCallbackType BufferPointerCallback
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to collect information from their inputs and set information f...
DataExtentCallbackType DataExtentCallback
void SetDataScalarTypeToFloat()
UpdateInformationCallbackType UpdateInformationCallback
void SetDataScalarTypeToInt()
a simple class to control print indentation
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkTypeUInt64 vtkMTimeType
#define VTK_UNSIGNED_CHAR
#define VTK_UNSIGNED_SHORT
void save(Archiver &ar, const vtkUnicodeString &str, const unsigned int vtkNotUsed(version))