Alternaria
fit cylinders and ellipsoids to fungus
Printed_apical_hypha Class Reference

A Alternaria apical hypha element that was printed to a file. More...

#include <hypha.h>

Inheritance diagram for Printed_apical_hypha:
Collaboration diagram for Printed_apical_hypha:

List of all members.

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_hyphaconvert (Structure *parent) const throw (jwscxx::base::Arg_error)
 Converts this Printed_apical_hypha to an Apical_hypha.

Protected Attributes

const Apical_hypha_densitydensity
 Parameters for density functions over the Apical_hypha.

Detailed Description

A Alternaria apical hypha element that was printed to a file.

Contains ancestor and descendant IDs instead of pointers.

See also:
Apical_hypha

Definition at line 366 of file hypha.h.


Constructor & Destructor Documentation

Printed_apical_hypha::Printed_apical_hypha ( const Apical_hypha_density density)

Constructs a Printed_apical_hypha.

Initializes all members to 0.

Parameters:
densityApical_hypha_density to use for the Apical_hypha.

Definition at line 1284 of file hypha.cpp.

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.

Parameters:
inInput stream to read this Printed_apical_hypha from.
densityApical_hypha_density to use for the Apical_hypha.
Exceptions:
jwscxx::base::Arg_errorA member is not properly formatted or missing a value.
jwscxx::base::IO_errorCould not read a line from the input stream.

Definition at line 1313 of file hypha.cpp.


Member Function Documentation

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
Note:
If the value of parent and/or apical is 0, then this Printed_structure has no parent and/or apical.
Parameters:
inInput stream to read this Printed_structure from.
Exceptions:
jwscxx::base::Arg_errorA member is not properly formatted or missing a value.
jwscxx::base::IO_errorCould not read a line from the input stream.

Implements Printed_structure.

Definition at line 1354 of file hypha.cpp.

Apical_hypha * Printed_apical_hypha::convert ( Structure parent) const throw (jwscxx::base::Arg_error) [virtual]

Converts this Printed_apical_hypha to an Apical_hypha.

Parameters:
parentParent Structure. Use 0 for the root.
Note:
Does not add the created Apical_hypha to the parent in any way.
Returns:
An Apical_hypha created from this Printed_apical_hypha with its Apical_hypha::parent set to parent.
Exceptions:
jwscxx::base::Arg_errorApical_hypha values are not in the density parameter ranges.

Implements Printed_apical_structure.

Definition at line 1400 of file hypha.cpp.


Member Data Documentation

Parameters for density functions over the Apical_hypha.

Definition at line 402 of file hypha.h.


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