You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nmWTAI-Platform/3rd/VTK7.1/include/vtkTextureIO.h

97 lines
2.6 KiB
C++

/*=========================================================================
Program: Visualization Toolkit
Module: vtkTextureIO.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
/**
* @class vtkTextureIO
*
* A small collection of I/O routines that write vtkTextureObject
* to disk for debugging.
*/
#ifndef vtkTextureIO_h
#define vtkTextureIO_h
#include "vtkRenderingLICModule.h" // for export
#include "vtkPixelExtent.h" // for pixel extent
// included vtkSystemIncludes in vtkPixelExtent
#include <cstddef> // for NULL
#include <string> // for string
#include <deque> // for deque
class vtkTextureObject;
class VTKRENDERINGLIC_EXPORT vtkTextureIO
{
public:
/**
* 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=NULL,
const double *origin=NULL);
/**
* Write to disk as image data with subset(optional) at dataset origin(optional)
*/
static void Write(
std::string filename,
vtkTextureObject *texture,
const unsigned int *subset=NULL,
const double *origin=NULL)
{
Write(filename.c_str(), texture, subset, origin);
}
/**
* Write to disk as image data with subset(optional) at dataset origin(optional)
*/
static void Write(
std::string filename,
vtkTextureObject *texture,
const vtkPixelExtent &subset,
const double *origin=NULL)
{
Write(filename.c_str(), texture, subset.GetDataU(), origin);
}
/**
* 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=NULL);
//@{
/**
* Write list of subsets to disk as multiblock image data at dataset origin(optional).
*/
static void Write(
std::string filename,
vtkTextureObject *texture,
const std::deque<vtkPixelExtent> &exts,
const double *origin=NULL)
{
Write(filename.c_str(),texture,exts,origin);
}
};
//@}
#endif
// VTK-HeaderTest-Exclude: vtkTextureIO.h