VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkOpenGLVolumeTextureMapper2D.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 =========================================================================*/ 00025 #ifndef __vtkOpenGLVolumeTextureMapper2D_h 00026 #define __vtkOpenGLVolumeTextureMapper2D_h 00027 00028 #include "vtkRenderingVolumeOpenGLModule.h" // For export macro 00029 #include "vtkVolumeTextureMapper2D.h" 00030 00031 class VTKRENDERINGVOLUMEOPENGL_EXPORT vtkOpenGLVolumeTextureMapper2D 00032 : public vtkVolumeTextureMapper2D 00033 { 00034 public: 00035 vtkTypeMacro(vtkOpenGLVolumeTextureMapper2D,vtkVolumeTextureMapper2D); 00036 void PrintSelf( ostream& os, vtkIndent indent ); 00037 00038 static vtkOpenGLVolumeTextureMapper2D *New(); 00039 00040 //BTX 00041 00044 virtual void Render(vtkRenderer *ren, vtkVolume *vol); 00045 00046 void RenderQuads( int count, float *v, float *t, 00047 unsigned char *texture, int size[2], int reverseFlag); 00048 00049 //ETX 00050 00051 protected: 00052 vtkOpenGLVolumeTextureMapper2D(); 00053 ~vtkOpenGLVolumeTextureMapper2D(); 00054 00055 private: 00056 vtkOpenGLVolumeTextureMapper2D(const vtkOpenGLVolumeTextureMapper2D&); // Not implemented. 00057 void operator=(const vtkOpenGLVolumeTextureMapper2D&); // Not implemented. 00058 }; 00059 00060 #endif