7 #ifndef __VISUVTKADAPTOR_SLINE_HPP__ 8 #define __VISUVTKADAPTOR_SLINE_HPP__ 10 #include "visuVTKAdaptor/config.hpp" 12 #include <fwData/Color.hpp> 14 #include <fwRenderVTK/IAdaptor.hpp> 17 #include <vtkLineSource.h> 18 #include <vtkPolyDataMapper.h> 19 #include <vtkSmartPointer.h> 53 VISUVTKADAPTOR_API
SLine() noexcept;
54 VISUVTKADAPTOR_API virtual ~
SLine() noexcept;
60 VISUVTKADAPTOR_API static const ::
fwCom::Slots::SlotKeyType s_UPDATE_VISIBILITY_SLOT;
64 VISUVTKADAPTOR_API
void updateVisibility (
bool isVisible );
66 VISUVTKADAPTOR_API static const ::
fwCom::Slots::SlotKeyType s_UPDATE_LENGTH_SLOT;
70 VISUVTKADAPTOR_API
void updateLength (
float length );
75 VISUVTKADAPTOR_API
void configuring() override;
76 VISUVTKADAPTOR_API
void starting() override;
77 VISUVTKADAPTOR_API
void updating() override;
78 VISUVTKADAPTOR_API
void stopping() override;
85 vtkSmartPointer<vtkActor> m_lineActor;
86 vtkSmartPointer<vtkLineSource> m_vtkLine;
87 vtkSmartPointer<vtkPolyDataMapper> m_mapper;
91 vtkSmartPointer< vtkTransform> m_transformLine;
92 ::
fwData::Color::sptr m_color;
99 #endif // __VISUVTKADAPTOR_SLINE_HPP__ 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.
Render line in the generic scene.
Base class for VTK adaptors.