32 #ifndef vtkImageExport_h
33 #define vtkImageExport_h
35 #include "vtkIOImageModule.h"
58 this->GetDataDimensions(this->DataDimensions);
59 return this->DataDimensions;
77 return vtkImageScalarTypeNameMacro(this->GetDataScalarType());
85 void GetDataExtent(
int* ptr);
87 void GetDataSpacing(
double* ptr);
89 void GetDataOrigin(
double* ptr);
91 void GetDataDirection(
double* ptr);
119 void SetExportVoidPointer(
void*);
120 void* GetExportVoidPointer() {
return this->ExportVoidPointer; }
152 typedef void (*UpdateInformationCallbackType)(
void*);
153 typedef int (*PipelineModifiedCallbackType)(
void*);
154 typedef int* (*WholeExtentCallbackType)(
void*);
155 typedef double* (*SpacingCallbackType)(
void*);
156 typedef double* (*OriginCallbackType)(
void*);
157 typedef double* (*DirectionCallbackType)(
void*);
158 typedef const char* (*ScalarTypeCallbackType)(
void*);
159 typedef int (*NumberOfComponentsCallbackType)(
void*);
160 typedef void (*PropagateUpdateExtentCallbackType)(
void*,
int*);
161 typedef void (*UpdateDataCallbackType)(
void*);
162 typedef int* (*DataExtentCallbackType)(
void*);
163 typedef void* (*BufferPointerCallbackType)(
void*);
206 int DataDimensions[3];
215 static void UpdateInformationCallbackFunction(
void*);
216 static int PipelineModifiedCallbackFunction(
void*);
217 static int* WholeExtentCallbackFunction(
void*);
218 static double* SpacingCallbackFunction(
void*);
219 static double* OriginCallbackFunction(
void*);
220 static double* DirectionCallbackFunction(
void*);
221 static const char* ScalarTypeCallbackFunction(
void*);
222 static int NumberOfComponentsCallbackFunction(
void*);
223 static void PropagateUpdateExtentCallbackFunction(
void*,
int*);
224 static void UpdateDataCallbackFunction(
void*);
225 static int* DataExtentCallbackFunction(
void*);
226 static void* BufferPointerCallbackFunction(
void*);
Superclass for all sources, filters, and sinks in VTK.
vtkInformation * GetInputInformation()
Equivalent to GetInputInformation(0, 0)
vtkAlgorithm * GetInputAlgorithm()
Equivalent to GetInputAlgorithm(0, 0).
Generic algorithm superclass for image algs.
topologically and geometrically regular array of data
Export VTK images to third-party systems.
virtual double * OriginCallback()
virtual void * BufferPointerCallback()
const char * GetDataScalarTypeAsString()
WholeExtentCallbackType GetWholeExtentCallback() const
DataExtentCallbackType GetDataExtentCallback() const
static vtkImageExport * New()
int GetDataNumberOfScalarComponents()
Get the number of scalar components of the data.
NumberOfComponentsCallbackType GetNumberOfComponentsCallback() const
int GetDataScalarType()
Get the scalar type of the data.
vtkTypeBool ImageLowerLeft
virtual void Export(void *)
BufferPointerCallbackType GetBufferPointerCallback() const
PipelineModifiedCallbackType GetPipelineModifiedCallback() const
void * GetPointerToData()
An alternative to Export(): Use with caution.
PropagateUpdateExtentCallbackType GetPropagateUpdateExtentCallback() const
OriginCallbackType GetOriginCallback() const
virtual int NumberOfComponentsCallback()
UpdateDataCallbackType GetUpdateDataCallback() const
void * GetCallbackUserData()
Get the user data that should be passed to the callback functions.
ScalarTypeCallbackType GetScalarTypeCallback() const
SpacingCallbackType GetSpacingCallback() const
virtual const char * ScalarTypeCallback()
int * GetDataDimensions()
int * GetDataExtent()
Get miscellaneous additional information about the data.
virtual int * WholeExtentCallback()
virtual double * SpacingCallback()
vtkIdType GetDataMemorySize()
Get the number of bytes required for the output C array.
void Export()
The main interface: update the pipeline and export the image to the memory pointed to by SetExportVoi...
~vtkImageExport() override
virtual void UpdateDataCallback()
vtkMTimeType LastPipelineMTime
virtual void PropagateUpdateExtentCallback(int *)
void GetDataDimensions(int *ptr)
Get the (x,y,z) index dimensions of the data.
virtual int * DataExtentCallback()
DirectionCallbackType GetDirectionCallback() const
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called in response to a REQUEST_DATA request from the executive.
virtual double * DirectionCallback()
UpdateInformationCallbackType GetUpdateInformationCallback() const
Get pointers to the pipeline interface callbacks.
virtual int PipelineModifiedCallback()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void UpdateInformationCallback()
a simple class to control print indentation
vtkTypeUInt32 vtkMTimeType
#define VTK_SIZEHINT(...)