VTK  9.0.1
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
33 #include "vtkPolyDataAlgorithm.h"
34 
35 class VTKFILTERSPOINTS_EXPORT vtkBoundedPointSource : public vtkPolyDataAlgorithm
36 {
37 public:
39 
42  static vtkBoundedPointSource* New();
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 
104 protected:
107 
109 
111  double Bounds[6];
115  double ScalarRange[2];
116 
117 private:
119  void operator=(const vtkBoundedPointSource&) = delete;
120 };
121 
122 #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:338
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:33
create a random cloud of points within a specified bounding box
#define VTK_ID_MAX
Definition: vtkType.h:342
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.