VTK  9.2.6
vtkBoostRandomSparseArraySource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkBoostRandomSparseArraySource.h
5 
6 -------------------------------------------------------------------------
7  Copyright 2008 Sandia Corporation.
8  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
9  the U.S. Government retains certain rights in this software.
10 -------------------------------------------------------------------------
11 
12  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
13  All rights reserved.
14  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
15 
16  This software is distributed WITHOUT ANY WARRANTY; without even
17  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
18  PURPOSE. See the above copyright notice for more information.
19 
20 =========================================================================*/
21 
33 #ifndef vtkBoostRandomSparseArraySource_h
34 #define vtkBoostRandomSparseArraySource_h
35 
36 #include "vtkArrayDataAlgorithm.h"
37 #include "vtkArrayExtents.h" // for extents
38 #include "vtkInfovisBoostGraphAlgorithmsModule.h" // For export macro
39 
40 class VTKINFOVISBOOSTGRAPHALGORITHMS_EXPORT vtkBoostRandomSparseArraySource
41  : public vtkArrayDataAlgorithm
42 {
43 public:
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
51  void SetExtents(const vtkArrayExtents&);
52 
56  vtkArrayExtents GetExtents();
57 
59 
63  vtkGetMacro(ElementProbabilitySeed, vtkTypeUInt32);
64  vtkSetMacro(ElementProbabilitySeed, vtkTypeUInt32);
66 
68 
72  vtkGetMacro(ElementProbability, double);
73  vtkSetMacro(ElementProbability, double);
75 
77 
80  vtkGetMacro(ElementValueSeed, vtkTypeUInt32);
81  vtkSetMacro(ElementValueSeed, vtkTypeUInt32);
83 
85 
88  vtkGetMacro(MinValue, double);
89  vtkSetMacro(MinValue, double);
91 
93 
96  vtkGetMacro(MaxValue, double);
97  vtkSetMacro(MaxValue, double);
99 
100 protected:
103 
105 
106 private:
108  void operator=(const vtkBoostRandomSparseArraySource&) = delete;
109 
110  vtkArrayExtents Extents;
111 
112  vtkTypeUInt32 ElementProbabilitySeed;
113  double ElementProbability;
114 
115  vtkTypeUInt32 ElementValueSeed;
116  double MinValue;
117  double MaxValue;
118 };
119 
120 #endif
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Stores the number of dimensions and valid coordinate ranges along each dimension for vtkArray...
Store vtkAlgorithm input/output information.
generates a sparse N-way array containing random values.
a simple class to control print indentation
Definition: vtkIndent.h:39
Superclass for algorithms that produce vtkArrayDatas as output.
static vtkArrayDataAlgorithm * New()
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.