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