VTK
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 =========================================================================*/
32 #ifndef vtkLassoStencilSource_h
33 #define vtkLassoStencilSource_h
34 
35 
36 #include "vtkImagingStencilModule.h" // For export macro
37 #include "vtkImageStencilSource.h"
38 
39 class vtkPoints;
40 class vtkSpline;
41 class vtkLSSPointMap;
42 
43 class VTKIMAGINGSTENCIL_EXPORT vtkLassoStencilSource : public vtkImageStencilSource
44 {
45 public:
48  void PrintSelf(ostream& os, vtkIndent indent);
49 
50  enum {
51  POLYGON = 0,
52  SPLINE = 1
53  };
54 
56 
60  vtkGetMacro(Shape, int);
61  vtkSetClampMacro(Shape, int, POLYGON, SPLINE);
62  void SetShapeToPolygon() { this->SetShape(POLYGON); };
63  void SetShapeToSpline() { this->SetShape(SPLINE); };
64  virtual const char *GetShapeAsString();
66 
68 
73  virtual void SetPoints(vtkPoints *points);
74  vtkGetObjectMacro(Points, vtkPoints);
76 
78 
82  vtkGetMacro(SliceOrientation, int);
83  vtkSetClampMacro(SliceOrientation, int, 0, 2);
85 
87 
92  virtual void SetSlicePoints(int i, vtkPoints *points);
93  virtual vtkPoints *GetSlicePoints(int i);
95 
99  virtual void RemoveAllSlicePoints();
100 
105 
106 protected:
109 
112 
113  int Shape;
118  vtkLSSPointMap *PointMap;
119 
120 private:
121  vtkLassoStencilSource(const vtkLassoStencilSource&) VTK_DELETE_FUNCTION;
122  void operator=(const vtkLassoStencilSource&) VTK_DELETE_FUNCTION;
123 };
124 
125 #endif
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:40
vtkLassoStencilSource::SplineY
vtkSpline * SplineY
Definition: vtkLassoStencilSource.h:117
vtkLassoStencilSource::SetShapeToSpline
void SetShapeToSpline()
Definition: vtkLassoStencilSource.h:63
vtkLassoStencilSource::RemoveAllSlicePoints
virtual void RemoveAllSlicePoints()
Remove points from all slices.
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkLassoStencilSource::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkLassoStencilSource::GetSlicePoints
virtual vtkPoints * GetSlicePoints(int i)
vtkX3D::Shape
@ Shape
Definition: vtkX3D.h:36
vtkLassoStencilSource::SetPoints
virtual void SetPoints(vtkPoints *points)
The points that make up the lassoo.
vtkMTimeType
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
vtkLassoStencilSource::GetShapeAsString
virtual const char * GetShapeAsString()
vtkLassoStencilSource::SplineX
vtkSpline * SplineX
Definition: vtkLassoStencilSource.h:116
vtkX3D::points
@ points
Definition: vtkX3D.h:446
vtkLassoStencilSource::vtkLassoStencilSource
vtkLassoStencilSource()
vtkLassoStencilSource::GetMTime
vtkMTimeType GetMTime()
Overload GetMTime() to include the timestamp on the points.
vtkLassoStencilSource::SetSlicePoints
virtual void SetSlicePoints(int i, vtkPoints *points)
The points for a particular slice.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkImageStencilSource.h
vtkSpline
spline abstract class for interpolating splines
Definition: vtkSpline.h:63
vtkLassoStencilSource::New
static vtkLassoStencilSource * New()
vtkLassoStencilSource::PointMap
vtkLSSPointMap * PointMap
Definition: vtkLassoStencilSource.h:118
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkImageStencilSource
generate an image stencil
Definition: vtkImageStencilSource.h:44
vtkLassoStencilSource::SetShapeToPolygon
void SetShapeToPolygon()
Definition: vtkLassoStencilSource.h:62
vtkLassoStencilSource::Shape
int Shape
Definition: vtkLassoStencilSource.h:113
vtkLassoStencilSource::SliceOrientation
int SliceOrientation
Definition: vtkLassoStencilSource.h:114
vtkLassoStencilSource
Create a stencil from a contour.
Definition: vtkLassoStencilSource.h:44
vtkLassoStencilSource::~vtkLassoStencilSource
~vtkLassoStencilSource()
vtkLassoStencilSource::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkLassoStencilSource::Points
vtkPoints * Points
Definition: vtkLassoStencilSource.h:115