VTK  9.3.1
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
24 #include "vtkPolyDataAlgorithm.h"
25 
26 VTK_ABI_NAMESPACE_BEGIN
27 class VTKFILTERSPOINTS_EXPORT vtkBoundedPointSource : public vtkPolyDataAlgorithm
28 {
29 public:
31 
34  static vtkBoundedPointSource* New();
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 
96 protected:
98  ~vtkBoundedPointSource() override = default;
99 
101 
103  double Bounds[6];
107  double ScalarRange[2];
108 
109 private:
111  void operator=(const vtkBoundedPointSource&) = delete;
112 };
113 
114 VTK_ABI_NAMESPACE_END
115 #endif
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
int vtkIdType
Definition: vtkType.h:315
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:28
create a random cloud of points within a specified bounding box
#define VTK_ID_MAX
Definition: vtkType.h:319
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.