VTK  9.2.5
vtkRuledSurfaceFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkRuledSurfaceFilter.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 =========================================================================*/
86 #ifndef vtkRuledSurfaceFilter_h
87 #define vtkRuledSurfaceFilter_h
88 
89 #include "vtkFiltersModelingModule.h" // For export macro
90 #include "vtkPolyDataAlgorithm.h"
91 
92 class vtkIdList;
93 class vtkPoints;
94 class vtkPolyData;
95 
96 #define VTK_RULED_MODE_RESAMPLE 0
97 #define VTK_RULED_MODE_POINT_WALK 1
98 
99 class VTKFILTERSMODELING_EXPORT vtkRuledSurfaceFilter : public vtkPolyDataAlgorithm
100 {
101 public:
103  void PrintSelf(ostream& os, vtkIndent indent) override;
104 
110 
112 
115  vtkSetClampMacro(DistanceFactor, double, 1.0, VTK_DOUBLE_MAX);
116  vtkGetMacro(DistanceFactor, double);
118 
120 
125  vtkSetClampMacro(OnRatio, int, 1, VTK_INT_MAX);
126  vtkGetMacro(OnRatio, int);
128 
130 
135  vtkSetClampMacro(Offset, int, 0, VTK_INT_MAX);
136  vtkGetMacro(Offset, int);
138 
140 
147  vtkSetMacro(CloseSurface, vtkTypeBool);
148  vtkGetMacro(CloseSurface, vtkTypeBool);
149  vtkBooleanMacro(CloseSurface, vtkTypeBool);
151 
153 
160  vtkSetClampMacro(RuledMode, int, VTK_RULED_MODE_RESAMPLE, VTK_RULED_MODE_POINT_WALK);
161  vtkGetMacro(RuledMode, int);
162  void SetRuledModeToResample() { this->SetRuledMode(VTK_RULED_MODE_RESAMPLE); }
163  void SetRuledModeToPointWalk() { this->SetRuledMode(VTK_RULED_MODE_POINT_WALK); }
164  const char* GetRuledModeAsString();
166 
168 
175  vtkSetVector2Macro(Resolution, int);
176  vtkGetVectorMacro(Resolution, int, 2);
178 
180 
184  vtkSetMacro(PassLines, vtkTypeBool);
185  vtkGetMacro(PassLines, vtkTypeBool);
186  vtkBooleanMacro(PassLines, vtkTypeBool);
188 
190 
196  vtkSetMacro(OrientLoops, vtkTypeBool);
197  vtkGetMacro(OrientLoops, vtkTypeBool);
198  vtkBooleanMacro(OrientLoops, vtkTypeBool);
200 
201 protected:
204 
205  // Usual data generation method
207 
209  int OnRatio;
210  int Offset;
213  int Resolution[2];
216 
217 private:
218  vtkIdList* Ids;
219  double Weights[4];
220 
221  void Resample(vtkPolyData* output, vtkPolyData* input, vtkPoints* inPts, vtkPoints* newPts,
222  int npts, const vtkIdType* pts, int npts2, const vtkIdType* pts2);
223  void PointWalk(vtkPolyData* output, vtkPoints* inPts, int npts, const vtkIdType* pts, int npts2,
224  const vtkIdType* pts2);
225 
226 private:
228  void operator=(const vtkRuledSurfaceFilter&) = delete;
229 };
230 
231 #endif
list of point or cell ids
Definition: vtkIdList.h:143
a simple class to control print indentation
Definition: vtkIndent.h:119
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
represent and manipulate 3D points
Definition: vtkPoints.h:149
Superclass for algorithms that produce only polydata as output.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:200
generates a surface from a set of lines
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
static vtkRuledSurfaceFilter * New()
Construct object with OnRatio=1, Offset=0.
~vtkRuledSurfaceFilter() override
void SetRuledModeToPointWalk()
Set the mode by which to create the ruled surface.
void SetRuledModeToResample()
Set the mode by which to create the ruled surface.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
const char * GetRuledModeAsString()
Set the mode by which to create the ruled surface.
int vtkTypeBool
Definition: vtkABI.h:69
#define VTK_RULED_MODE_RESAMPLE
#define VTK_RULED_MODE_POINT_WALK
int vtkIdType
Definition: vtkType.h:332
#define VTK_DOUBLE_MAX
Definition: vtkType.h:165
#define VTK_INT_MAX
Definition: vtkType.h:155