Choreonoid  1.8
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
cnoid::Light Class Reference

#include <Light.h>

Inheritance diagram for cnoid::Light:
cnoid::Device cnoid::DeviceState cnoid::ClonableReferenced cnoid::Referenced cnoid::PointLight cnoid::SpotLight

Public Member Functions

void copyStateFrom (const Light &other)
 
virtual void forEachActualType (std::function< bool(const std::type_info &type)> func) override
 
bool on () const override
 
void on (bool on) override
 
const Vector3f & color () const
 
void setColor (const Vector3f &c)
 
void setColor (const Vector3 &c)
 
float intensity () const
 
void setIntensity (float intensity)
 
virtual const double * readState (const double *buf) override
 
virtual double * writeState (double *out_buf) const override
 
bool readSpecifications (const Mapping *info)
 
bool writeSpecifications (Mapping *info) const
 
- Public Member Functions inherited from cnoid::Device
virtual ~Device ()
 
Deviceclone () const
 
Deviceclone (CloneMap &cloneMap) const
 
virtual bool copyFrom (const Device *other)
 
void setIndex (int index)
 
void setId (int id)
 
void setName (const std::string &name)
 
void setLink (Link *link)
 
bool hasStateOnly () const
 
int index () const
 
int id () const
 
const std::string & name () const
 
const Linklink () const
 
Linklink ()
 
const Bodybody () const
 
Bodybody ()
 
Isometry3T_local ()
 
const Isometry3T_local () const
 
const Isometry3localPosition () const
 
template<class Scalar , int Mode, int Options>
void setLocalPosition (const Eigen::Transform< Scalar, 3, Mode, Options > &T)
 
Isometry3::ConstLinearPart R_local () const
 
Isometry3::LinearPart R_local ()
 
Isometry3::ConstLinearPart localRotation () const
 
template<typename Derived >
void setLocalRotation (const Eigen::MatrixBase< Derived > &R)
 
Isometry3::ConstTranslationPart p_local () const
 
Isometry3::TranslationPart p_local ()
 
Isometry3::ConstTranslationPart localTranslation () const
 
template<typename Derived >
void setLocalTranslation (const Eigen::MatrixBase< Derived > &p)
 
virtual void clearState ()
 
SignalProxy< void()> sigStateChanged ()
 
void notifyStateChange ()
 
SignalProxy< void(double time)> sigTimeChanged ()
 
void notifyTimeChange (double time)
 
const Isometry3T_local_org () const
 
void setLocalAttitude (const Isometry3 &Ta)
 
double cycle () const
 
void setCycle (double msec)
 
- Public Member Functions inherited from cnoid::DeviceState
virtual ~DeviceState ()
 
virtual const char * typeName () const =0
 
virtual void copyStateFrom (const DeviceState &other)=0
 
virtual DeviceStatecloneState () const =0
 
virtual int stateSize () const =0
 
- Public Member Functions inherited from cnoid::ClonableReferenced
virtual ReferenceddoClone (CloneMap *cloneMap) const =0
 
- Public Member Functions inherited from cnoid::Referenced
virtual ~Referenced ()
 

Static Public Member Functions

static int lightStateSize ()
 

Protected Member Functions

 Light ()
 
 Light (const Light &org, bool copyStateOnly=false)
 
- Protected Member Functions inherited from cnoid::Device
 Device ()
 
 Device (const Device &org, bool copyStateOnly=false)
 
void copySpecFrom (const Device *other)
 
- Protected Member Functions inherited from cnoid::DeviceState
 DeviceState ()
 
 DeviceState (const DeviceState &)
 
- Protected Member Functions inherited from cnoid::Referenced
 Referenced ()
 
 Referenced (const Referenced &)
 
int refCount () const
 

Constructor & Destructor Documentation

◆ Light() [1/2]

Light::Light ( )
protected

◆ Light() [2/2]

Light::Light ( const Light org,
bool  copyStateOnly = false 
)
protected

Member Function Documentation

◆ color()

const Vector3f& cnoid::Light::color ( ) const
inline

◆ copyStateFrom()

void Light::copyStateFrom ( const Light other)

◆ forEachActualType()

void Light::forEachActualType ( std::function< bool(const std::type_info &type)>  func)
overridevirtual

Reimplemented from cnoid::Device.

Reimplemented in cnoid::PointLight, and cnoid::SpotLight.

◆ intensity()

float cnoid::Light::intensity ( ) const
inline

◆ lightStateSize()

int Light::lightStateSize ( )
static

◆ on() [1/2]

bool Light::on ( ) const
overridevirtual

Reimplemented from cnoid::Device.

◆ on() [2/2]

void Light::on ( bool  on)
overridevirtual

Reimplemented from cnoid::Device.

◆ readSpecifications()

bool Light::readSpecifications ( const Mapping info)

◆ readState()

const double * Light::readState ( const double *  buf)
overridevirtual
Returns
The position in the buf after reading. The value is used when the super class's readState is called by the inherited class.

Implements cnoid::DeviceState.

Reimplemented in cnoid::PointLight, and cnoid::SpotLight.

◆ setColor() [1/2]

void cnoid::Light::setColor ( const Vector3 c)
inline

◆ setColor() [2/2]

void cnoid::Light::setColor ( const Vector3f &  c)
inline

◆ setIntensity()

void cnoid::Light::setIntensity ( float  intensity)
inline

◆ writeSpecifications()

bool Light::writeSpecifications ( Mapping info) const

◆ writeState()

double * Light::writeState ( double *  out_buf) const
overridevirtual
Returns
The position in the buf after reading. The value is used when the super class's readState is called by the inherited class.

Implements cnoid::DeviceState.

Reimplemented in cnoid::PointLight, and cnoid::SpotLight.


The documentation for this class was generated from the following files: