7 #ifndef __SCENE2D_ADAPTOR_SNEGATO_HPP__ 8 #define __SCENE2D_ADAPTOR_SNEGATO_HPP__ 10 #include "scene2D/config.hpp" 12 #include <fwDataTools/helper/MedicalImageAdaptor.hpp> 14 #include <fwRenderQt/data/Coord.hpp> 15 #include <fwRenderQt/IAdaptor.hpp> 17 #include <QGraphicsItemGroup> 72 SCENE2D_API virtual ~
SNegato() noexcept;
88 SCENE2D_API
void configuring() override;
89 SCENE2D_API
void starting() override;
90 SCENE2D_API
void updating() override;
91 SCENE2D_API
void stopping() override;
93 SCENE2D_API
void swapping(const KeyType& key) override;
94 SCENE2D_API
void processInteraction( ::
fwRenderQt::data::Event& _event ) override;
97 SCENE2D_API virtual
void updateTFPoints() override;
100 SCENE2D_API virtual
void updateTFWindowing(
double window,
double level) override;
108 void updateSliceIndex(
int axial,
int frontal,
int sagittal);
112 void updateSliceType(
int from,
int to);
118 void updateVisibility(
bool isVisible);
123 QImage* createQImage();
124 void updateBufferFromImage( QImage* qimg );
125 void changeImageMinMaxFromCoord( ::
fwRenderQt::data::Coord& oldCoord, ::
fwRenderQt::data::Coord& newCoord );
127 static QRgb getQImageVal(const
size_t index, const
short* buffer,
double wlMin,
128 double tfWin, const ::
fwData::TransferFunction::sptr& tf);
131 QGraphicsPixmapItem* m_pixmapItem;
132 QGraphicsItemGroup* m_layer;
138 bool m_pointIsCaptured;
144 bool m_changeSliceTypeAllowed;
150 #endif // __SCENE2D_ADAPTOR_SNEGATO_HPP__ Root class for all scene2d adaptors.
This class is a helper to define the connections of a service and its data.
IAdaptor implementation to display one slice of an image.
Namespace fwServices is dedicated to (mimic) the dynamic affectation of methods to (pure data) object...
This bundles contains data and services used to display a 2D Qt scene.
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.
Contains the representation of the data objects used in the framework.
The namespace fwRenderQt contains classes for rendering with Qt.