Go to the documentation of this file.
6 #ifndef CNOID_BODY_POINT_LIGHT_H
7 #define CNOID_BODY_POINT_LIGHT_H
10 #include "exportdecl.h"
22 virtual const char* typeName()
const override;
24 virtual void copyStateFrom(
const DeviceState& other)
override;
26 virtual void forEachActualType(std::function<
bool(
const std::type_info& type)> func)
override;
28 static int pointLightStateSize();
29 virtual int stateSize()
const override;
30 virtual const double* readState(
const double* buf)
override;
31 virtual double* writeState(
double* out_buf)
const override;
42 bool readSpecifications(
const Mapping* info);
43 bool writeSpecifications(
Mapping* info)
const;
49 float constantAttenuation_;
50 float linearAttenuation_;
51 float quadraticAttenuation_;
Definition: ValueTree.h:253
void setLinearAttenuation(float a)
Definition: PointLight.h:37
float quadraticAttenuation() const
Definition: PointLight.h:39
Definition: Referenced.h:103
float linearAttenuation() const
Definition: PointLight.h:36
float constantAttenuation() const
Definition: PointLight.h:33
Definition: AbstractSceneLoader.h:11
void setQuadraticAttenuation(float a)
Definition: PointLight.h:40
Definition: CloneMap.h:13
void setConstantAttenuation(float a)
Definition: PointLight.h:34
Definition: Referenced.h:54
ref_ptr< PointLight > PointLightPtr
Definition: PointLight.h:54
Definition: PointLight.h:16