Alternaria
fit cylinders and ellipsoids to fungus
Density::Uniform_params Class Reference

Parameters for a uniform density function. More...

#include <density.h>

List of all members.

Public Member Functions

 Uniform_params (float min=0, float max=0) throw (jwscxx::base::Arg_error)
 Creates a set of parameters for a uniform density function.
virtual ~Uniform_params ()
 Destructor.
virtual void set (float min, float max) throw (jwscxx::base::Arg_error)
 Sets the density parameters.
float get_min () const
 Returns the minimum value parameter.
float get_max () const
 Returns the maximum value parameter.

Protected Attributes

float min
 Minimum value.
float max
 Maximum value.

Friends

std::ostream & operator<< (std::ostream &, const Uniform_params &)
 Prints this Uniform_params to an output stream.
std::istream & operator>> (std::istream &, Uniform_params &)
 Reads this Uniform_params into an input stream.

Detailed Description

Parameters for a uniform density function.

Definition at line 65 of file density.h.


Constructor & Destructor Documentation

Density::Uniform_params::Uniform_params ( float  min = 0,
float  max = 0 
) throw (jwscxx::base::Arg_error)

Creates a set of parameters for a uniform density function.

Parameters:
minMinimum value.
maxMaximum value.
Exceptions:
jwscxx::base::Arg_errorParameters are not a valid range.

Definition at line 66 of file density.cpp.

virtual Density::Uniform_params::~Uniform_params ( ) [inline, virtual]

Destructor.

Definition at line 77 of file density.h.


Member Function Documentation

void Density::Uniform_params::set ( float  min,
float  max 
) throw (jwscxx::base::Arg_error) [virtual]

Sets the density parameters.

Parameters:
minMinimum value.
maxMaximum value.
Exceptions:
jwscxx::base::Arg_errorParameters are not a valid range.

Definition at line 78 of file density.cpp.

float Density::Uniform_params::get_min ( ) const [inline]

Returns the minimum value parameter.

Definition at line 85 of file density.h.

float Density::Uniform_params::get_max ( ) const [inline]

Returns the maximum value parameter.

Definition at line 89 of file density.h.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const Uniform_params  
) [friend]

Prints this Uniform_params to an output stream.

std::istream& operator>> ( std::istream &  ,
Uniform_params  
) [friend]

Reads this Uniform_params into an input stream.


Member Data Documentation

float Density::Uniform_params::min [protected]

Minimum value.

Definition at line 103 of file density.h.

float Density::Uniform_params::max [protected]

Maximum value.

Definition at line 106 of file density.h.


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