 |
VTK
9.1.0
|
Go to the documentation of this file.
51 #ifndef vtkImageExport_h
52 #define vtkImageExport_h
54 #include "vtkIOImageModule.h"
77 this->GetDataDimensions(this->DataDimensions);
78 return this->DataDimensions;
96 return vtkImageScalarTypeNameMacro(this->GetDataScalarType());
104 void GetDataExtent(
int* ptr);
106 void GetDataSpacing(
double* ptr);
108 void GetDataOrigin(
double* ptr);
110 void GetDataDirection(
double* ptr);
138 void SetExportVoidPointer(
void*);
139 void* GetExportVoidPointer() {
return this->ExportVoidPointer; }
171 typedef void (*UpdateInformationCallbackType)(
void*);
172 typedef int (*PipelineModifiedCallbackType)(
void*);
173 typedef int* (*WholeExtentCallbackType)(
void*);
174 typedef double* (*SpacingCallbackType)(
void*);
175 typedef double* (*OriginCallbackType)(
void*);
176 typedef double* (*DirectionCallbackType)(
void*);
177 typedef const char* (*ScalarTypeCallbackType)(
void*);
178 typedef int (*NumberOfComponentsCallbackType)(
void*);
179 typedef void (*PropagateUpdateExtentCallbackType)(
void*,
int*);
180 typedef void (*UpdateDataCallbackType)(
void*);
181 typedef int* (*DataExtentCallbackType)(
void*);
182 typedef void* (*BufferPointerCallbackType)(
void*);
225 int DataDimensions[3];
234 static void UpdateInformationCallbackFunction(
void*);
235 static int PipelineModifiedCallbackFunction(
void*);
236 static int* WholeExtentCallbackFunction(
void*);
237 static double* SpacingCallbackFunction(
void*);
238 static double* OriginCallbackFunction(
void*);
239 static double* DirectionCallbackFunction(
void*);
240 static const char* ScalarTypeCallbackFunction(
void*);
241 static int NumberOfComponentsCallbackFunction(
void*);
242 static void PropagateUpdateExtentCallbackFunction(
void*,
int*);
243 static void UpdateDataCallbackFunction(
void*);
244 static int* DataExtentCallbackFunction(
void*);
245 static void* BufferPointerCallbackFunction(
void*);
vtkIdType GetDataMemorySize()
Get the number of bytes required for the output C array.
PropagateUpdateExtentCallbackType GetPropagateUpdateExtentCallback() const
Get pointers to the pipeline interface callbacks.
DataExtentCallbackType GetDataExtentCallback() const
Get pointers to the pipeline interface callbacks.
NumberOfComponentsCallbackType GetNumberOfComponentsCallback() const
Get pointers to the pipeline interface callbacks.
void GetDataDimensions(int *ptr)
Get the (x,y,z) index dimensions of the data.
int * GetDataDimensions()
Get the (x,y,z) index dimensions of the data.
virtual double * OriginCallback()
const char * GetDataScalarTypeAsString()
Superclass for all sources, filters, and sinks in VTK.
virtual void PropagateUpdateExtentCallback(int *)
virtual void * BufferPointerCallback()
~vtkImageExport() override
WholeExtentCallbackType GetWholeExtentCallback() const
Get pointers to the pipeline interface callbacks.
Generic algorithm superclass for image algs.
virtual void Export(void *)
The main interface: update the pipeline and export the image to the memory pointed to by SetExportVoi...
void * GetCallbackUserData()
Get the user data that should be passed to the callback functions.
DirectionCallbackType GetDirectionCallback() const
Get pointers to the pipeline interface callbacks.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called in response to a REQUEST_DATA request from the executive.
virtual int * DataExtentCallback()
int GetDataScalarType()
Get the scalar type of the data.
virtual int * WholeExtentCallback()
#define VTK_SIZEHINT(...)
OriginCallbackType GetOriginCallback() const
Get pointers to the pipeline interface callbacks.
void * GetPointerToData()
An alternative to Export(): Use with caution.
virtual double * DirectionCallback()
virtual int PipelineModifiedCallback()
topologically and geometrically regular array of data
a simple class to control print indentation
virtual void UpdateDataCallback()
virtual int NumberOfComponentsCallback()
ScalarTypeCallbackType GetScalarTypeCallback() const
Get pointers to the pipeline interface callbacks.
UpdateDataCallbackType GetUpdateDataCallback() const
Get pointers to the pipeline interface callbacks.
int * GetDataExtent()
Get miscellaneous additional information about the data.
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.
vtkTypeBool ImageLowerLeft
virtual double * SpacingCallback()
PipelineModifiedCallbackType GetPipelineModifiedCallback() const
Get pointers to the pipeline interface callbacks.
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
Get pointers to the pipeline interface callbacks.
BufferPointerCallbackType GetBufferPointerCallback() const
Get pointers to the pipeline interface callbacks.
vtkTypeUInt32 vtkMTimeType