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

#include <SpotLight.h>

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

Public Member Functions

 SpotLight ()
 
 SpotLight (const SpotLight &org, bool copyStateOnly=false)
 
virtual const char * typeName () const override
 
void copyStateFrom (const SpotLight &other)
 
virtual void copyStateFrom (const DeviceState &other) override
 
virtual DeviceStatecloneState () const override
 
virtual void forEachActualType (std::function< bool(const std::type_info &type)> func) override
 
virtual int stateSize () const override
 
virtual const double * readState (const double *buf) override
 
virtual double * writeState (double *out_buf) const override
 
const Vector3direction () const
 
void setDirection (const Vector3 &direction)
 
float beamWidth () const
 
void setBeamWidth (float beamWidth)
 
float cutOffAngle () const
 
void setCutOffAngle (float angle)
 
float cutOffExponent () const
 
void setCutOffExponent (float e)
 
bool readSpecifications (const Mapping *info)
 
bool writeSpecifications (Mapping *info) const
 
- Public Member Functions inherited from cnoid::PointLight
 PointLight ()
 
 PointLight (const PointLight &org, bool copyStateOnly=false)
 
void copyStateFrom (const PointLight &other)
 
float constantAttenuation () const
 
void setConstantAttenuation (float a)
 
float linearAttenuation () const
 
void setLinearAttenuation (float a)
 
float quadraticAttenuation () const
 
void setQuadraticAttenuation (float a)
 
bool readSpecifications (const Mapping *info)
 
bool writeSpecifications (Mapping *info) const
 
- Public Member Functions inherited from cnoid::Light
void copyStateFrom (const Light &other)
 
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)
 
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 ()
 
- Public Member Functions inherited from cnoid::Referenced
virtual ~Referenced ()
 

Protected Member Functions

virtual ReferenceddoClone (CloneMap *cloneMap) const override
 
- Protected Member Functions inherited from cnoid::Light
 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
 

Additional Inherited Members

- Static Public Member Functions inherited from cnoid::PointLight
static int pointLightStateSize ()
 
- Static Public Member Functions inherited from cnoid::Light
static int lightStateSize ()
 

Constructor & Destructor Documentation

◆ SpotLight() [1/2]

SpotLight::SpotLight ( )

◆ SpotLight() [2/2]

SpotLight::SpotLight ( const SpotLight org,
bool  copyStateOnly = false 
)

Member Function Documentation

◆ beamWidth()

float cnoid::SpotLight::beamWidth ( ) const
inline

◆ cloneState()

DeviceState * SpotLight::cloneState ( ) const
overridevirtual

Reimplemented from cnoid::PointLight.

◆ copyStateFrom() [1/2]

void SpotLight::copyStateFrom ( const DeviceState other)
overridevirtual

Reimplemented from cnoid::PointLight.

◆ copyStateFrom() [2/2]

void SpotLight::copyStateFrom ( const SpotLight other)

◆ cutOffAngle()

float cnoid::SpotLight::cutOffAngle ( ) const
inline

◆ cutOffExponent()

float cnoid::SpotLight::cutOffExponent ( ) const
inline

◆ direction()

const Vector3& cnoid::SpotLight::direction ( ) const
inline

◆ doClone()

Referenced * SpotLight::doClone ( CloneMap cloneMap) const
overrideprotectedvirtual

Reimplemented from cnoid::PointLight.

◆ forEachActualType()

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

Reimplemented from cnoid::PointLight.

◆ readSpecifications()

bool SpotLight::readSpecifications ( const Mapping info)

◆ readState()

const double * SpotLight::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.

Reimplemented from cnoid::PointLight.

◆ setBeamWidth()

void cnoid::SpotLight::setBeamWidth ( float  beamWidth)
inline

◆ setCutOffAngle()

void cnoid::SpotLight::setCutOffAngle ( float  angle)
inline

◆ setCutOffExponent()

void cnoid::SpotLight::setCutOffExponent ( float  e)
inline

◆ setDirection()

void cnoid::SpotLight::setDirection ( const Vector3 direction)
inline

◆ stateSize()

int SpotLight::stateSize ( ) const
overridevirtual

Size of the double-precision floating numbers for representing the state.

Reimplemented from cnoid::PointLight.

◆ typeName()

const char * SpotLight::typeName ( ) const
overridevirtual

Reimplemented from cnoid::PointLight.

◆ writeSpecifications()

bool SpotLight::writeSpecifications ( Mapping info) const

◆ writeState()

double * SpotLight::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.

Reimplemented from cnoid::PointLight.


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