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:
119  ~vtkMinimalStandardRandomSequence() VTK_OVERRIDE;
120  int Seed;
121 private:
122  vtkMinimalStandardRandomSequence(const vtkMinimalStandardRandomSequence&) VTK_DELETE_FUNCTION;
123  void operator=(const vtkMinimalStandardRandomSequence&) VTK_DELETE_FUNCTION;
124 };
125 
126 #endif // #ifndef vtkMinimalStandardRandomSequence_h
Sequence of random numbers.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual double GetValue()=0
Current value.
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...