MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / rotateSelected

Function rotateSelected

radiantcore/selection/algorithm/Transformation.cpp:41–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41void rotateSelected(const Quaternion& rotation)
42{
43 // Perform the rotation according to the current mode
44 if (GlobalSelectionSystem().getSelectionMode() == SelectionMode::Component)
45 {
46 GlobalSelectionSystem().foreachSelectedComponent(
47 RotateComponentSelected(rotation, GlobalSelectionSystem().getPivot2World().translation()));
48 }
49 else
50 {
51 // Cycle through the selections and rotate them
52 GlobalSelectionSystem().foreachSelected(RotateSelected(rotation,
53 GlobalSelectionSystem().getPivot2World().translation()));
54 }
55
56 // Update the views
57 SceneChangeNotify();
58
59 GlobalSceneGraph().foreachNode(scene::freezeTransformableNode);
60}
61
62// greebo: see header for documentation
63void rotateSelected(const Vector3& eulerXYZ)

Callers 4

rotateSelectedEulerXYZFunction · 0.85
rotateSelectionXFunction · 0.85
rotateSelectionYFunction · 0.85
rotateSelectionZFunction · 0.85

Calls 11

RotateSelectedClass · 0.85
SceneChangeNotifyFunction · 0.85
translationMethod · 0.80
to_stringFunction · 0.50
getSelectionModeMethod · 0.45
getPivot2WorldMethod · 0.45
foreachSelectedMethod · 0.45
foreachNodeMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected