VTK  9.1.0
vtkBoundedPointSource.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkBoundedPointSource.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
68#ifndef vtkBoundedPointSource_h
69#define vtkBoundedPointSource_h
70
71#include "vtkFiltersPointsModule.h" // For export macro
73
74class VTKFILTERSPOINTS_EXPORT vtkBoundedPointSource : public vtkPolyDataAlgorithm
75{
76public:
78
83 void PrintSelf(ostream& os, vtkIndent indent) override;
85
87
90 vtkSetClampMacro(NumberOfPoints, vtkIdType, 1, VTK_ID_MAX);
91 vtkGetMacro(NumberOfPoints, vtkIdType);
93
95
99 vtkSetVector6Macro(Bounds, double);
100 vtkGetVectorMacro(Bounds, double, 6);
102
104
109 vtkSetMacro(OutputPointsPrecision, int);
110 vtkGetMacro(OutputPointsPrecision, int);
112
114
119 vtkSetMacro(ProduceCellOutput, bool);
120 vtkGetMacro(ProduceCellOutput, bool);
121 vtkBooleanMacro(ProduceCellOutput, bool);
123
125
129 vtkSetMacro(ProduceRandomScalars, bool);
130 vtkGetMacro(ProduceRandomScalars, bool);
131 vtkBooleanMacro(ProduceRandomScalars, bool);
133
135
139 vtkSetVector2Macro(ScalarRange, double);
140 vtkGetVectorMacro(ScalarRange, double, 2);
142
143protected:
145 ~vtkBoundedPointSource() override = default;
146
148
150 double Bounds[6];
154 double ScalarRange[2];
155
156private:
158 void operator=(const vtkBoundedPointSource&) = delete;
159};
160
161#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:113
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:332
#define VTK_ID_MAX
Definition: vtkType.h:336