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
36664d0c
Commit
36664d0c
authored
Mar 10, 2010
by
Mathias Goldau
Browse files
[MERGE]
parents
80d4fc5d
0bfacbc5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
3 deletions
+17
-3
src/dataHandler/io/WLoaderLibeep.cpp
src/dataHandler/io/WLoaderLibeep.cpp
+4
-2
src/graphicsEngine/WPickHandler.cpp
src/graphicsEngine/WPickHandler.cpp
+6
-0
src/graphicsEngine/WPickHandler.h
src/graphicsEngine/WPickHandler.h
+7
-1
No files found.
src/dataHandler/io/WLoaderLibeep.cpp
View file @
36664d0c
...
...
@@ -22,6 +22,8 @@
//
//---------------------------------------------------------------------------
#include <locale.h>
#include <string>
extern
"C"
...
...
@@ -30,9 +32,9 @@ extern "C"
}
#include "../../common/WLogger.h"
#include "../WEEG.h"
#include "../exceptions/WDHNoSuchFile.h"
#include "WLoaderLibeep.h"
#include "../WEEG.h"
WLoaderLibeep
::
WLoaderLibeep
(
std
::
string
fileName
)
...
...
@@ -45,7 +47,7 @@ boost::shared_ptr< WDataSet > WLoaderLibeep::load()
wlog
::
debug
(
"Libeep Loader"
)
<<
"Opening "
<<
m_fileName
;
// libeep needs the standard C locale to load float values from ASCII
std
::
setlocale
(
LC_NUMERIC
,
"C"
);
setlocale
(
LC_NUMERIC
,
"C"
);
// initialize
FILE
*
file
=
fopen
(
m_fileName
.
c_str
(),
"rb"
);
...
...
src/graphicsEngine/WPickHandler.cpp
View file @
36664d0c
...
...
@@ -30,6 +30,12 @@
#include "WPickHandler.h"
#include "WPickInfo.h"
WPickHandler
::
WPickHandler
()
:
m_hitResult
(
WPickInfo
()
),
m_startPick
(
WPickInfo
()
),
m_shift
(
false
)
{
}
WPickHandler
::~
WPickHandler
()
{
}
...
...
src/graphicsEngine/WPickHandler.h
View file @
36664d0c
...
...
@@ -55,6 +55,12 @@
class
WPickHandler
:
public
osgGA
::
GUIEventHandler
{
public:
/**
* Constructor that initalizes members with sensible defaults.
*/
WPickHandler
();
/**
* Deals with the events found by the osg.
* \param ea Event class for storing Keyboard, mouse and window events.
...
...
@@ -92,7 +98,7 @@ protected:
* a instance of WPickHandler.
* This follows the philosophy of OSG to avoid problems in multithreaded
* environments, since these pointers are used deep in the OSG where
* a
n
deletion could cause a segfault.
* a deletion could cause a segfault.
*/
virtual
~
WPickHandler
();
...
...
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