VTK
dox/Common/Core/vtkBoxMuellerRandomSequence.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkBoxMuellerRandomSequence.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 =========================================================================*/
00025 #ifndef __vtkBoxMuellerRandomSequence_h
00026 #define __vtkBoxMuellerRandomSequence_h
00027 
00028 #include "vtkCommonCoreModule.h" // For export macro
00029 #include "vtkGaussianRandomSequence.h"
00030 
00031 class VTKCOMMONCORE_EXPORT vtkBoxMuellerRandomSequence: public vtkGaussianRandomSequence
00032 {
00033 public:
00034   vtkTypeMacro(vtkBoxMuellerRandomSequence,vtkGaussianRandomSequence);
00035   void PrintSelf(ostream& os, vtkIndent indent);
00036 
00037   static vtkBoxMuellerRandomSequence* New();
00038 
00040   virtual double GetValue();
00041 
00043   virtual void Next();
00044 
00046   vtkRandomSequence *GetUniformSequence();
00047 
00050   void SetUniformSequence(vtkRandomSequence *uniformSequence);
00051 
00052 protected:
00053   vtkBoxMuellerRandomSequence();
00054   virtual ~vtkBoxMuellerRandomSequence();
00055 
00056   vtkRandomSequence *UniformSequence;
00057   double Value;
00058 private:
00059   vtkBoxMuellerRandomSequence(const vtkBoxMuellerRandomSequence&);  // Not implemented.
00060   void operator=(const vtkBoxMuellerRandomSequence&);  // Not implemented.
00061 };
00062 
00063 #endif // #ifndef __vtkBoxMuellerRandomSequence_h