VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Imaging
Stencil
vtkLassoStencilSource.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkLassoStencilSource.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
=========================================================================*/
31
#ifndef __vtkLassoStencilSource_h
32
#define __vtkLassoStencilSource_h
33
34
35
#include "vtkImagingStencilModule.h"
// For export macro
36
#include "
vtkImageStencilSource.h
"
37
38
class
vtkPoints
;
39
class
vtkSpline
;
40
class
vtkLSSPointMap;
41
42
class
VTKIMAGINGSTENCIL_EXPORT
vtkLassoStencilSource
:
public
vtkImageStencilSource
43
{
44
public
:
45
static
vtkLassoStencilSource
*
New
();
46
vtkTypeMacro(
vtkLassoStencilSource
,
vtkImageStencilSource
);
47
void
PrintSelf
(ostream& os,
vtkIndent
indent);
48
49
//BTX
50
enum
{
51
POLYGON = 0,
52
SPLINE = 1,
53
};
54
//ETX
55
57
59
vtkGetMacro(
Shape
,
int
);
60
vtkSetClampMacro(
Shape
,
int
, POLYGON, SPLINE);
61
void
SetShapeToPolygon
() { this->SetShape(POLYGON); };
62
void
SetShapeToSpline
() { this->SetShape(SPLINE); };
63
virtual
const
char
*GetShapeAsString();
65
67
70
virtual
void
SetPoints(
vtkPoints
*
points
);
71
vtkGetObjectMacro(Points,
vtkPoints
);
73
75
77
vtkGetMacro(SliceOrientation,
int
);
78
vtkSetClampMacro(SliceOrientation,
int
, 0, 2);
80
82
85
virtual
void
SetSlicePoints(
int
i,
vtkPoints
*
points
);
86
virtual
vtkPoints
*GetSlicePoints(
int
i);
88
90
virtual
void
RemoveAllSlicePoints();
91
93
unsigned
long
GetMTime
();
94
95
protected
:
96
vtkLassoStencilSource
();
97
~
vtkLassoStencilSource
();
98
99
virtual
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
100
vtkInformationVector
*);
101
102
int
Shape
;
103
int
SliceOrientation
;
104
vtkPoints
*
Points
;
105
vtkSpline
*
SplineX
;
106
vtkSpline
*
SplineY
;
107
vtkLSSPointMap *
PointMap
;
108
109
private
:
110
vtkLassoStencilSource
(
const
vtkLassoStencilSource
&);
// Not implemented.
111
void
operator=(
const
vtkLassoStencilSource
&);
// Not implemented.
112
};
113
114
#endif
Generated on Thu May 24 2012 22:22:25 for VTK by
1.8.1