VTK  9.3.20240426
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
59#ifndef vtkBoundedPointSource_h
60#define vtkBoundedPointSource_h
61
62#include "vtkFiltersPointsModule.h" // For export macro
64
65VTK_ABI_NAMESPACE_BEGIN
66class VTKFILTERSPOINTS_EXPORT vtkBoundedPointSource : public vtkPolyDataAlgorithm
67{
68public:
70
75 void PrintSelf(ostream& os, vtkIndent indent) override;
77
79
82 vtkSetClampMacro(NumberOfPoints, vtkIdType, 1, VTK_ID_MAX);
83 vtkGetMacro(NumberOfPoints, vtkIdType);
85
87
91 vtkSetVector6Macro(Bounds, double);
92 vtkGetVectorMacro(Bounds, double, 6);
94
96
101 vtkSetMacro(OutputPointsPrecision, int);
102 vtkGetMacro(OutputPointsPrecision, int);
104
106
111 vtkSetMacro(ProduceCellOutput, bool);
112 vtkGetMacro(ProduceCellOutput, bool);
113 vtkBooleanMacro(ProduceCellOutput, bool);
115
117
121 vtkSetMacro(ProduceRandomScalars, bool);
122 vtkGetMacro(ProduceRandomScalars, bool);
123 vtkBooleanMacro(ProduceRandomScalars, bool);
125
127
131 vtkSetVector2Macro(ScalarRange, double);
132 vtkGetVectorMacro(ScalarRange, double, 2);
134
135protected:
137 ~vtkBoundedPointSource() override = default;
138
140
142 double Bounds[6];
146 double ScalarRange[2];
147
148private:
150 void operator=(const vtkBoundedPointSource&) = delete;
151};
152
153VTK_ABI_NAMESPACE_END
154#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:108
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