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

vtkUnstructuredGridVolumeMapper.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkUnstructuredGridVolumeMapper.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 =========================================================================*/
00039 #ifndef __vtkUnstructuredGridVolumeMapper_h
00040 #define __vtkUnstructuredGridVolumeMapper_h
00041 
00042 #include "vtkAbstractVolumeMapper.h"
00043 
00044 class vtkRenderer;
00045 class vtkVolume;
00046 class vtkUnstructuredGrid;
00047 class vtkWindow;
00048 
00049 
00050 class VTK_RENDERING_EXPORT vtkUnstructuredGridVolumeMapper : public vtkAbstractVolumeMapper
00051 {
00052 public:
00053   vtkTypeRevisionMacro(vtkUnstructuredGridVolumeMapper,vtkAbstractVolumeMapper);
00054   void PrintSelf( ostream& os, vtkIndent indent );
00055 
00057 
00058   virtual void SetInput( vtkUnstructuredGrid * );
00059   virtual void SetInput( vtkDataSet * );
00060   vtkUnstructuredGrid *GetInput();
00062 
00063   vtkSetMacro( BlendMode, int );
00064   void SetBlendModeToComposite()
00065     { this->SetBlendMode( vtkUnstructuredGridVolumeMapper::COMPOSITE_BLEND ); }
00066   void SetBlendModeToMaximumIntensity()
00067     { this->SetBlendMode( vtkUnstructuredGridVolumeMapper::MAXIMUM_INTENSITY_BLEND ); }
00068   vtkGetMacro( BlendMode, int );
00069   
00070 
00071 //BTX  
00072 
00075   virtual void Render(vtkRenderer *ren, vtkVolume *vol)=0;
00076 
00081   virtual void ReleaseGraphicsResources(vtkWindow *) {};
00082   
00083   enum 
00084   {
00085     COMPOSITE_BLEND,
00086     MAXIMUM_INTENSITY_BLEND
00087   };
00088   
00089 //ETX
00090   
00091 protected:
00092   vtkUnstructuredGridVolumeMapper();
00093   ~vtkUnstructuredGridVolumeMapper();
00094 
00095   int   BlendMode;
00096   
00097 private:
00098   vtkUnstructuredGridVolumeMapper(const vtkUnstructuredGridVolumeMapper&);  // Not implemented.
00099   void operator=(const vtkUnstructuredGridVolumeMapper&);  // Not implemented.
00100 };
00101 
00102 
00103 #endif
00104 
00105