VTK
vtkRandomSequence.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkRandomSequence.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=========================================================================*/
32#ifndef vtkRandomSequence_h
33#define vtkRandomSequence_h
34
35#include "vtkCommonCoreModule.h" // For export macro
36#include "vtkObject.h"
37
38class VTKCOMMONCORE_EXPORT vtkRandomSequence : public vtkObject
39{
40public:
42 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
43
47 virtual double GetValue()=0;
48
52 virtual void Next()=0;
53
54protected:
56 ~vtkRandomSequence() VTK_OVERRIDE;
57private:
58 vtkRandomSequence(const vtkRandomSequence&) VTK_DELETE_FUNCTION;
59 void operator=(const vtkRandomSequence&) VTK_DELETE_FUNCTION;
60};
61
62#endif // #ifndef vtkRandomSequence_h
a simple class to control print indentation
Definition: vtkIndent.h:40
abstract base class for most VTK objects
Definition: vtkObject.h:60
Sequence of random numbers.
~vtkRandomSequence() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void Next()=0
Move to the next number in the random sequence.
virtual double GetValue()=0
Current value.