Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
f5fc51f7
Commit
f5fc51f7
authored
Dec 09, 2009
by
schurade
Browse files
[STYLE]
parent
01cbcb29
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
src/modules/hud/WMHud.cpp
src/modules/hud/WMHud.cpp
+4
-4
src/modules/hud/WMHud.h
src/modules/hud/WMHud.h
+1
-1
src/modules/navSlices/WMNavSlices.cpp
src/modules/navSlices/WMNavSlices.cpp
+3
-3
No files found.
src/modules/hud/WMHud.cpp
View file @
f5fc51f7
...
...
@@ -177,10 +177,10 @@ void WMHud::init()
m_osgPickText
->
setCharacterSize
(
20
);
//m_osgPickText->setFont("C:/WINDOWS/Fonts/impact.ttf");
m_osgPickText
->
setText
(
"nothing picked"
);
m_osgPickText
->
setAxisAlignment
(
osgText
::
Text
::
SCREEN
);
m_osgPickText
->
setPosition
(
osg
::
Vec3
(
620
,
80
,
-
1.5
)
);
m_osgPickText
->
setColor
(
osg
::
Vec4
(
0
,
0
,
0
,
1
)
);
m_osgPickText
->
setText
(
"nothing picked"
);
m_osgPickText
->
setAxisAlignment
(
osgText
::
Text
::
SCREEN
);
m_osgPickText
->
setPosition
(
osg
::
Vec3
(
620
,
80
,
-
1.5
)
);
m_osgPickText
->
setColor
(
osg
::
Vec4
(
0
,
0
,
0
,
1
)
);
m_rootNode
->
setUserData
(
this
);
m_rootNode
->
setUpdateCallback
(
new
HUDNodeCallback
);
...
...
src/modules/hud/WMHud.h
View file @
f5fc51f7
...
...
@@ -118,7 +118,7 @@ private:
osg
::
ref_ptr
<
osg
::
Group
>
m_HUDs
;
// Text instance that wil show up in the HUD
:
// Text instance that wil
l
show up in the HUD
osg
::
ref_ptr
<
osgText
::
Text
>
m_osgPickText
;
...
...
src/modules/navSlices/WMNavSlices.cpp
View file @
f5fc51f7
...
...
@@ -145,11 +145,11 @@ void WMNavSlices::create()
m_rootNode
=
osg
::
ref_ptr
<
osg
::
Group
>
(
new
osg
::
Group
()
);
m_xSliceNode
=
osg
::
ref_ptr
<
osg
::
Geode
>
(
new
osg
::
Geode
()
);
m_xSliceNode
->
setName
(
"X-Slice"
);
m_xSliceNode
->
setName
(
"X-Slice"
);
m_ySliceNode
=
osg
::
ref_ptr
<
osg
::
Geode
>
(
new
osg
::
Geode
()
);
m_ySliceNode
->
setName
(
"Y-Slice"
);
m_ySliceNode
->
setName
(
"Y-Slice"
);
m_zSliceNode
=
osg
::
ref_ptr
<
osg
::
Geode
>
(
new
osg
::
Geode
()
);
m_zSliceNode
->
setName
(
"Z-Slice"
);
m_zSliceNode
->
setName
(
"Z-Slice"
);
m_xSliceNode
->
addDrawable
(
createGeometry
(
0
)
);
m_ySliceNode
->
addDrawable
(
createGeometry
(
1
)
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment