VTK
|
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 "vtkAlgorithm.h" 00029 00030 class vtkContext2D; 00031 class vtkTable; 00032 class vtkDataArray; 00033 class vtkAbstractArray; 00034 00035 class VTK_CHARTS_EXPORT vtkContextMapper2D : public vtkAlgorithm 00036 { 00037 public: 00038 vtkTypeMacro(vtkContextMapper2D, vtkAlgorithm); 00039 virtual void PrintSelf(ostream &os, vtkIndent indent); 00040 static vtkContextMapper2D *New(); 00041 00043 00044 virtual void SetInput(vtkTable *input); 00045 virtual vtkTable * GetInput(); 00047 00049 00050 vtkDataArray *GetInputArrayToProcess(int idx, 00051 vtkDataObject* input) 00052 { 00053 return this->vtkAlgorithm::GetInputArrayToProcess(idx, input); 00054 } 00056 00057 vtkAbstractArray *GetInputAbstractArrayToProcess(int idx, 00058 vtkDataObject* input) 00059 { 00060 return this->vtkAlgorithm::GetInputAbstractArrayToProcess(idx, input); 00061 } 00062 00063 //BTX 00064 protected: 00065 vtkContextMapper2D(); 00066 ~vtkContextMapper2D(); 00067 00069 virtual int FillInputPortInformation(int port, vtkInformation *info); 00070 00071 private: 00072 vtkContextMapper2D(const vtkContextMapper2D &); // Not implemented. 00073 void operator=(const vtkContextMapper2D &); // Not implemented. 00074 //ETX 00075 }; 00076 00077 #endif //__vtkContextMapper2D_h