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

vtkImageMapper.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkImageMapper.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 =========================================================================*/
00042 #ifndef __vtkImageMapper_h
00043 #define __vtkImageMapper_h
00044 
00045 #include "vtkMapper2D.h"
00046 
00047 class vtkWindow;
00048 class vtkViewport;
00049 class vtkActor2D;
00050 class vtkImageData;
00051 
00052 class VTK_RENDERING_EXPORT vtkImageMapper : public vtkMapper2D
00053 {
00054 public:
00055   vtkTypeRevisionMacro(vtkImageMapper,vtkMapper2D);
00056   static vtkImageMapper *New();
00057   void PrintSelf(ostream& os, vtkIndent indent);
00058 
00060   unsigned long int GetMTime();
00061 
00063 
00064   vtkSetMacro(ColorWindow, double);
00065   vtkGetMacro(ColorWindow, double);
00067   
00069 
00070   vtkSetMacro(ColorLevel, double);
00071   vtkGetMacro(ColorLevel, double);
00073 
00075 
00082   vtkSetMacro(ZSlice,int);
00083   vtkGetMacro(ZSlice,int);
00084   int GetWholeZMin();
00085   int GetWholeZMax();
00087 
00089   void RenderStart(vtkViewport* viewport, vtkActor2D* actor);
00090 
00092   virtual void RenderData(vtkViewport*, vtkImageData*, vtkActor2D* )=0;
00093 
00095 
00096   double GetColorShift();
00097   double GetColorScale();
00099 
00100   // Public for templated functions. * *  Should remove this * *
00101   int DisplayExtent[6];
00102 
00104 
00105   virtual void SetInput(vtkImageData *input);
00106   vtkImageData *GetInput();
00108 
00110 
00113   vtkSetMacro(RenderToRectangle,int);
00114   vtkGetMacro(RenderToRectangle,int);
00115   vtkBooleanMacro(RenderToRectangle,int);
00117 
00119 
00123   vtkSetMacro(UseCustomExtents,int);
00124   vtkGetMacro(UseCustomExtents,int);
00125   vtkBooleanMacro(UseCustomExtents,int);
00127 
00129 
00132   vtkSetVectorMacro(CustomDisplayExtents,int,4);
00133   vtkGetVectorMacro(CustomDisplayExtents,int,4);
00135 
00136 protected:
00137   vtkImageMapper();
00138   ~vtkImageMapper();
00139 
00140   double ColorWindow;
00141   double ColorLevel;
00142 
00143   int PositionAdjustment[2];
00144   int ZSlice;
00145   int UseCustomExtents;
00146   int CustomDisplayExtents[4];
00147   int RenderToRectangle;
00148 
00149   virtual int FillInputPortInformation(int, vtkInformation*);
00150 private:
00151   vtkImageMapper(const vtkImageMapper&);  // Not implemented.
00152   void operator=(const vtkImageMapper&);  // Not implemented.
00153 };
00154 
00155 
00156 
00157 #endif
00158 
00159