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