VTK: Infovis/BoostGraphAlgorithms/vtkBoostRandomSparseArraySource.h Source File

| VTK 9.3.1

vtkBoostRandomSparseArraySource.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3 // SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
4
16 #ifndef vtkBoostRandomSparseArraySource_h
17 #define vtkBoostRandomSparseArraySource_h
18
19 #include "vtkArrayDataAlgorithm.h"
20 #include "vtkArrayExtents.h" // for extents
21 #include "vtkInfovisBoostGraphAlgorithmsModule.h" // For export macro
22
23 VTK_ABI_NAMESPACE_BEGIN
24 class VTKINFOVISBOOSTGRAPHALGORITHMS_EXPORT vtkBoostRandomSparseArraySource
25 : public vtkArrayDataAlgorithm
26 {
27 public:
28 static vtkBoostRandomSparseArraySource* New();
29 vtkTypeMacro(vtkBoostRandomSparseArraySource, vtkArrayDataAlgorithm);
30 void PrintSelf(ostream& os, vtkIndent indent) override;
31
35 void SetExtents(const vtkArrayExtents&);
36
40 vtkArrayExtents GetExtents();
41
43
47 vtkGetMacro(ElementProbabilitySeed, vtkTypeUInt32);
48 vtkSetMacro(ElementProbabilitySeed, vtkTypeUInt32);
50
52
56 vtkGetMacro(ElementProbability, double);
57 vtkSetMacro(ElementProbability, double);
59
61
64 vtkGetMacro(ElementValueSeed, vtkTypeUInt32);
65 vtkSetMacro(ElementValueSeed, vtkTypeUInt32);
67
69
72 vtkGetMacro(MinValue, double);
73 vtkSetMacro(MinValue, double);
75
77
80 vtkGetMacro(MaxValue, double);
81 vtkSetMacro(MaxValue, double);
83
84 protected:
85 vtkBoostRandomSparseArraySource();
86 ~vtkBoostRandomSparseArraySource() override;
87
88 int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
89
90 private:
91 vtkBoostRandomSparseArraySource(const vtkBoostRandomSparseArraySource&) = delete;
92 void operator=(const vtkBoostRandomSparseArraySource&) = delete;
93
94 vtkArrayExtents Extents;
95
96 vtkTypeUInt32 ElementProbabilitySeed;
97 double ElementProbability;
98
99 vtkTypeUInt32 ElementValueSeed;
100 double MinValue;
101 double MaxValue;
102 };
103
104 VTK_ABI_NAMESPACE_END
105 #endif
vtkArrayDataAlgorithm
Superclass for algorithms that produce vtkArrayDatas as output.
Definition: vtkArrayDataAlgorithm.h:35
vtkArrayExtents
Stores the number of dimensions and valid coordinate ranges along each dimension for vtkArray.
Definition: vtkArrayExtents.h:56
vtkBoostRandomSparseArraySource
generates a sparse N-way array containing random values.
Definition: vtkBoostRandomSparseArraySource.h:26
vtkBoostRandomSparseArraySource::New
static vtkBoostRandomSparseArraySource * New()
vtkBoostRandomSparseArraySource::vtkBoostRandomSparseArraySource
vtkBoostRandomSparseArraySource()
vtkBoostRandomSparseArraySource::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkBoostRandomSparseArraySource::SetExtents
void SetExtents(const vtkArrayExtents &)
Sets the extents (dimensionality and size) of the output array.
vtkBoostRandomSparseArraySource::~vtkBoostRandomSparseArraySource
~vtkBoostRandomSparseArraySource() override
vtkBoostRandomSparseArraySource::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkBoostRandomSparseArraySource::GetExtents
vtkArrayExtents GetExtents()
Returns the extents (dimensionality and size) of the output array.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkArrayDataAlgorithm.h
vtkArrayExtents.h