Go to the documentation of this file.
6 #ifndef CNOID_UTIL_SCENE_LIGHTS_H
7 #define CNOID_UTIL_SCENE_LIGHTS_H
10 #include "exportdecl.h"
21 bool on()
const {
return on_; }
22 void on(
bool on) { on_ =
on; }
23 const Vector3f&
color()
const {
return color_; }
24 template<
typename Derived>
void setColor(
const Eigen::MatrixBase<Derived>& c) {
25 color_ = c.template cast<Vector3f::Scalar>(); }
37 float ambientIntensity_;
50 template<
typename Derived>
void setDirection(
const Eigen::MatrixBase<Derived>& d) {
51 direction_ = d.template cast<Vector3::Scalar>(); }
83 float constantAttenuation_;
84 float linearAttenuation_;
85 float quadraticAttenuation_;
97 template<
typename Derived>
void setDirection(
const Eigen::MatrixBase<Derived>& d) {
98 direction_ = d.template cast<Vector3::Scalar>(); }
115 float cutOffExponent_;
float quadraticAttenuation() const
Definition: SceneLights.h:75
Eigen::Vector3d Vector3
Definition: EigenTypes.h:57
void setDirection(const Eigen::MatrixBase< Derived > &d)
Definition: SceneLights.h:50
void on(bool on)
Definition: SceneLights.h:22
const Vector3 & direction() const
Definition: SceneLights.h:49
float constantAttenuation() const
Definition: SceneLights.h:69
Definition: SceneGraph.h:595
ref_ptr< SgDirectionalLight > SgDirectionalLightPtr
Definition: SceneLights.h:60
Definition: SceneLights.h:90
void setCutOffExponent(float e)
Definition: SceneLights.h:105
void setDirection(const Eigen::MatrixBase< Derived > &d)
Definition: SceneLights.h:97
Definition: SceneLights.h:14
ref_ptr< SgLight > SgLightPtr
Definition: SceneLights.h:40
void setConstantAttenuation(float a)
Definition: SceneLights.h:70
bool on() const
Definition: SceneLights.h:21
void setCutOffAngle(float a)
Definition: SceneLights.h:103
float beamWidth() const
Definition: SceneLights.h:100
Definition: AbstractSceneLoader.h:11
Definition: SceneLights.h:43
Definition: CloneMap.h:13
ref_ptr< SgSpotLight > SgSpotLightPtr
Definition: SceneLights.h:117
void setBeamWidth(float w)
Definition: SceneLights.h:101
void setQuadraticAttenuation(float a)
Definition: SceneLights.h:76
float cutOffAngle() const
Definition: SceneLights.h:102
float ambientIntensity() const
Definition: SceneLights.h:28
Definition: Referenced.h:54
const Vector3f & color() const
Definition: SceneLights.h:23
float linearAttenuation() const
Definition: SceneLights.h:72
const Vector3 & direction() const
Definition: SceneLights.h:96
void setColor(const Eigen::MatrixBase< Derived > &c)
Definition: SceneLights.h:24
ref_ptr< SgPointLight > SgPointLightPtr
Definition: SceneLights.h:87
float intensity() const
Definition: SceneLights.h:26
float cutOffExponent() const
Definition: SceneLights.h:104
void setAmbientIntensity(float intensity)
Definition: SceneLights.h:29
void setLinearAttenuation(float a)
Definition: SceneLights.h:73
Definition: SceneLights.h:63
void setIntensity(float intensity)
Definition: SceneLights.h:27