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
Store vtkAlgorithm input/output information.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302
static vtkImageStencilSource * New()
void SetShapeToSpline()
The shape to use, default is "Polygon".
a simple class to control print indentation
Definition: vtkIndent.h:33
spline abstract class for interpolating splines
Definition: vtkSpline.h:62
virtual vtkMTimeType GetMTime()
Return this object's modified time.
void SetShapeToPolygon()
The shape to use, default is "Polygon".
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Store zero or more vtkInformation instances.
Create a stencil from a contour.
generate an image stencil
represent and manipulate 3D points
Definition: vtkPoints.h:33