Alternaria
fit cylinders and ellipsoids to fungus
|
A Alternaria spore element that was printed to a file. More...
#include <spore.h>
Public Member Functions | |
Printed_spore (const Spore_density *density) | |
Constructs a Printed_spore. | |
Printed_spore (std::istream &in, const Spore_density *density) throw (jwscxx::base::IO_error, jwscxx::base::Arg_error) | |
Constructs a Printed_spore by reading values from an input stream. | |
void | read (std::istream &in) throw (jwscxx::base::IO_error, jwscxx::base::Arg_error) |
Reads values for this Printed_spore from an input stream. | |
Spore * | convert (Structure *parent) const throw (jwscxx::base::Arg_error) |
Converts this Printed_spore to a Spore. | |
Protected Attributes | |
const Spore_density * | density |
Parameters for density functions over the Spore. |
A Alternaria spore element that was printed to a file.
Contains ancestor and descendant IDs instead of pointers.
Printed_spore::Printed_spore | ( | const Spore_density * | density | ) |
Constructs a Printed_spore.
Initializes all members to 0.
density | Spore_density to use for the Spore. |
Printed_spore::Printed_spore | ( | std::istream & | in, |
const Spore_density * | density | ||
) | throw (jwscxx::base::IO_error, jwscxx::base::Arg_error) |
Constructs a Printed_spore by reading values from an input stream.
in | Input stream to read this Printed_spore from. |
density | Spore_density to use for the Spore. |
jwscxx::base::Arg_error | A member is not properly formatted or missing a value. |
jwscxx::base::IO_error | Could not read a line from the input stream. |
void Printed_spore::read | ( | std::istream & | in | ) | throw (jwscxx::base::IO_error, jwscxx::base::Arg_error) [virtual] |
Reads values for this Printed_spore from an input stream.
Expects the following format for a Printed_structure to be on the input stream:
Structure: Spore::type_str() ID: id Centroid: x y z Length: length Width: width Base Theta: base_theta Base Psi: base_psi Theta: theta Psi: psi Opacity: opacity Parent: parent Apical: apical Laterals: L1 ... Ln Log Prob: logprob
in | Input stream to read this Printed_structure from. |
jwscxx::base::Arg_error | A member is not properly formatted or missing a value. |
jwscxx::base::IO_error | Could not read a line from the input stream. |
Implements Printed_structure.
Spore * Printed_spore::convert | ( | Structure * | parent | ) | const throw (jwscxx::base::Arg_error) [virtual] |
Converts this Printed_spore to a Spore.
parent | Parent Structure. Use 0 for the root. |
jwscxx::base::Arg_error | Spore values are not in the density parameter ranges. |
Implements Printed_apical_structure.
const Spore_density* Printed_spore::density [protected] |