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 
33 #ifndef vtkBoostRandomSparseArraySource_h
34 #define vtkBoostRandomSparseArraySource_h
35 
36 #include "vtkInfovisBoostGraphAlgorithmsModule.h" // For export macro
37 #include "vtkArrayDataAlgorithm.h"
38 #include "vtkArrayExtents.h"
39 
40 class VTKINFOVISBOOSTGRAPHALGORITHMS_EXPORT vtkBoostRandomSparseArraySource : public vtkArrayDataAlgorithm
41 {
42 public:
45  void PrintSelf(ostream& os, vtkIndent indent) override;
46 
50  void SetExtents(const vtkArrayExtents&);
51 
55  vtkArrayExtents GetExtents();
56 
58 
62  vtkGetMacro(ElementProbabilitySeed, vtkTypeUInt32);
63  vtkSetMacro(ElementProbabilitySeed, vtkTypeUInt32);
65 
67 
71  vtkGetMacro(ElementProbability, double);
72  vtkSetMacro(ElementProbability, double);
74 
76 
79  vtkGetMacro(ElementValueSeed, vtkTypeUInt32);
80  vtkSetMacro(ElementValueSeed, vtkTypeUInt32);
82 
84 
87  vtkGetMacro(MinValue, double);
88  vtkSetMacro(MinValue, double);
90 
92 
95  vtkGetMacro(MaxValue, double);
96  vtkSetMacro(MaxValue, double);
98 
99 protected:
102 
103  int RequestData(
106  vtkInformationVector*) override;
107 
108 private:
110  void operator=(const vtkBoostRandomSparseArraySource&) = delete;
111 
112  vtkArrayExtents Extents;
113 
114  vtkTypeUInt32 ElementProbabilitySeed;
115  double ElementProbability;
116 
117  vtkTypeUInt32 ElementValueSeed;
118  double MinValue;
119  double MaxValue;
120 
121 };
122 
123 #endif
124 
125 // 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: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.