vdk 2.4.0
|
Provides a char base class. More...
#include <chart.h>
Public Member Functions | |
VDKChart (VDKForm *owner, int w=100, int h=100) | |
virtual | ~VDKChart () |
virtual int | isA () |
void | AddSeries (Series *s) |
void | Clear () |
GdkGC * | GC () |
void | SetColor (VDKRgb rgb) |
void | SetLineAttributes (gint lineWidth, GdkLineStyle lineStyle, GdkCapStyle capStyle, GdkJoinStyle joinStyle) |
virtual void | Plot (VDKPoint &p, int i, Series *s) |
![]() | |
void | Clear () |
void | Redraw () |
void | SetForeground (VDKRgb color, GtkStateType state=GTK_STATE_NORMAL) |
void | SetBackground (VDKRgb color, GtkStateType state=GTK_STATE_NORMAL) |
void | SetFont (VDKFont *f) |
![]() | |
VDKRgb | GetBackground (GtkStateType state=GTK_STATE_NORMAL) |
VDKRgb | GetForeground (GtkStateType state=GTK_STATE_NORMAL) |
VDKObject (VDKForm *owner=NULL) | |
VDKObject (VDKForm *owner, GtkWidget *widget) | |
virtual | ~VDKObject () |
bool | Destroy () |
VDKForm * | Owner () |
virtual GtkWidget * | Widget () |
GtkWidget * | ConnectingWidget () |
GtkWidget * | WrappedWidget () |
VDKFont * | GetFont () |
void | SetVisible (bool visible) |
bool | GetVisible () |
void | SetCursor (VDKCursorType) |
VDKCursorType | GetCursor () |
void | SetSize (int w, int h) |
void | SetUsize (VDKPoint s) |
virtual void | SetTip (char *) |
virtual void | Add (VDKObject *obj, int justify=l_justify, int expand=TRUE, int fill=TRUE, int padding=0) |
ItemList & | Items () |
void | Draw (GdkRectangle *area=NULL) |
virtual void | Setup () |
void | SignalEmit (int signal) |
void | SignalEmit (char *sig) |
void | SignalEmitParent (int signal) |
void | SignalEmitParent (char *sig) |
void | GrabFocus () |
VDKObject * | Parent (VDKObject *p=NULL) |
int | SignalConnect (VDKObject *obj, char *signal, bool(VDKObject::*method)(VDKObject *), bool gtk=true, bool after=false) |
int | SignalConnect (char *signal, bool(VDKObject::*method)(VDKObject *), bool gtk=true, bool after=false) |
bool | SignalDisconnect (int connection) |
int | EventConnect (VDKObject *obj, char *event, bool(VDKObject::*method)(VDKObject *, GdkEvent *), bool after=false) |
int | EventConnect (char *, bool(VDKObject::*)(VDKObject *, GdkEvent *), bool after=false) |
bool | EventDisconnect (int connection) |
Public Attributes | |
VDKReadWriteValueProp < VDKChart, int > | ChartBorder |
VDKReadWriteValueProp < VDKChart, VDKString > | Title |
VDKReadWriteValueProp < VDKChart, VDKString > | LabelX |
VDKReadWriteValueProp < VDKChart, VDKString > | LabelY |
VDKReadWriteValueProp < VDKChart, int > | LabelXDigits |
VDKReadWriteValueProp < VDKChart, int > | LabelYDigits |
![]() | |
VDKReadWriteValueProp < VDKCanvas, bool > | EnableClear |
![]() | |
VDKReadWriteValueProp < VDKObject, VDKRgb > | NormalBackground |
VDKReadWriteValueProp < VDKObject, VDKFont * > | Font |
SizeObjectProp | Usize |
VDKReadWriteValueProp < VDKObject, bool > | Enabled |
VDKReadWriteValueProp < VDKObject, VDKCursorType > | Cursor |
VDKReadWriteValueProp < VDKObject, bool > | Visible |
Additional Inherited Members | |
![]() | |
VDKObjectSignal | s_clicked |
GtkWidget * | widget |
GtkWidget * | sigwid |
VDKObject * | parent |
Provides a char base class.
VDKChart is a component that allows to plot 2D data in various format, is a base class that implements common functionalities to all subclasses actually supported:
VDKChart::VDKChart | ( | VDKForm * | owner, |
int | w = 100 , |
||
int | h = 100 |
||
) |
Constructor
owner | |
w | width |
h | height |
|
virtual |
Destructor
void VDKChart::AddSeries | ( | Series * | s | ) |
Adds a series to chart
s | series to be added. Series name is checked for unicity, if a match is found <s> will substitute the old series that will be destroyed. So series to be added should be always constructed in the heap with new operator. |
void VDKChart::Clear | ( | ) |
Clears chart destroying all series
|
inline |
Returns chart gc
|
inlinevirtual |
Returns chart_class
Reimplemented from VDKObject.
Reimplemented in VDKBarChart, VDKScatteredChart, and VDKLineChart.
Plots data,placeholder for subclasses.
p | point to be plotted |
i | i-th point of the series |
s | series address |
Reimplemented in VDKBarChart, VDKScatteredChart, and VDKLineChart.
void VDKChart::SetColor | ( | VDKRgb | rgb | ) |
Sets drawing color, this affects plottin area only, to change axiz, titles and labels color use Foreground property
void VDKChart::SetLineAttributes | ( | gint | lineWidth, |
GdkLineStyle | lineStyle, | ||
GdkCapStyle | capStyle, | ||
GdkJoinStyle | joinStyle | ||
) |
Sets line attributes
VDKReadWriteValueProp<VDKChart, int> VDKChart::ChartBorder |
Sets/gets char border, this area is left to draw axis, title and labels. Defaults to 20 but a larger border is often better.
VDKReadWriteValueProp<VDKChart, int> VDKChart::LabelXDigits |
Sets get how many decimal digits are displayed int x labels
VDKReadWriteValueProp<VDKChart, int> VDKChart::LabelYDigits |
Sets get how many decimal digits are displayed int y labels