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 =========================================================================*/
71 #ifndef vtkBoundedPointSource_h
72 #define vtkBoundedPointSource_h
73 
74 #include "vtkFiltersPointsModule.h" // For export macro
75 #include "vtkPolyDataAlgorithm.h"
76 
77 class VTKFILTERSPOINTS_EXPORT vtkBoundedPointSource : public vtkPolyDataAlgorithm
78 {
79 public:
81 
86  void PrintSelf(ostream& os, vtkIndent indent) override;
88 
90 
93  vtkSetClampMacro(NumberOfPoints, vtkIdType, 1, VTK_ID_MAX);
94  vtkGetMacro(NumberOfPoints, vtkIdType);
96 
98 
102  vtkSetVector6Macro(Bounds, double);
103  vtkGetVectorMacro(Bounds, double, 6);
105 
107 
112  vtkSetMacro(OutputPointsPrecision, int);
113  vtkGetMacro(OutputPointsPrecision, int);
115 
117 
122  vtkSetMacro(ProduceCellOutput, bool);
123  vtkGetMacro(ProduceCellOutput, bool);
124  vtkBooleanMacro(ProduceCellOutput, bool);
126 
128 
132  vtkSetMacro(ProduceRandomScalars, bool);
133  vtkGetMacro(ProduceRandomScalars, bool);
134  vtkBooleanMacro(ProduceRandomScalars, bool);
136 
138 
142  vtkSetVector2Macro(ScalarRange, double);
143  vtkGetVectorMacro(ScalarRange, double, 2);
145 
146 protected:
148  ~vtkBoundedPointSource() override = default;
149 
151 
153  double Bounds[6];
157  double ScalarRange[2];
158 
159 private:
161  void operator=(const vtkBoundedPointSource&) = delete;
162 };
163 
164 #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:119
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