Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkOpenGLVolumeTextureMapper2D.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkOpenGLVolumeTextureMapper2D.h,v $
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 =========================================================================*/
00035 #ifndef __vtkOpenGLVolumeTextureMapper2D_h
00036 #define __vtkOpenGLVolumeTextureMapper2D_h
00037 
00038 #include "vtkVolumeTextureMapper2D.h"
00039 
00040 class VTK_RENDERING_EXPORT vtkOpenGLVolumeTextureMapper2D : public vtkVolumeTextureMapper2D
00041 {
00042 public:
00043   vtkTypeRevisionMacro(vtkOpenGLVolumeTextureMapper2D,vtkVolumeTextureMapper2D);
00044   void PrintSelf( ostream& os, vtkIndent indent );
00045 
00046   static vtkOpenGLVolumeTextureMapper2D *New();
00047   
00048 //BTX
00049 
00052   virtual void Render(vtkRenderer *ren, vtkVolume *vol);
00053 
00054   void RenderQuads( int count, float *v, float *t,
00055                     unsigned char *texture, int size[2], int reverseFlag);
00056 
00057 //ETX
00058 
00059 protected:
00060   vtkOpenGLVolumeTextureMapper2D();
00061   ~vtkOpenGLVolumeTextureMapper2D();
00062 
00063 private:
00064   vtkOpenGLVolumeTextureMapper2D(const vtkOpenGLVolumeTextureMapper2D&);  // Not implemented.
00065   void operator=(const vtkOpenGLVolumeTextureMapper2D&);  // Not implemented.
00066 };
00067 
00068 
00069 #endif
00070 
00071