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
061370a7
Commit
061370a7
authored
Feb 25, 2010
by
Alexander Wiebel
Browse files
[CHANGE] changed to hopefully nicer precision settings
parent
9de14c77
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
src/modules/hud/WMHud.cpp
src/modules/hud/WMHud.cpp
+5
-4
No files found.
src/modules/hud/WMHud.cpp
View file @
061370a7
...
...
@@ -199,10 +199,11 @@ void WMHud::updatePickText( WPickInfo pickInfo )
lock
=
boost
::
unique_lock
<
boost
::
shared_mutex
>
(
m_updateLock
);
std
::
ostringstream
os
;
os
<<
"Name: "
<<
pickInfo
.
getName
()
<<
"
\n
"
<<
"Position: "
<<
pickInfo
.
getPickPosition
()
<<
"
\n
"
<<
"Pixel coordinates: "
<<
pickInfo
.
getPickPixelPosition
().
first
<<
" "
<<
pickInfo
.
getPickPixelPosition
().
second
<<
"
\n
"
<<
"Object normal: "
<<
pickInfo
.
getPickNormal
();
os
<<
std
::
setprecision
(
5
)
<<
"Name: "
<<
pickInfo
.
getName
()
<<
"
\n
"
<<
"Position: ["
<<
pickInfo
.
getPickPosition
()[
0
]
<<
", "
<<
pickInfo
.
getPickPosition
()[
1
]
<<
", "
<<
pickInfo
.
getPickPosition
()[
2
]
<<
"]
\n
"
<<
"Pixel coordinates: "
<<
pickInfo
.
getPickPixelPosition
().
first
<<
" "
<<
pickInfo
.
getPickPixelPosition
().
second
<<
"
\n
"
<<
"Object Normal: ["
<<
pickInfo
.
getPickNormal
()[
0
]
<<
", "
<<
pickInfo
.
getPickNormal
()[
1
]
<<
", "
<<
pickInfo
.
getPickNormal
()[
2
]
<<
"]
\n
"
;
m_pickText
=
os
.
str
();
...
...
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