VTK
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 
30 #ifndef vtkBoostRandomSparseArraySource_h
31 #define vtkBoostRandomSparseArraySource_h
32 
33 #include "vtkInfovisBoostGraphAlgorithmsModule.h" // For export macro
34 #include "vtkArrayDataAlgorithm.h"
35 #include "vtkArrayExtents.h"
36 
37 class VTKINFOVISBOOSTGRAPHALGORITHMS_EXPORT vtkBoostRandomSparseArraySource : public vtkArrayDataAlgorithm
38 {
39 public:
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
47  void SetExtents(const vtkArrayExtents&);
48 
52  vtkArrayExtents GetExtents();
53 
55 
59  vtkGetMacro(ElementProbabilitySeed, vtkTypeUInt32);
60  vtkSetMacro(ElementProbabilitySeed, vtkTypeUInt32);
62 
64 
68  vtkGetMacro(ElementProbability, double);
69  vtkSetMacro(ElementProbability, double);
71 
73 
76  vtkGetMacro(ElementValueSeed, vtkTypeUInt32);
77  vtkSetMacro(ElementValueSeed, vtkTypeUInt32);
79 
81 
84  vtkGetMacro(MinValue, double);
85  vtkSetMacro(MinValue, double);
87 
89 
92  vtkGetMacro(MaxValue, double);
93  vtkSetMacro(MaxValue, double);
95 
96 protected:
99 
100  int RequestData(
103  vtkInformationVector*) override;
104 
105 private:
107  void operator=(const vtkBoostRandomSparseArraySource&) = delete;
108 
109  vtkArrayExtents Extents;
110 
111  vtkTypeUInt32 ElementProbabilitySeed;
112  double ElementProbability;
113 
114  vtkTypeUInt32 ElementValueSeed;
115  double MinValue;
116  double MaxValue;
117 
118 };
119 
120 #endif
121 
122 // VTK-HeaderTest-Exclude: vtkBoostRandomSparseArraySource.h
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:33
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.