VTK
|
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 =========================================================================*/ 00028 #ifndef vtkBoxMuellerRandomSequence_h 00029 #define vtkBoxMuellerRandomSequence_h 00030 00031 #include "vtkCommonCoreModule.h" // For export macro 00032 #include "vtkGaussianRandomSequence.h" 00033 00034 class VTKCOMMONCORE_EXPORT vtkBoxMuellerRandomSequence: public vtkGaussianRandomSequence 00035 { 00036 public: 00037 vtkTypeMacro(vtkBoxMuellerRandomSequence,vtkGaussianRandomSequence); 00038 void PrintSelf(ostream& os, vtkIndent indent); 00039 00040 static vtkBoxMuellerRandomSequence* New(); 00041 00043 virtual double GetValue(); 00044 00046 virtual void Next(); 00047 00049 vtkRandomSequence *GetUniformSequence(); 00050 00053 void SetUniformSequence(vtkRandomSequence *uniformSequence); 00054 00055 protected: 00056 vtkBoxMuellerRandomSequence(); 00057 virtual ~vtkBoxMuellerRandomSequence(); 00058 00059 vtkRandomSequence *UniformSequence; 00060 double Value; 00061 private: 00062 vtkBoxMuellerRandomSequence(const vtkBoxMuellerRandomSequence&); // Not implemented. 00063 void operator=(const vtkBoxMuellerRandomSequence&); // Not implemented. 00064 }; 00065 00066 #endif // #ifndef vtkBoxMuellerRandomSequence_h