VTK  9.6.1
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
37
38#ifndef vtkParametricFunctionSource_h
39#define vtkParametricFunctionSource_h
40
41#include "vtkFiltersSourcesModule.h" // For export macro
43#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
44
45VTK_ABI_NAMESPACE_BEGIN
46class vtkCellArray;
48
49class VTKFILTERSSOURCES_EXPORT VTK_MARSHALAUTO vtkParametricFunctionSource
51{
52public:
54 void PrintSelf(ostream& os, vtkIndent indent) override;
55
60
62
68
70
75 vtkSetClampMacro(UResolution, int, 2, VTK_INT_MAX);
76 vtkGetMacro(UResolution, int);
78
80
85 vtkSetClampMacro(VResolution, int, 2, VTK_INT_MAX);
86 vtkGetMacro(VResolution, int);
88
90
95 vtkSetClampMacro(WResolution, int, 2, VTK_INT_MAX);
96 vtkGetMacro(WResolution, int);
98
100
108 vtkSetClampMacro(GenerateTextureCoordinates, vtkTypeBool, 0, 1);
111
113
119 vtkBooleanMacro(GenerateNormals, vtkTypeBool);
120 vtkSetClampMacro(GenerateNormals, vtkTypeBool, 0, 1);
123
168
170
175 vtkGetMacro(ScalarMode, int);
191
196
198
203 vtkSetMacro(OutputPointsPrecision, int);
204 vtkGetMacro(OutputPointsPrecision, int);
206
207protected:
210
211 // Usual data generation method
213 vtkInformation* info, vtkInformationVector** input, vtkInformationVector* output) override;
214
215 // Variables
217
225
226private:
227 // Create output depending on function dimension
228 void Produce1DOutput(vtkInformationVector* output);
229 void Produce2DOutput(vtkInformationVector* output);
230
242 void MakeTriangles(vtkCellArray* strips, int PtsU, int PtsV);
243
245 void operator=(const vtkParametricFunctionSource&) = delete;
246};
247
248VTK_ABI_NAMESPACE_END
249#endif
object to represent cell connectivity
a simple class to control print indentation
Definition vtkIndent.h:29
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:323
#define VTK_INT_MAX
Definition vtkType.h:197
#define VTK_MARSHALAUTO