23#ifndef vtkImageExport_h
24#define vtkImageExport_h
26#include "vtkIOImageModule.h"
29VTK_ABI_NAMESPACE_BEGIN
146 typedef int* (*WholeExtentCallbackType)(
void*);
147 typedef double* (*SpacingCallbackType)(
void*);
148 typedef double* (*OriginCallbackType)(
void*);
149 typedef double* (*DirectionCallbackType)(
void*);
150 typedef const char* (*ScalarTypeCallbackType)(
void*);
154 typedef int* (*DataExtentCallbackType)(
void*);
155 typedef void* (*BufferPointerCallbackType)(
void*);
207 static void UpdateInformationCallbackFunction(
void*);
208 static int PipelineModifiedCallbackFunction(
void*);
209 static int* WholeExtentCallbackFunction(
void*);
210 static double* SpacingCallbackFunction(
void*);
211 static double* OriginCallbackFunction(
void*);
212 static double* DirectionCallbackFunction(
void*);
213 static const char* ScalarTypeCallbackFunction(
void*);
214 static int NumberOfComponentsCallbackFunction(
void*);
215 static void PropagateUpdateExtentCallbackFunction(
void*,
int*);
216 static void UpdateDataCallbackFunction(
void*);
217 static int* DataExtentCallbackFunction(
void*);
218 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).
topologically and geometrically regular array of data
void * GetPointerToData()
An alternative to Export(): Use with caution.
double * GetDataSpacing()
Get miscellaneous additional information about the data.
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.
int *(* WholeExtentCallbackType)(void *)
These are function pointer types for the pipeline connection callbacks.
vtkImageData * GetInput()
Get the input object from the image pipeline.
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.
void(* UpdateDataCallbackType)(void *)
These are function pointer types for the pipeline connection callbacks.
PipelineModifiedCallbackType GetPipelineModifiedCallback() const
Get pointers to the pipeline interface callbacks.
const char * GetDataScalarTypeAsString()
void * GetExportVoidPointer()
Set the void pointer of the C array to export the data to.
PropagateUpdateExtentCallbackType GetPropagateUpdateExtentCallback() const
Get pointers to the pipeline interface callbacks.
OriginCallbackType GetOriginCallback() const
Get pointers to the pipeline interface callbacks.
virtual int NumberOfComponentsCallback()
void(* UpdateInformationCallbackType)(void *)
These are function pointer types for the pipeline connection callbacks.
double * GetDataDirection()
Get miscellaneous additional information about the data.
const char *(* ScalarTypeCallbackType)(void *)
These are function pointer types for the pipeline connection callbacks.
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()
int(* PipelineModifiedCallbackType)(void *)
These are function pointer types for the pipeline connection callbacks.
double *(* DirectionCallbackType)(void *)
These are function pointer types for the pipeline connection callbacks.
vtkIdType GetDataMemorySize()
Get the number of bytes required for the output C array.
double *(* OriginCallbackType)(void *)
These are function pointer types for the pipeline connection callbacks.
virtual void * BufferPointerCallback()
void *(* BufferPointerCallbackType)(void *)
These are function pointer types for the pipeline connection callbacks.
int * GetDataExtent()
Get miscellaneous additional information about the data.
double *(* SpacingCallbackType)(void *)
These are function pointer types for the pipeline connection callbacks.
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()
void SetExportVoidPointer(void *)
Set the void pointer of the C array to export the data to.
~vtkImageExport() override
virtual void UpdateDataCallback()
vtkMTimeType LastPipelineMTime
virtual void PropagateUpdateExtentCallback(int *)
virtual const char * ScalarTypeCallback()
int *(* DataExtentCallbackType)(void *)
These are function pointer types for the pipeline connection callbacks.
int(* NumberOfComponentsCallbackType)(void *)
These are function pointer types for the pipeline connection callbacks.
void GetDataDimensions(int *ptr)
Get the (x,y,z) index dimensions of the data.
DirectionCallbackType GetDirectionCallback() const
Get pointers to the pipeline interface callbacks.
void(* PropagateUpdateExtentCallbackType)(void *, int *)
These are function pointer types for the pipeline connection 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()
double * GetDataOrigin()
Get miscellaneous additional information about the data.
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(...)