9 #include "fwData/Color.hpp" 10 #include "fwData/factory/new.hpp" 11 #include "fwData/Image.hpp" 12 #include "fwData/Object.hpp" 14 fwCampAutoDeclareDataMacro((
fwData)(Material), FWDATA_API);
41 FWDATA_API
void shallowCopy(
const Object::csptr& _source )
override;
44 FWDATA_API
void cachedDeepCopy(
const Object::csptr& _source, DeepCopyCacheType& cache)
override;
49 FWDATA_API Color::sptr ambient()
const;
56 FWDATA_API
void setAmbient(
const Color::sptr& ambient);
61 FWDATA_API Color::sptr diffuse()
const;
68 FWDATA_API
void setDiffuse(
const Color::sptr& diffuse);
73 FWDATA_API Image::sptr getDiffuseTexture()
const;
80 FWDATA_API
void setDiffuseTexture(
const Image::sptr& diffuseTexture);
159 FilteringType& getDiffuseTextureFiltering();
160 const FilteringType& getDiffuseTextureFiltering()
const;
161 void setDiffuseTextureFiltering(FilteringType _diffuseTextureFiltering);
167 WrappingType& getDiffuseTextureWrapping ();
168 const WrappingType& getDiffuseTextureWrapping ()
const;
169 void setDiffuseTextureWrapping (WrappingType _diffuseTextureWrapping);
218 return this->m_shadingMode;
225 return this->m_shadingMode;
232 this->m_shadingMode = _shadingMode;
239 return this->m_representationMode;
246 return this->m_representationMode;
253 this->m_representationMode = _representationMode;
260 return this->m_optionsMode;
267 return this->m_optionsMode;
274 this->m_optionsMode = _optionsMode;
281 return this->m_diffuseTextureFiltering;
288 return this->m_diffuseTextureFiltering;
295 this->m_diffuseTextureFiltering = _diffuseTextureFiltering;
302 return this->m_diffuseTextureWrapping;
309 return this->m_diffuseTextureWrapping;
316 this->m_diffuseTextureWrapping = _diffuseTextureWrapping;
OptionsType & getOptionsMode()
get/set the option representation (Standard, normals)
::fwCom::Signal< void(::fwData::Image::sptr) > RemovedTextureSignalType
Type of signal when a texture is removed.
WrappingType & getDiffuseTextureWrapping()
get/set the texture wrapping
void setOptionsMode(OptionsType _optionsMode)
get/set the option representation (Standard, normals)
WrappingType
Texture wrapping types.
ShadingType m_shadingMode
Shading mode (flat, Gouraud, Phong)
This class defines a material. A material is represented by an ambient color and a diffuse color...
void setShadingMode(ShadingType _shadingMode)
get/set the shading models(flat, gouraud, phong)
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
void setRepresentationMode(RepresentationType _representationMode)
get/set the representation models (edge, point, wireframe, surface)
Color::sptr m_ambient
Ambient color.
FilteringType
Texture filtering types.
void setDiffuseTextureWrapping(WrappingType _diffuseTextureWrapping)
get/set the texture wrapping
ShadingType & getShadingMode()
get/set the shading models(flat, gouraud, phong)
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
OptionsType m_optionsMode
Options mode (display normals or not)
Color::sptr m_diffuse
Diffuse color.
FilteringType m_diffuseTextureFiltering
Filtering for diffuse texture.
Image::sptr m_diffuseTexture
Diffuse texture.
RepresentationType m_representationMode
Fill mode (flat, wireframe, point)
Base class for each data object.
WrappingType m_diffuseTextureWrapping
Wrapping for diffuse texture.
RepresentationType & getRepresentationMode()
get/set the representation models (edge, point, wireframe, surface)
static FWDATA_APIconst::fwCom::Signals::SignalKeyType s_REMOVED_TEXTURE_SIG
Type of signal when a texture is added.
void setDiffuseTextureFiltering(FilteringType _diffuseTextureFiltering)
get/set the texture filtering
Contains the representation of the data objects used in the framework.
FilteringType & getDiffuseTextureFiltering()
get/set the texture filtering
RepresentationType
Representation models.
static FWDATA_APIconst::fwCom::Signals::SignalKeyType s_ADDED_TEXTURE_SIG
Type of signal when a texture is added.
ShadingType
Shading models.