Functions to manage curves.
More...
#include <gtk/gtk.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include "global.h"
#include "interface.h"
#include "callbacks.h"
#include "project.h"
#include "cedit.h"
#include "curve.h"
Go to the source code of this file.
|
| void | adjust_tool_model (int calc, int curve, gchar *string_path) |
| | adjust the content of the tool box tree model
|
| |
| curve_dash * | selectdash (int iddash) |
| | setup dash pointer
|
| |
| double | scale (double axe) |
| | find appropriate major tick spacing based on axis length
|
| |
| void | prep_plot (project *this_proj, int rid, int cid) |
| | prepare curve plot (setting up variables for the plot)
|
| |
| void | clean_this_curve_window (int cid, int rid) |
| | free curve window data
|
| |
| void | set_curve_data_zero (int rid, int cid, int interv) |
| | initialize curve data
|
| |
| void | save_curve_ (int *interv, double datacurve[*interv], int *cid, int *rid) |
| | save calculation results from Fortran90
|
| |
| void | hide_curves (project *this_proj, int c) |
| | for project hide all curves for a calculation
|
| |
| void | remove_this_curve_from_extras (int a, int b, int c) |
| | free all target (a,b,c) curve from other curve(s) extra(s)
|
| |
| void | erase_curves (project *this_proj, int c) |
| | free all curve(s) data
|
| |
| void | update_curves () |
| | update all curve(s) rendering for all project(s) in the workspace
|
| |
| void | update_curve (gpointer data) |
| | update curve rendering
|
| |
|
| gint32 | etime |
| |
| int | resol [2] |
| |
| double | XDRAW |
| |
| double | YDRAW |
| |
| double | DXDRAW |
| |
| double | DYDRAW |
| |
| double | xmax |
| |
| double | ymax |
| |
| double | x_min |
| |
| double | x_max |
| |
| double | y_max |
| |
| double | y_min |
| |
| double | ax |
| |
| double | ay |
| |
| double | cxy [2] |
| |
| double | mticks |
| |
| int | nticks |
| |
| int | xlog |
| |
| int | ylog |
| |
| int | dxlog |
| |
| int | dylog |
| |
| char * | sca |
| |
| int | originp |
| |
| PangoLayout * | layout |
| |
| gboolean | dogrid |
| |
| int | x_shift |
| |
| int | y_shift |
| |
| int | amint |
| |
| int | amajt |
| |
| int | tickpos |
| |
| int | labpos |
| |
| int | xmarge = MARGX |
| |
| int | ymarge = MARGY |
| |
| char * | curve_image_file = NULL |
| |
| int | ndash = NDASHS |
| |
| int | nglyph = NGLYPHS |
| |
| const double | dashed0 [] = {0.0, 0.0} |
| |
| int | len0 = sizeof(dashed0) / sizeof(dashed0[0]) |
| |
| const double | dashed1 [] = {1.0, 0.0} |
| |
| int | len1 = sizeof(dashed1) / sizeof(dashed1[0]) |
| |
| const double | dashed2 [] = {5.0, 2.5} |
| |
| int | len2 = sizeof(dashed2) / sizeof(dashed2[0]) |
| |
| const double | dashed3 [] = {4.0, 6.0} |
| |
| int | len3 = sizeof(dashed3) / sizeof(dashed3[0]) |
| |
| const double | dashed4 [] = {2.0, 5.0} |
| |
| int | len4 = sizeof(dashed4) / sizeof(dashed4[0]) |
| |
| const double | dashed5 [] = {10.0, 5.0} |
| |
| int | len5 = sizeof(dashed5) / sizeof(dashed5[0]) |
| |
| const double | dashed6 [] = {10.0, 10.0} |
| |
| int | len6 = sizeof(dashed6) / sizeof(dashed6[0]) |
| |
| const double | dashed7 [] = {4.0, 1.0, 4.0} |
| |
| int | len7 = sizeof(dashed7) / sizeof(dashed7[0]) |
| |
| const double | dashed8 [] = {10.0, 2.5, 10.0} |
| |
| int | len8 = sizeof(dashed8) / sizeof(dashed8[0]) |
| |
| const double | dashed9 [] = {10.0, 5.0, 2.0} |
| |
| int | len9 = sizeof(dashed9) / sizeof(dashed9[0]) |
| |
| const double | pdashed [] = {1.0} |
| |
| int | lenp = 1 |
| |
◆ adjust_tool_model()
| void adjust_tool_model |
( |
int | calc, |
|
|
int | curve, |
|
|
gchar * | string_path ) |
|
extern |
adjust the content of the tool box tree model
- Parameters
-
| calc | the calculation |
| curve | the curve |
| string_path | the path in the tree view |
Definition at line 216 of file tools.c.
◆ clean_this_curve_window()
| void clean_this_curve_window |
( |
int | cid, |
|
|
int | rid ) |
free curve window data
- Parameters
-
| cid | the curve id |
| rid | the calculation id |
Definition at line 338 of file curve.c.
◆ erase_curves()
| void erase_curves |
( |
project * | this_proj, |
|
|
int | c ) |
free all curve(s) data
- Parameters
-
| this_proj | the target project |
| c | the target calculation |
Definition at line 526 of file curve.c.
◆ hide_curves()
| void hide_curves |
( |
project * | this_proj, |
|
|
int | c ) |
for project hide all curves for a calculation
- Parameters
-
| this_proj | the target project |
| c | the target calculation |
Definition at line 451 of file curve.c.
◆ prep_plot()
| void prep_plot |
( |
project * | this_proj, |
|
|
int | rid, |
|
|
int | cid ) |
prepare curve plot (setting up variables for the plot)
- Parameters
-
| this_proj | the target project |
| rid | the calculation id |
| cid | the curve id |
Definition at line 315 of file curve.c.
◆ remove_this_curve_from_extras()
| void remove_this_curve_from_extras |
( |
int | a, |
|
|
int | b, |
|
|
int | c ) |
free all target (a,b,c) curve from other curve(s) extra(s)
- Parameters
-
| a | the target project |
| b | the target calculation |
| c | the target curve |
Definition at line 482 of file curve.c.
◆ save_curve_()
| void save_curve_ |
( |
int * | interv, |
|
|
double | datacurve[ *interv], |
|
|
int * | cid, |
|
|
int * | rid ) |
save calculation results from Fortran90
- Parameters
-
| interv | number of data point(s) |
| datacurve | calculation result(s) to save |
| cid | curve id |
| rid | calculation id |
Definition at line 390 of file curve.c.
◆ scale()
| double scale |
( |
double | axe | ) |
|
find appropriate major tick spacing based on axis length
- Parameters
-
Definition at line 204 of file curve.c.
◆ selectdash()
setup dash pointer
- Parameters
-
Definition at line 134 of file curve.c.
◆ set_curve_data_zero()
| void set_curve_data_zero |
( |
int | rid, |
|
|
int | cid, |
|
|
int | interv ) |
initialize curve data
- Parameters
-
| rid | the calculation id |
| cid | the curve id |
| interv | the number of data point(s) |
Definition at line 369 of file curve.c.
◆ update_curve()
| void update_curve |
( |
gpointer | data | ) |
|
update curve rendering
- Parameters
-
| data | the associated data pointer |
Definition at line 589 of file curve.c.
◆ update_curves()
update all curve(s) rendering for all project(s) in the workspace
Definition at line 559 of file curve.c.
◆ amajt
◆ amint
◆ ax
◆ ay
◆ curve_image_file
| char* curve_image_file = NULL |
◆ cxy
◆ dashed0
| const double dashed0[] = {0.0, 0.0} |
◆ dashed1
| const double dashed1[] = {1.0, 0.0} |
◆ dashed2
| const double dashed2[] = {5.0, 2.5} |
◆ dashed3
| const double dashed3[] = {4.0, 6.0} |
◆ dashed4
| const double dashed4[] = {2.0, 5.0} |
◆ dashed5
| const double dashed5[] = {10.0, 5.0} |
◆ dashed6
| const double dashed6[] = {10.0, 10.0} |
◆ dashed7
| const double dashed7[] = {4.0, 1.0, 4.0} |
◆ dashed8
| const double dashed8[] = {10.0, 2.5, 10.0} |
◆ dashed9
| const double dashed9[] = {10.0, 5.0, 2.0} |
◆ dogrid
◆ DXDRAW
◆ dxlog
◆ DYDRAW
◆ dylog
◆ etime
◆ labpos
◆ layout
◆ len0
◆ len1
◆ len2
◆ len3
◆ len4
◆ len5
◆ len6
◆ len7
◆ len8
◆ len9
◆ lenp
◆ mticks
◆ ndash
◆ nglyph
◆ nticks
◆ originp
◆ pdashed
| const double pdashed[] = {1.0} |
◆ resol
◆ sca
◆ tickpos
◆ x_max
◆ x_min
◆ x_shift
◆ XDRAW
◆ xlog
◆ xmarge
◆ xmax
◆ y_max
◆ y_min
◆ y_shift
◆ YDRAW
◆ ylog
◆ ymarge
◆ ymax