X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Frrd_graph.h;h=51f3d3fbae49860ff27c82e0e8e7976174ace330;hb=814e92743992bce5d50dd662a4f661e50f4ab1ba;hp=de968a70b44db05fad224d91f24180d3f8e4b342;hpb=65878d5b2342b37186d9557f314e8a37dbc86de2;p=rrdtool.git diff --git a/src/rrd_graph.h b/src/rrd_graph.h index de968a7..51f3d3f 100644 --- a/src/rrd_graph.h +++ b/src/rrd_graph.h @@ -54,6 +54,7 @@ enum vdef_op_en { VDEF_MAXIMUM = 0 /* like the MAX in (G)PRINT */ , VDEF_MINIMUM /* like the MIN in (G)PRINT */ , VDEF_AVERAGE /* like the AVERAGE in (G)PRINT */ + , VDEF_STDEV /* the standard deviation */ , VDEF_PERCENT /* Nth percentile */ , VDEF_TOTAL /* average multiplied by time */ , VDEF_FIRST /* first non-unknown value and time */ @@ -170,6 +171,13 @@ typedef struct graph_desc_t { rrd_value_t *data; /* the raw data drawn from the rrd */ rrd_value_t *p_data; /* processed data, xsize elments */ double linewidth; /* linewideth */ + + /* dashed line stuff */ + int dash; /* boolean, draw dashed line? */ + double *p_dashes; /* pointer do dash array which keeps the lengths of dashes */ + int ndash; /* number of dash segments */ + double offset; /* dash offset along the line */ + enum txa_en txtalign; /* change default alignment strategy for text */ } graph_desc_t; @@ -215,6 +223,7 @@ typedef struct image_desc_t { long xorigin, yorigin; /* where is (0,0) of the graph */ long ximg, yimg; /* total size of the image */ + size_t rendered_image_size; double zoom; double magfact; /* numerical magnitude */ long base; /* 1000 or 1024 depending on what we graph */ @@ -227,6 +236,7 @@ typedef struct image_desc_t { int extra_flags; /* flags for boolean options */ /* data elements */ + unsigned char *rendered_image; long prt_c; /* number of print elements */ long gdes_c; /* number of graphics elements */ graph_desc_t *gdes; /* points to an array of graph elements */