VTK
dox/Rendering/Context2D/vtkContextMapper2D.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkContextMapper2D.h
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 =========================================================================*/
00015 
00025 #ifndef __vtkContextMapper2D_h
00026 #define __vtkContextMapper2D_h
00027 
00028 #include "vtkRenderingContext2DModule.h" // For export macro
00029 #include "vtkAlgorithm.h"
00030 
00031 class vtkContext2D;
00032 class vtkTable;
00033 class vtkDataArray;
00034 class vtkAbstractArray;
00035 
00036 class VTKRENDERINGCONTEXT2D_EXPORT vtkContextMapper2D : public vtkAlgorithm
00037 {
00038 public:
00039   vtkTypeMacro(vtkContextMapper2D, vtkAlgorithm);
00040   virtual void PrintSelf(ostream &os, vtkIndent indent);
00041   static vtkContextMapper2D *New();
00042 
00044 
00045   virtual void SetInputData(vtkTable *input);
00046   virtual vtkTable * GetInput();
00048 
00050 
00051   vtkDataArray *GetInputArrayToProcess(int idx,
00052                                        vtkDataObject* input)
00053     {
00054     return this->vtkAlgorithm::GetInputArrayToProcess(idx, input);
00055     }
00057 
00058   vtkAbstractArray *GetInputAbstractArrayToProcess(int idx,
00059                                        vtkDataObject* input)
00060     {
00061     return this->vtkAlgorithm::GetInputAbstractArrayToProcess(idx, input);
00062     }
00063 
00064 //BTX
00065 protected:
00066   vtkContextMapper2D();
00067   ~vtkContextMapper2D();
00068 
00070   virtual int FillInputPortInformation(int port, vtkInformation *info);
00071 
00072 private:
00073   vtkContextMapper2D(const vtkContextMapper2D &); // Not implemented.
00074   void operator=(const vtkContextMapper2D &); // Not implemented.
00075 //ETX
00076 };
00077 
00078 #endif //__vtkContextMapper2D_h