Commit 0bfacbc5 authored by Alexander Wiebel's avatar Alexander Wiebel
Browse files

[ADD] constructor that sets sensible defaults

parent 48af8c1a
......@@ -30,6 +30,12 @@
#include "WPickHandler.h"
#include "WPickInfo.h"
WPickHandler::WPickHandler() :
m_hitResult( WPickInfo() ),
m_startPick( WPickInfo() ),
m_shift( false )
{
}
WPickHandler::~WPickHandler()
{
}
......
......@@ -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
* an deletion could cause a segfault.
* a deletion could cause a segfault.
*/
virtual ~WPickHandler();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment