VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Rendering
Context2D
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 "vtkRenderingContext2DModule.h"
// For export macro
29
#include "
vtkAbstractContextItem.h
"
30
#include "
vtkSmartPointer.h
"
// Needed for SP ivars.
31
32
class
VTKRENDERINGCONTEXT2D_EXPORT
vtkContextClip
:
public
vtkAbstractContextItem
33
{
34
public
:
35
vtkTypeMacro(
vtkContextClip
,
vtkAbstractContextItem
);
36
virtual
void
PrintSelf
(ostream &os,
vtkIndent
indent);
37
39
static
vtkContextClip
*
New
();
40
44
virtual
void
Update
();
45
47
virtual
bool
Paint
(
vtkContext2D
*painter);
48
51
virtual
void
SetClip(
float
x,
float
y,
float
width,
float
height
);
52
53
//BTX
54
protected
:
55
vtkContextClip
();
56
~
vtkContextClip
();
57
58
float
Dims[4];
59
60
private
:
61
vtkContextClip
(
const
vtkContextClip
&);
// Not implemented.
62
void
operator=(
const
vtkContextClip
&);
// Not implemented.
63
//ETX
64
};
65
66
#endif //__vtkContextClip_h
Generated on Thu May 24 2012 22:22:33 for VTK by
1.8.1