7 #ifndef __VISUVTKADAPTOR_SPROBECURSOR_HPP__ 8 #define __VISUVTKADAPTOR_SPROBECURSOR_HPP__ 10 #include "visuVTKAdaptor/config.hpp" 12 #include <fwData/TransferFunction.hpp> 14 #include <fwDataTools/helper/MedicalImageAdaptor.hpp> 16 #include <fwRenderVTK/IAdaptor.hpp> 23 class vtkPolyDataMapper;
60 static const ::fwCom::Slots::SlotKeyType s_UPDATE_SLICE_INDEX_SLOT;
66 VISUVTKADAPTOR_API virtual
void updateView(
double world[3] );
68 VISUVTKADAPTOR_API
void setVisibility(
bool visibility );
70 VISUVTKADAPTOR_API
void startSProbeCursor();
74 VISUVTKADAPTOR_API
void configuring() override;
75 VISUVTKADAPTOR_API
void starting() override;
76 VISUVTKADAPTOR_API
void updating() override;
77 VISUVTKADAPTOR_API
void stopping() override;
89 void buildTextActor();
92 void computeCrossExtremity(
fwData::Image::csptr image, const
int probeSlice[3],
double worldCross[4][3] );
96 vtkCommand* m_vtkObserver;
98 vtkActor2D* m_textActor;
99 vtkTextMapper* m_textMapper;
101 vtkPolyData* m_cursorPolyData;
102 vtkPolyDataMapper* m_cursorMapper;
103 vtkActor* m_cursorActor;
110 void updateSliceIndex(
int axial,
int frontal,
int sagittal);
120 #endif // __VISUVTKADAPTOR_SPROBECURSOR_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...
Cursor management: displays a red cross representing the image picked point.
#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.