VTK
vtkMinimalStandardRandomSequence.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkMinimalStandardRandomSequence.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 =========================================================================*/
41 #ifndef vtkMinimalStandardRandomSequence_h
42 #define vtkMinimalStandardRandomSequence_h
43 
44 #include "vtkCommonCoreModule.h" // For export macro
45 #include "vtkRandomSequence.h"
46 
47 class VTKCOMMONCORE_EXPORT vtkMinimalStandardRandomSequence
48  : public vtkRandomSequence
49 {
50 public:
52 
57  void PrintSelf(ostream& os, vtkIndent indent) override;
59 
64  void Initialize(vtkTypeUInt32 seed) override
65  {this->SetSeed(seed);}
66 
81  void SetSeed(int value);
82 
94  void SetSeedOnly(int value);
95 
100  int GetSeed();
101 
106  double GetValue() override;
107 
111  void Next() override;
112 
125  virtual double GetRangeValue(double rangeMin,
126  double rangeMax);
127 
128 protected:
131 
132  int Seed;
133 
134 private:
136  void operator=(const vtkMinimalStandardRandomSequence&) = delete;
137 };
138 
139 #endif // #ifndef vtkMinimalStandardRandomSequence_h
Generate a sequence of random numbers.
virtual void Next()=0
Move to the next number in the random sequence.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for type information and printing.
virtual double GetValue()=0
Return the current value.
void Initialize(vtkTypeUInt32 seed) override
Satisfy general API of vtkRandomSequence superclass.
a simple class to control print indentation
Definition: vtkIndent.h:39
Park and Miller Sequence of pseudo random numbers.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...