Gtkmm-PLplot 3.0
A scientific plotting library for Gtkmm
|
abstract base class that will hold a single dataset that can be rendered as a line More...
#include <gtkmm-plplot/plotdataline.h>
Public Member Functions | |
virtual | ~PlotDataLine () |
void | set_color (Gdk::RGBA color) |
Gdk::RGBA | get_color () |
void | set_line_style (LineStyle line_style) |
LineStyle | get_line_style () |
void | set_line_width (double line_width) |
double | get_line_width () |
Public Member Functions inherited from Gtk::PLplot::PlotData | |
virtual | ~PlotData () |
void | set_name (Glib::ustring name) |
Glib::ustring | get_name () |
void | show () |
void | hide () |
bool | is_showing () const |
sigc::signal< void(void)> | signal_changed () |
sigc::signal< void(void)> | signal_data_modified () |
virtual void | draw_plot_data (const Cairo::RefPtr< Cairo::Context > &cr, plstream *pls) |
Public Member Functions inherited from Gtk::PLplot::Object | |
virtual void | set_manage () |
Protected Member Functions | |
PlotDataLine (Gdk::RGBA color, LineStyle line_style, double line_width) | |
Protected Member Functions inherited from Gtk::PLplot::PlotData | |
virtual void | on_changed () |
virtual void | on_data_modified () |
PlotData () | |
Protected Member Functions inherited from Gtk::PLplot::Object | |
Object () | |
Protected Attributes | |
Gdk::RGBA | color |
The color the dataset will be drawn in. | |
LineStyle | line_style |
The linestyle that will be used for this dataset in the plot. | |
double | line_width |
The line width of the dataset. Default is 1.0. | |
Protected Attributes inherited from Gtk::PLplot::PlotData | |
sigc::signal< void(void)> | _signal_changed |
signal that gets emitted whenever any of the dataset proprties is changed. | |
sigc::signal< void(void)> | _signal_data_modified |
signal that gets emitted whenever the X- and Y-datasets have been modified. | |
Private Member Functions | |
PlotDataLine ()=delete | |
no default constructor | |
PlotDataLine & | operator= (const PlotDataLine &)=delete |
no assignment operator | |
PlotDataLine (const PlotDataLine &source)=delete | |
no default copy constructor | |
abstract base class that will hold a single dataset that can be rendered as a line
This class extends PlotData with support for drawing lines, defined by their color, style and width. Getters and setters are provided for each of these properties. Important is that whenever a property is changed, signal_changed()
is emitted, which will eventually be picked up by the canvas
that will hold the plot
|
privatedelete |
no default constructor
|
privatedelete |
no default copy constructor
|
protected |
Constructor
This constructor initializes a new PlotDataLine instance, by setting the properties that will determine its appearance when rendered onto a plot
color | the line color |
line_style | the line style |
line_width | the line width |
Gtk::PLplot::Exception |
|
virtual |
Destructor
Gdk::RGBA Gtk::PLplot::PlotDataLine::get_color | ( | ) |
Get the current dataset color
LineStyle Gtk::PLplot::PlotDataLine::get_line_style | ( | ) |
Get the current dataset line style
double Gtk::PLplot::PlotDataLine::get_line_width | ( | ) |
Get the current dataset line width
|
privatedelete |
no assignment operator
void Gtk::PLplot::PlotDataLine::set_color | ( | Gdk::RGBA | color | ) |
Changes the color of the dataset
color | The new dataset color |
void Gtk::PLplot::PlotDataLine::set_line_style | ( | LineStyle | line_style | ) |
Changes the line style of the dataset
line_style | The new dataset line style |
void Gtk::PLplot::PlotDataLine::set_line_width | ( | double | line_width | ) |
Changes the line width of the dataset
line_width | The new dataset line width |
Gtk::PLplot::Exception |
|
protected |
The color the dataset will be drawn in.
|
protected |
The linestyle that will be used for this dataset in the plot.
|
protected |
The line width of the dataset. Default is 1.0.