7 #ifndef __VTKSIMPLEMESH_SSIMPLEMESHDEFORMATION_HPP__ 8 #define __VTKSIMPLEMESH_SSIMPLEMESHDEFORMATION_HPP__ 10 #include "vtkSimpleMesh/config.hpp" 12 #include <fwData/Mesh.hpp> 14 #include <fwServices/IController.hpp> 16 #include <fwThread/Timer.hpp> 45 VTKSIMPLEMESH_API
static const ::fwCom::Slots::SlotKeyType s_START_DEFORMATION_SLOT;
48 VTKSIMPLEMESH_API
static const ::fwCom::Slots::SlotKeyType s_STOP_DEFORMATION_SLOT;
59 VTKSIMPLEMESH_API virtual
void starting() override;
62 VTKSIMPLEMESH_API virtual
void configuring() override;
65 VTKSIMPLEMESH_API virtual
void stopping() override;
68 VTKSIMPLEMESH_API virtual
void updating() override;
71 VTKSIMPLEMESH_API
void startDeformation();
74 VTKSIMPLEMESH_API
void stopDeformation();
79 void copyMesh( const ::
fwData::Mesh::sptr& src, const ::
fwData::Mesh::sptr& dest ) const;
82 void initMeshBackup();
85 void computeDeformation( const ::
fwData::Mesh::sptr& refMesh, const ::
fwData::Mesh::sptr& transformMesh );
88 void computeDeformation(
89 const ::
fwData::Mesh::sptr& refMesh,
90 const ::
fwData::Mesh::sptr& transformMesh,
91 float deformationPercent );
96 ::
fwCore::HiResTimer m_hiRestimer;
99 ::
fwData::Mesh::sptr m_transformMesh;
102 ::
fwData::Mesh::sptr m_mesh;
105 float m_currentIncrement;
108 float m_currentDeformation;
This namespace fwCore provides common foundations for FW4SPL.
This interface defines control service API. Does nothing particularly, can be considered as a default...
The namespace vtkSimpleMesh contains a service which renders one mesh (fwData::Mesh).
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.
Contains the representation of the data objects used in the framework.
This namespace fwThread provides few tools to execute asynchronous tasks on different threads...