7 #ifndef __VISUVTKADAPTOR_SMESHNORMALS_HPP__ 8 #define __VISUVTKADAPTOR_SMESHNORMALS_HPP__ 10 #include "visuVTKAdaptor/config.hpp" 12 #include <fwCom/Slot.hpp> 13 #include <fwCom/Slots.hpp> 15 #include <fwRenderVTK/IAdaptor.hpp> 17 #include <vtkSmartPointer.h> 57 static const ::fwServices::IService::KeyType s_MESH_INPUT;
64 } NormalRepresentation;
72 VISUVTKADAPTOR_API
void setPolyData(vtkSmartPointer< vtkPolyData > polydata);
78 VISUVTKADAPTOR_API static const ::
fwCom::Slots::SlotKeyType s_UPDATE_VERTEX_SLOT;
81 VISUVTKADAPTOR_API static const ::
fwCom::Slots::SlotKeyType s_UPDATE_POINT_NORMALS_SLOT;
84 VISUVTKADAPTOR_API static const ::
fwCom::Slots::SlotKeyType s_UPDATE_CELL_NORMALS_SLOT;
87 VISUVTKADAPTOR_API static const ::
fwCom::Slots::SlotKeyType s_SHOW_POINT_NORMALS_SLOT;
90 VISUVTKADAPTOR_API static const ::
fwCom::Slots::SlotKeyType s_SHOW_CELL_NORMALS_SLOT;
93 VISUVTKADAPTOR_API static const ::
fwCom::Slots::SlotKeyType s_HIDE_NORMALS_SLOT;
96 VISUVTKADAPTOR_API static const ::
fwCom::Slots::SlotKeyType s_UPDATE_NORMAL_MODE_SLOT;
100 void updateNormalMode(
std::uint8_t mode);
112 VISUVTKADAPTOR_API virtual
KeyConnectionsMap getAutoConnections() const override;
116 VISUVTKADAPTOR_API
void configuring() override;
117 VISUVTKADAPTOR_API
void starting() override;
118 VISUVTKADAPTOR_API
void updating() override;
119 VISUVTKADAPTOR_API
void stopping() override;
121 vtkActor* getActor() const;
122 void updateMeshNormals();
133 void updatePointNormals();
136 void updateCellNormals();
139 void showPointNormals();
142 void showCellNormals();
153 NormalRepresentation m_normalRepresentation;
154 vtkSmartPointer< vtkPolyData > m_polyData;
155 vtkSmartPointer< vtkActor > m_actor;
156 static
std::map<
std::
string, NormalRepresentation > m_normalRepresentationConversion;
161 #endif // __VISUVTKADAPTOR_SMESHNORMALS_HPP__ This class is a helper to define the connections of a service and its data.
This adaptor displays mesh normals.
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.
Base class for VTK adaptors.