Alternaria
fit cylinders and ellipsoids to fungus
Spore_density Class Reference

Parameters for density functions over an Alternaria Spore. More...

#include <spore.h>

Inheritance diagram for Spore_density:
Collaboration diagram for Spore_density:

List of all members.

Public Member Functions

 Spore_density (const class DD_spore_set *dd_spores=0) throw (jwscxx::base::Arg_error)
 Creates a Spore_density initialized with default values.
Spore_densityclone () const
 Clones a Spore_density.
Sporesample (float base_theta=0, float base_psi=0, size_t level=0) const
 Creates a random Spore with no parent.
Sporesample (float centroid_x, float centroid_y, float centroid_z, float base_theta=0, float base_psi=0, size_t level=0) const throw (jwscxx::base::Arg_error)
 Creates a random Spore with no parent.
Sporesample (Structure *parent, float base_theta=0, float base_psi=0) const throw (jwscxx::base::Arg_error)
 Creates a random Spore with a parent.
const DD_spore_set * get_dd_spores () const
 Retruns the DD_spore_set.

Protected Attributes

const DD_spore_set * dd_spores
 Data-driven set of spores.

Detailed Description

Parameters for density functions over an Alternaria Spore.

Definition at line 293 of file spore.h.


Constructor & Destructor Documentation

Spore_density::Spore_density ( const class DD_spore_set *  dd_spores = 0) throw (jwscxx::base::Arg_error)

Creates a Spore_density initialized with default values.

Initializes with default values.

Parameters:
dd_sporesDD_spore_set to use. Can be 0, in which case there are none.
Exceptions:
jwscxx::base::Arg_errorSpore values are not in the density parameter ranges.

Definition at line 138 of file spore.cpp.


Member Function Documentation

Spore_density * Spore_density::clone ( ) const [virtual]

Clones a Spore_density.

Returns:
A pointer to a cloned Spore_density.

Implements Structure_density.

Definition at line 188 of file spore.cpp.

Spore * Spore_density::sample ( float  base_theta = 0,
float  base_psi = 0,
size_t  level = 0 
) const [virtual]

Creates a random Spore with no parent.

Parameters:
base_thetaEuler angle: base rotation about the x-axis.
base_psiEuler angle: base rotation about the z-axis.
levelLevel of the Spore.
Returns:
A randomly sampled Spore with no parent.

Implements Apical_structure_density.

Definition at line 246 of file spore.cpp.

Spore * Spore_density::sample ( float  centroid_x,
float  centroid_y,
float  centroid_z,
float  base_theta = 0,
float  base_psi = 0,
size_t  level = 0 
) const throw (jwscxx::base::Arg_error) [virtual]

Creates a random Spore with no parent.

Parameters:
centroid_xX-coord of the Spore::centroid.
centroid_yY-coord of the Spore::centroid.
centroid_zZ-coord of the Spore::centroid.
base_thetaEuler angle: base rotation about the x-axis.
base_psiEuler angle: base rotation about the z-axis.
levelLevel of the Spore.
Exceptions:
jwscxx::base::Arg_errorSpore values are not in the density parameter ranges.
Returns:
A randomly sampled Spore with no parent.

Implements Apical_structure_density.

Definition at line 270 of file spore.cpp.

Spore * Spore_density::sample ( Structure parent,
float  base_theta = 0,
float  base_psi = 0 
) const throw (jwscxx::base::Arg_error) [virtual]

Creates a random Spore with a parent.

Parameters:
parentParent of the Spore to create.
base_thetaEuler angle: base rotation about the x-axis.
base_psiEuler angle: base rotation about the z-axis.
Exceptions:
jwscxx::base::Arg_errorSpore values are not in the density parameter ranges.
Returns:
A randomly sampled Spore with a parent.

Implements Apical_structure_density.

Definition at line 297 of file spore.cpp.

const DD_spore_set* Spore_density::get_dd_spores ( ) const [inline]

Retruns the DD_spore_set.

Definition at line 335 of file spore.h.


Member Data Documentation

const DD_spore_set* Spore_density::dd_spores [protected]

Data-driven set of spores.

Definition at line 341 of file spore.h.


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