Top | ![]() |
![]() |
![]() |
![]() |
BElementViewCartesianBElementViewCartesian — Base class for plot objects with Cartesian coordinates. |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkDrawingArea ╰── BElementView ╰── BElementViewCartesian ├── BAxisView ├── BColorBar ├── BDensityView ╰── BScatterLineView
void b_element_view_cartesian_add_view_interval (BElementViewCartesian *cart
,BAxisType ax
);
Add a BViewInterval to cart
for axis ax
. The view interval will
immediately emit a "preferred_range_request" signal.
BViewInterval * b_element_view_cartesian_get_view_interval (BElementViewCartesian *cart
,BAxisType ax
);
Get the BViewInterval object associated with axis ax
.
void b_element_view_cartesian_connect_view_intervals (BElementViewCartesian *cart1
,BAxisType axis1
,BElementViewCartesian *cart2
,BAxisType axis2
);
Bind view intervals for two BElementViewCartesian's. The BViewInterval for
axis axis2
of cart2
is set as the BViewInterval for axis axis1
of cart1
.
This is used, for example, to connect an axis of a scatter view to an axis
view.
void b_element_view_cartesian_set_preferred_view (BElementViewCartesian *cart
,BAxisType axis
);
Have the view intervals for ax
emit a "preferred_range_request" signal.
void
b_element_view_cartesian_set_preferred_view_all
(BElementViewCartesian *cart
);
Have all view intervals in cart
emit a "preferred_range_request" signal.
void b_element_view_cartesian_force_preferred_view (BElementViewCartesian *cart
,BAxisType axis
,gboolean force
);
void b_element_view_cartesian_add_axis_markers (BElementViewCartesian *cart
,BAxisType axis
);
Adds axis markers to an axis, if they do not already exist.
gint b_element_view_cartesian_get_axis_marker_type (BElementViewCartesian *cart
,BAxisType axis
);
Get the type of axis markers for axis ax
.
void b_element_view_cartesian_set_axis_marker_type (BElementViewCartesian *cart
,BAxisType axis
,gint code
);
Set the type of axis markers for axis ax
, and adds axis markers if they
do not exist for the axis type.
BAxisMarkers * b_element_view_cartesian_get_axis_markers (BElementViewCartesian *cart
,BAxisType ax
);
Get the BAxisMarkers object associated with axis ax
.
void b_element_view_cartesian_connect_axis_markers (BElementViewCartesian *cart1
,BAxisType axis1
,BElementViewCartesian *cart2
,BAxisType axis2
);
Bind axis markers and view intervals for two BElementViewCartesian's. The
axis markers and view interval for axis axis2
of cart2
are set as those
for axis axis1
of cart1
. This is used, for example, to connect the X axis
of a scatter view to an axis view.
struct BElementViewCartesianClass { BElementViewClass parent_class; void (*update_axis_markers) (BElementViewCartesian *cart, BAxisType axis, BAxisMarkers *markers, double range_min, double range_max); gboolean (*preferred_range) (BElementViewCartesian *cart, BAxisType axis, double *range_min, double *range_max); };
Abstract base class for cartesian views.