Top | ![]() |
![]() |
![]() |
![]() |
VisuNodeMoverTranslationVisuNodeMoverTranslation — A class defining translations for a set of nodes. |
Define and apply a translation for a set of nodes. The translation can be changed and the set of nodes also. Each time the translation is applied, it is added to an undo stack.
VisuNodeMoverTranslation * visu_node_mover_translation_new ();
Creates a new VisuNodeMoverTranslation object.
Since: 3.8
VisuNodeMoverTranslation * visu_node_mover_translation_new_full (const GArray *ids
,const gfloat trans[3]
);
Creates a new trans
for nodes defined by ids
.
Since: 3.8
gboolean visu_node_mover_translation_set (VisuNodeMoverTranslation *trans
,const gfloat delta[3]
);
Defines the translation to be applied by trans
.
Since: 3.8
gboolean
visu_node_mover_translation_reset (VisuNodeMoverTranslation *trans
);
Helper function to sets the translation to [0;0;0].
Since: 3.8
gboolean visu_node_mover_translation_add (VisuNodeMoverTranslation *trans
,const gfloat delta[3]
);
Add delta
to the current translation.
Since: 3.8
void visu_node_mover_translation_get (const VisuNodeMoverTranslation *trans
,gfloat delta[3]
);
Retrieves the current translation.
trans |
a VisuNodeMoverTranslation object. |
|
delta |
a location for the translation. |
[out][array fixed-size=3] |
Since: 3.8