VTK  9.3.0
vtkBoundedPointSource.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
20#ifndef vtkBoundedPointSource_h
21#define vtkBoundedPointSource_h
22
23#include "vtkFiltersPointsModule.h" // For export macro
25
26VTK_ABI_NAMESPACE_BEGIN
27class VTKFILTERSPOINTS_EXPORT vtkBoundedPointSource : public vtkPolyDataAlgorithm
28{
29public:
31
36 void PrintSelf(ostream& os, vtkIndent indent) override;
38
40
43 vtkSetClampMacro(NumberOfPoints, vtkIdType, 1, VTK_ID_MAX);
44 vtkGetMacro(NumberOfPoints, vtkIdType);
46
48
52 vtkSetVector6Macro(Bounds, double);
53 vtkGetVectorMacro(Bounds, double, 6);
55
57
62 vtkSetMacro(OutputPointsPrecision, int);
63 vtkGetMacro(OutputPointsPrecision, int);
65
67
72 vtkSetMacro(ProduceCellOutput, bool);
73 vtkGetMacro(ProduceCellOutput, bool);
74 vtkBooleanMacro(ProduceCellOutput, bool);
76
78
82 vtkSetMacro(ProduceRandomScalars, bool);
83 vtkGetMacro(ProduceRandomScalars, bool);
84 vtkBooleanMacro(ProduceRandomScalars, bool);
86
88
92 vtkSetVector2Macro(ScalarRange, double);
93 vtkGetVectorMacro(ScalarRange, double, 2);
95
96protected:
98 ~vtkBoundedPointSource() override = default;
99
101
103 double Bounds[6];
107 double ScalarRange[2];
108
109private:
111 void operator=(const vtkBoundedPointSource&) = delete;
112};
113
114VTK_ABI_NAMESPACE_END
115#endif
create a random cloud of points within a specified bounding box
~vtkBoundedPointSource() override=default
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiation, type information and printing.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
static vtkBoundedPointSource * New()
Standard methods for instantiation, type information and printing.
a simple class to control print indentation
Definition vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
int vtkIdType
Definition vtkType.h:315
#define VTK_ID_MAX
Definition vtkType.h:319