7 #ifndef __VISUVTKADAPTOR_SIMAGE3DCURSOR_HPP__ 8 #define __VISUVTKADAPTOR_SIMAGE3DCURSOR_HPP__ 10 #include "visuVTKAdaptor/config.hpp" 12 #include <fwData/Color.hpp> 14 #include <fwDataTools/helper/MedicalImageAdaptor.hpp> 16 #include <fwRenderVTK/IAdaptor.hpp> 18 #include <vtkSmartPointer.h> 22 class vtkPolyDataMapper;
59 VISUVTKADAPTOR_API
void updateCursorPosition(
double world[3] );
61 VISUVTKADAPTOR_API
void setVisibility(
bool visibility );
73 VISUVTKADAPTOR_API virtual
void configuring() override;
74 VISUVTKADAPTOR_API virtual
void starting() override;
75 VISUVTKADAPTOR_API virtual
void stopping() override;
76 VISUVTKADAPTOR_API virtual
void swapping() override;
77 VISUVTKADAPTOR_API virtual
void updating() override;
79 void buildPolyData(
float radius = 1.0);
81 vtkSmartPointer<vtkActor> m_cursorActor;
82 vtkSmartPointer<vtkPolyData> m_cursorPolyData;
83 vtkSmartPointer<vtkPolyDataMapper> m_cursorMapper;
91 void updateSliceIndex(
int axial,
int frontal,
int sagittal);
95 void updateSphere(::
fwData::Color::sptr color,
float radius);
104 #endif // __VISUVTKADAPTOR_SIMAGE3DCURSOR_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...
Add a 3D spatial marker represented by a sphere that identify the intersection point of the selected ...
#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.