00001 //--- 00002 // 00003 // This file is part of sedflux. 00004 // 00005 // sedflux is free software; you can redistribute it and/or modify 00006 // it under the terms of the GNU General Public License as published by 00007 // the Free Software Foundation; either version 2 of the License, or 00008 // (at your option) any later version. 00009 // 00010 // sedflux is distributed in the hope that it will be useful, 00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 // GNU General Public License for more details. 00014 // 00015 // You should have received a copy of the GNU General Public License 00016 // along with sedflux; if not, write to the Free Software 00017 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00018 // 00019 //--- 00020 00021 #if !defined(AVULSION_H) 00022 #define AVULSION_H 00023 00024 #include <glib.h> 00025 #include "sed/sed_sedflux.h" 00026 00027 #define AVULSION_PROGRAM_NAME "avlusion" 00028 #define AVULSION_MAJOR_VERSION (1) 00029 #define AVULSION_MINOR_VERSION (0) 00030 #define AVULSION_MICRO_VERSION (0) 00031 00032 typedef struct 00033 { 00034 GRand* rand; 00035 double std_dev; 00036 } 00037 Avulsion_st; 00038 00039 #define AVULSION_DATA avulsion_data_struct_quark() 00040 00041 GQuark avulsion_data_struct_quark ( void ); 00042 double avulsion ( GRand* rand , double last_angle , double std_dev ); 00043 Avulsion_st* avulsion_new ( GRand* rand , double std_dev ); 00044 Avulsion_st* avulsion_dup ( Avulsion_st* s ); 00045 Avulsion_st* avulsion_destroy ( Avulsion_st* data ); 00046 00047 Sed_riv sed_river_avulse ( Sed_riv r ); 00048 Sed_riv sed_river_set_avulsion_data ( Sed_riv r , Avulsion_st* data ); 00049 Sed_riv sed_river_unset_avulsion_data ( Sed_riv r ); 00050 Sed_riv sed_river_impart_avulsion_data( Sed_riv r ); 00051 Avulsion_st* sed_river_avulsion_data ( Sed_riv r ); 00052 Sed_cube sed_cube_avulse_river ( Sed_cube c , Sed_riv r ); 00053 Sed_cube sed_cube_avulse_all_rivers ( Sed_cube c ); 00054 00055 #endif 00056