VTK
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 =========================================================================*/
59 #ifndef vtkRuledSurfaceFilter_h
60 #define vtkRuledSurfaceFilter_h
61 
62 #include "vtkFiltersModelingModule.h" // For export macro
63 #include "vtkPolyDataAlgorithm.h"
64 
65 class vtkIdList;
66 class vtkPoints;
67 class vtkPolyData;
68 
69 #define VTK_RULED_MODE_RESAMPLE 0
70 #define VTK_RULED_MODE_POINT_WALK 1
71 
73 {
74 public:
76  void PrintSelf(ostream& os, vtkIndent indent);
77 
80  static vtkRuledSurfaceFilter *New();
81 
83 
84  vtkSetClampMacro(DistanceFactor,double,1.0,VTK_DOUBLE_MAX);
85  vtkGetMacro(DistanceFactor,double);
87 
89 
92  vtkSetClampMacro(OnRatio,int,1,VTK_INT_MAX);
93  vtkGetMacro(OnRatio,int);
95 
97 
100  vtkSetClampMacro(Offset,int,0,VTK_INT_MAX);
101  vtkGetMacro(Offset,int);
103 
105 
110  vtkSetMacro(CloseSurface,int);
111  vtkGetMacro(CloseSurface,int);
112  vtkBooleanMacro(CloseSurface,int);
114 
116 
121  vtkSetClampMacro(RuledMode,int,
123  vtkGetMacro(RuledMode,int);
125  {this->SetRuledMode(VTK_RULED_MODE_RESAMPLE);}
127  {this->SetRuledMode(VTK_RULED_MODE_POINT_WALK);}
128  const char *GetRuledModeAsString();
130 
132 
137  vtkSetVector2Macro(Resolution, int);
138  vtkGetVectorMacro(Resolution, int, 2);
140 
142 
144  vtkSetMacro(PassLines,int);
145  vtkGetMacro(PassLines,int);
146  vtkBooleanMacro(PassLines,int);
148 
150 
154  vtkSetMacro(OrientLoops,int);
155  vtkGetMacro(OrientLoops,int);
156  vtkBooleanMacro(OrientLoops,int);
158 
159 protected:
162 
163  // Usual data generation method
165 
167  int OnRatio;
168  int Offset;
171  int Resolution[2];
174 
175 private:
176  vtkIdList *Ids;
177  double Weights[4];
178 
179  void Resample(vtkPolyData *output, vtkPolyData *input,
180  vtkPoints *inPts, vtkPoints *newPts,
181  int npts, vtkIdType *pts, int npts2, vtkIdType *pts2);
182  void PointWalk(vtkPolyData *output, vtkPoints *inPts,
183  int npts, vtkIdType *pts, int npts2, vtkIdType *pts2);
184 
185 private:
186  vtkRuledSurfaceFilter(const vtkRuledSurfaceFilter&); // Not implemented.
187  void operator=(const vtkRuledSurfaceFilter&); // Not implemented.
188 };
189 
190 #endif
#define VTK_DOUBLE_MAX
Definition: vtkType.h:142
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTK_INT_MAX
Definition: vtkType.h:132
#define VTKFILTERSMODELING_EXPORT
int vtkIdType
Definition: vtkType.h:275
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:83
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only polydata as output.
#define VTK_RULED_MODE_POINT_WALK
a simple class to control print indentation
Definition: vtkIndent.h:38
list of point or cell ids
Definition: vtkIdList.h:35
#define VTK_RULED_MODE_RESAMPLE
Store zero or more vtkInformation instances.
generates a surface from a set of lines
represent and manipulate 3D points
Definition: vtkPoints.h:38