VTK  9.5.20251213
vtkParametricFunctionSource.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
146
147#ifndef vtkParametricFunctionSource_h
148#define vtkParametricFunctionSource_h
149
150#include "vtkFiltersSourcesModule.h" // For export macro
151#include "vtkPolyDataAlgorithm.h"
152#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
153
154VTK_ABI_NAMESPACE_BEGIN
155class vtkCellArray;
157
158class VTKFILTERSSOURCES_EXPORT VTK_MARSHALAUTO vtkParametricFunctionSource
159 : public vtkPolyDataAlgorithm
160{
161public:
163 void PrintSelf(ostream& os, vtkIndent indent) override;
164
169
171
177
179
184 vtkSetClampMacro(UResolution, int, 2, VTK_INT_MAX);
185 vtkGetMacro(UResolution, int);
187
189
194 vtkSetClampMacro(VResolution, int, 2, VTK_INT_MAX);
195 vtkGetMacro(VResolution, int);
197
199
204 vtkSetClampMacro(WResolution, int, 2, VTK_INT_MAX);
205 vtkGetMacro(WResolution, int);
207
209
217 vtkSetClampMacro(GenerateTextureCoordinates, vtkTypeBool, 0, 1);
220
222
228 vtkBooleanMacro(GenerateNormals, vtkTypeBool);
229 vtkSetClampMacro(GenerateNormals, vtkTypeBool, 0, 1);
232
277
279
284 vtkGetMacro(ScalarMode, int);
300
305
307
312 vtkSetMacro(OutputPointsPrecision, int);
313 vtkGetMacro(OutputPointsPrecision, int);
315
316protected:
319
320 // Usual data generation method
322 vtkInformation* info, vtkInformationVector** input, vtkInformationVector* output) override;
323
324 // Variables
326
334
335private:
336 // Create output depending on function dimension
337 void Produce1DOutput(vtkInformationVector* output);
338 void Produce2DOutput(vtkInformationVector* output);
339
351 void MakeTriangles(vtkCellArray* strips, int PtsU, int PtsV);
352
354 void operator=(const vtkParametricFunctionSource&) = delete;
355};
356
357VTK_ABI_NAMESPACE_END
358#endif
object to represent cell connectivity
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
void SetScalarModeToNone()
Get/Set the mode used for the scalar data.
void SetScalarModeToU0V0()
Get/Set the mode used for the scalar data.
void SetScalarModeToX()
Get/Set the mode used for the scalar data.
int RequestData(vtkInformation *info, vtkInformationVector **input, vtkInformationVector *output) override
This is called by the superclass.
void SetScalarModeToV()
Get/Set the mode used for the scalar data.
void SetScalarModeToY()
Get/Set the mode used for the scalar data.
void SetScalarModeToQuadrant()
Get/Set the mode used for the scalar data.
vtkMTimeType GetMTime() override
Return the MTime also considering the parametric function.
void SetScalarModeToZ()
Get/Set the mode used for the scalar data.
SCALAR_MODE
Enumerate the supported scalar generation modes.
void SetScalarModeToU0()
Get/Set the mode used for the scalar data.
void SetScalarModeToU()
Get/Set the mode used for the scalar data.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkParametricFunctionSource() override
void SetScalarModeToPhase()
Get/Set the mode used for the scalar data.
void SetScalarModeToDistance()
Get/Set the mode used for the scalar data.
void SetScalarModeToV0()
Get/Set the mode used for the scalar data.
void SetScalarModeToModulus()
Get/Set the mode used for the scalar data.
virtual void SetScalarMode(int)
Get/Set the mode used for the scalar data.
static vtkParametricFunctionSource * New()
Create a new instance with (50,50,50) points in the (u-v-w) directions.
virtual void SetParametricFunction(vtkParametricFunction *)
Specify the parametric function to use to generate the tessellation.
void SetScalarModeToFunctionDefined()
Get/Set the mode used for the scalar data.
abstract interface for parametric functions
int vtkTypeBool
Definition vtkABI.h:64
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:322
#define VTK_INT_MAX
Definition vtkType.h:196
#define VTK_MARSHALAUTO