Dazzle.GraphModel

g Dazzle.GraphModel Dazzle.GraphModel GObject.Object GObject.Object GObject.Object->Dazzle.GraphModel

Subclasses:

Dazzle.CpuModel

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

iter_get_timestamp (iter)

class

iter_get_value (iter, column, value)

class

iter_next (iter)

class

iter_set (iter, column, value)

class

new ()

add_column (column)

get_end_time ()

get_iter_first (iter)

get_iter_last (iter)

get_max_samples ()

get_n_columns ()

get_timespan ()

push (timestamp)

set_max_samples (n_rows)

set_timespan (timespan)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

max-samples

int

r/w/c

Max Samples

timespan

int

r/w/c

Timespan to visualize, in microseconds.

value-max

float

r/w

Value Max

value-min

float

r/w

Value Min

Signals

Inherited:

GObject.Object (1)

Name

Short Description

changed

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class Dazzle.GraphModel(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Dazzle.GraphModelClass

classmethod iter_get_timestamp(iter)
Parameters:

iter (Dazzle.GraphModelIter) –

Return type:

int

classmethod iter_get_value(iter, column, value)
Parameters:
classmethod iter_next(iter)
Parameters:

iter (Dazzle.GraphModelIter) –

Return type:

bool

classmethod iter_set(iter, column, value)
Parameters:

Sets an individual value within a specific column.

New in version 3.30.

classmethod new()
Return type:

Dazzle.GraphModel

add_column(column)
Parameters:

column (Dazzle.GraphColumn) –

Return type:

int

get_end_time()
Return type:

int

get_iter_first(iter)
Parameters:

iter (Dazzle.GraphModelIter) –

Return type:

bool

get_iter_last(iter)
Parameters:

iter (Dazzle.GraphModelIter) –

Return type:

bool

get_max_samples()
Return type:

int

get_n_columns()
Return type:

int

get_timespan()
Return type:

int

push(timestamp)
Parameters:

timestamp (int) – Time of new event

Returns:

Newly created Dazzle.GraphModelIter

Return type:

iter: Dazzle.GraphModelIter

set_max_samples(n_rows)
Parameters:

n_rows (int) –

set_timespan(timespan)
Parameters:

timespan (int) –

Signal Details

Dazzle.GraphModel.signals.changed(graph_model)
Signal Name:

changed

Flags:

RUN_LAST

Parameters:

graph_model (Dazzle.GraphModel) – The object which received the signal

Property Details

Dazzle.GraphModel.props.max_samples
Name:

max-samples

Type:

int

Default Value:

120

Flags:

READABLE, WRITABLE, CONSTRUCT

Max Samples

Dazzle.GraphModel.props.timespan
Name:

timespan

Type:

int

Default Value:

60000000

Flags:

READABLE, WRITABLE, CONSTRUCT

Timespan to visualize, in microseconds.

Dazzle.GraphModel.props.value_max
Name:

value-max

Type:

float

Default Value:

100.0

Flags:

READABLE, WRITABLE

Value Max

Dazzle.GraphModel.props.value_min
Name:

value-min

Type:

float

Default Value:

100.0

Flags:

READABLE, WRITABLE

Value Min