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 =========================================================================*/
35 #ifndef vtkMinimalStandardRandomSequence_h
36 #define vtkMinimalStandardRandomSequence_h
37 
38 #include "vtkCommonCoreModule.h" // For export macro
39 #include "vtkRandomSequence.h"
40 
41 class VTKCOMMONCORE_EXPORT vtkMinimalStandardRandomSequence
42  : public vtkRandomSequence
43 {
44 public:
46  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
47 
49 
64  void SetSeed(int value);
65 
77  void SetSeedOnly(int value);
78 
83  int GetSeed();
84 
89  double GetValue() VTK_OVERRIDE;
90 
94  void Next() VTK_OVERRIDE;
95 
108  virtual double GetRangeValue(double rangeMin,
109  double rangeMax);
110 
111 protected:
113  ~vtkMinimalStandardRandomSequence() VTK_OVERRIDE;
114  int Seed;
115 private:
116  vtkMinimalStandardRandomSequence(const vtkMinimalStandardRandomSequence&) VTK_DELETE_FUNCTION;
117  void operator=(const vtkMinimalStandardRandomSequence&) VTK_DELETE_FUNCTION;
118 };
119 
120 #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:33
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...