VTK  9.4.20241218
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
20#include "vtkArrayExtents.h" // for extents
21#include "vtkInfovisBoostGraphAlgorithmsModule.h" // For export macro
22
23VTK_ABI_NAMESPACE_BEGIN
24class VTKINFOVISBOOSTGRAPHALGORITHMS_EXPORT vtkBoostRandomSparseArraySource
26{
27public:
30 void PrintSelf(ostream& os, vtkIndent indent) override;
31
36
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
84protected:
87
89
90private:
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
104VTK_ABI_NAMESPACE_END
105#endif
Superclass for algorithms that produce vtkArrayDatas as output.
Stores the number of dimensions and valid coordinate ranges along each dimension for vtkArray.
generates a sparse N-way array containing random values.
static vtkBoostRandomSparseArraySource * New()
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void SetExtents(const vtkArrayExtents &)
Sets the extents (dimensionality and size) of the output array.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkArrayExtents GetExtents()
Returns the extents (dimensionality and size) of the output array.
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.