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 
32 #ifndef vtkBoostRandomSparseArraySource_h
33 #define vtkBoostRandomSparseArraySource_h
34 
35 #include "vtkInfovisBoostGraphAlgorithmsModule.h" // For export macro
36 #include "vtkArrayDataAlgorithm.h"
37 #include "vtkArrayExtents.h"
38 
39 class VTKINFOVISBOOSTGRAPHALGORITHMS_EXPORT vtkBoostRandomSparseArraySource : public vtkArrayDataAlgorithm
40 {
41 public:
44  void PrintSelf(ostream& os, vtkIndent indent);
45 
46 //BTX
48  void SetExtents(const vtkArrayExtents&);
49 
51 
52  vtkArrayExtents GetExtents();
53 //ETX
55 
57 
59  vtkGetMacro(ElementProbabilitySeed, vtkTypeUInt32);
60  vtkSetMacro(ElementProbabilitySeed, vtkTypeUInt32);
62 
64 
66  vtkGetMacro(ElementProbability, double);
67  vtkSetMacro(ElementProbability, double);
69 
71 
72  vtkGetMacro(ElementValueSeed, vtkTypeUInt32);
73  vtkSetMacro(ElementValueSeed, vtkTypeUInt32);
75 
77 
78  vtkGetMacro(MinValue, double);
79  vtkSetMacro(MinValue, double);
81 
83 
84  vtkGetMacro(MaxValue, double);
85  vtkSetMacro(MaxValue, double);
87 
88 //BTX
89 protected:
92 
93  int RequestData(
97 
98 private:
100  void operator=(const vtkBoostRandomSparseArraySource&); // Not implemented
101 
102  vtkArrayExtents Extents;
103 
104  vtkTypeUInt32 ElementProbabilitySeed;
105  double ElementProbability;
106 
107  vtkTypeUInt32 ElementValueSeed;
108  double MinValue;
109  double MaxValue;
110 //ETX
111 };
112 
113 #endif
114 
115 // VTK-HeaderTest-Exclude: vtkBoostRandomSparseArraySource.h
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
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:38
Superclass for algorithms that produce vtkArrayDatas as output.
static vtkArrayDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Store zero or more vtkInformation instances.