00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef NOISE_MODULE_CYLINDERS_H
00024 #define NOISE_MODULE_CYLINDERS_H
00025
00026 #include "modulebase.h"
00027
00028 namespace CS {
00029 namespace Math {
00030 namespace Noise {
00031 namespace Module {
00032
00035
00038
00041
00043 const double DEFAULT_CYLINDERS_FREQUENCY = 1.0;
00044
00071 class CS_CRYSTALSPACE_EXPORT Cylinders: public Module
00072 {
00073
00074 public:
00075
00080 Cylinders ();
00081
00088 double GetFrequency () const
00089 {
00090 return m_frequency;
00091 }
00092
00093 virtual int GetSourceModuleCount () const
00094 {
00095 return 0;
00096 }
00097
00098 virtual double GetValue (double x, double y, double z) const;
00099
00106 void SetFrequency (double frequency)
00107 {
00108 m_frequency = frequency;
00109 }
00110
00111 protected:
00112
00114 double m_frequency;
00115
00116 };
00117
00119
00121
00123
00124 }
00125 }
00126 }
00127 }
00128
00129 #endif