8
8
9
9
#include < utility>
10
10
11
- namespace Mn = Magnum;
12
11
namespace esp {
13
12
namespace sensor {
14
13
@@ -44,7 +43,7 @@ void SensorSpec::sanityCheck() const {
44
43
}
45
44
46
45
Sensor::Sensor (scene::SceneNode& node, SensorSpec::ptr spec)
47
- : Magnum ::SceneGraph::AbstractFeature3D{node}, spec_(std::move(spec)) {
46
+ : Mn ::SceneGraph::AbstractFeature3D{node}, spec_(std::move(spec)) {
48
47
CORRADE_ASSERT (node.children ().first () == nullptr ,
49
48
" Sensor::Sensor(): Cannot attach a sensor to a non-LEAF node. "
50
49
" The number of children of this node is not zero." , );
@@ -71,11 +70,11 @@ Sensor::~Sensor() {
71
70
72
71
scene::SceneNode& Sensor::object () {
73
72
return static_cast <scene::SceneNode&>(
74
- Magnum ::SceneGraph::AbstractFeature3D::object ());
73
+ Mn ::SceneGraph::AbstractFeature3D::object ());
75
74
}
76
75
const scene::SceneNode& Sensor::object () const {
77
76
return static_cast <const scene::SceneNode&>(
78
- Magnum ::SceneGraph::AbstractFeature3D::object ());
77
+ Mn ::SceneGraph::AbstractFeature3D::object ());
79
78
}
80
79
81
80
void Sensor::setTransformationFromSpec () {
@@ -86,21 +85,21 @@ void Sensor::setTransformationFromSpec() {
86
85
node ().resetTransformation ();
87
86
88
87
node ().translate (spec_->position );
89
- node ().rotateX (Magnum ::Rad (spec_->orientation [0 ]));
90
- node ().rotateY (Magnum ::Rad (spec_->orientation [1 ]));
91
- node ().rotateZ (Magnum ::Rad (spec_->orientation [2 ]));
88
+ node ().rotateX (Mn ::Rad (spec_->orientation [0 ]));
89
+ node ().rotateY (Mn ::Rad (spec_->orientation [1 ]));
90
+ node ().rotateZ (Mn ::Rad (spec_->orientation [2 ]));
92
91
}
93
92
94
93
SensorSuite::SensorSuite (scene::SceneNode& node)
95
- : Magnum ::SceneGraph::AbstractFeature3D{node} {}
94
+ : Mn ::SceneGraph::AbstractFeature3D{node} {}
96
95
97
96
scene::SceneNode& SensorSuite::object () {
98
97
return static_cast <scene::SceneNode&>(
99
- Magnum ::SceneGraph::AbstractFeature3D::object ());
98
+ Mn ::SceneGraph::AbstractFeature3D::object ());
100
99
}
101
100
const scene::SceneNode& SensorSuite::object () const {
102
101
return static_cast <const scene::SceneNode&>(
103
- Magnum ::SceneGraph::AbstractFeature3D::object ());
102
+ Mn ::SceneGraph::AbstractFeature3D::object ());
104
103
}
105
104
106
105
void SensorSuite::add (sensor::Sensor& sensor) {
0 commit comments