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
0bfacbc5
Commit
0bfacbc5
authored
Mar 10, 2010
by
Alexander Wiebel
Browse files
[ADD] constructor that sets sensible defaults
parent
48af8c1a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
src/graphicsEngine/WPickHandler.cpp
src/graphicsEngine/WPickHandler.cpp
+6
-0
src/graphicsEngine/WPickHandler.h
src/graphicsEngine/WPickHandler.h
+7
-1
No files found.
src/graphicsEngine/WPickHandler.cpp
View file @
0bfacbc5
...
...
@@ -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 @
0bfacbc5
...
...
@@ -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