iDynTree::ILight class

Interface to a light visualization.

Constructors, destructors, conversion operators

~ILight() pure virtual
Denstructor.

Public functions

auto getName() const -> const std::string& pure virtual
Get the name.
void setType(const LightType type) pure virtual
Set the light type.
auto getType() -> LightType pure virtual
Get the light type.
void setPosition(const iDynTree::Position& cameraPos) pure virtual
Set the linear position of the light w.r.t to the world.
auto getPosition() -> iDynTree::Position pure virtual
Get the linear position of the light w.r.t to the world.
void setDirection(const Direction& lightDirection) pure virtual
Set the light direction (only meaningful if the light is DIRECTIONAL_LIGHT).
auto getDirection() -> Direction pure virtual
Get the light direction (only meaningful if the light is DIRECTIONAL_LIGHT).
void setAmbientColor(const ColorViz& ambientColor) pure virtual
Set ambient color of the light.
auto getAmbientColor() -> ColorViz pure virtual
Get ambient color of the light.
void setSpecularColor(const ColorViz& ambientColor) pure virtual
Set specular color of the light.
auto getSpecularColor() -> ColorViz pure virtual
Get specular color of the light.
void setDiffuseColor(const ColorViz& ambientColor) pure virtual
Set ambient color of the light.
auto getDiffuseColor() -> ColorViz pure virtual
Get ambient color of the light.