Public Types | Public Member Functions | Protected Member Functions
CNoiseGenerator Class Referenceabstract

Base class for the noise generators. More...

#include <mia/core/noisegen.hh>

Inheritance diagram for CNoiseGenerator:
CProductBase CPropertyFlagHolder

Public Types

typedef grayscale_noise_data plugin_data
 typedef helber for plugin search path More...
 
typedef generator_type plugin_type
 typedef helber for plugin search path More...
 

Public Member Functions

 CNoiseGenerator (unsigned int seed)
 
double operator() () const
 
virtual ~CNoiseGenerator ()
 
- Public Member Functions inherited from CProductBase
const char * get_init_string () const
 
void set_init_string (const char *init)
 
void set_module (PPluginModule module)
 
- Public Member Functions inherited from CPropertyFlagHolder
void add (const char *property)
 
Set get_missing_properties (const CPropertyFlagHolder &testset) const
 
bool has (const char *property) const
 
bool has_all_in (const CPropertyFlagHolder &testset) const
 
virtual ~CPropertyFlagHolder ()
 

Protected Member Functions

double ranf () const
 

Detailed Description

Base class for the noise generators.

This class defines the interface for noise generators. Real implementations are provided as plug-ins.

Definition at line 46 of file noisegen.hh.

Member Typedef Documentation

typedef helber for plugin search path

Definition at line 49 of file noisegen.hh.

typedef helber for plugin search path

Definition at line 52 of file noisegen.hh.

Constructor & Destructor Documentation

CNoiseGenerator::CNoiseGenerator ( unsigned int  seed)

Constructor to initialize the noise generator with the given seed

Parameters
seed
virtual CNoiseGenerator::~CNoiseGenerator ( )
virtual

Member Function Documentation

double CNoiseGenerator::operator() ( ) const
Returns
the next random value comprising the noise
double CNoiseGenerator::ranf ( ) const
protected
Returns
a random value by using the system call to rand() and that is then used to create the noise as requested

The documentation for this class was generated from the following file: