00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkContextItem.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 __vtkContextClip_h 00026 #define __vtkContextClip_h 00027 00028 #include "vtkAbstractContextItem.h" 00029 #include "vtkSmartPointer.h" // Needed for SP ivars. 00030 00031 class VTK_CHARTS_EXPORT vtkContextClip : public vtkAbstractContextItem 00032 { 00033 public: 00034 vtkTypeMacro(vtkContextClip, vtkAbstractContextItem); 00035 virtual void PrintSelf(ostream &os, vtkIndent indent); 00036 00038 static vtkContextClip *New(); 00039 00043 virtual void Update(); 00044 00046 virtual bool Paint(vtkContext2D *painter); 00047 00050 virtual void SetClip(float x, float y, float width, float height); 00051 00052 //BTX 00053 protected: 00054 vtkContextClip(); 00055 ~vtkContextClip(); 00056 00057 float Dims[4]; 00058 00059 private: 00060 vtkContextClip(const vtkContextClip &); // Not implemented. 00061 void operator=(const vtkContextClip &); // Not implemented. 00062 //ETX 00063 }; 00064 00065 #endif //__vtkContextClip_h