7 #ifndef __VISUVTKADAPTOR_SIMAGESBLEND_HPP__ 8 #define __VISUVTKADAPTOR_SIMAGESBLEND_HPP__ 10 #include "visuVTKAdaptor/config.hpp" 12 #include <fwCom/helper/SigSlotConnection.hpp> 14 #include <fwData/Image.hpp> 16 #include <fwDataTools/helper/MedicalImageAdaptor.hpp> 18 #include <fwRenderVTK/IAdaptor.hpp> 22 class vtkImageMapToColors;
24 class vtkPolyDataMapper;
27 class vtkImageCheckerboard;
28 class vtkThreadedImageAlgorithm;
85 void setVtkImageRegisterId(const
std::
string&
id)
87 m_imageRegisterId = id;
103 double m_imageOpacity;
106 VISUVTKADAPTOR_API
void configuring()
override;
107 VISUVTKADAPTOR_API
void starting()
override;
108 VISUVTKADAPTOR_API
void updating()
override;
109 VISUVTKADAPTOR_API
void stopping()
override;
110 VISUVTKADAPTOR_API
void swapping(
const KeyType& key)
override;
119 VISUVTKADAPTOR_API
virtual KeyConnectionsMap getAutoConnections()
const override;
121 void addImageAdaptors();
122 void removeImageAdaptors();
126 bool checkImageInformations();
131 void changeMode(std::string _value, std::string _key);
134 void changeCheckerboardDivision(
int division);
137 void addImage(::fwData::Image::sptr img, ::fwData::TransferFunction::sptr tf,
const ImageInfo& info);
140 void setTopImageTransparency(
int transparency);
142 typedef std::vector< ImageInfo > ImageInfoMap;
144 ImageInfoMap m_imagesInfo;
147 vtkThreadedImageAlgorithm* m_imageAlgorithm;
149 std::string m_imageRegisterId;
152 int m_checkerboardDivision;
160 #endif // __VISUVTKADAPTOR_SIMAGESBLEND_HPP__ This class is a helper to define the connections of a service and its data.
The namespace visuVTKAdaptor contains the list of adaptors available for the generic scene...
Manage blend for image given in configuration.
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.
Base class for VTK adaptors.