VisuNodeMoverRotation

VisuNodeMoverRotation — A class defining rotations for a set of nodes.

Functions

Properties

gfloat angle Read / Write
ToolVector * axis Read / Write
ToolVector * center Read / Write

Object Hierarchy

    GObject
    ╰── ToolDbgObj
        ╰── VisuNodeMover
            ╰── VisuNodeMoverRotation

Description

Define and apply a rotation for a set of nodes. The rotation can be changed and the set of nodes also. Each time the rotation is applied, it is added to an undo stack.

Functions

visu_node_mover_rotation_new ()

VisuNodeMoverRotation *
visu_node_mover_rotation_new ();

Creates a new rotation.

Returns

a new VisuNodeMoverRotation object.

[transfer full]

Since: 3.8


visu_node_mover_rotation_new_full ()

VisuNodeMoverRotation *
visu_node_mover_rotation_new_full (const GArray *ids,
                                   const gfloat axis[3],
                                   const gfloat center[3],
                                   gfloat angle);

Creates a new rotation.

Parameters

ids

a set of node ids.

[element-type guint]

axis

an axis in cartesian coordinates.

[array fixed-size=3]

center

a point in cartesian coordinates.

[array fixed-size=3]

angle

an angle in degrees.

 

Returns

a new VisuNodeMoverRotation object.

[transfer full]

Since: 3.8


visu_node_mover_rotation_setAngle ()

gboolean
visu_node_mover_rotation_setAngle (VisuNodeMoverRotation *rot,
                                   gfloat angle);

Defines the angle of rot .

Parameters

rot

a VisuNodeMoverRotation object.

 

angle

an angle in degree.

 

Returns

TRUE if value is actually changed.

Since: 3.8


visu_node_mover_rotation_setCenter ()

gboolean
visu_node_mover_rotation_setCenter (VisuNodeMoverRotation *rot,
                                    const gfloat center[3]);

Defines the center of rot .

Parameters

rot

a VisuNodeMoverRotation object.

 

center

a point in cartesian coordinates.

[array fixed-size=3]

Returns

TRUE if value is actually changed.

Since: 3.8


visu_node_mover_rotation_setAxis ()

gboolean
visu_node_mover_rotation_setAxis (VisuNodeMoverRotation *rot,
                                  const gfloat axis[3]);

Defines the axis of rot .

Parameters

rot

a VisuNodeMoverRotation object.

 

axis

an axis in cartesian coordinates.

[array fixed-size=3]

Returns

TRUE if value is actually changed.

Since: 3.8


visu_node_mover_rotation_getAngle ()

gfloat
visu_node_mover_rotation_getAngle (const VisuNodeMoverRotation *rot);

Retrieves the rotation angle.

Parameters

rot

a VisuNodeMoverRotation object.

 

Returns

an angle in degrees.

Since: 3.8


visu_node_mover_rotation_getCenter ()

void
visu_node_mover_rotation_getCenter (const VisuNodeMoverRotation *rot,
                                    gfloat center[3]);

Retrieves the rotation center.

Parameters

rot

a VisuNodeMoverRotation object.

 

center

a location for the center.

[out][array fixed-size=3]

Since: 3.8


visu_node_mover_rotation_getAxis ()

void
visu_node_mover_rotation_getAxis (const VisuNodeMoverRotation *rot,
                                  gfloat axis[3]);

Retrieves the rotation axis.

Parameters

rot

a VisuNodeMoverRotation object.

 

axis

a location for the axis.

[out][array fixed-size=3]

Since: 3.8

Types and Values

Property Details

The “angle” property

  “angle”                    gfloat

rotation angle in degrees.

Flags: Read / Write

Default value: 0


The “axis” property

  “axis”                     ToolVector *

axis of rotation.

Flags: Read / Write


The “center” property

  “center”                   ToolVector *

center of rotation.

Flags: Read / Write