Gtkmm-PLplot 3.0
A scientific plotting library for Gtkmm
|
the abstract base class that will hold a single plot object and its properties More...
#include <gtkmm-plplot/plotobject.h>
Public Member Functions | |
virtual | ~PlotObject () |
void | show () |
void | hide () |
bool | is_showing () const |
sigc::signal< void(void)> | signal_changed () |
virtual void | draw_plot_object (const Cairo::RefPtr< Cairo::Context > &cr, plstream *pls, PlotObjectAuxData &data)=0 |
Public Member Functions inherited from Gtk::PLplot::Object | |
virtual void | set_manage () |
Protected Member Functions | |
virtual void | on_changed () |
PlotObject () | |
Protected Member Functions inherited from Gtk::PLplot::Object | |
Object () | |
Protected Attributes | |
sigc::signal< void(void)> | _signal_changed |
signal that gets emitted whenever any of the plot object properties is changed. | |
Private Member Functions | |
PlotObject & | operator= (const PlotObject &)=delete |
no move assignment operator | |
PlotObject (const PlotObject &source)=delete | |
no default copy constructor; | |
Private Attributes | |
bool | shown |
true means the plot is currently visible, false means it is not plotted | |
the abstract base class that will hold a single plot object and its properties
The base class that all other PlotObject classes ultimately derive from. Examples are PlotLine2D and PlotText2D
|
privatedelete |
no default copy constructor;
|
protected |
Constructor
|
virtual |
Destructor
|
pure virtual |
Method to draw the object
This method is virtual allowing inheriting classes to implement their own method with the same signature.
cr | the cairo context to draw to. |
pls | the PLplot plstream object that will do the actual plotting on the Cairo context |
data | additional data sent from the Plot to influence drawing |
Implemented in Gtk::PLplot::PlotObject2DLine, and Gtk::PLplot::PlotObject2DText.
void Gtk::PLplot::PlotObject::hide | ( | ) |
Hide the object in the plot
bool Gtk::PLplot::PlotObject::is_showing | ( | ) | const |
Returns whether or not the object is showing in the plot
true
if the object is visible, false
if not
|
protectedvirtual |
This is a default handler for signal_changed()
This signal is emitted whenever any of the object properties is changed. Currently it does nothing but the signal will get caught by Plot, and will eventually trigger a redrawing of the entire widget.
|
privatedelete |
no move assignment operator
void Gtk::PLplot::PlotObject::show | ( | ) |
Make the object visible in the plot
|
inline |
signal_changed is emitted whenever any of the object properties has changed.
See default handler on_changed()
|
protected |
signal that gets emitted whenever any of the plot object properties is changed.
|
private |
true
means the plot is currently visible, false
means it is not plotted