Alternaria
fit cylinders and ellipsoids to fungus
|
A Alternaria apical hypha element that was printed to a file. More...
#include <hypha.h>
Public Member Functions | |
Printed_apical_hypha (const Apical_hypha_density *density) | |
Constructs a Printed_apical_hypha. | |
Printed_apical_hypha (std::istream &in, const Apical_hypha_density *density) throw (jwscxx::base::IO_error, jwscxx::base::Arg_error) | |
Constructs a Printed_apical_hypha 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_apical_hypha from an input stream. | |
Apical_hypha * | convert (Structure *parent) const throw (jwscxx::base::Arg_error) |
Converts this Printed_apical_hypha to an Apical_hypha. | |
Protected Attributes | |
const Apical_hypha_density * | density |
Parameters for density functions over the Apical_hypha. |
A Alternaria apical hypha element that was printed to a file.
Contains ancestor and descendant IDs instead of pointers.
Printed_apical_hypha::Printed_apical_hypha | ( | const Apical_hypha_density * | density | ) |
Constructs a Printed_apical_hypha.
Initializes all members to 0.
density | Apical_hypha_density to use for the Apical_hypha. |
Printed_apical_hypha::Printed_apical_hypha | ( | std::istream & | in, |
const Apical_hypha_density * | density | ||
) | throw (jwscxx::base::IO_error, jwscxx::base::Arg_error) |
Constructs a Printed_apical_hypha by reading values from an input stream.
in | Input stream to read this Printed_apical_hypha from. |
density | Apical_hypha_density to use for the Apical_hypha. |
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_apical_hypha::read | ( | std::istream & | in | ) | throw (jwscxx::base::IO_error, jwscxx::base::Arg_error) [virtual] |
Reads values for this Printed_apical_hypha from an input stream.
Expects the following format for a Printed_structure to be on the input stream:
Structure: Apical_hypha::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.
Apical_hypha * Printed_apical_hypha::convert | ( | Structure * | parent | ) | const throw (jwscxx::base::Arg_error) [virtual] |
Converts this Printed_apical_hypha to an Apical_hypha.
parent | Parent Structure. Use 0 for the root. |
jwscxx::base::Arg_error | Apical_hypha values are not in the density parameter ranges. |
Implements Printed_apical_structure.
const Apical_hypha_density* Printed_apical_hypha::density [protected] |
Parameters for density functions over the Apical_hypha.