Choreonoid  1.5
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::Referenced cnoid::PointLight cnoid::SpotLight

Public Member Functions

void copyStateFrom (const Light &other)
 
virtual void forEachActualType (boost::function< bool(const std::type_info &type)> func)
 
virtual const double * readState (const double *buf)
 
virtual double * writeState (double *out_buf) const
 
bool on () const
 
void on (bool on)
 
const Vector3f & color () const
 
void setColor (const Vector3f &c)
 
void setColor (const Vector3 &c)
 
float intensity () const
 
void setIntensity (float intensity)
 
- Public Member Functions inherited from cnoid::Device
virtual ~Device ()
 
void setIndex (int index)
 
void setId (int id)
 
void setName (const std::string &name)
 
void setLink (Link *link)
 
virtual Deviceclone () const =0
 
virtual void clearState ()
 
bool hasStateOnly () const
 
const int index () const
 
const int id () const
 
const std::string & name () const
 
const Linklink () const
 
Linklink ()
 
Isometry3T_local ()
 
const Isometry3T_local () const
 
Isometry3::ConstLinearPart R_local () const
 
Isometry3::LinearPart R_local ()
 
Isometry3::ConstLinearPart localRotation () const
 
Isometry3::LinearPart localRotaion ()
 
template<typename Derived >
void setLocalRotation (const Eigen::MatrixBase< Derived > &R)
 
Isometry3::ConstTranslationPart p_local () const
 
Isometry3::TranslationPart p_local ()
 
Isometry3::ConstTranslationPart localTranslation () const
 
Isometry3::TranslationPart localTranslation ()
 
template<typename Derived >
void setLocalTranslation (const Eigen::MatrixBase< Derived > &p)
 
double cycle () const
 
void setCycle (double msec)
 
SignalProxy< void()> sigStateChanged ()
 
void notifyStateChange ()
 
- Public Member Functions inherited from cnoid::DeviceState
virtual ~DeviceState ()
 
virtual const char * typeName ()=0
 
virtual void copyStateFrom (const DeviceState &other)=0
 
virtual DeviceStatecloneState () const =0
 
virtual int stateSize () const =0
 
- Public Member Functions inherited from cnoid::Referenced
virtual ~Referenced ()
 
void addRef ()
 
void releaseRef ()
 

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)
 
- Protected Member Functions inherited from cnoid::DeviceState
 DeviceState ()
 
 DeviceState (const DeviceState &org)
 
- Protected Member Functions inherited from cnoid::Referenced
 Referenced ()
 
 Referenced (const Referenced &org)
 
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 ( boost::function< bool(const std::type_info &type)>  func)
virtual

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 cnoid::Light::on ( ) const
inline

◆ on() [2/2]

void cnoid::Light::on ( bool  on)
inline

◆ readState()

const double * Light::readState ( const double *  buf)
virtual
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 Vector3f &  c)
inline

◆ setColor() [2/2]

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

◆ setIntensity()

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

◆ writeState()

double * Light::writeState ( double *  out_buf) const
virtual
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: