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 "vtkGaussianRandomSequence.h" 00029 00030 class VTK_COMMON_EXPORT vtkBoxMuellerRandomSequence: public vtkGaussianRandomSequence 00031 { 00032 public: 00033 vtkTypeMacro(vtkBoxMuellerRandomSequence,vtkGaussianRandomSequence); 00034 void PrintSelf(ostream& os, vtkIndent indent); 00035 00036 static vtkBoxMuellerRandomSequence* New(); 00037 00039 virtual double GetValue(); 00040 00042 virtual void Next(); 00043 00045 vtkRandomSequence *GetUniformSequence(); 00046 00049 void SetUniformSequence(vtkRandomSequence *uniformSequence); 00050 00051 protected: 00052 vtkBoxMuellerRandomSequence(); 00053 virtual ~vtkBoxMuellerRandomSequence(); 00054 00055 vtkRandomSequence *UniformSequence; 00056 double Value; 00057 private: 00058 vtkBoxMuellerRandomSequence(const vtkBoxMuellerRandomSequence&); // Not implemented. 00059 void operator=(const vtkBoxMuellerRandomSequence&); // Not implemented. 00060 }; 00061 00062 #endif // #ifndef __vtkBoxMuellerRandomSequence_h