7 #ifndef __SCENE2D_ADAPTOR_SHISTOGRAMVALUE_HPP__ 8 #define __SCENE2D_ADAPTOR_SHISTOGRAMVALUE_HPP__ 10 #include "scene2D/config.hpp" 12 #include <fwRenderQt/data/Viewport.hpp> 13 #include <fwRenderQt/IAdaptor.hpp> 15 #include <QGraphicsTextItem> 65 SCENE2D_API
void starting() override;
66 SCENE2D_API
void updating() override;
67 SCENE2D_API
void stopping() override;
97 #endif // __SCENE2D_ADAPTOR_SHISTOGRAMVALUE_HPP__ Root class for all scene2d adaptors.
This class is a helper to define the connections of a service and its data.
QPen m_color
Color used for graphic item's inner color.
QGraphicsItemGroup * m_layer
The layer.
bool m_isInteracting
If true, display the currently pointed intensity value.
Namespace fwServices is dedicated to (mimic) the dynamic affectation of methods to (pure data) object...
float m_fontSize
Size of the font used for rendering the current value of this tracker.
QGraphicsSimpleTextItem * m_text
An item which display the current values of the associated histogram pointed by this cursor...
This bundles contains data and services used to display a 2D Qt scene.
SCENE2D_API void configuring() override
Configure the service before starting. Apply the configuration to service.
SCENE2D_API::fwServices::IService::KeyConnectionsMap getAutoConnections() const override
Returns proposals to connect service slots to associated objects signals, this method is used for obj...
SCENE2D_API void starting() override
Initialize the service activity.
::fwRenderQt::data::Coord m_coord
Coordinates of the current event.
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.
SCENE2D_API void processInteraction(::fwRenderQt::data::Event &_event) override
IAdaptor implementation to show the histogram values clicked by mouse.
SCENE2D_API void stopping() override
Uninitialize the service activity. The stop() method is always invoked before destroying a service...
The namespace fwRenderQt contains classes for rendering with Qt.
FWSERVICES_API IService()
IService constructor.
SCENE2D_API void updating() override
Perform some computations according to object (this service is attached to) attribute values and its ...