VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkTextureIO.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00021 #ifndef vtkTextureIO_h 00022 #define vtkTextureIO_h 00023 00024 #include "vtkRenderingLICModule.h" // for export 00025 #include "vtkPixelExtent.h" // for pixel extent 00026 00027 // included vtkSystemIncludes in vtkPixelExtent 00028 #include <cstddef> // for NULL 00029 #include <string> // for string 00030 #include <deque> // for deque 00031 00032 class vtkTextureObject; 00033 00034 class VTKRENDERINGLIC_EXPORT vtkTextureIO 00035 { 00036 public: 00038 00040 static void Write( 00041 const char *filename, 00042 vtkTextureObject *texture, 00043 const unsigned int *subset=NULL, 00044 const double *origin=NULL); 00046 00048 00050 static void Write( 00051 std::string filename, 00052 vtkTextureObject *texture, 00053 const unsigned int *subset=NULL, 00054 const double *origin=NULL) 00055 { 00056 Write(filename.c_str(), texture, subset, origin); 00057 } 00059 00061 00063 static void Write( 00064 std::string filename, 00065 vtkTextureObject *texture, 00066 const vtkPixelExtent &subset, 00067 const double *origin=NULL) 00068 { 00069 Write(filename.c_str(), texture, subset.GetDataU(), origin); 00070 } 00072 00074 00076 static void Write( 00077 const char *filename, 00078 vtkTextureObject *texture, 00079 const std::deque<vtkPixelExtent> &exts, 00080 const double *origin=NULL); 00082 00084 00086 static void Write( 00087 std::string filename, 00088 vtkTextureObject *texture, 00089 const std::deque<vtkPixelExtent> &exts, 00090 const double *origin=NULL) 00091 { 00092 Write(filename.c_str(),texture,exts,origin); 00093 } 00094 }; 00096 00097 #endif 00098 // VTK-HeaderTest-Exclude: vtkTextureIO.h