v_sim.DataColorizerFragment

g GObject.GInterface GObject.GInterface v_sim.NodeMasker v_sim.NodeMasker GObject.GInterface->v_sim.NodeMasker v_sim.Sourceable v_sim.Sourceable GObject.GInterface->v_sim.Sourceable GObject.Object GObject.Object v_sim.DataColorizer v_sim.DataColorizer GObject.Object->v_sim.DataColorizer v_sim.DataColorizerFragment v_sim.DataColorizerFragment v_sim.DataColorizer->v_sim.DataColorizerFragment v_sim.NodeMasker->v_sim.DataColorizerFragment v_sim.Sourceable->v_sim.DataColorizer

Subclasses:

None

Methods

Inherited:

v_sim.DataColorizer (5), GObject.Object (37), v_sim.Sourceable (8), v_sim.NodeMasker (3)

Structs:

GObject.ObjectClass (5)

class

new ()

setDefaultVisibility (status)

setNodeModel (model)

setType (type)

setVisibility (label, status)

Virtual Methods

Inherited:

v_sim.DataColorizer (2), GObject.Object (7), v_sim.Sourceable (1), v_sim.NodeMasker (2)

Properties

Inherited:

v_sim.DataColorizer (1), v_sim.Sourceable (2)

Name

Type

Flags

Short Description

type

int

r/w

colorization type

Signals

Inherited:

v_sim.DataColorizer (1), GObject.Object (1), v_sim.NodeMasker (1)

Fields

Inherited:

v_sim.DataColorizer (1), GObject.Object (1), v_sim.NodeMasker (1)

Name

Type

Access

Description

parent

v_sim.DataColorizer

r

priv

v_sim.DataColorizerFragmentPrivate

r

Class Details

class v_sim.DataColorizerFragment(**kwargs)
Bases:

v_sim.DataColorizer, v_sim.NodeMasker

Abstract:

No

Structure:

v_sim.DataColorizerFragmentClass

Common name to refer to a #_VisuDataColorizerFragment.

classmethod new()
Returns:

a newly created v_sim.DataColorizerFragment object.

Return type:

v_sim.DataColorizerFragment

Creates a v_sim.DataColorizer object to colorize and hide v_sim.Node based on a v_sim.NodeValuesFrag model.

New in version 3.8.

setDefaultVisibility(status)
Parameters:

status (bool) – a boolean.

Returns:

True is the value is actually changed.

Return type:

bool

Defines the visibility status of all v_sim.Node not belonging to any v_sim.NodeFragment.

New in version 3.8.

setNodeModel(model)
Parameters:

model (v_sim.NodeValuesFrag) – a v_sim.NodeValuesFrag object.

Returns:

True if the model is indeed changed.

Return type:

bool

Associate model to self.

New in version 3.8.

setType(type)
Parameters:

type (v_sim.DataColorizerFragmentTypes) – a v_sim.DataColorizerFragmentTypes value.

Returns:

True if the value is actually changed.

Return type:

bool

Defines how self is changing the node colours. See v_sim.NodeArrayRenderer.pushColorizer() function.

New in version 3.8.

setVisibility(label, status)
Parameters:
  • label (str or None) – a string.

  • status (bool) – a boolean.

Returns:

True is the value is actually changed.

Return type:

bool

Change the visibility of all v_sim.Node belonging to a v_sim.NodeFragment labelled by label according to status. If label is None, status is changed for every fragments.

New in version 3.8.

Property Details

v_sim.DataColorizerFragment.props.type
Name:

type

Type:

int

Default Value:

1

Flags:

READABLE, WRITABLE

colorization type