35 #ifndef vtkImageExport_h
36 #define vtkImageExport_h
38 #include "vtkIOImageModule.h"
58 void GetDataDimensions(
int *ptr);
60 this->GetDataDimensions(this->DataDimensions);
61 return this->DataDimensions; }
69 int GetDataNumberOfScalarComponents();
75 int GetDataScalarType();
77 return vtkImageScalarTypeNameMacro(this->GetDataScalarType()); }
84 void GetDataExtent(
int *ptr);
85 double *GetDataSpacing();
86 void GetDataSpacing(
double *ptr);
87 double *GetDataOrigin();
88 void GetDataOrigin(
double *ptr);
106 vtkGetMacro(ImageLowerLeft,
int);
116 void SetExportVoidPointer(
void *);
127 virtual void Export(
void *);
137 void *GetPointerToData();
142 void* GetCallbackUserData();
149 typedef void (*UpdateInformationCallbackType)(
void*);
150 typedef int (*PipelineModifiedCallbackType)(
void*);
151 typedef int* (*WholeExtentCallbackType)(
void*);
152 typedef double* (*SpacingCallbackType)(
void*);
153 typedef double* (*OriginCallbackType)(
void*);
154 typedef const char* (*ScalarTypeCallbackType)(
void*);
155 typedef int (*NumberOfComponentsCallbackType)(
void*);
156 typedef void (*PropagateUpdateExtentCallbackType)(
void*,
int*);
157 typedef void (*UpdateDataCallbackType)(
void*);
158 typedef int* (*DataExtentCallbackType)(
void*);
159 typedef void* (*BufferPointerCallbackType)(
void*);
166 UpdateInformationCallbackType GetUpdateInformationCallback()
const;
167 PipelineModifiedCallbackType GetPipelineModifiedCallback()
const;
168 WholeExtentCallbackType GetWholeExtentCallback()
const;
169 SpacingCallbackType GetSpacingCallback()
const;
170 OriginCallbackType GetOriginCallback()
const;
171 ScalarTypeCallbackType GetScalarTypeCallback()
const;
172 NumberOfComponentsCallbackType GetNumberOfComponentsCallback()
const;
173 PropagateUpdateExtentCallbackType GetPropagateUpdateExtentCallback()
const;
174 UpdateDataCallbackType GetUpdateDataCallback()
const;
175 DataExtentCallbackType GetDataExtentCallback()
const;
176 BufferPointerCallbackType GetBufferPointerCallback()
const;
188 virtual void UpdateInformationCallback();
189 virtual int PipelineModifiedCallback();
190 virtual void UpdateDataCallback();
191 virtual int* WholeExtentCallback();
192 virtual double* SpacingCallback();
193 virtual double* OriginCallback();
194 virtual const char* ScalarTypeCallback();
195 virtual int NumberOfComponentsCallback();
196 virtual void PropagateUpdateExtentCallback(
int*);
197 virtual int* DataExtentCallback();
198 virtual void* BufferPointerCallback();
201 int DataDimensions[3];
210 static
void UpdateInformationCallbackFunction(
void*);
211 static
int PipelineModifiedCallbackFunction(
void*);
212 static
int* WholeExtentCallbackFunction(
void*);
213 static
double* SpacingCallbackFunction(
void*);
214 static
double* OriginCallbackFunction(
void*);
215 static const
char* ScalarTypeCallbackFunction(
void*);
216 static
int NumberOfComponentsCallbackFunction(
void*);
217 static
void PropagateUpdateExtentCallbackFunction(
void*,
int*);
218 static
void UpdateDataCallbackFunction(
void*);
219 static
int* DataExtentCallbackFunction(
void*);
220 static
void* BufferPointerCallbackFunction(
void*);
vtkDataObject * GetInput()
Get a data object for one of the input port connections.
vtkTypeUInt64 vtkMTimeType
Export VTK images to third-party systems.
int * GetDataDimensions()
Get the (x,y,z) index dimensions of the data.
Superclass for all sources, filters, and sinks in VTK.
a simple class to control print indentation
topologically and geometrically regular array of data
void Export()
The main interface: update the pipeline and export the image to the memory pointed to by SetExportVoi...
const char * GetDataScalarTypeAsString()
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void * GetExportVoidPointer()
Set the void pointer of the C array to export the data to.
vtkMTimeType LastPipelineMTime
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.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called in response to a REQUEST_DATA request from the executive.