32#ifndef vtkImageImport_h
33#define vtkImageImport_h
35#include "vtkIOImageModule.h"
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*);
185 typedef int* (*DataExtentCallbackType)(
void*);
186 typedef void* (*BufferPointerCallbackType)(
void*);
general representation of visualization data
void SetDataExtentToWholeExtent()
Get/Set the extent of the data buffer.
virtual void SetDataScalarType(int)
Set/Get the data type of pixels in the imported data.
int NumberOfScalarComponents
void ExecuteDataWithInformation(vtkDataObject *d, vtkInformation *outInfo) override
This is a convenience method that is implemented in many subclasses instead of RequestData.
const char *(* ScalarTypeCallbackType)(void *)
These are function pointer types for the pipeline connection callbacks.
void SetImportVoidPointer(void *ptr, int save)
Set the pointer from which the image data is imported.
static vtkImageImport * New()
~vtkImageImport() override
NumberOfComponentsCallbackType NumberOfComponentsCallback
int(* NumberOfComponentsCallbackType)(void *)
These are function pointer types for the pipeline connection callbacks.
int RequestUpdateExtent(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Propagates the update extent through the callback if it is set.
virtual int * GetWholeExtent()
Get/Set the whole extent of the image.
UpdateDataCallbackType UpdateDataCallback
int(* PipelineModifiedCallbackType)(void *)
These are function pointer types for the pipeline connection callbacks.
void * GetImportVoidPointer()
Set the pointer from which the image data is imported.
void SetImportVoidPointer(void *ptr)
Set the pointer from which the image data is imported.
void SetDataScalarTypeToUnsignedShort()
Set/Get the data type of pixels in the imported data.
int *(* WholeExtentCallbackType)(void *)
These are function pointer types for the pipeline connection callbacks.
void InvokeExecuteDataCallbacks()
Invoke the appropriate callbacks.
void InvokeUpdateInformationCallbacks()
Invoke the appropriate callbacks.
void SetDataScalarTypeToDouble()
Set/Get the data type of pixels in the imported data.
int *(* DataExtentCallbackType)(void *)
These are function pointer types for the pipeline connection callbacks.
void SetDataScalarTypeToShort()
Set/Get the data type of pixels in the imported data.
void InvokeExecuteInformationCallbacks()
Invoke the appropriate callbacks.
void *(* BufferPointerCallbackType)(void *)
These are function pointer types for the pipeline connection callbacks.
PipelineModifiedCallbackType PipelineModifiedCallback
const char * GetDataScalarTypeAsString()
Set/Get the data type of pixels in the imported data.
void LegacyCheckWholeExtent()
Invoke the appropriate callbacks.
WholeExtentCallbackType WholeExtentCallback
void SetDataScalarTypeToUnsignedChar()
Set/Get the data type of pixels in the imported data.
double *(* SpacingCallbackType)(void *)
These are function pointer types for the pipeline connection callbacks.
DirectionCallbackType DirectionCallback
PropagateUpdateExtentCallbackType PropagateUpdateExtentCallback
int InvokePipelineModifiedCallbacks()
Invoke the appropriate callbacks.
void CopyImportVoidPointer(void *ptr, vtkIdType size)
Import data and make an internal copy of it.
virtual void SetDataExtent(int, int, int, int, int, int)
Get/Set the extent of the data buffer.
int ComputePipelineMTime(vtkInformation *request, vtkInformationVector **inInfoVec, vtkInformationVector *outInfoVec, int requestFromOutputPort, vtkMTimeType *mtime) override
Override vtkAlgorithm.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
SpacingCallbackType SpacingCallback
void(* UpdateInformationCallbackType)(void *)
These are function pointer types for the pipeline connection callbacks.
double *(* OriginCallbackType)(void *)
These are function pointer types for the pipeline connection callbacks.
ScalarTypeCallbackType ScalarTypeCallback
void(* UpdateDataCallbackType)(void *)
These are function pointer types for the pipeline connection callbacks.
OriginCallbackType OriginCallback
BufferPointerCallbackType BufferPointerCallback
DataExtentCallbackType DataExtentCallback
void SetDataScalarTypeToFloat()
Set/Get the data type of pixels in the imported data.
UpdateInformationCallbackType UpdateInformationCallback
void(* PropagateUpdateExtentCallbackType)(void *, int *)
These are function pointer types for the pipeline connection callbacks.
double *(* DirectionCallbackType)(void *)
These are function pointer types for the pipeline connection callbacks.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetDataScalarTypeToInt()
Set/Get the data type of pixels in the imported data.
a simple class to control print indentation
#define VTK_UNSIGNED_CHAR
#define VTK_UNSIGNED_SHORT
vtkTypeUInt32 vtkMTimeType
void save(Archiver &ar, const std::string &str, const unsigned int vtkNotUsed(version))