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
vtkBoundedPointSource::~vtkBoundedPointSource
~vtkBoundedPointSource() override
Definition: vtkBoundedPointSource.h:106
vtkIdType
int vtkIdType
Definition: vtkType.h:338
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkPolyDataAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPolyDataAlgorithm.h
vtkBoundedPointSource::NumberOfPoints
vtkIdType NumberOfPoints
Definition: vtkBoundedPointSource.h:110
vtkBoundedPointSource::ProduceRandomScalars
bool ProduceRandomScalars
Definition: vtkBoundedPointSource.h:114
vtkPolyDataAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkBoundedPointSource::ProduceCellOutput
bool ProduceCellOutput
Definition: vtkBoundedPointSource.h:113
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
VTK_ID_MAX
#define VTK_ID_MAX
Definition: vtkType.h:342
vtkBoundedPointSource::OutputPointsPrecision
int OutputPointsPrecision
Definition: vtkBoundedPointSource.h:112
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkBoundedPointSource
create a random cloud of points within a specified bounding box
Definition: vtkBoundedPointSource.h:35
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:41