VTK
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
36 #include "vtkPolyDataAlgorithm.h"
37 
38 class VTKFILTERSPOINTS_EXPORT vtkBoundedPointSource : public vtkPolyDataAlgorithm
39 {
40 public:
42 
45  static vtkBoundedPointSource *New();
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 
107 protected:
110 
112 
114  double Bounds[6];
118  double ScalarRange[2];
119 
120 private:
122  void operator=(const vtkBoundedPointSource&) = delete;
123 };
124 
125 #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:347
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
create a random cloud of points within a specified bounding box
#define VTK_ID_MAX
Definition: vtkType.h:351
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.