00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkPlotGrid.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 =========================================================================*/ 00015 00026 #ifndef __vtkPlotGrid_h 00027 #define __vtkPlotGrid_h 00028 00029 #include "vtkContextItem.h" 00030 00031 class vtkStdString; 00032 class vtkContext2D; 00033 class vtkPoints2D; 00034 class vtkAxis; 00035 00036 class VTK_CHARTS_EXPORT vtkPlotGrid : public vtkContextItem 00037 { 00038 public: 00039 vtkTypeRevisionMacro(vtkPlotGrid, vtkContextItem); 00040 virtual void PrintSelf(ostream &os, vtkIndent indent); 00041 00043 static vtkPlotGrid *New(); 00044 00046 virtual void SetXAxis(vtkAxis *axis); 00047 00049 virtual void SetYAxis(vtkAxis *axis); 00050 00052 virtual bool Paint(vtkContext2D *painter); 00053 00054 //BTX 00055 protected: 00056 vtkPlotGrid(); 00057 ~vtkPlotGrid(); 00058 00060 00062 vtkAxis *XAxis; 00063 vtkAxis *YAxis; 00065 00066 // These variables are not publicly accessible - cached for convenience 00067 float Point1[2]; // The position of the grid origin 00068 float Point2[2]; // Maximum positions in x and y (top corner of the grid 00069 00070 private: 00071 vtkPlotGrid(const vtkPlotGrid &); // Not implemented. 00072 void operator=(const vtkPlotGrid &); // Not implemented. 00073 //ETX 00074 }; 00075 00076 #endif //__vtkPlotGrid_h