Alternaria
fit cylinders and ellipsoids to fungus
|
Generates an Alternaria_model, PSF_model, and Imaging_model and corresponding 3D microscopic image data from the models. More...
#include <config.h>
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <sstream>
#include <vector>
#include <inttypes.h>
#include <jwsc/prob/pdf.h>
#include <jwsc/math/constants.h>
#include <jwsc/vector/vector.h>
#include <jwsc/vector/vector_math.h>
#include <jwsc/matrix/matrix.h>
#include <jwsc/matrix/matrix_math.h>
#include <jwsc/image/image.h>
#include <jwsc/image/image_io.h>
#include <jwsc++/base/option.h>
#include <jwsc++/base/exception.h>
#include <jwsc++/graphics/camera.h>
#include "imaging_model.h"
#include "psf_model.h"
#include "structure.h"
#include "spore.h"
#include "hypha.h"
#include "alternaria_model.h"
Go to the source code of this file.
Classes | |
struct | Alternaria_gen_modes |
Modes the viewer can be in. More... | |
Defines | |
#define | REDBLUE 1 |
#define | REDGREEN 2 |
#define | REDCYAN 3 |
#define | BLUERED 4 |
#define | GREENRED 5 |
#define | CYANRED 6 |
#define | VIEW_WIDTH 800 |
#define | VIEW_HEIGHT 800 |
#define | APERTURE 60.0f |
#define | CLIP_NEAR 10.0f |
#define | CLIP_FAR 3000.0f |
#define | GLASSES_TYPE REDCYAN |
#define | CAPTURE_FMT "capture-%04u.tiff" |
#define | OBJECT_SCALE 1.0 |
#define | SEED 2537984 |
#define | IMG_IN_FNAME 0 |
#define | IMG_OUT_FNAME "imaging.model" |
#define | PSF_IN_FNAME 0 |
#define | PSF_OUT_FNAME "psf.model" |
#define | ALT_IN_FNAME 0 |
#define | ALT_OUT_FNAME "alternaria.model" |
#define | ALT_SCENE_FMT 0 |
#define | PSF_H_FMT 0 |
#define | NUM_SCENE_COLS 128 |
#define | NUM_SCENE_ROWS 128 |
#define | NUM_SCENE_IMGS 128 |
#define | CENTROID_MIN -5000.0f |
#define | CENTROID_MAX 5000.0f |
#define | NUM_STRUCTS 300 |
#define | BASE_LEVEL 0 |
Functions | |
void | init_modes () |
Initialize the viewer modes. | |
void | init_camera () throw (Arg_error) |
Initializes the camera to default values. | |
void | clean_up () |
Cleans up the program to prepare for exit. | |
void | reset () |
Resets the state of the viewer. | |
void | render_world_axis () |
Renders the 3D world axis. | |
void | render_focal_plane () |
Renders the focal plane. | |
void | render_scene () |
Renders the scene into the viewer. | |
void | display_glut_anaglyph () |
Display the model as an anaglyph (3D stereo pair). | |
void | display_glut_regular () |
Display the model under normal conditions. | |
void | display_glut () |
Display callback for the GLUT library. | |
void | reshape_glut (int w, int h) |
Reshape callback for the GLUT library. | |
void | keyboard_glut (unsigned char key, int a, int b) |
Keyboard callback for the GLUT library. | |
void | mouse_glut (int button, int state, int x, int y) |
Mouse callback for the GLUT library. | |
void | main_menu_glut (int id) |
Main menu callback for the GLUT library. | |
void | option_menu_glut (int id) |
Option submenu callback for the GLUT library. | |
void | navigation_menu_glut (int id) |
Keyboard navigation submenu callback for the GLUT library. | |
void | focal_length_menu_glut (int id) |
Focal length submenu callback for the GLUT library. | |
void | init_glut (int argc, char **argv) |
Initializes the GLUT to default values. | |
void | init_gl () |
Initializes the GL to default values. | |
void | print_usage (void) |
Prints the usage of the program. | |
void | process_help_opt (void) |
Processes the 'help' program options. | |
void | process_version_opt (void) |
Processes the 'version' program options. | |
void | process_options_opt (const char *arg) throw (Arg_error) |
Processes the 'options' program options. | |
void | process_seed_opt (const char *arg) throw (Arg_error) |
Processes the 'seed' program options. | |
void | process_apical_hypha_length_opt (const char *arg) throw (Arg_error) |
Processes the 'apical-hypha-length' program options. | |
void | process_lateral_hypha_length_opt (const char *arg) throw (Arg_error) |
Processes the 'lateral-hypha-length' program options. | |
void | process_apical_hypha_width_opt (const char *arg) throw (Arg_error) |
Processes the 'apical-hypha-width' program options. | |
void | process_lateral_hypha_width_opt (const char *arg) throw (Arg_error) |
Processes the 'lateral-hypha-width' program options. | |
void | process_apical_hypha_theta_opt (const char *arg) throw (Arg_error) |
Processes the 'apical-hypha-theta' program options. | |
void | process_lateral_hypha_1_theta_opt (const char *arg) throw (Arg_error) |
Processes the 'lateral-hypha-1-theta' program options. | |
void | process_lateral_hypha_n_theta_opt (const char *arg) throw (Arg_error) |
Processes the 'lateral-hypha-n-theta' program options. | |
void | process_hypha_psi_opt (const char *arg) throw (Arg_error) |
Processes the 'hypha-psi' program options. | |
void | process_hypha_opacity_opt (const char *arg) throw (Arg_error) |
Processes the 'hypha-opacity' program options. | |
void | process_lateral_hypha_dist_opt (const char *arg) throw (Arg_error) |
Processes the 'lateral-hypha-dist' program options. | |
void | process_spore_length_opt (const char *arg) throw (Arg_error) |
Processes the 'spore-length' program options. | |
void | process_spore_width_opt (const char *arg) throw (Arg_error) |
Processes the 'spore-width' program options. | |
void | process_spore_theta_opt (const char *arg) throw (Arg_error) |
Processes the 'spore-theta' program options. | |
void | process_spore_psi_opt (const char *arg) throw (Arg_error) |
Processes the 'spore-psi' program options. | |
void | process_spore_opacity_opt (const char *arg) throw (Arg_error) |
Processes the 'spore-opacity' program options. | |
void | process_psf_alpha_opt (const char *arg) throw (Arg_error) |
Processes the 'psf-alpha' program options. | |
void | process_psf_beta_opt (const char *arg) throw (Arg_error) |
Processes the 'psf-beta' program options. | |
void | process_psf_gamma_opt (const char *arg) throw (Arg_error) |
Processes the 'psf-gamma' program options. | |
void | process_img_bg_opt (const char *arg) throw (Arg_error) |
Processes the 'img-bg' program options. | |
void | process_levels_p_opt (const char *arg) throw (Arg_error) |
Processes the 'levels-p' program options. | |
void | process_structs_p_opt (const char *arg) throw (Arg_error) |
Processes the 'structs-p' program options. | |
void | process_img_in_opt (const char *arg) throw (Arg_error) |
Processes the 'img-in' program options. | |
void | process_img_out_opt (const char *arg) throw (Arg_error) |
Processes the 'img-out' program options. | |
void | process_psf_in_opt (const char *arg) throw (Arg_error) |
Processes the 'psf-in' program options. | |
void | process_psf_out_opt (const char *arg) throw (Arg_error) |
Processes the 'psf-out' program options. | |
void | process_alt_in_opt (const char *arg) throw (Arg_error) |
Processes the 'alt-in' program options. | |
void | process_alt_out_opt (const char *arg) throw (Arg_error) |
Processes the 'alt-out' program options. | |
void | process_scene_fmt_opt (const char *arg) throw (Arg_error) |
Processes the 'scene-fmt' program options. | |
void | process_scene_size_opt (const char *arg) throw (Arg_error) |
Processes the 'scene-size' program options. | |
void | process_scene_scale_opt (const char *arg) throw (Arg_error) |
Processes the 'scene-scale' program options. | |
void | process_psf_fmt_opt (const char *arg) throw (Arg_error) |
Processes the 'psf_fmt' program options. | |
void | process_num_structs_opt (const char *arg) throw (Arg_error) |
Processes the 'num-structs' program options. | |
void | process_interactive_opt () throw (Arg_error) |
Processes the 'interactive' program options. | |
void | process_view_size_opt (const char *arg) throw (Arg_error) |
Processes the 'view-size' program options. | |
void | process_glasses_opt (const char *arg) throw (Arg_error) |
Processes the 'glasses' program options. | |
void | process_capture_opt (const char *arg) throw (Arg_error) |
Processes the 'capture' program options. | |
void | process_base_level_opt (const char *arg) throw (Arg_error) |
Processes the 'base-level' program options. | |
void | init_options () |
Initialize the options. | |
void * | operator new (size_t s) throw (std::bad_alloc) |
void | operator delete (void *ptr) throw () |
int | main (int argc, char **argv) |
Main function for the alternaria program. | |
Variables | |
Options * | opts = 0 |
Program options. | |
uint32_t | view_width = VIEW_WIDTH |
Width of the viewing window. | |
uint32_t | view_height = VIEW_HEIGHT |
Height of the viewing window. | |
float | aperture = APERTURE |
Viewing aperture. | |
float | clip_near = CLIP_NEAR |
Near clipping plane. | |
float | clip_far = CLIP_FAR |
Far clipping plane. | |
int | glasses_type = GLASSES_TYPE |
Anaglyph glasses type. | |
const char * | capture_fmt = CAPTURE_FMT |
Printf-formatted file to write captured view images to. | |
float | object_scale = OBJECT_SCALE |
Scale of the objects. | |
uint32_t | seed = SEED |
Random seed. | |
const char * | img_in_fname = IMG_IN_FNAME |
Imaging_model file name to read from. | |
const char * | img_out_fname = IMG_OUT_FNAME |
Imaging_model file name to write to. | |
const char * | psf_in_fname = PSF_IN_FNAME |
PSF_model file name to read from. | |
const char * | psf_out_fname = PSF_OUT_FNAME |
PSF_model file name to write to. | |
const char * | alt_in_fname = ALT_IN_FNAME |
Alternaria file name to read from. | |
const char * | alt_out_fname = ALT_OUT_FNAME |
Alternaria file name to write to. | |
const char * | alt_scene_fmt = ALT_SCENE_FMT |
Printf formatted file name for the output Alternaria_model::scene images. | |
const char * | psf_h_fmt = PSF_H_FMT |
Printf formatted file name for the output PSF::h images. | |
uint32_t | num_structs = NUM_STRUCTS |
Number of Structures to generate in the Alternaria. | |
uint32_t | base_level = BASE_LEVEL |
Base level for the root Structure. | |
Imaging_window * | img_window = 0 |
Imaging_model window. | |
Imaging_scale * | img_scale = 0 |
Imaging_model scale. | |
Imaging_model * | imaging = 0 |
Imaging_model to test. | |
PSF_padding * | padding = 0 |
PSF_model padding. | |
PSF_model * | psf = 0 |
PSF_model to test. | |
Alternaria * | alternaria = 0 |
Alternaria to test. | |
Imaging_model_density * | imaging_d = 0 |
Imaging_model density. | |
PSF_model_density * | psf_d = 0 |
PSF_model density. | |
Apical_hypha_density * | apical_hypha_d = 0 |
Apical_hypha density. | |
Lateral_hypha_density * | lateral_hypha_1_d = 0 |
Lateral_hypha density at level 1. | |
Lateral_hypha_density * | lateral_hypha_n_d = 0 |
Lateral_hypha density at level > 1. | |
Spore_density * | spore_d = 0 |
Spore density. | |
Alternaria_density * | alt_d = 0 |
Alternaria density. | |
bool | interactive = 0 |
Put the Alternaria in an interactive GLUT/GL viewer. | |
Stereo_camera_f * | camera = 0 |
3D viewing camera. | |
GLUquadric * | quad_fill = 0 |
Filled quadric. | |
GLUquadric * | quad_wire = 0 |
Wire-frame quadric. | |
Structure * | highlight = 0 |
Pointer to the currently selected Structure in alternaria to modify. | |
struct Alternaria_gen_modes | modes |
Generates an Alternaria_model, PSF_model, and Imaging_model and corresponding 3D microscopic image data from the models.
Definition in file alternaria_gen.cpp.
#define REDBLUE 1 |
Definition at line 94 of file alternaria_gen.cpp.
#define REDGREEN 2 |
Definition at line 95 of file alternaria_gen.cpp.
#define REDCYAN 3 |
Definition at line 96 of file alternaria_gen.cpp.
#define BLUERED 4 |
Definition at line 97 of file alternaria_gen.cpp.
#define GREENRED 5 |
Definition at line 98 of file alternaria_gen.cpp.
#define CYANRED 6 |
Definition at line 99 of file alternaria_gen.cpp.
#define VIEW_WIDTH 800 |
Definition at line 102 of file alternaria_gen.cpp.
#define VIEW_HEIGHT 800 |
Definition at line 103 of file alternaria_gen.cpp.
#define APERTURE 60.0f |
Definition at line 104 of file alternaria_gen.cpp.
#define CLIP_NEAR 10.0f |
Definition at line 105 of file alternaria_gen.cpp.
#define CLIP_FAR 3000.0f |
Definition at line 106 of file alternaria_gen.cpp.
#define GLASSES_TYPE REDCYAN |
Definition at line 107 of file alternaria_gen.cpp.
#define CAPTURE_FMT "capture-%04u.tiff" |
Definition at line 108 of file alternaria_gen.cpp.
#define OBJECT_SCALE 1.0 |
Definition at line 109 of file alternaria_gen.cpp.
#define SEED 2537984 |
Definition at line 110 of file alternaria_gen.cpp.
#define IMG_IN_FNAME 0 |
Definition at line 111 of file alternaria_gen.cpp.
#define IMG_OUT_FNAME "imaging.model" |
Definition at line 112 of file alternaria_gen.cpp.
#define PSF_IN_FNAME 0 |
Definition at line 113 of file alternaria_gen.cpp.
#define PSF_OUT_FNAME "psf.model" |
Definition at line 114 of file alternaria_gen.cpp.
#define ALT_IN_FNAME 0 |
Definition at line 115 of file alternaria_gen.cpp.
#define ALT_OUT_FNAME "alternaria.model" |
Definition at line 116 of file alternaria_gen.cpp.
#define ALT_SCENE_FMT 0 |
Definition at line 117 of file alternaria_gen.cpp.
#define PSF_H_FMT 0 |
Definition at line 118 of file alternaria_gen.cpp.
#define NUM_SCENE_COLS 128 |
Definition at line 119 of file alternaria_gen.cpp.
#define NUM_SCENE_ROWS 128 |
Definition at line 120 of file alternaria_gen.cpp.
#define NUM_SCENE_IMGS 128 |
Definition at line 121 of file alternaria_gen.cpp.
#define CENTROID_MIN -5000.0f |
Definition at line 122 of file alternaria_gen.cpp.
#define CENTROID_MAX 5000.0f |
Definition at line 123 of file alternaria_gen.cpp.
#define NUM_STRUCTS 300 |
Definition at line 124 of file alternaria_gen.cpp.
#define BASE_LEVEL 0 |
Definition at line 125 of file alternaria_gen.cpp.
void init_modes | ( | ) |
Initialize the viewer modes.
Definition at line 301 of file alternaria_gen.cpp.
void init_camera | ( | ) | throw (Arg_error) |
Initializes the camera to default values.
Definition at line 315 of file alternaria_gen.cpp.
void clean_up | ( | ) |
Cleans up the program to prepare for exit.
Used to check for memory leaks.
Definition at line 328 of file alternaria_gen.cpp.
void reset | ( | ) |
Resets the state of the viewer.
Definition at line 350 of file alternaria_gen.cpp.
void render_world_axis | ( | ) |
Renders the 3D world axis.
Definition at line 360 of file alternaria_gen.cpp.
void render_focal_plane | ( | ) |
Renders the focal plane.
Definition at line 411 of file alternaria_gen.cpp.
void render_scene | ( | ) |
Renders the scene into the viewer.
Definition at line 461 of file alternaria_gen.cpp.
void display_glut_anaglyph | ( | ) |
Display the model as an anaglyph (3D stereo pair).
Reset the color mask.
Definition at line 485 of file alternaria_gen.cpp.
void display_glut_regular | ( | ) |
Display the model under normal conditions.
Definition at line 590 of file alternaria_gen.cpp.
void display_glut | ( | ) |
Display callback for the GLUT library.
Definition at line 623 of file alternaria_gen.cpp.
void reshape_glut | ( | int | w, |
int | h | ||
) |
Reshape callback for the GLUT library.
Definition at line 647 of file alternaria_gen.cpp.
void keyboard_glut | ( | unsigned char | key, |
int | a, | ||
int | b | ||
) |
Keyboard callback for the GLUT library.
Definition at line 656 of file alternaria_gen.cpp.
void mouse_glut | ( | int | button, |
int | state, | ||
int | x, | ||
int | y | ||
) |
Mouse callback for the GLUT library.
Definition at line 1302 of file alternaria_gen.cpp.
void main_menu_glut | ( | int | id | ) |
Main menu callback for the GLUT library.
Definition at line 1361 of file alternaria_gen.cpp.
void option_menu_glut | ( | int | id | ) |
Option submenu callback for the GLUT library.
Definition at line 1380 of file alternaria_gen.cpp.
void navigation_menu_glut | ( | int | id | ) |
Keyboard navigation submenu callback for the GLUT library.
Definition at line 1400 of file alternaria_gen.cpp.
void focal_length_menu_glut | ( | int | id | ) |
Focal length submenu callback for the GLUT library.
Definition at line 1423 of file alternaria_gen.cpp.
void init_glut | ( | int | argc, |
char ** | argv | ||
) |
Initializes the GLUT to default values.
Definition at line 1439 of file alternaria_gen.cpp.
void init_gl | ( | ) |
Initializes the GL to default values.
Definition at line 1477 of file alternaria_gen.cpp.
void print_usage | ( | void | ) |
Prints the usage of the program.
Definition at line 1529 of file alternaria_gen.cpp.
void process_help_opt | ( | void | ) |
Processes the 'help' program options.
Definition at line 1537 of file alternaria_gen.cpp.
void process_version_opt | ( | void | ) |
Processes the 'version' program options.
Definition at line 1545 of file alternaria_gen.cpp.
void process_options_opt | ( | const char * | arg | ) | throw (Arg_error) |
Processes the 'options' program options.
Definition at line 1553 of file alternaria_gen.cpp.
void process_seed_opt | ( | const char * | arg | ) | throw (Arg_error) |
Processes the 'seed' program options.
Definition at line 1570 of file alternaria_gen.cpp.
void process_apical_hypha_length_opt | ( | const char * | arg | ) | throw (Arg_error) |
Processes the 'apical-hypha-length' program options.
Definition at line 1583 of file alternaria_gen.cpp.
void process_lateral_hypha_length_opt | ( | const char * | arg | ) | throw (Arg_error) |
Processes the 'lateral-hypha-length' program options.
Definition at line 1608 of file alternaria_gen.cpp.
void process_apical_hypha_width_opt | ( | const char * | arg | ) | throw (Arg_error) |
Processes the 'apical-hypha-width' program options.
Definition at line 1634 of file alternaria_gen.cpp.
void process_lateral_hypha_width_opt | ( | const char * | arg | ) | throw (Arg_error) |
Processes the 'lateral-hypha-width' program options.
Definition at line 1659 of file alternaria_gen.cpp.
void process_apical_hypha_theta_opt | ( | const char * | arg | ) | throw (Arg_error) |
Processes the 'apical-hypha-theta' program options.
Definition at line 1685 of file alternaria_gen.cpp.
void process_lateral_hypha_1_theta_opt | ( | const char * | arg | ) | throw (Arg_error) |
Processes the 'lateral-hypha-1-theta' program options.
Definition at line 1710 of file alternaria_gen.cpp.
void process_lateral_hypha_n_theta_opt | ( | const char * | arg | ) | throw (Arg_error) |
Processes the 'lateral-hypha-n-theta' program options.
Definition at line 1735 of file alternaria_gen.cpp.
void process_hypha_psi_opt | ( | const char * | arg | ) | throw (Arg_error) |
Processes the 'hypha-psi' program options.
Definition at line 1760 of file alternaria_gen.cpp.
void process_hypha_opacity_opt | ( | const char * | arg | ) | throw (Arg_error) |
Processes the 'hypha-opacity' program options.
Definition at line 1787 of file alternaria_gen.cpp.
void process_lateral_hypha_dist_opt | ( | const char * | arg | ) | throw (Arg_error) |
Processes the 'lateral-hypha-dist' program options.
Definition at line 1814 of file alternaria_gen.cpp.
void process_spore_length_opt | ( | const char * | arg | ) | throw (Arg_error) |
Processes the 'spore-length' program options.
Definition at line 1840 of file alternaria_gen.cpp.
void process_spore_width_opt | ( | const char * | arg | ) | throw (Arg_error) |
Processes the 'spore-width' program options.
Definition at line 1865 of file alternaria_gen.cpp.
void process_spore_theta_opt | ( | const char * | arg | ) | throw (Arg_error) |
Processes the 'spore-theta' program options.
Definition at line 1890 of file alternaria_gen.cpp.
void process_spore_psi_opt | ( | const char * | arg | ) | throw (Arg_error) |
Processes the 'spore-psi' program options.
Definition at line 1915 of file alternaria_gen.cpp.
void process_spore_opacity_opt | ( | const char * | arg | ) | throw (Arg_error) |
Processes the 'spore-opacity' program options.
Definition at line 1940 of file alternaria_gen.cpp.
void process_psf_alpha_opt | ( | const char * | arg | ) | throw (Arg_error) |
Processes the 'psf-alpha' program options.
Definition at line 1965 of file alternaria_gen.cpp.
void process_psf_beta_opt | ( | const char * | arg | ) | throw (Arg_error) |
Processes the 'psf-beta' program options.
Definition at line 1990 of file alternaria_gen.cpp.
void process_psf_gamma_opt | ( | const char * | arg | ) | throw (Arg_error) |
Processes the 'psf-gamma' program options.
Definition at line 2015 of file alternaria_gen.cpp.
void process_img_bg_opt | ( | const char * | arg | ) | throw (Arg_error) |
Processes the 'img-bg' program options.
Definition at line 2040 of file alternaria_gen.cpp.
void process_levels_p_opt | ( | const char * | arg | ) | throw (Arg_error) |
Processes the 'levels-p' program options.
Definition at line 2065 of file alternaria_gen.cpp.
void process_structs_p_opt | ( | const char * | arg | ) | throw (Arg_error) |
Processes the 'structs-p' program options.
Definition at line 2090 of file alternaria_gen.cpp.
void process_img_in_opt | ( | const char * | arg | ) | throw (Arg_error) |
Processes the 'img-in' program options.
Definition at line 2116 of file alternaria_gen.cpp.
void process_img_out_opt | ( | const char * | arg | ) | throw (Arg_error) |
Processes the 'img-out' program options.
Definition at line 2126 of file alternaria_gen.cpp.
void process_psf_in_opt | ( | const char * | arg | ) | throw (Arg_error) |
Processes the 'psf-in' program options.
Definition at line 2136 of file alternaria_gen.cpp.
void process_psf_out_opt | ( | const char * | arg | ) | throw (Arg_error) |
Processes the 'psf-out' program options.
Definition at line 2146 of file alternaria_gen.cpp.
void process_alt_in_opt | ( | const char * | arg | ) | throw (Arg_error) |
Processes the 'alt-in' program options.
Definition at line 2156 of file alternaria_gen.cpp.
void process_alt_out_opt | ( | const char * | arg | ) | throw (Arg_error) |
Processes the 'alt-out' program options.
Definition at line 2166 of file alternaria_gen.cpp.
void process_scene_fmt_opt | ( | const char * | arg | ) | throw (Arg_error) |
Processes the 'scene-fmt' program options.
Definition at line 2176 of file alternaria_gen.cpp.
void process_scene_size_opt | ( | const char * | arg | ) | throw (Arg_error) |
Processes the 'scene-size' program options.
Definition at line 2186 of file alternaria_gen.cpp.
void process_scene_scale_opt | ( | const char * | arg | ) | throw (Arg_error) |
Processes the 'scene-scale' program options.
Definition at line 2211 of file alternaria_gen.cpp.
void process_psf_fmt_opt | ( | const char * | arg | ) | throw (Arg_error) |
Processes the 'psf_fmt' program options.
Definition at line 2236 of file alternaria_gen.cpp.
void process_num_structs_opt | ( | const char * | arg | ) | throw (Arg_error) |
Processes the 'num-structs' program options.
Definition at line 2246 of file alternaria_gen.cpp.
void process_interactive_opt | ( | ) | throw (Arg_error) |
Processes the 'interactive' program options.
Definition at line 2259 of file alternaria_gen.cpp.
void process_view_size_opt | ( | const char * | arg | ) | throw (Arg_error) |
Processes the 'view-size' program options.
Definition at line 2265 of file alternaria_gen.cpp.
void process_glasses_opt | ( | const char * | arg | ) | throw (Arg_error) |
Processes the 'glasses' program options.
Definition at line 2286 of file alternaria_gen.cpp.
void process_capture_opt | ( | const char * | arg | ) | throw (Arg_error) |
Processes the 'capture' program options.
Definition at line 2311 of file alternaria_gen.cpp.
void process_base_level_opt | ( | const char * | arg | ) | throw (Arg_error) |
Processes the 'base-level' program options.
Definition at line 2321 of file alternaria_gen.cpp.
void init_options | ( | ) |
Initialize the options.
Definition at line 2334 of file alternaria_gen.cpp.
void* operator new | ( | size_t | s | ) | throw (std::bad_alloc) |
Definition at line 2518 of file alternaria_gen.cpp.
void operator delete | ( | void * | ptr | ) | throw () |
Definition at line 2524 of file alternaria_gen.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
Main function for the alternaria program.
Definition at line 2534 of file alternaria_gen.cpp.
Program options.
Definition at line 142 of file alternaria_gen.cpp.
uint32_t view_width = VIEW_WIDTH |
Width of the viewing window.
Definition at line 145 of file alternaria_gen.cpp.
uint32_t view_height = VIEW_HEIGHT |
Height of the viewing window.
Definition at line 148 of file alternaria_gen.cpp.
float aperture = APERTURE |
Viewing aperture.
Definition at line 151 of file alternaria_gen.cpp.
float clip_near = CLIP_NEAR |
Near clipping plane.
Definition at line 154 of file alternaria_gen.cpp.
float clip_far = CLIP_FAR |
Far clipping plane.
Definition at line 157 of file alternaria_gen.cpp.
int glasses_type = GLASSES_TYPE |
Anaglyph glasses type.
Definition at line 160 of file alternaria_gen.cpp.
const char* capture_fmt = CAPTURE_FMT |
Printf-formatted file to write captured view images to.
Definition at line 163 of file alternaria_gen.cpp.
float object_scale = OBJECT_SCALE |
Scale of the objects.
Definition at line 166 of file alternaria_gen.cpp.
uint32_t seed = SEED |
Random seed.
Definition at line 169 of file alternaria_gen.cpp.
const char* img_in_fname = IMG_IN_FNAME |
Imaging_model file name to read from.
Definition at line 172 of file alternaria_gen.cpp.
const char* img_out_fname = IMG_OUT_FNAME |
Imaging_model file name to write to.
Definition at line 175 of file alternaria_gen.cpp.
const char* psf_in_fname = PSF_IN_FNAME |
PSF_model file name to read from.
Definition at line 178 of file alternaria_gen.cpp.
const char* psf_out_fname = PSF_OUT_FNAME |
PSF_model file name to write to.
Definition at line 181 of file alternaria_gen.cpp.
const char* alt_in_fname = ALT_IN_FNAME |
Alternaria file name to read from.
Definition at line 184 of file alternaria_gen.cpp.
const char* alt_out_fname = ALT_OUT_FNAME |
Alternaria file name to write to.
Definition at line 187 of file alternaria_gen.cpp.
const char* alt_scene_fmt = ALT_SCENE_FMT |
Printf formatted file name for the output Alternaria_model::scene images.
Definition at line 193 of file alternaria_gen.cpp.
const char* psf_h_fmt = PSF_H_FMT |
Printf formatted file name for the output PSF::h images.
Definition at line 196 of file alternaria_gen.cpp.
uint32_t num_structs = NUM_STRUCTS |
Number of Structures to generate in the Alternaria.
Definition at line 199 of file alternaria_gen.cpp.
uint32_t base_level = BASE_LEVEL |
Base level for the root Structure.
Definition at line 202 of file alternaria_gen.cpp.
Imaging_window* img_window = 0 |
Imaging_model window.
Definition at line 205 of file alternaria_gen.cpp.
Imaging_scale* img_scale = 0 |
Imaging_model scale.
Definition at line 208 of file alternaria_gen.cpp.
Imaging_model* imaging = 0 |
Imaging_model to test.
Definition at line 211 of file alternaria_gen.cpp.
PSF_padding* padding = 0 |
PSF_model padding.
Definition at line 214 of file alternaria_gen.cpp.
PSF_model to test.
Definition at line 217 of file alternaria_gen.cpp.
Alternaria* alternaria = 0 |
Alternaria to test.
Definition at line 220 of file alternaria_gen.cpp.
Imaging_model density.
Definition at line 223 of file alternaria_gen.cpp.
PSF_model_density* psf_d = 0 |
PSF_model density.
Definition at line 226 of file alternaria_gen.cpp.
Apical_hypha density.
Definition at line 229 of file alternaria_gen.cpp.
Lateral_hypha density at level 1.
Definition at line 232 of file alternaria_gen.cpp.
Lateral_hypha density at level > 1.
Definition at line 235 of file alternaria_gen.cpp.
Spore_density* spore_d = 0 |
Spore density.
Definition at line 238 of file alternaria_gen.cpp.
Alternaria_density* alt_d = 0 |
Alternaria density.
Definition at line 241 of file alternaria_gen.cpp.
bool interactive = 0 |
Put the Alternaria in an interactive GLUT/GL viewer.
Definition at line 244 of file alternaria_gen.cpp.
Stereo_camera_f* camera = 0 |
3D viewing camera.
Definition at line 247 of file alternaria_gen.cpp.
GLUquadric* quad_fill = 0 |
Filled quadric.
Definition at line 250 of file alternaria_gen.cpp.
GLUquadric* quad_wire = 0 |
Wire-frame quadric.
Definition at line 253 of file alternaria_gen.cpp.
Pointer to the currently selected Structure in alternaria to modify.
Definition at line 259 of file alternaria_gen.cpp.
struct Alternaria_gen_modes modes |