7 #ifndef __VISUVTKADAPTOR_SNEGATOMPR_HPP__ 8 #define __VISUVTKADAPTOR_SNEGATOMPR_HPP__ 10 #include "visuVTKAdaptor/config.hpp" 12 #include <fwCom/helper/SigSlotConnection.hpp> 14 #include <fwDataTools/helper/MedicalImageAdaptor.hpp> 16 #include <fwRenderVTK/IAdaptor.hpp> 18 #include <boost/logic/tribool.hpp> 74 VISUVTKADAPTOR_API virtual ~
SNegatoMPR() noexcept;
76 static const ::
fwServices::IService::KeyType s_IMAGE_INOUT;
77 static const ::
fwServices::IService::KeyType s_TF_INOUT;
88 void setAllowAlphaInTF(
bool allow)
90 m_allowAlphaInTF = allow;
94 void setInterpolation(
bool interpolation)
96 m_interpolation = interpolation;
100 void setVtkImageSourceId(std::string
id)
102 m_imageSourceId = id;
105 VISUVTKADAPTOR_API
void setSliceMode(SliceMode sliceMode);
106 VISUVTKADAPTOR_API SliceMode getSliceMode()
const;
107 VISUVTKADAPTOR_API ::boost::logic::tribool is3dModeEnabled()
const;
108 VISUVTKADAPTOR_API
void set3dMode(
bool enabled );
113 m_actorOpacity = actorOpacity;
118 VISUVTKADAPTOR_API
void configuring()
override;
119 VISUVTKADAPTOR_API
void starting()
override;
120 VISUVTKADAPTOR_API
void updating()
override;
121 VISUVTKADAPTOR_API
void stopping()
override;
122 VISUVTKADAPTOR_API
void swapping(
const KeyType& key)
override;
131 VISUVTKADAPTOR_API
virtual KeyConnectionsMap getAutoConnections()
const override;
133 ::fwRenderVTK::IAdaptor::sptr addAdaptor(
const std::string& adaptor,
int axis = -1);
141 void updateSliceType(
int from,
int to);
145 void updateSliceMode(
int mode);
148 void showSlice(
bool isShown);
151 void setCrossScale(
double scale);
154 void changeImageSource(std::string _value, std::string _key);
160 bool m_allowAlphaInTF;
161 bool m_interpolation;
162 double m_actorOpacity;
164 std::string m_imageSourceId;
166 std::string m_slicingStartingProxy;
167 std::string m_slicingStoppingProxy;
169 ::boost::logic::tribool m_3dModeEnabled;
170 SliceMode m_sliceMode;
171 SliceMode m_backupedSliceMode;
174 ::fwRenderVTK::IAdaptor::wptr m_sliceCursor;
179 #endif // __VISUVTKADAPTOR_SNEGATOMPR_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...
void setActorOpacity(double actorOpacity)
Set actor opacity.
Namespace fwServices is dedicated to (mimic) the dynamic affectation of methods to (pure data) object...
This class provides few tools to ease connect/disconnect between a signal emitter and a slot receiver...
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.
Base class for VTK adaptors.