22 #ifndef vtkTextureIO_h
23 #define vtkTextureIO_h
26 #include "vtkRenderingLICOpenGL2Module.h"
42 const unsigned int* subset =
nullptr,
const double* origin =
nullptr);
48 const unsigned int* subset =
nullptr,
const double* origin =
nullptr)
50 Write(filename.c_str(), texture, subset, origin);
57 const double* origin =
nullptr)
59 Write(filename.c_str(), texture, subset.
GetDataU(), origin);
66 const std::deque<vtkPixelExtent>& exts,
const double* origin =
nullptr);
73 const std::deque<vtkPixelExtent>& exts,
const double* origin =
nullptr)
75 Write(filename.c_str(), texture, exts, origin);
Representation of a cartesian pixel plane and common operations on it.
unsigned int * GetDataU()
A small collection of I/O routines that write vtkTextureObject to disk for debugging.
static void Write(std::string filename, vtkTextureObject *texture, const vtkPixelExtent &subset, const double *origin=nullptr)
Write to disk as image data with subset(optional) at dataset origin(optional)
static void Write(std::string filename, vtkTextureObject *texture, const std::deque< vtkPixelExtent > &exts, const double *origin=nullptr)
Write list of subsets to disk as multiblock image data at dataset origin(optional).
static void Write(const char *filename, vtkTextureObject *texture, const std::deque< vtkPixelExtent > &exts, const double *origin=nullptr)
Write list of subsets to disk as multiblock image data at dataset origin(optional).
static void Write(std::string filename, vtkTextureObject *texture, const unsigned int *subset=nullptr, const double *origin=nullptr)
Write to disk as image data with subset(optional) at dataset origin(optional)
static void Write(const char *filename, vtkTextureObject *texture, const unsigned int *subset=nullptr, const double *origin=nullptr)
Write to disk as image data with subset(optional) at dataset origin(optional)
abstracts an OpenGL texture object.