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 "vtkArrayDataAlgorithm.h"
36 #include "vtkArrayExtents.h"
37 
39 {
40 public:
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
45 //BTX
47  void SetExtents(const vtkArrayExtents&);
48 
50 
51  vtkArrayExtents GetExtents();
52 //ETX
54 
56 
58  vtkGetMacro(ElementProbabilitySeed, vtkTypeUInt32);
59  vtkSetMacro(ElementProbabilitySeed, vtkTypeUInt32);
61 
63 
65  vtkGetMacro(ElementProbability, double);
66  vtkSetMacro(ElementProbability, double);
68 
70 
71  vtkGetMacro(ElementValueSeed, vtkTypeUInt32);
72  vtkSetMacro(ElementValueSeed, vtkTypeUInt32);
74 
76 
77  vtkGetMacro(MinValue, double);
78  vtkSetMacro(MinValue, double);
80 
82 
83  vtkGetMacro(MaxValue, double);
84  vtkSetMacro(MaxValue, double);
86 
87 //BTX
88 protected:
91 
92  int RequestData(
96 
97 private:
99  void operator=(const vtkBoostRandomSparseArraySource&); // Not implemented
100 
101  vtkArrayExtents Extents;
102 
103  vtkTypeUInt32 ElementProbabilitySeed;
104  double ElementProbability;
105 
106  vtkTypeUInt32 ElementValueSeed;
107  double MinValue;
108  double MaxValue;
109 //ETX
110 };
111 
112 #endif
113