7 #ifndef __VISUVTKADAPTOR_SNEGATOONESLICE_HPP__ 8 #define __VISUVTKADAPTOR_SNEGATOONESLICE_HPP__ 10 #include "visuVTKAdaptor/config.hpp" 12 #include <fwData/Image.hpp> 14 #include <fwDataTools/helper/MedicalImageAdaptor.hpp> 16 #include <fwRenderVTK/IAdaptor.hpp> 69 void setAllowAlphaInTF(
bool allow)
71 m_allowAlphaInTF = allow;
75 void setInterpolation(
bool interpolation)
77 m_interpolation = interpolation;
81 void setVtkImageSourceId(std::string
id)
87 void setVtkImageSource(vtkObject* obj)
93 void setActorOpacity(
double actorOpacity)
95 m_actorOpacity = actorOpacity;
100 VISUVTKADAPTOR_API
void configuring()
override;
101 VISUVTKADAPTOR_API
void starting()
override;
102 VISUVTKADAPTOR_API
void updating()
override;
103 VISUVTKADAPTOR_API
void stopping()
override;
105 VISUVTKADAPTOR_API
void swapping(
const KeyType& key)
override;
115 VISUVTKADAPTOR_API
virtual KeyConnectionsMap getAutoConnections()
const override;
117 vtkObject* getImageSource();
118 void cleanImageSource();
119 ::fwRenderVTK::IAdaptor::sptr getImageSliceAdaptor();
120 ::fwRenderVTK::IAdaptor::sptr getImageAdaptor();
122 bool m_manageImageSource;
123 std::string m_imageSourceId;
124 vtkObject* m_imageSource;
126 bool m_allowAlphaInTF;
127 bool m_interpolation;
128 double m_actorOpacity;
130 ::fwRenderVTK::IAdaptor::wptr m_imageAdaptor;
131 ::fwRenderVTK::IAdaptor::wptr m_imageSliceAdaptor;
138 void updateSliceType(
int from,
int to);
150 #endif // __VISUVTKADAPTOR_SNEGATOONESLICE_HPP__ This class is a helper to define the connections of a service and its data.
Display a negato image with one slice.
The namespace visuVTKAdaptor contains the list of adaptors available for the generic scene...
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.
Base class for VTK adaptors.