Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Rendering/vtkOpenGLVolumeTextureMapper2D.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkOpenGLVolumeTextureMapper2D.h,v $
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00039 #ifndef __vtkOpenGLVolumeTextureMapper2D_h
00040 #define __vtkOpenGLVolumeTextureMapper2D_h
00041 
00042 #include "vtkVolumeTextureMapper2D.h"
00043 
00044 class VTK_RENDERING_EXPORT vtkOpenGLVolumeTextureMapper2D : public vtkVolumeTextureMapper2D
00045 {
00046 public:
00047   vtkTypeRevisionMacro(vtkOpenGLVolumeTextureMapper2D,vtkVolumeTextureMapper2D);
00048   void PrintSelf( ostream& os, vtkIndent indent );
00049 
00050   static vtkOpenGLVolumeTextureMapper2D *New();
00051   
00052 //BTX
00053 
00056   virtual void Render(vtkRenderer *ren, vtkVolume *vol);
00057 
00058   void RenderQuads( int count, float *v, float *t,
00059                     unsigned char *texture, int size[2], int reverseFlag);
00060 
00061 //ETX
00062 
00063 protected:
00064   vtkOpenGLVolumeTextureMapper2D();
00065   ~vtkOpenGLVolumeTextureMapper2D();
00066 
00067 private:
00068   vtkOpenGLVolumeTextureMapper2D(const vtkOpenGLVolumeTextureMapper2D&);  // Not implemented.
00069   void operator=(const vtkOpenGLVolumeTextureMapper2D&);  // Not implemented.
00070 };
00071 
00072 
00073 #endif
00074 
00075