VTK
vtkTextureIO.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTextureIO.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
21 #ifndef vtkTextureIO_h
22 #define vtkTextureIO_h
23 
24 #include "vtkRenderingLICOpenGL2Module.h" // for export
25 #include "vtkPixelExtent.h" // for pixel extent
26 
27 // included vtkSystemIncludes in vtkPixelExtent
28 #include <cstddef> // for NULL
29 #include <string> // for string
30 #include <deque> // for deque
31 
32 class vtkTextureObject;
33 
34 class VTKRENDERINGLICOPENGL2_EXPORT vtkTextureIO
35 {
36 public:
38 
40  static void Write(
41  const char *filename,
42  vtkTextureObject *texture,
43  const unsigned int *subset=NULL,
44  const double *origin=NULL);
46 
48 
50  static void Write(
51  std::string filename,
52  vtkTextureObject *texture,
53  const unsigned int *subset=NULL,
54  const double *origin=NULL)
55  {
56  Write(filename.c_str(), texture, subset, origin);
57  }
59 
61 
63  static void Write(
64  std::string filename,
65  vtkTextureObject *texture,
66  const vtkPixelExtent &subset,
67  const double *origin=NULL)
68  {
69  Write(filename.c_str(), texture, subset.GetDataU(), origin);
70  }
72 
74 
76  static void Write(
77  const char *filename,
78  vtkTextureObject *texture,
79  const std::deque<vtkPixelExtent> &exts,
80  const double *origin=NULL);
82 
84 
86  static void Write(
87  std::string filename,
88  vtkTextureObject *texture,
89  const std::deque<vtkPixelExtent> &exts,
90  const double *origin=NULL)
91  {
92  Write(filename.c_str(),texture,exts,origin);
93  }
94 };
96 
97 #endif
98 // VTK-HeaderTest-Exclude: vtkTextureIO.h
static void Write(std::string filename, vtkTextureObject *texture, const vtkPixelExtent &subset, const double *origin=NULL)
Definition: vtkTextureIO.h:63
static void Write(std::string filename, vtkTextureObject *texture, const std::deque< vtkPixelExtent > &exts, const double *origin=NULL)
Definition: vtkTextureIO.h:86
abstracts an OpenGL texture object.
static void Write(std::string filename, vtkTextureObject *texture, const unsigned int *subset=NULL, const double *origin=NULL)
Definition: vtkTextureIO.h:50
unsigned int * GetDataU()