7 #ifndef __VISUVTKADAPTOR_SIMAGESLICE_HPP__ 8 #define __VISUVTKADAPTOR_SIMAGESLICE_HPP__ 10 #include "visuVTKAdaptor/config.hpp" 12 #include <fwCom/Connection.hpp> 13 #include <fwCom/helper/SigSlotConnection.hpp> 15 #include <fwData/Composite.hpp> 16 #include <fwData/Image.hpp> 18 #include <fwDataTools/helper/MedicalImageAdaptor.hpp> 20 #include <fwRenderVTK/IAdaptor.hpp> 24 class vtkImageMapToColors;
26 class vtkPolyDataMapper;
81 void setVtkImageSourceId(
std::
string id)
87 void setVtkImageSource(vtkObject* obj)
93 void setInterpolation(
bool interpolation)
95 m_interpolation = interpolation;
100 void setActorOpacity(
double actorOpacity)
102 m_actorOpacity = actorOpacity;
107 VISUVTKADAPTOR_API
void configuring()
override;
108 VISUVTKADAPTOR_API
void starting()
override;
109 VISUVTKADAPTOR_API
void updating()
override;
110 VISUVTKADAPTOR_API
void stopping()
override;
121 VISUVTKADAPTOR_API
virtual KeyConnectionsMap getAutoConnections()
const override;
123 virtual void buildPipeline();
124 virtual void buildOutline();
126 void setSlice(
int slice, ::fwData::Image::sptr image );
128 ::fwData::Image::sptr getCtrlImage();
130 void updateOutline();
131 void updateImage( ::fwData::Image::sptr
SImageSlice );
132 void updateSImageSliceIndex( ::fwData::Image::sptr
SImageSlice );
134 bool m_interpolation;
135 double m_actorOpacity;
137 std::string m_imageSourceId;
138 vtkObject* m_imageSource;
140 vtkImageActor* m_imageActor;
142 vtkPolyData* m_planeOutlinePolyData;
143 vtkPolyDataMapper* m_planeOutlineMapper;
144 vtkActor* m_planeOutlineActor;
153 void updateSliceIndex(
int axial,
int frontal,
int sagittal);
157 void updateSliceType(
int from,
int to);
166 #endif // __VISUVTKADAPTOR_SIMAGESLICE_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...
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.
Base class for VTK adaptors.
Adaptor to display only one slice of an image.