PocDatasetSpline

PocDatasetSpline — Dataset for PocPlot

Functions

Properties

GdkRGBA * marker-fill Read / Write
GdkRGBA * marker-stroke Read / Write
gboolean show-markers Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── PocDataset
        ╰── PocDatasetSpline

Includes

#include <poc.h>

Description

A PocDataset subclass which interpolates a curve from the control points based on the algorithm from Numerical Recipies 2nd Edition. Control points may be highlighted by drawing markers at their locations.

Functions

poc_dataset_spline_new ()

PocDatasetSpline *
poc_dataset_spline_new (void);

Create a new PocDatasetSpline

Returns

New PocDatasetSpline.

[transfer full]


poc_dataset_spline_get_marker_stroke ()

void
poc_dataset_spline_get_marker_stroke (PocDatasetSpline *self,
                                      GdkRGBA *rgba);

Get the colour for stroking markers.

Parameters

self

A PocDatasetSpline

 

rgba

A GdkRGBA to receive the marker stroke colour

 

poc_dataset_spline_set_marker_stroke ()

void
poc_dataset_spline_set_marker_stroke (PocDatasetSpline *self,
                                      const GdkRGBA *rgba);

Set the colour for stroking markers.

Parameters

self

A PocDatasetSpline

 

rgba

A GdkRGBA

 

poc_dataset_spline_get_marker_fill ()

void
poc_dataset_spline_get_marker_fill (PocDatasetSpline *self,
                                    GdkRGBA *rgba);

Set the colour for stroking markers.

Parameters

self

A PocDatasetSpline

 

rgba

A GdkRGBA

 

poc_dataset_spline_set_marker_fill ()

void
poc_dataset_spline_set_marker_fill (PocDatasetSpline *self,
                                    const GdkRGBA *rgba);

Get the colour for stroking markers.

Parameters

self

A PocDatasetSpline

 

rgba

A GdkRGBA to receive the marker stroke colour

 

poc_dataset_spline_get_show_markers ()

gboolean
poc_dataset_spline_get_show_markers (PocDatasetSpline *self);

Get whether to show markers on control points.

Parameters

self

A PocDatasetSpline

 

Returns

TRUE if markers are shown.


poc_dataset_spline_set_show_markers ()

void
poc_dataset_spline_set_show_markers (PocDatasetSpline *self,
                                     gboolean value);

Set whether to show markers on control points.

Parameters

self

A PocDatasetSpline

 

value

Show markers if TRUE

 

Types and Values

POC_TYPE_DATASET_SPLINE

#define POC_TYPE_DATASET_SPLINE			poc_dataset_spline_get_type ()

PocDatasetSpline

typedef struct _PocDatasetSpline PocDatasetSpline;

Property Details

The “marker-fill” property

  “marker-fill”              GdkRGBA *

Colour for filling markers.

Owner: PocDatasetSpline

Flags: Read / Write


The “marker-stroke” property

  “marker-stroke”            GdkRGBA *

Colour for stroking markers.

Owner: PocDatasetSpline

Flags: Read / Write


The “show-markers” property

  “show-markers”             gboolean

Show markers on graph lines.

Owner: PocDatasetSpline

Flags: Read / Write

Default value: FALSE

See Also

PocPlot PocAxis PocDataset