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
29#ifndef vtkBoundedPointSource_h
30#define vtkBoundedPointSource_h
31
32#include "vtkFiltersPointsModule.h" // For export macro
34
35VTK_ABI_NAMESPACE_BEGIN
36class VTKFILTERSPOINTS_EXPORT vtkBoundedPointSource : public vtkPolyDataAlgorithm
37{
38public:
40
45 void PrintSelf(ostream& os, vtkIndent indent) override;
47
49
52 vtkSetClampMacro(NumberOfPoints, vtkIdType, 1, VTK_ID_MAX);
53 vtkGetMacro(NumberOfPoints, vtkIdType);
55
57
61 vtkSetVector6Macro(Bounds, double);
62 vtkGetVectorMacro(Bounds, double, 6);
64
66
71 vtkSetMacro(OutputPointsPrecision, int);
72 vtkGetMacro(OutputPointsPrecision, int);
74
76
81 vtkSetMacro(ProduceCellOutput, bool);
82 vtkGetMacro(ProduceCellOutput, bool);
83 vtkBooleanMacro(ProduceCellOutput, bool);
85
87
91 vtkSetMacro(ProduceRandomScalars, bool);
92 vtkGetMacro(ProduceRandomScalars, bool);
93 vtkBooleanMacro(ProduceRandomScalars, bool);
95
97
101 vtkSetVector2Macro(ScalarRange, double);
102 vtkGetVectorMacro(ScalarRange, double, 2);
104
105protected:
107 ~vtkBoundedPointSource() override = default;
108
110
112 double Bounds[6];
116 double ScalarRange[2];
117
118private:
120 void operator=(const vtkBoundedPointSource&) = delete;
121};
122
123VTK_ABI_NAMESPACE_END
124#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:38
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