7 #ifndef __VISUVTKADAPTOR_SSLICESCURSOR_HPP__ 8 #define __VISUVTKADAPTOR_SSLICESCURSOR_HPP__ 10 #include "visuVTKAdaptor/config.hpp" 12 #include <fwData/Image.hpp> 14 #include <fwDataTools/helper/MedicalImageAdaptor.hpp> 16 #include <fwRenderVTK/IAdaptor.hpp> 19 class vtkPolyDataMapper;
72 static const ::
fwCom::Slots::SlotKeyType s_UPDATE_SLICE_INDEX_SLOT;
73 static const ::
fwCom::Slots::SlotKeyType s_UPDATE_SLICE_TYPE_SLOT;
74 static const ::
fwCom::Slots::SlotKeyType s_UPDATE_IMAGE_SLOT;
75 static const ::
fwCom::Slots::SlotKeyType s_SHOW_FULL_CROSS_SLOT;
76 static const ::
fwCom::Slots::SlotKeyType s_SHOW_NORMAL_CROSS_SLOT;
77 static const ::
fwCom::Slots::SlotKeyType s_SET_CROSS_SCALE_SLOT;
84 VISUVTKADAPTOR_API
void configuring() override;
85 VISUVTKADAPTOR_API
void starting() override;
86 VISUVTKADAPTOR_API
void updating() override;
87 VISUVTKADAPTOR_API
void stopping() override;
101 void setCrossScale(
double scale);
103 void updateImageSliceIndex( ::
fwData::Image::sptr image );
104 void buildPolyData();
106 void buildColorAttribute();
108 vtkPolyData* m_cursorPolyData;
109 vtkPolyDataMapper* m_cursorMapper;
110 vtkActor* m_cursorActor;
120 void updateSliceIndex(
int axial,
int frontal,
int sagittal);
124 void updateSliceType(
int from,
int to);
130 void showFullCross();
133 void showNormalCross();
138 static
void barycenter(
double ptA[3],
double ptB[3],
float scale,
double result[3] );
142 static
void computeCrossPoints(
double _ptA[3],
double _ptB[3],
double _ptP[3],
double _scale,
double _ptAprime[3],
143 double _ptBprime[3] );
149 #endif // __VISUVTKADAPTOR_SSLICESCURSOR_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...
Namespace containing fw4spl communication tools.
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.
Contains the representation of the data objects used in the framework.
Base class for VTK adaptors.