17#include <vrvCore/DtChannel.h>
19#include <vrvCore/DtBasicEditingEventProcessor.h>
21#include <boost/signals2/signal.hpp>
77 virtual bool pick(makVrv::DtChannel& channel,
80 makVrv::DtIntersectorResult& result,
81 makVrv::DtIntersector::IntersectProperties props)
const override;
93 virtual bool processMouseEvent(
const makVrv::DtMouseEvent& ev, makVrv::DtChannel& channel)
override;
virtual void setEnabled(bool enabled) override
Enables or disables the event processor.
makVrv::DtSelectionManager::IdSet mySavedSelection
Set of objects that were selected before entity creation began.
Definition createNewEntityEventProcessor.h:142
virtual bool processMouseEvent(const makVrv::DtMouseEvent &ev, makVrv::DtChannel &channel) override
Processes mouse events during entity creation.
virtual void cancel(bool escPressed)
Cancels the entity creation process.
DtCreateNewEntityEventProcessor(makVrv::DtDe &de, DtPlayerStationApp &app)
Constructor.
virtual ~DtCreateNewEntityEventProcessor() override
Virtual destructor.
int myMouseDownTravel
Distance the mouse has traveled during a drag operation.
Definition createNewEntityEventProcessor.h:137
virtual bool processKeyboardEvent(const makVrv::DtKeyEvent &ev, makVrv::DtChannel &channel) override
Processes keyboard events during entity creation.
virtual const std::string & className() override
Gets the class name of this processor.
virtual void cancel() override
Cancels the entity creation process.
std::vector< makVrv::DtElementID > myElementsToIgnore
Definition createNewEntityEventProcessor.h:149
DtPlayerStationApp & myApp
Reference to the player station application.
Definition createNewEntityEventProcessor.h:147
virtual bool pick(makVrv::DtChannel &channel, double x, double y, makVrv::DtIntersectorResult &result, makVrv::DtIntersector::IntersectProperties props) const override
Derived to use this class's myElementsToIgnore list.
int myMouseLastX
Last recorded X position of the mouse.
Definition createNewEntityEventProcessor.h:127
makVrv::DtSignalConnectionManager myConnections
Manager for signal connections.
Definition createNewEntityEventProcessor.h:122
boost::signalslib::signal< void(bool)> signal_cancel
Signal emitted when creation is canceled.
Definition createNewEntityEventProcessor.h:74
virtual void setElementsToIgnore(const std::vector< makVrv::DtElementID > &ids)
int myMouseLastY
Last recorded Y position of the mouse.
Definition createNewEntityEventProcessor.h:132
Top-level class representing the VR-Engage application.
Definition playerStationApp.h:163
Defines export macros for the VR-Engage Player Station library.
#define PLAYERSTATION_DLL
Definition export.h:24
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
makVrv::DtDe * de()
Gets the display element pointer used by the plugin.