VTK
dox/Rendering/Context2D/vtkContextClip.h
Go to the documentation of this file.
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 "vtkRenderingContext2DModule.h" // For export macro
00029 #include "vtkAbstractContextItem.h"
00030 #include "vtkSmartPointer.h" // Needed for SP ivars.
00031 
00032 class VTKRENDERINGCONTEXT2D_EXPORT vtkContextClip : public vtkAbstractContextItem
00033 {
00034 public:
00035   vtkTypeMacro(vtkContextClip, vtkAbstractContextItem);
00036   virtual void PrintSelf(ostream &os, vtkIndent indent);
00037 
00039   static vtkContextClip *New();
00040 
00044   virtual void Update();
00045 
00047   virtual bool Paint(vtkContext2D *painter);
00048 
00051   virtual void SetClip(float x, float y, float width, float height);
00052 
00053 //BTX
00054 protected:
00055   vtkContextClip();
00056   ~vtkContextClip();
00057 
00058   float Dims[4];
00059 
00060 private:
00061   vtkContextClip(const vtkContextClip &); // Not implemented.
00062   void operator=(const vtkContextClip &);   // Not implemented.
00063 //ETX
00064 };
00065 
00066 #endif //__vtkContextClip_h