9 #include "vtkCompositeMesh/config.hpp" 11 #include <fwData/Image.hpp> 13 #include <fwRender/IRender.hpp> 15 #include <fwRenderVTK/IVtkRenderWindowInteractorManager.hpp> 17 #include <boost/shared_array.hpp> 19 #include <vtkCommand.h> 23 class vtkPolyDataNormals;
41 typedef ::boost::shared_array< double > SharedArray;
43 VTKCOMPOSITEMESH_API
static const ::fwCom::Slots::SlotKeyType s_UPDATE_CAM_POSITION_SLOT;
50 VTKCOMPOSITEMESH_API
static const ::fwCom::Signals::SignalKeyType s_CAM_UPDATED_SIG;
64 void notifyCamPositionUpdated();
82 VTKCOMPOSITEMESH_API virtual
void starting() override;
93 VTKCOMPOSITEMESH_API virtual
void configuring() override;
100 VTKCOMPOSITEMESH_API virtual
void stopping() override;
108 VTKCOMPOSITEMESH_API virtual
void updating() override;
111 vtkRenderer* m_render;
116 ::
fwRenderVTK::IVtkRenderWindowInteractorManager::sptr m_interactorManager;
119 void createAndAddActorToRender();
122 void initVTKPipeline();
125 void updateVTKPipeline();
128 void updateCamPosition(SharedArray positionValue,
129 SharedArray focalValue,
130 SharedArray viewUpValue);
133 void updatePipeline();
136 vtkPolyDataNormals* m_normals;
142 bool m_bPipelineIsInit;
147 UpdateCamPositionSlotType::sptr m_slotUpdateCamPosition;
150 UpdatePipelineSlotType::sptr m_slotUpdatePipeline;
153 CamUpdatedSignalType::sptr m_sigCamUpdated;
Service rendering fwData::Mesh contained in a fwData::Composite using VTK.
Defines the service interface managing the rendering service for object.
The namespace vtkCompositeMesh contains a service which renders several meshes and store it on Compos...
static VTKCOMPOSITEMESH_APIconst::fwCom::Slots::SlotKeyType s_UPDATE_PIPELINE_SLOT
Slot to update pipeline.
::fwCom::helper::SigSlotConnection::KeyConnectionsType KeyConnectionsType
Returns proposals to connect service slots to associated object signals, this method is used for obj/...
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.
The namespace fwRenderVTK contains classes for rendering with VTK.