00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkAbstractVolumeMapper.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 =========================================================================*/ 00038 #ifndef __vtkAbstractVolumeMapper_h 00039 #define __vtkAbstractVolumeMapper_h 00040 00041 #include "vtkAbstractMapper3D.h" 00042 00043 class vtkRenderer; 00044 class vtkVolume; 00045 class vtkWindow; 00046 class vtkDataSet; 00047 00048 class VTK_RENDERING_EXPORT vtkAbstractVolumeMapper : public vtkAbstractMapper3D 00049 { 00050 public: 00051 vtkTypeRevisionMacro(vtkAbstractVolumeMapper,vtkAbstractMapper3D); 00052 void PrintSelf( ostream& os, vtkIndent indent ); 00053 00055 virtual void Update(); 00056 00058 00059 virtual void SetInput( vtkDataSet * ); 00060 vtkDataSet *GetDataSetInput(); 00062 00064 00066 virtual double *GetBounds(); 00067 virtual void GetBounds(double bounds[6]) 00068 { this->vtkAbstractMapper3D::GetBounds(bounds); }; 00070 00071 //BTX 00073 00074 virtual float GetGradientMagnitudeScale() {return 1.0;}; 00075 virtual float GetGradientMagnitudeBias() {return 0.0;}; 00076 virtual float GetGradientMagnitudeScale(int) {return 1.0;}; 00077 virtual float GetGradientMagnitudeBias(int) {return 0.0;}; 00079 00080 00083 virtual void Render(vtkRenderer *ren, vtkVolume *vol)=0; 00084 00089 virtual void ReleaseGraphicsResources(vtkWindow *) {}; 00090 00091 //ETX 00092 00093 protected: 00094 vtkAbstractVolumeMapper(); 00095 ~vtkAbstractVolumeMapper(); 00096 00097 private: 00098 vtkAbstractVolumeMapper(const vtkAbstractVolumeMapper&); // Not implemented. 00099 void operator=(const vtkAbstractVolumeMapper&); // Not implemented. 00100 }; 00101 00102 00103 #endif 00104 00105