VTK  9.1.0
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
33#include "vtkImagingStencilModule.h" // For export macro
34
35class vtkPoints;
36class vtkSpline;
37class vtkLSSPointMap;
38
39class VTKIMAGINGSTENCIL_EXPORT vtkLassoStencilSource : public vtkImageStencilSource
40{
41public:
44 void PrintSelf(ostream& os, vtkIndent indent) override;
45
46 enum
47 {
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
102
103protected:
106
108
109 int Shape;
114 vtkLSSPointMap* PointMap;
115
116private:
118 void operator=(const vtkLassoStencilSource&) = delete;
119};
120
121#endif
generate an image stencil
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Create a stencil from a contour.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetShapeToSpline()
The shape to use, default is "Polygon".
virtual vtkPoints * GetSlicePoints(int i)
The points for a particular slice.
virtual void SetPoints(vtkPoints *points)
The points that make up the lassoo.
virtual const char * GetShapeAsString()
The shape to use, default is "Polygon".
void SetShapeToPolygon()
The shape to use, default is "Polygon".
vtkMTimeType GetMTime() override
Overload GetMTime() to include the timestamp on the points.
~vtkLassoStencilSource() override
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
static vtkLassoStencilSource * New()
virtual void RemoveAllSlicePoints()
Remove points from all slices.
virtual void SetSlicePoints(int i, vtkPoints *points)
The points for a particular slice.
represent and manipulate 3D points
Definition: vtkPoints.h:143
spline abstract class for interpolating splines
Definition: vtkSpline.h:82
@ Shape
Definition: vtkX3D.h:42
@ points
Definition: vtkX3D.h:452
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287