VisuNodeMover

VisuNodeMover — Base class defining an undo stack of geometry modifications.

Functions

Properties

gfloat completion Read / Write
GArray * ids Read / Write
VisuNodeArray * nodes Read / Write
guint undo-stack-depth Read
gboolean valid Read

Object Hierarchy

    GObject
    ╰── ToolDbgObj
        ╰── VisuNodeMover
            ├── VisuNodeMoverRotation
            ╰── VisuNodeMoverTranslation

Description

This is a base class to define geometry modifications with an undo stack. The geometry modifications can be animated with visu_node_mover_animate() or applied immediately with visu_node_mover_apply().

Functions

visu_node_mover_setNodes ()

void
visu_node_mover_setNodes (VisuNodeMover *mover,
                          GArray *ids);

Defines the nodes that will be affected by the modification in mover .

Parameters

mover

a VisuNodeMover object.

 

ids

a list of node ids.

[element-type uint]

Since: 3.8


visu_node_mover_getNodes ()

const GArray *
visu_node_mover_getNodes (const VisuNodeMover *mover);

Retrieves the node ids impacted by mover .

Parameters

mover

a VisuNodeMover object.

 

Returns

a list of node ids.

[transfer none][element-type uint]

Since: 3.8


visu_node_mover_apply ()

void
visu_node_mover_apply (VisuNodeMover *mover);

Apply the modification defined by mover . To animate the transition, use visu_node_mover_animate().

Parameters

mover

a VisuNodeMover object.

 

Since: 3.8


visu_node_mover_animate ()

void
visu_node_mover_animate (VisuNodeMover *mover);

Starts the animation defined by mover . For an application of the change without animation, use visu_node_mover_apply().

Parameters

mover

a VisuNodeMover object.

 

Since: 3.8


visu_node_mover_push ()

void
visu_node_mover_push (VisuNodeMover *mover);

Push the current modification on the undo stack without actually doing the modification.

Parameters

mover

a VisuNodeMover object.

 

Since: 3.8


visu_node_mover_undo ()

void
visu_node_mover_undo (VisuNodeMover *mover);

Undo the last modification.

Parameters

mover

a VisuNodeMover object.

 

Since: 3.8

Types and Values

Property Details

The “completion” property

  “completion”               gfloat

percentage of completion during animation.

Flags: Read / Write

Allowed values: [0,1]

Default value: 0


The “ids” property

  “ids”                      GArray *

node ids to move.

Flags: Read / Write


The “nodes” property

  “nodes”                    VisuNodeArray *

nodes to apply the move to.

Flags: Read / Write


The “undo-stack-depth” property

  “undo-stack-depth”         guint

undo stack depth.

Flags: Read

Default value: 0


The “valid” property

  “valid”                    gboolean

if mover parameters are valid.

Flags: Read

Default value: FALSE