VisuDataColorizerFragment

VisuDataColorizerFragment — A class defining node colorisation according to VisuNodeValuesFrag.

Functions

Properties

guint type Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── ToolDbgObj
        ╰── VisuDataColorizer
            ╰── VisuDataColorizerFragment

Implemented Interfaces

VisuDataColorizerFragment implements VisuNodeMasker.

Description

This class implements VisuDataColorizer for data coming from VisuNodeFragment. One can specify colorization according to fragment label or fragment id, see visu_data_colorizer_fragment_setType(). This class also implements VisuNodeMaskerInterface and can be used to toggle the visibility of VisuNode depending on their fragment label, see visu_data_colorizer_fragment_setVisibility() and visu_data_colorizer_fragment_setDefaultVisibility().

Functions

visu_data_colorizer_fragment_new ()

VisuDataColorizerFragment *
visu_data_colorizer_fragment_new ();

Creates a VisuDataColorizer object to colorize and hide VisuNode based on a VisuNodeValuesFrag model.

Returns

a newly created VisuDataColorizerFragment object.

[transfer full]

Since: 3.8


visu_data_colorizer_fragment_setNodeModel ()

gboolean
visu_data_colorizer_fragment_setNodeModel
                               (VisuDataColorizerFragment *colorizer,
                                VisuNodeValuesFrag *model);

Associate model to colorizer .

Parameters

colorizer

a VisuDataColorizerFragment object.

 

model

a VisuNodeValuesFrag object.

[transfer none]

Returns

TRUE if the model is indeed changed.

Since: 3.8


visu_data_colorizer_fragment_setType ()

gboolean
visu_data_colorizer_fragment_setType (VisuDataColorizerFragment *colorizer,
                                      VisuDataColorizerFragmentTypes type);

Defines how colorizer is changing the node colours. See visu_node_array_renderer_setColorizer() function.

Parameters

colorizer

a VisuDataColorizerFragment object.

 

type

a VisuDataColorizerFragmentTypes value.

 

Returns

TRUE if the value is actually changed.

Since: 3.8


visu_data_colorizer_fragment_setDefaultVisibility ()

gboolean
visu_data_colorizer_fragment_setDefaultVisibility
                               (VisuDataColorizerFragment *frag,
                                gboolean status);

Defines the visibility status of all VisuNode not belonging to any VisuNodeFragment.

Parameters

frag

a VisuDataColorizerFragment object.

 

status

a boolean.

 

Returns

TRUE is the value is actually changed.

Since: 3.8


visu_data_colorizer_fragment_setVisibility ()

gboolean
visu_data_colorizer_fragment_setVisibility
                               (VisuDataColorizerFragment *frag,
                                const gchar *label,
                                gboolean status);

Change the visibility of all VisuNode belonging to a VisuNodeFragment labelled by label according to status . If label is NULL, status is changed for every fragments.

Parameters

frag

a VisuDataColorizerFragment object.

 

label

a string.

[allow-none]

status

a boolean.

 

Returns

TRUE is the value is actually changed.

Since: 3.8

Types and Values

struct VisuDataColorizerFragment

struct VisuDataColorizerFragment;

Common name to refer to a _VisuDataColorizerFragment.


struct VisuDataColorizerFragmentClass

struct VisuDataColorizerFragmentClass {
  VisuDataColorizerClass parent;
};

Interface for class that can represent VisuDataColorizerFragment.

Members

VisuDataColorizerClass parent;

its parent.

 

Since: 3.8


enum VisuDataColorizerFragmentTypes

The fragment colorization schemes.

Members

COLORIZATION_NONE

no per node colorization.

 

COLORIZATION_PER_FRAGMENT

colorize each node of a given fragment with the same colour.

 

COLORIZATION_PER_TYPE

colorize ecah node of the same fragment family with the same colour.

 

Since: 3.8

Property Details

The “type” property

  “type”                     guint

colorization type.

Flags: Read / Write

Allowed values: <= 2

Default value: 1