VTK  9.2.6
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=========================================================================*/
32#ifndef vtkBoundedPointSource_h
33#define vtkBoundedPointSource_h
34
35#include "vtkFiltersPointsModule.h" // For export macro
37
38class VTKFILTERSPOINTS_EXPORT vtkBoundedPointSource : public vtkPolyDataAlgorithm
39{
40public:
42
47 void PrintSelf(ostream& os, vtkIndent indent) override;
49
51
54 vtkSetClampMacro(NumberOfPoints, vtkIdType, 1, VTK_ID_MAX);
55 vtkGetMacro(NumberOfPoints, vtkIdType);
57
59
63 vtkSetVector6Macro(Bounds, double);
64 vtkGetVectorMacro(Bounds, double, 6);
66
68
73 vtkSetMacro(OutputPointsPrecision, int);
74 vtkGetMacro(OutputPointsPrecision, int);
76
78
83 vtkSetMacro(ProduceCellOutput, bool);
84 vtkGetMacro(ProduceCellOutput, bool);
85 vtkBooleanMacro(ProduceCellOutput, bool);
87
89
93 vtkSetMacro(ProduceRandomScalars, bool);
94 vtkGetMacro(ProduceRandomScalars, bool);
95 vtkBooleanMacro(ProduceRandomScalars, bool);
97
99
103 vtkSetVector2Macro(ScalarRange, double);
104 vtkGetVectorMacro(ScalarRange, double, 2);
106
107protected:
109 ~vtkBoundedPointSource() override = default;
110
112
114 double Bounds[6];
118 double ScalarRange[2];
119
120private:
122 void operator=(const vtkBoundedPointSource&) = delete;
123};
124
125#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:40
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