Top | ![]() |
![]() |
![]() |
![]() |
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.
VisuNodeMoverRotation * visu_node_mover_rotation_new ();
Creates a new rotation.
Since: 3.8
VisuNodeMoverRotation * visu_node_mover_rotation_new_full (const GArray *ids
,const gfloat axis[3]
,const gfloat center[3]
,gfloat angle
);
Creates a new rotation.
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. |
Since: 3.8
gboolean visu_node_mover_rotation_setAngle (VisuNodeMoverRotation *rot
,gfloat angle
);
Defines the angle of rot
.
Since: 3.8
gboolean visu_node_mover_rotation_setCenter (VisuNodeMoverRotation *rot
,const gfloat center[3]
);
Defines the center of rot
.
rot |
a VisuNodeMoverRotation object. |
|
center |
a point in cartesian coordinates. |
[array fixed-size=3] |
Since: 3.8
gboolean visu_node_mover_rotation_setAxis (VisuNodeMoverRotation *rot
,const gfloat axis[3]
);
Defines the axis of rot
.
rot |
a VisuNodeMoverRotation object. |
|
axis |
an axis in cartesian coordinates. |
[array fixed-size=3] |
Since: 3.8
gfloat
visu_node_mover_rotation_getAngle (const VisuNodeMoverRotation *rot
);
Retrieves the rotation angle.
Since: 3.8
void visu_node_mover_rotation_getCenter (const VisuNodeMoverRotation *rot
,gfloat center[3]
);
Retrieves the rotation center.
rot |
a VisuNodeMoverRotation object. |
|
center |
a location for the center. |
[out][array fixed-size=3] |
Since: 3.8
void visu_node_mover_rotation_getAxis (const VisuNodeMoverRotation *rot
,gfloat axis[3]
);
Retrieves the rotation axis.
rot |
a VisuNodeMoverRotation object. |
|
axis |
a location for the axis. |
[out][array fixed-size=3] |
Since: 3.8