Rendering/vtkImageMapper.h Source File

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

# Rendering/vtkImageMapper.h

Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program:   Visualization Toolkit
    00004   Module:    $RCSfile: vtkImageMapper.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 =========================================================================*/
    00046 #ifndef __vtkImageMapper_h
    00047 #define __vtkImageMapper_h
    00048
    00049 #include "vtkMapper2D.h"
    00050
    00051 class vtkWindow;
    00052 class vtkViewport;
    00053 class vtkActor2D;
    00054 class vtkImageData;
    00055
    00056 class VTK_RENDERING_EXPORT vtkImageMapper : public vtkMapper2D
    00057 {
    00058 public:
    00059   vtkTypeRevisionMacro(vtkImageMapper,vtkMapper2D);
    00060   static vtkImageMapper *New();
    00061   void PrintSelf(ostream& os, vtkIndent indent);
    00062
    00064   unsigned long int GetMTime();
    00065
    00067
    00068   vtkSetMacro(ColorWindow, float);
    00069   vtkGetMacro(ColorWindow, float);
    00071
    00073
    00074   vtkSetMacro(ColorLevel, float);
    00075   vtkGetMacro(ColorLevel, float);
    00077
    00079
    00086   vtkSetMacro(ZSlice,int);
    00087   vtkGetMacro(ZSlice,int);
    00088   int GetWholeZMin();
    00089   int GetWholeZMax();
    00091
    00093   void RenderStart(vtkViewport* viewport, vtkActor2D* actor);
    00094
    00096   virtual void RenderData(vtkViewport*, vtkImageData*, vtkActor2D* )=0;
    00097
    00099
    00100   float GetColorShift();
    00101   float GetColorScale();
    00103
    00104   // Public for templated functions. * *  Should remove this * *
    00105   int DisplayExtent[6];
    00106
    00108
    00109   virtual void SetInput(vtkImageData *input);
    00110   vtkImageData *GetInput();
    00112
    00114
    00117   vtkSetMacro(RenderToRectangle,int);
    00118   vtkGetMacro(RenderToRectangle,int);
    00119   vtkBooleanMacro(RenderToRectangle,int);
    00121
    00123
    00127   vtkSetMacro(UseCustomExtents,int);
    00128   vtkGetMacro(UseCustomExtents,int);
    00129   vtkBooleanMacro(UseCustomExtents,int);
    00131
    00133
    00136   vtkSetVectorMacro(CustomDisplayExtents,int,4);
    00137   vtkGetVectorMacro(CustomDisplayExtents,int,4);
    00139
    00140 protected:
    00141   vtkImageMapper();
    00142   ~vtkImageMapper();
    00143
    00144   float ColorWindow;
    00145   float ColorLevel;
    00146
    00147   int PositionAdjustment[2];
    00148   int ZSlice;
    00149   int UseCustomExtents;
    00150   int CustomDisplayExtents[4];
    00151   int RenderToRectangle;
    00152 private:
    00153   vtkImageMapper(const vtkImageMapper&);  // Not implemented.
    00154   void operator=(const vtkImageMapper&);  // Not implemented.
    00155 };
    00156
    00157
    00158
    00159 #endif
    00160
    00161