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 =========================================================================*/
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 
43 {
44 public:
47  void PrintSelf(ostream& os, vtkIndent indent);
48 
49 //BTX
50  enum {
51  POLYGON = 0,
52  SPLINE = 1
53  };
54 //ETX
55 
57 
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);
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:
98 
101 
102  int Shape;
107  vtkLSSPointMap *PointMap;
108 
109 private:
110  vtkLassoStencilSource(const vtkLassoStencilSource&); // Not implemented.
111  void operator=(const vtkLassoStencilSource&); // Not implemented.
112 };
113 
114 #endif
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:39
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkLassoStencilSource::SplineY
vtkSpline * SplineY
Definition: vtkLassoStencilSource.h:106
vtkLassoStencilSource::SetShapeToSpline
void SetShapeToSpline()
Definition: vtkLassoStencilSource.h:62
vtkLassoStencilSource::RemoveAllSlicePoints
virtual void RemoveAllSlicePoints()
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkLassoStencilSource::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkLassoStencilSource::GetSlicePoints
virtual vtkPoints * GetSlicePoints(int i)
vtkX3D::Shape
@ Shape
Definition: vtkX3D.h:36
vtkgl::points
GLsizei const GLfloat * points
Definition: vtkgl.h:14786
vtkLassoStencilSource::SetPoints
virtual void SetPoints(vtkPoints *points)
vtkLassoStencilSource::GetShapeAsString
virtual const char * GetShapeAsString()
vtkLassoStencilSource::SplineX
vtkSpline * SplineX
Definition: vtkLassoStencilSource.h:105
vtkSetClampMacro
#define vtkSetClampMacro(name, type, min, max)
Definition: vtkSetGet.h:143
vtkLassoStencilSource::vtkLassoStencilSource
vtkLassoStencilSource()
vtkLassoStencilSource::SetSlicePoints
virtual void SetSlicePoints(int i, vtkPoints *points)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkImagingStencilModule.h
VTKIMAGINGSTENCIL_EXPORT
#define VTKIMAGINGSTENCIL_EXPORT
Definition: vtkImagingStencilModule.h:15
vtkLassoStencilSource::GetMTime
unsigned long GetMTime()
vtkImageStencilSource.h
vtkSpline
spline abstract class for interpolating splines
Definition: vtkSpline.h:62
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkLassoStencilSource::New
static vtkLassoStencilSource * New()
vtkLassoStencilSource::PointMap
vtkLSSPointMap * PointMap
Definition: vtkLassoStencilSource.h:107
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkImageStencilSource
generate an image stencil
Definition: vtkImageStencilSource.h:43
vtkLassoStencilSource::SetShapeToPolygon
void SetShapeToPolygon()
Definition: vtkLassoStencilSource.h:61
vtkLassoStencilSource::Shape
int Shape
Definition: vtkLassoStencilSource.h:102
vtkLassoStencilSource::SliceOrientation
int SliceOrientation
Definition: vtkLassoStencilSource.h:103
vtkLassoStencilSource
Create a stencil from a contour.
Definition: vtkLassoStencilSource.h:43
vtkLassoStencilSource::~vtkLassoStencilSource
~vtkLassoStencilSource()
vtkLassoStencilSource::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkLassoStencilSource::Points
vtkPoints * Points
Definition: vtkLassoStencilSource.h:104