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  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
53 
55 
70  void SetSeed(int value);
71 
83  void SetSeedOnly(int value);
84 
89  int GetSeed();
90 
95  double GetValue() VTK_OVERRIDE;
96 
100  void Next() VTK_OVERRIDE;
101 
114  virtual double GetRangeValue(double rangeMin,
115  double rangeMax);
116 
117 protected:
120  int Seed;
121 private:
123  void operator=(const vtkMinimalStandardRandomSequence&) VTK_DELETE_FUNCTION;
124 };
125 
126 #endif // #ifndef vtkMinimalStandardRandomSequence_h
a simple class to control print indentation
Definition: vtkIndent.h:40
Park and Miller Sequence of pseudo random numbers.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
double GetValue() override
Current value.
void SetSeed(int value)
Set the seed of the random sequence.
int GetSeed()
Get the seed of the random sequence.
static vtkMinimalStandardRandomSequence * New()
void SetSeedOnly(int value)
Set the seed of the random sequence.
Sequence of random numbers.
@ value
Definition: vtkX3D.h:220