BElementViewCartesian

BElementViewCartesian — Base class for plot objects with Cartesian coordinates.

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkWidget
            ╰── GtkDrawingArea
                ╰── BElementView
                    ╰── BElementViewCartesian
                        ├── BAxisView
                        ├── BColorBar
                        ├── BDensityView
                        ╰── BScatterLineView

Implemented Interfaces

BElementViewCartesian implements AtkImplementorIface and GtkBuildable.

Description

Abstract base class for plot classes BScatterLineView, BAxisView, and others.

Functions

b_element_view_cartesian_add_view_interval ()

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.

Parameters

cart

BElementViewCartesian

 

ax

the axis

 

b_element_view_cartesian_get_view_interval ()

BViewInterval *
b_element_view_cartesian_get_view_interval
                               (BElementViewCartesian *cart,
                                BAxisType ax);

Get the BViewInterval object associated with axis ax .

Parameters

cart

BElementViewCartesian

 

ax

the axis

 

Returns

the BViewInterval.

[transfer none]


b_element_view_cartesian_connect_view_intervals ()

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.

Parameters

cart1

a BElementViewCartesian

 

axis1

an axis

 

cart2

a BElementViewCartesian

 

axis2

an axis

 

b_element_view_cartesian_set_preferred_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.

Parameters

cart

BElementViewCartesian

 

axis

the axis

 

b_element_view_cartesian_set_preferred_view_all ()

void
b_element_view_cartesian_set_preferred_view_all
                               (BElementViewCartesian *cart);

Have all view intervals in cart emit a "preferred_range_request" signal.

Parameters


b_element_view_cartesian_force_preferred_view ()

void
b_element_view_cartesian_force_preferred_view
                               (BElementViewCartesian *cart,
                                BAxisType axis,
                                gboolean force);

Parameters

cart

BElementViewCartesian

 

axis

axis

 

force

whether to force

 

b_element_view_cartesian_add_axis_markers ()

void
b_element_view_cartesian_add_axis_markers
                               (BElementViewCartesian *cart,
                                BAxisType axis);

Adds axis markers to an axis, if they do not already exist.

Parameters

cart

BElementViewCartesian

 

axis

the axis type

 

b_element_view_cartesian_get_axis_marker_type ()

gint
b_element_view_cartesian_get_axis_marker_type
                               (BElementViewCartesian *cart,
                                BAxisType axis);

Get the type of axis markers for axis ax .

Parameters

cart

BElementViewCartesian

 

axis

the axis

 

Returns

the axis marker type


b_element_view_cartesian_set_axis_marker_type ()

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.

Parameters

cart

BElementViewCartesian

 

axis

the axis

 

code

the type

 

b_element_view_cartesian_get_axis_markers ()

BAxisMarkers *
b_element_view_cartesian_get_axis_markers
                               (BElementViewCartesian *cart,
                                BAxisType ax);

Get the BAxisMarkers object associated with axis ax .

Parameters

cart

BElementViewCartesian

 

ax

the axis

 

Returns

the BAxisMarkers object.

[transfer none]


b_element_view_cartesian_connect_axis_markers ()

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.

Parameters

cart1

a BElementViewCartesian

 

axis1

an axis

 

cart2

a BElementViewCartesian

 

axis2

an axis

 

Types and Values

BElementViewCartesian

typedef struct _BElementViewCartesian BElementViewCartesian;

struct BElementViewCartesianClass

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.

Members

update_axis_markers ()

method that updates axis markers for a particular axis

 

preferred_range ()

method that returns the view's preferred range, which for example could be a range big enough to show all data

 

enum BAxisType

Members

META_AXIS

   

X_AXIS

   

Y_AXIS

   

Z_AXIS

   

T_AXIS

   

LAST_AXIS

   

INVALID_AXIS