35#ifndef vtkImageExport_h
36#define vtkImageExport_h
38#include "vtkIOImageModule.h"
61 this->GetDataDimensions(this->DataDimensions);
62 return this->DataDimensions;
80 return vtkImageScalarTypeNameMacro(this->GetDataScalarType());
88 void GetDataExtent(
int* ptr);
90 void GetDataSpacing(
double* ptr);
92 void GetDataOrigin(
double* ptr);
94 void GetDataDirection(
double* ptr);
122 void SetExportVoidPointer(
void*);
123 void* GetExportVoidPointer() {
return this->ExportVoidPointer; }
155 typedef void (*UpdateInformationCallbackType)(
void*);
156 typedef int (*PipelineModifiedCallbackType)(
void*);
157 typedef int* (*WholeExtentCallbackType)(
void*);
158 typedef double* (*SpacingCallbackType)(
void*);
159 typedef double* (*OriginCallbackType)(
void*);
160 typedef double* (*DirectionCallbackType)(
void*);
161 typedef const char* (*ScalarTypeCallbackType)(
void*);
162 typedef int (*NumberOfComponentsCallbackType)(
void*);
163 typedef void (*PropagateUpdateExtentCallbackType)(
void*,
int*);
164 typedef void (*UpdateDataCallbackType)(
void*);
165 typedef int* (*DataExtentCallbackType)(
void*);
166 typedef void* (*BufferPointerCallbackType)(
void*);
209 int DataDimensions[3];
218 static void UpdateInformationCallbackFunction(
void*);
219 static int PipelineModifiedCallbackFunction(
void*);
220 static int* WholeExtentCallbackFunction(
void*);
221 static double* SpacingCallbackFunction(
void*);
222 static double* OriginCallbackFunction(
void*);
223 static double* DirectionCallbackFunction(
void*);
224 static const char* ScalarTypeCallbackFunction(
void*);
225 static int NumberOfComponentsCallbackFunction(
void*);
226 static void PropagateUpdateExtentCallbackFunction(
void*,
int*);
227 static void UpdateDataCallbackFunction(
void*);
228 static int* DataExtentCallbackFunction(
void*);
229 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.
void * GetPointerToData()
An alternative to Export(): Use with caution.
WholeExtentCallbackType GetWholeExtentCallback() const
Get pointers to the pipeline interface callbacks.
DataExtentCallbackType GetDataExtentCallback() const
Get pointers to the pipeline interface callbacks.
virtual int * DataExtentCallback()
int GetDataNumberOfScalarComponents()
Get the number of scalar components of the data.
NumberOfComponentsCallbackType GetNumberOfComponentsCallback() const
Get pointers to the pipeline interface callbacks.
int GetDataScalarType()
Get the scalar type of the data.
vtkTypeBool ImageLowerLeft
virtual void Export(void *)
The main interface: update the pipeline and export the image to the memory pointed to by SetExportVoi...
BufferPointerCallbackType GetBufferPointerCallback() const
Get pointers to the pipeline interface callbacks.
PipelineModifiedCallbackType GetPipelineModifiedCallback() const
Get pointers to the pipeline interface callbacks.
const char * GetDataScalarTypeAsString()
PropagateUpdateExtentCallbackType GetPropagateUpdateExtentCallback() const
Get pointers to the pipeline interface callbacks.
OriginCallbackType GetOriginCallback() const
Get pointers to the pipeline interface callbacks.
virtual int NumberOfComponentsCallback()
virtual double * OriginCallback()
virtual double * SpacingCallback()
UpdateDataCallbackType GetUpdateDataCallback() const
Get pointers to the pipeline interface callbacks.
static vtkImageExport * New()
ScalarTypeCallbackType GetScalarTypeCallback() const
Get pointers to the pipeline interface callbacks.
SpacingCallbackType GetSpacingCallback() const
Get pointers to the pipeline interface callbacks.
virtual int * WholeExtentCallback()
vtkIdType GetDataMemorySize()
Get the number of bytes required for the output C array.
virtual void * BufferPointerCallback()
int * GetDataExtent()
Get miscellaneous additional information about the data.
void Export()
The main interface: update the pipeline and export the image to the memory pointed to by SetExportVoi...
int * GetDataDimensions()
Get the (x,y,z) index dimensions of the data.
virtual double * DirectionCallback()
~vtkImageExport() override
virtual void UpdateDataCallback()
vtkMTimeType LastPipelineMTime
virtual void PropagateUpdateExtentCallback(int *)
virtual const char * ScalarTypeCallback()
void GetDataDimensions(int *ptr)
Get the (x,y,z) index dimensions of the data.
DirectionCallbackType GetDirectionCallback() const
Get pointers to the pipeline interface callbacks.
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called in response to a REQUEST_DATA request from the executive.
UpdateInformationCallbackType GetUpdateInformationCallback() const
Get pointers to the pipeline interface callbacks.
void * GetCallbackUserData()
Get the user data that should be passed to the callback functions.
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(...)