7 #ifndef __VISUVTKADAPTOR_SPICKERINTERACTOR_HPP__ 8 #define __VISUVTKADAPTOR_SPICKERINTERACTOR_HPP__ 10 #include "visuVTKAdaptor/config.hpp" 12 #include <fwCom/Signal.hpp> 13 #include <fwCom/Signals.hpp> 15 #include <fwDataTools/PickingInfo.hpp> 17 #include <fwRenderVTK/IAdaptor.hpp> 19 #include <vtkCommand.h> 70 VISUVTKADAPTOR_API static const ::
fwCom::Signals::SignalKeyType s_PICKED_SIGNAL;
76 MOUSE_LEFT_UP = vtkCommand::LeftButtonReleaseEvent,
77 MOUSE_RIGHT_UP = vtkCommand::RightButtonReleaseEvent,
78 MOUSE_MIDDLE_UP = vtkCommand::MiddleButtonReleaseEvent,
79 MOUSE_WHEELFORWARD = vtkCommand::MouseWheelForwardEvent,
80 MOUSE_LEFT_DOWN = vtkCommand::LeftButtonPressEvent,
81 MOUSE_RIGHT_DOWN = vtkCommand::RightButtonPressEvent,
82 MOUSE_MIDDLE_DOWN = vtkCommand::MiddleButtonPressEvent,
83 MOUSE_WHEELBACKWARD = vtkCommand::MouseWheelBackwardEvent,
84 MOUSE_MOVE = vtkCommand::MouseMoveEvent,
85 KEY_PRESS = vtkCommand::KeyPressEvent
87 typedef std::set< EventID > SetEventIdType;
89 static const std::map< unsigned long, ::fwDataTools::PickingInfo::Event > s_vtkEventIDConversion;
93 VISUVTKADAPTOR_API
void configuring()
override;
94 VISUVTKADAPTOR_API
void starting()
override;
95 VISUVTKADAPTOR_API
void updating()
override;
96 VISUVTKADAPTOR_API
void stopping()
override;
109 #endif // __VISUVTKADAPTOR_SPICKERINTERACTOR_HPP__ This service emits a signal when the user click on a actor in the scene.
The namespace visuVTKAdaptor contains the list of adaptors available for the generic scene...
Namespace containing fw4spl communication tools.
static MapEventIdType m_eventIdConversion
map containing the association between 'event text' and 'event ID'.
SetEventIdType m_eventId
event ID treated for picking
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.
std::map< std::string, EventID > MapEventIdType
typedef for the map (seen below).
bool m_abortOnPick
Disables all following commands if picking was successful.
Base class for VTK adaptors.
vtkCommand * m_interactionCommand
the vtk mouse events observer