VTK
vtkContextClip.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkContextItem.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 
25 #ifndef __vtkContextClip_h
26 #define __vtkContextClip_h
27 
28 #include "vtkAbstractContextItem.h"
29 #include "vtkSmartPointer.h" // Needed for SP ivars.
30 
32 {
33 public:
35  virtual void PrintSelf(ostream &os, vtkIndent indent);
36 
38  static vtkContextClip *New();
39 
43  virtual void Update();
44 
46  virtual bool Paint(vtkContext2D *painter);
47 
50  virtual void SetClip(float x, float y, float width, float height);
51 
52 //BTX
53 protected:
55  ~vtkContextClip();
56 
57  float Dims[4];
58 
59 private:
60  vtkContextClip(const vtkContextClip &); // Not implemented.
61  void operator=(const vtkContextClip &); // Not implemented.
62 //ETX
63 };
64 
65 #endif //__vtkContextClip_h
#define VTK_CHARTS_EXPORT
virtual bool Paint(vtkContext2D *painter)
Class for drawing 2D primitives to a graphical context.
Definition: vtkContext2D.h:54
a simple class to control print indentation
Definition: vtkIndent.h:37
base class for items that are part of a vtkContextScene.
static vtkObject * New()
all children of this item are clipped by the specified area.
virtual void Update()
virtual void PrintSelf(ostream &os, vtkIndent indent)