7 #ifndef __VISUVTKADAPTOR_SPOINT_HPP__ 9 #ifndef __VISUVTKADAPTOR_SPOINT_HPP__ 10 #define __VISUVTKADAPTOR_SPOINT_HPP__ 12 #include "visuVTKAdaptor/config.hpp" 14 #include <fwCom/Signal.hpp> 15 #include <fwCom/Signals.hpp> 17 #include <fwData/Color.hpp> 19 #include <fwRenderVTK/IAdaptor.hpp> 21 class vtkHandleWidget;
22 class vtkHandleRepresentation;
60 static const ::fwServices::IService::KeyType s_POINT_INOUT;
62 VISUVTKADAPTOR_API
SPoint() noexcept;
64 VISUVTKADAPTOR_API virtual ~
SPoint() noexcept;
66 VISUVTKADAPTOR_API
void setRadius(const
double radius);
68 VISUVTKADAPTOR_API
void setColor(const
float red, const
float green, const
float blue, const
float alpha = 1.0);
70 VISUVTKADAPTOR_API
void setSelectedColor(const
float red, const
float green, const
float blue,
71 const
float alpha = 1.0);
73 VISUVTKADAPTOR_API
void setInteraction(const
bool interaction = true);
81 VISUVTKADAPTOR_API static const ::
fwCom::Signals::SignalKeyType s_INTERACTION_STARTED_SIG;
88 VISUVTKADAPTOR_API
void configuring() override;
89 VISUVTKADAPTOR_API
void starting() override;
90 VISUVTKADAPTOR_API
void updating() override;
91 VISUVTKADAPTOR_API
void stopping() override;
102 vtkHandleWidget* m_handle;
103 vtkHandleRepresentation* m_representation;
104 vtkCommand* m_pointUpdateCommand;
106 ::
fwData::Color::sptr m_ptColor;
107 ::
fwData::Color::sptr m_ptSelectedColor;
116 #endif // __VISUVTKADAPTOR_SPOINT_HPP__ 118 #endif // __VISUVTKADAPTOR_SPOINT_HPP__ This class is a helper to define the connections of a service and its data.
Adaptor to display a point.
The namespace visuVTKAdaptor contains the list of adaptors available for the generic scene...
Namespace containing fw4spl communication tools.
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.
Contains the representation of the data objects used in the framework.
Base class for VTK adaptors.