fw4spl
STexture.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2017.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #ifndef __VISUVTKADAPTOR_STEXTURE_HPP__
8 #define __VISUVTKADAPTOR_STEXTURE_HPP__
9 
10 #include "visuVTKAdaptor/config.hpp"
11 
12 #include <fwRenderVTK/IAdaptor.hpp>
13 
14 namespace fwData
15 {
16 class Material;
17 }
18 
19 namespace visuVTKAdaptor
20 {
21 
59 class VISUVTKADAPTOR_CLASS_API STexture : public ::fwRenderVTK::IAdaptor
60 {
61 
62 public:
63 
65 
70  VISUVTKADAPTOR_API static const ::fwCom::Slots::SlotKeyType s_APPLY_TEXTURE_SLOT;
71  typedef ::fwCom::Slot< void ( SPTR(::fwData::Material) ) > ApplyTextureSlotType;
74  VISUVTKADAPTOR_API STexture() noexcept;
77  VISUVTKADAPTOR_API virtual ~STexture() noexcept;
78 
79 protected:
80 
81  VISUVTKADAPTOR_API void configuring() override;
82  VISUVTKADAPTOR_API void starting() override;
83  VISUVTKADAPTOR_API void updating() override;
84  VISUVTKADAPTOR_API void stopping() override;
85 
93  VISUVTKADAPTOR_API virtual KeyConnectionsMap getAutoConnections() const override;
94 
96  void applyTexture( SPTR(::fwData::Material) _material);
97 
99  std::set< SPTR(::fwData::Material) > m_materialSet;
100 
102  std::string m_filtering;
103 
105  std::string m_wrapping;
106 
108  bool m_lighting;
109 };
110 
111 } //namespace visuVTKAdaptor
112 
113 #endif // __VISUVTKADAPTOR_STEXTURE_HPP__
#define SPTR(_cls_)
This class is a helper to define the connections of a service and its data.
Definition: IService.hpp:454
The namespace visuVTKAdaptor contains the list of adaptors available for the generic scene...
STL namespace.
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.
Contains the representation of the data objects used in the framework.
Adaptor to map a texture on a mesh.
Definition: STexture.hpp:59