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=========================================================================*/
29#ifndef vtkBoundedPointSource_h
30#define vtkBoundedPointSource_h
31
32#include "vtkFiltersPointsModule.h" // For export macro
34
35class VTKFILTERSPOINTS_EXPORT vtkBoundedPointSource : public vtkPolyDataAlgorithm
36{
37public:
39
44 void PrintSelf(ostream& os, vtkIndent indent) override;
46
48
51 vtkSetClampMacro(NumberOfPoints, vtkIdType, 1, VTK_ID_MAX);
52 vtkGetMacro(NumberOfPoints, vtkIdType);
54
56
60 vtkSetVector6Macro(Bounds, double);
61 vtkGetVectorMacro(Bounds, double, 6);
63
65
70 vtkSetMacro(OutputPointsPrecision, int);
71 vtkGetMacro(OutputPointsPrecision, int);
73
75
80 vtkSetMacro(ProduceCellOutput, bool);
81 vtkGetMacro(ProduceCellOutput, bool);
82 vtkBooleanMacro(ProduceCellOutput, bool);
84
86
90 vtkSetMacro(ProduceRandomScalars, bool);
91 vtkGetMacro(ProduceRandomScalars, bool);
92 vtkBooleanMacro(ProduceRandomScalars, bool);
94
96
100 vtkSetVector2Macro(ScalarRange, double);
101 vtkGetVectorMacro(ScalarRange, double, 2);
103
104protected:
106 ~vtkBoundedPointSource() override = default;
107
109
111 double Bounds[6];
115 double ScalarRange[2];
116
117private:
119 void operator=(const vtkBoundedPointSource&) = delete;
120};
121
122#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:34
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