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 =========================================================================*/
29 #ifndef vtkLassoStencilSource_h
30 #define vtkLassoStencilSource_h
31 
32 
33 #include "vtkImagingStencilModule.h" // For export macro
34 #include "vtkImageStencilSource.h"
35 
36 class vtkPoints;
37 class vtkSpline;
38 class vtkLSSPointMap;
39 
40 class VTKIMAGINGSTENCIL_EXPORT vtkLassoStencilSource : public vtkImageStencilSource
41 {
42 public:
43  static vtkLassoStencilSource *New();
45  void PrintSelf(ostream& os, vtkIndent indent) override;
46 
47  enum {
48  POLYGON = 0,
49  SPLINE = 1
50  };
51 
53 
57  vtkGetMacro(Shape, int);
58  vtkSetClampMacro(Shape, int, POLYGON, SPLINE);
59  void SetShapeToPolygon() { this->SetShape(POLYGON); };
60  void SetShapeToSpline() { this->SetShape(SPLINE); };
61  virtual const char *GetShapeAsString();
63 
65 
70  virtual void SetPoints(vtkPoints *points);
71  vtkGetObjectMacro(Points, vtkPoints);
73 
75 
79  vtkGetMacro(SliceOrientation, int);
80  vtkSetClampMacro(SliceOrientation, int, 0, 2);
82 
84 
89  virtual void SetSlicePoints(int i, vtkPoints *points);
90  virtual vtkPoints *GetSlicePoints(int i);
92 
96  virtual void RemoveAllSlicePoints();
97 
101  vtkMTimeType GetMTime() override;
102 
103 protected:
105  ~vtkLassoStencilSource() override;
106 
108  vtkInformationVector *) override;
109 
110  int Shape;
115  vtkLSSPointMap *PointMap;
116 
117 private:
119  void operator=(const vtkLassoStencilSource&) = delete;
120 };
121 
122 #endif
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:33
vtkImageStencilSource::New
static vtkImageStencilSource * New()
vtkLassoStencilSource::SplineY
vtkSpline * SplineY
Definition: vtkLassoStencilSource.h:114
vtkLassoStencilSource::SetShapeToSpline
void SetShapeToSpline()
Definition: vtkLassoStencilSource.h:60
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkX3D::Shape
Definition: vtkX3D.h:36
vtkLassoStencilSource::SplineX
vtkSpline * SplineX
Definition: vtkLassoStencilSource.h:113
vtkX3D::points
Definition: vtkX3D.h:446
vtkObject::GetMTime
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkImageStencilSource.h
vtkSpline
spline abstract class for interpolating splines
Definition: vtkSpline.h:62
vtkLassoStencilSource::PointMap
vtkLSSPointMap * PointMap
Definition: vtkLassoStencilSource.h:115
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:80
vtkImageStencilSource
generate an image stencil
Definition: vtkImageStencilSource.h:42
vtkLassoStencilSource::SetShapeToPolygon
void SetShapeToPolygon()
Definition: vtkLassoStencilSource.h:59
vtkLassoStencilSource::Shape
int Shape
Definition: vtkLassoStencilSource.h:110
vtkImageStencilSource::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkLassoStencilSource::SliceOrientation
int SliceOrientation
Definition: vtkLassoStencilSource.h:111
vtkLassoStencilSource
Create a stencil from a contour.
Definition: vtkLassoStencilSource.h:40
vtkImageStencilAlgorithm::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302
vtkLassoStencilSource::Points
vtkPoints * Points
Definition: vtkLassoStencilSource.h:112