VisuNodeValuesShell

VisuNodeValuesShell — define a VisuNodeValues object to handle shells.

Functions

Properties

guint level Read / Write
gint root Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── ToolDbgObj
        ╰── VisuNodeValues
            ╰── VisuNodeValuesFrag
                ╰── VisuNodeValuesShell

Description

Defines a VisuNodeValues object to store shells on every nodes and get notification for them.

Functions

visu_node_values_shell_new ()

VisuNodeValuesShell *
visu_node_values_shell_new (VisuNodeArray *arr,
                            const gchar *label);

Create a new shell field.

Parameters

arr

a VisuNodeArray object.

 

label

a translatable label.

 

Returns

a newly created VisuNodeValuesShell object.

[transfer full]

Since: 3.8


visu_node_values_shell_compute ()

gboolean
visu_node_values_shell_compute (VisuNodeValuesShell *shell,
                                guint id,
                                gfloat factor);

Compute the neighbouring shells of node id . The neighbour tables is computed within factor (for the sphere radii).

Parameters

shell

a VisuNodeValuesShell object.

 

id

a node id.

 

factor

a afctor.

 

Returns

TRUE if computation succeed.

Since: 3.8


visu_node_values_shell_getLevel ()

guint
visu_node_values_shell_getLevel (VisuNodeValuesShell *shell);

Retrieves the current level of recursion that is done to look for neighbouring shells.

Parameters

shell

a VisuNodeValuesShell object.

 

Returns

an integer value.

Since: 3.8


visu_node_values_shell_setLevel ()

gboolean
visu_node_values_shell_setLevel (VisuNodeValuesShell *shell,
                                 guint level);

Defines the level of recursion that is done to look for neighbouring shells.

Parameters

shell

a VisuNodeValuesShell object.

 

level

an integer value.

 

Returns

TRUE if the value is actually changed.

Since: 3.8

Types and Values

struct VisuNodeValuesShell

struct VisuNodeValuesShell;

Common name to refer to a _VisuNodeValuesShell.


struct VisuNodeValuesShellClass

struct VisuNodeValuesShellClass {
  VisuNodeValuesFragClass parent;
};

Common name to refer to a _VisuNodeValuesShellClass.

Members

VisuNodeValuesFragClass parent;

private.

 

Property Details

The “level” property

  “level”                    guint

Level of recursion in shell building.

Flags: Read / Write

Allowed values: [2,10]

Default value: 5


The “root” property

  “root”                     gint

Id of the root node, or -1 if not any.

Flags: Read / Write

Allowed values: >= -1

Default value: -1