VTK
vtkContourLoopExtraction.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkContourLoopExtraction.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 =========================================================================*/
59 #ifndef vtkContourLoopExtraction_h
60 #define vtkContourLoopExtraction_h
61 
62 #include "vtkFiltersModelingModule.h" // For export macro
63 #include "vtkPolyDataAlgorithm.h"
64 
65 #define VTK_LOOP_CLOSURE_OFF 0
66 #define VTK_LOOP_CLOSURE_BOUNDARY 1
67 #define VTK_LOOP_CLOSURE_ALL 2
68 
69 class VTKFILTERSMODELING_EXPORT vtkContourLoopExtraction : public vtkPolyDataAlgorithm
70 {
71 public:
73 
76  static vtkContourLoopExtraction *New();
78  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
80 
82 
87  vtkSetClampMacro(LoopClosure,int,VTK_LOOP_CLOSURE_OFF,VTK_LOOP_CLOSURE_ALL);
88  vtkGetMacro(LoopClosure,int);
90  {this->SetLoopClosure(VTK_LOOP_CLOSURE_OFF);};
92  {this->SetLoopClosure(VTK_LOOP_CLOSURE_BOUNDARY);};
94  {this->SetLoopClosure(VTK_LOOP_CLOSURE_ALL);};
95  const char *GetLoopClosureAsString();
97 
99 
104  vtkSetMacro(ScalarThresholding,bool);
105  vtkGetMacro(ScalarThresholding,bool);
106  vtkBooleanMacro(ScalarThresholding,bool);
108 
110 
115  vtkSetVector2Macro(ScalarRange,double);
116  vtkGetVector2Macro(ScalarRange,double);
118 
120 
124  vtkSetVector3Macro(Normal,double);
125  vtkGetVector3Macro(Normal,double);
127 
128 protected:
131 
134  double ScalarRange[2];
135  double Normal[3];
136 
138  vtkInformationVector *) VTK_OVERRIDE;
139 
140 private:
141  vtkContourLoopExtraction(const vtkContourLoopExtraction&) VTK_DELETE_FUNCTION;
142  void operator=(const vtkContourLoopExtraction&) VTK_DELETE_FUNCTION;
143 };
144 
145 
146 #endif
#define VTK_LOOP_CLOSURE_ALL
Store vtkAlgorithm input/output information.
void SetLoopClosureToOff()
Specify whether to close loops or not.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
#define VTK_LOOP_CLOSURE_BOUNDARY
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:33
#define VTK_LOOP_CLOSURE_OFF
void SetLoopClosureToBoundary()
Specify whether to close loops or not.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void SetLoopClosureToAll()
Specify whether to close loops or not.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
extract closed loops (polygons) from lines