#include <bsvg_plot.h>

| Public Member Functions | |
| bsvg_plot (float w, float h) | |
| bsvg_plot (float w, float h, float viewBox_x, float viewBox_y, float viewBox_w, float viewBox_h) | |
| void | add_axes (float x_min, float x_max, float y_min, float y_max, float stroke_width=default_stroke_width) | 
| void | add_x_increments (float x_inc, float stroke_width=default_stroke_width) | 
| assumes add_axes have been called. | |
| void | add_y_increments (float y_inc, float stroke_width=default_stroke_width) | 
| assumes add_axes have been called. | |
| void | set_margin (float m) | 
| void | set_font_size (int s) | 
| void | add_title (const vcl_string &t) | 
| void | add_line (const vcl_vector< float > &xs, const vcl_vector< float > &ys, const vcl_string &color, float stroke_width=default_stroke_width) | 
| void | add_bars (const vcl_vector< float > &heights, const vcl_string &color) | 
| add equally spaced and equal width bars with the given heights. | |
| void | add_bars (const vcl_vector< float > &heights, const vcl_vector< float > &x_labels, bool vertical_labels, const vcl_string &color) | 
| void | add_bars (const vcl_vector< float > &heights, const vcl_vector< vcl_string > &x_labels, bool vertical_labels, const vcl_string &color) | 
| int | number_of_bars () | 
| return the number of bars in the plot (counts the number of element with name "rect"). | |
| int | add_bar (const float height, const vcl_string &color) | 
| add bars sequentially with a fixed interval and width. | |
| int | add_bar (const float height, const float x_label, bool vertical_label, const vcl_string &color) | 
| int | add_bar (const float height, const vcl_string &label, bool vertical_label, const vcl_string &color) | 
| bsvg_group * | add_bars_helper (const vcl_vector< float > &heights, const vcl_string &color) | 
| bsvg_group * | add_x_labels_helper (const vcl_vector< vcl_string > &x_labels, const vcl_string &color, bool vertical_labels) | 
| void | add_splice (float center_x, float center_y, float radius, float start_angle, float end_angle, const vcl_string &color) | 
| add splices for a pie chart. | |
| void | add_splice (float center_x, float center_y, float radius, float start_angle, float end_angle, unsigned red, unsigned green, unsigned blue) | 
| bool | add_description (const vcl_string &d) | 
| bool | add_element (const bxml_data_sptr &element) | 
| bxml_data_sptr | root_element () const | 
| Return the root element. | |
| vcl_string | version () const | 
| Return the version string. | |
| vcl_string | encoding () const | 
| Return the encoding string. | |
| bool | standalone () const | 
| Return the standalone bit. | |
| void | set_root_element (const bxml_data_sptr &root) | 
| set the root element. | |
| void | set_version (const vcl_string &version) | 
| Set the version string. | |
| void | set_encoding (const vcl_string &encoding) | 
| Set the encoding string. | |
| void | set_standalone (bool standalone) | 
| Set the standalone bit. | |
| void | ref () | 
| void | unref () | 
| int | get_references () const | 
| bool | is_referenced () const | 
| Public Attributes | |
| float | w_ | 
| float | h_ | 
| Protected Attributes | |
| float | margin_ | 
| int | font_size_ | 
| float | scale_factor_ | 
| float | axes_orig_x_ | 
| float | axes_orig_y_ | 
| float | h2_x | 
| float | h2_y | 
Definition at line 27 of file bsvg_plot.h.
| bsvg_plot::bsvg_plot | ( | float | w, | 
| float | h | ||
| ) |  [inline] | 
Definition at line 31 of file bsvg_plot.h.
| bsvg_plot::bsvg_plot | ( | float | w, | 
| float | h, | ||
| float | viewBox_x, | ||
| float | viewBox_y, | ||
| float | viewBox_w, | ||
| float | viewBox_h | ||
| ) |  [inline] | 
Definition at line 32 of file bsvg_plot.h.
| void bsvg_plot::add_axes | ( | float | x_min, | 
| float | x_max, | ||
| float | y_min, | ||
| float | y_max, | ||
| float | stroke_width = default_stroke_width | ||
| ) | 
Definition at line 12 of file bsvg_plot.cxx.
| int bsvg_plot::add_bar | ( | const float | height, | 
| const vcl_string & | color | ||
| ) | 
add bars sequentially with a fixed interval and width.
use margin_ as the width of each bar and leave margin_/3 intervals in between the total width of the plot needs to be adjusted during initialization to contain all desired number of bars
Definition at line 258 of file bsvg_plot.cxx.
| int bsvg_plot::add_bar | ( | const float | height, | 
| const float | x_label, | ||
| bool | vertical_label, | ||
| const vcl_string & | color | ||
| ) | 
Definition at line 293 of file bsvg_plot.cxx.
| int bsvg_plot::add_bar | ( | const float | height, | 
| const vcl_string & | label, | ||
| bool | vertical_label, | ||
| const vcl_string & | color | ||
| ) | 
Definition at line 275 of file bsvg_plot.cxx.
| void bsvg_plot::add_bars | ( | const vcl_vector< float > & | heights, | 
| const vcl_string & | color | ||
| ) | 
add equally spaced and equal width bars with the given heights.
Definition at line 197 of file bsvg_plot.cxx.
| void bsvg_plot::add_bars | ( | const vcl_vector< float > & | heights, | 
| const vcl_vector< float > & | x_labels, | ||
| bool | vertical_labels, | ||
| const vcl_string & | color | ||
| ) | 
Definition at line 211 of file bsvg_plot.cxx.
| void bsvg_plot::add_bars | ( | const vcl_vector< float > & | heights, | 
| const vcl_vector< vcl_string > & | x_labels, | ||
| bool | vertical_labels, | ||
| const vcl_string & | color | ||
| ) | 
Definition at line 203 of file bsvg_plot.cxx.
| bsvg_group * bsvg_plot::add_bars_helper | ( | const vcl_vector< float > & | heights, | 
| const vcl_string & | color | ||
| ) | 
Definition at line 157 of file bsvg_plot.cxx.
| bool bsvg_document::add_description | ( | const vcl_string & | d | ) |  [inherited] | 
Definition at line 52 of file bsvg_document.cxx.
| bool bsvg_document::add_element | ( | const bxml_data_sptr & | element | ) |  [inherited] | 
Definition at line 69 of file bsvg_document.cxx.
| void bsvg_plot::add_line | ( | const vcl_vector< float > & | xs, | 
| const vcl_vector< float > & | ys, | ||
| const vcl_string & | color, | ||
| float | stroke_width = default_stroke_width | ||
| ) | 
Definition at line 135 of file bsvg_plot.cxx.
| void bsvg_plot::add_splice | ( | float | center_x, | 
| float | center_y, | ||
| float | radius, | ||
| float | start_angle, | ||
| float | end_angle, | ||
| const vcl_string & | color | ||
| ) | 
add splices for a pie chart.
angle is zero at the x-axis and is positive counter-clockwise, use angles in range [0,2*pi]
Definition at line 300 of file bsvg_plot.cxx.
| void bsvg_plot::add_splice | ( | float | center_x, | 
| float | center_y, | ||
| float | radius, | ||
| float | start_angle, | ||
| float | end_angle, | ||
| unsigned | red, | ||
| unsigned | green, | ||
| unsigned | blue | ||
| ) | 
Definition at line 308 of file bsvg_plot.cxx.
| void bsvg_plot::add_title | ( | const vcl_string & | t | ) | 
Definition at line 91 of file bsvg_plot.cxx.
| void bsvg_plot::add_x_increments | ( | float | x_inc, | 
| float | stroke_width = default_stroke_width | ||
| ) | 
assumes add_axes have been called.
Definition at line 102 of file bsvg_plot.cxx.
| bsvg_group * bsvg_plot::add_x_labels_helper | ( | const vcl_vector< vcl_string > & | x_labels, | 
| const vcl_string & | color, | ||
| bool | vertical_labels | ||
| ) | 
Definition at line 175 of file bsvg_plot.cxx.
| void bsvg_plot::add_y_increments | ( | float | y_inc, | 
| float | stroke_width = default_stroke_width | ||
| ) | 
assumes add_axes have been called.
Definition at line 119 of file bsvg_plot.cxx.
| vcl_string bxml_document::encoding | ( | ) | const  [inline, inherited] | 
Return the encoding string.
Definition at line 217 of file bxml_document.h.
| int bsvg_plot::number_of_bars | ( | ) | 
return the number of bars in the plot (counts the number of element with name "rect").
Definition at line 245 of file bsvg_plot.cxx.
| bxml_data_sptr bxml_document::root_element | ( | ) | const  [inline, inherited] | 
Return the root element.
Definition at line 211 of file bxml_document.h.
| void bxml_document::set_encoding | ( | const vcl_string & | encoding | ) |  [inline, inherited] | 
Set the encoding string.
Definition at line 230 of file bxml_document.h.
| void bsvg_plot::set_font_size | ( | int | s | ) |  [inline] | 
Definition at line 40 of file bsvg_plot.h.
| void bsvg_plot::set_margin | ( | float | m | ) |  [inline] | 
Definition at line 39 of file bsvg_plot.h.
| void bxml_document::set_root_element | ( | const bxml_data_sptr & | root | ) |  [inline, inherited] | 
set the root element.
Definition at line 223 of file bxml_document.h.
| void bxml_document::set_standalone | ( | bool | standalone | ) |  [inline, inherited] | 
Set the standalone bit.
Definition at line 233 of file bxml_document.h.
| void bxml_document::set_version | ( | const vcl_string & | version | ) |  [inline, inherited] | 
Set the version string.
Definition at line 227 of file bxml_document.h.
| bool bxml_document::standalone | ( | ) | const  [inline, inherited] | 
Return the standalone bit.
Definition at line 220 of file bxml_document.h.
| vcl_string bxml_document::version | ( | ) | const  [inline, inherited] | 
Return the version string.
Definition at line 214 of file bxml_document.h.
| float bsvg_plot::axes_orig_x_  [protected] | 
Definition at line 75 of file bsvg_plot.h.
| float bsvg_plot::axes_orig_y_  [protected] | 
Definition at line 76 of file bsvg_plot.h.
| int bsvg_plot::font_size_  [protected] | 
Definition at line 72 of file bsvg_plot.h.
| float bsvg_plot::h2_x  [protected] | 
Definition at line 77 of file bsvg_plot.h.
| float bsvg_plot::h2_y  [protected] | 
Definition at line 77 of file bsvg_plot.h.
| float bsvg_document::h_  [inherited] | 
Definition at line 30 of file bsvg_document.h.
| float bsvg_plot::margin_  [protected] | 
Definition at line 71 of file bsvg_plot.h.
| float bsvg_plot::scale_factor_  [protected] | 
Definition at line 74 of file bsvg_plot.h.
| float bsvg_document::w_  [inherited] | 
Definition at line 29 of file bsvg_document.h.
 1.7.5.1
 1.7.5.1