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);
46 
51 
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 
107 
108 private:
110  void operator=(const vtkBoostRandomSparseArraySource&) VTK_DELETE_FUNCTION;
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
vtkArrayDataAlgorithm.h
vtkBoostRandomSparseArraySource::New
static vtkBoostRandomSparseArraySource * New()
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkBoostRandomSparseArraySource::GetExtents
vtkArrayExtents GetExtents()
Returns the extents (dimensionality and size) of the output array.
vtkBoostRandomSparseArraySource::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkBoostRandomSparseArraySource
generates a sparse N-way array containing random values.
Definition: vtkBoostRandomSparseArraySource.h:41
vtkBoostRandomSparseArraySource::~vtkBoostRandomSparseArraySource
~vtkBoostRandomSparseArraySource()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkBoostRandomSparseArraySource::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkArrayDataAlgorithm
Superclass for algorithms that produce vtkArrayDatas as output.
Definition: vtkArrayDataAlgorithm.h:54
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBoostRandomSparseArraySource::vtkBoostRandomSparseArraySource
vtkBoostRandomSparseArraySource()
vtkArrayExtents.h
vtkArrayExtents
Stores the number of dimensions and valid coordinate ranges along each dimension for vtkArray.
Definition: vtkArrayExtents.h:75
vtkBoostRandomSparseArraySource::SetExtents
void SetExtents(const vtkArrayExtents &)
Sets the extents (dimensionality and size) of the output array.