25 #ifndef WMTEMPLATEUI_H
26 #define WMTEMPLATEUI_H
32 #include <boost/thread.hpp>
34 #include "core/kernel/WModule.h"
35 #include "core/kernel/WModuleInputData.h"
36 #include "core/kernel/WModuleOutputData.h"
67 virtual const std::string
getName()
const;
81 virtual std::shared_ptr< WModule >
factory()
const;
131 void handleResize(
int x,
int y,
int width,
int height );
A module that explains the usage of the abstract UI interface in OpenWalnut.
void handleButtonRelease(WVector2f coords, int button)
Handle mouse clicks.
void cameraPresetCallback()
Handle camera presets.
virtual void connectors()
Initialize the connectors this module is using.
void handleMouseDrag(WVector2f pos, int button)
Called on every mouse drag-move event from the custom widget.
WPropTrigger m_triggerProp
A trigger property used in this example.
WMTemplateUI()
Constuctor.
virtual const std::string getDescription() const
Gives back a description of this module.
virtual std::shared_ptr< WModule > factory() const
Due to the prototype design pattern used to build modules, this method returns a new instance of this...
virtual void moduleMain()
Entry point after loading the module.
virtual ~WMTemplateUI()
Destructor.
WPropBool m_boolProp
A boolean property used in this example.
void handleResize(int x, int y, int width, int height)
Called on every resize event from the custom widget.
virtual void properties()
Initialize the properties for this module.
virtual void requirements()
Initialize requirements for this module.
virtual const std::string getName() const
Gives back the name of this module.
void handleMouseMove(WVector2f pos)
Called on every mouse move event from the custom widget.
std::shared_ptr< WCondition > m_propCondition
A condition for property updates.
A fixed size matrix class.
Class representing a single module of OpenWalnut.