Go to the documentation of this file.
35 #ifndef vtkImageExport_h
36 #define vtkImageExport_h
38 #include "vtkIOImageModule.h"
60 this->GetDataDimensions(this->DataDimensions);
61 return this->DataDimensions; }
77 return vtkImageScalarTypeNameMacro(this->GetDataScalarType()); }
106 vtkGetMacro(ImageLowerLeft,
int);
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*);
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*);
vtkIdType GetDataMemorySize()
Get the number of bytes required for the output C array.
PropagateUpdateExtentCallbackType GetPropagateUpdateExtentCallback() const
DataExtentCallbackType GetDataExtentCallback() const
NumberOfComponentsCallbackType GetNumberOfComponentsCallback() const
void GetDataDimensions(int *ptr)
Get the (x,y,z) index dimensions of the data.
int * GetDataDimensions()
virtual double * OriginCallback()
const char * GetDataScalarTypeAsString()
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
Superclass for all sources, filters, and sinks in VTK.
void GetDataExtent(int *ptr)
virtual void PropagateUpdateExtentCallback(int *)
virtual void * BufferPointerCallback()
WholeExtentCallbackType GetWholeExtentCallback() const
Generic algorithm superclass for image algs.
virtual void Export(void *)
void * GetCallbackUserData()
Get the user data that should be passed to the callback functions.
vtkTypeUInt64 vtkMTimeType
virtual int * DataExtentCallback()
void GetDataOrigin(double *ptr)
int GetDataScalarType()
Get the scalar type of the data.
virtual int * WholeExtentCallback()
OriginCallbackType GetOriginCallback() const
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called in response to a REQUEST_DATA request from the executive.
void * GetPointerToData()
An alternative to Export(): Use with caution.
void SetExportVoidPointer(void *)
Set the void pointer of the C array to export the data to.
double * GetDataSpacing()
virtual int PipelineModifiedCallback()
void GetDataSpacing(double *ptr)
topologically and geometrically regular array of data
a simple class to control print indentation
vtkImageData * GetInput()
Get the input object from the image pipeline.
virtual void UpdateDataCallback()
void * GetExportVoidPointer()
virtual int NumberOfComponentsCallback()
ScalarTypeCallbackType GetScalarTypeCallback() const
UpdateDataCallbackType GetUpdateDataCallback() const
int * GetDataExtent()
Get miscellaneous additional information about the data.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkInformation * GetInputInformation()
Equivalent to GetInputInformation(0, 0)
vtkAlgorithm * GetInputAlgorithm()
Equivalent to GetInputAlgorithm(0, 0).
vtkMTimeType LastPipelineMTime
UpdateInformationCallbackType GetUpdateInformationCallback() const
Get pointers to the pipeline interface callbacks.
virtual double * SpacingCallback()
PipelineModifiedCallbackType GetPipelineModifiedCallback() const
void Export()
The main interface: update the pipeline and export the image to the memory pointed to by SetExportVoi...
Export VTK images to third-party systems.
virtual const char * ScalarTypeCallback()
int GetDataNumberOfScalarComponents()
Get the number of scalar components of the data.
virtual void UpdateInformationCallback()
static vtkImageExport * New()
SpacingCallbackType GetSpacingCallback() const
BufferPointerCallbackType GetBufferPointerCallback() const