Choreonoid  1.5
Public 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::Referenced

Public Member Functions

 SpotLight ()
 
 SpotLight (const SpotLight &org, bool copyStateOnly=false)
 
virtual const char * typeName ()
 
void copyStateFrom (const SpotLight &other)
 
virtual void copyStateFrom (const DeviceState &other)
 
virtual DeviceStatecloneState () const
 
virtual Deviceclone () const
 
virtual void forEachActualType (boost::function< bool(const std::type_info &type)> func)
 
virtual int stateSize () const
 
virtual const double * readState (const double *buf)
 
virtual double * writeState (double *out_buf) const
 
const Vector3direction () const
 
void setDirection (const Vector3 &direction)
 
float beamWidth () const
 
void setBeamWidth (float beamWidth)
 
float cutOffAngle () const
 
void setCutOffAngle (float angle)
 
- 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)
 
- Public Member Functions inherited from cnoid::Light
void copyStateFrom (const Light &other)
 
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 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 ()
 
- Public Member Functions inherited from cnoid::Referenced
virtual ~Referenced ()
 
void addRef ()
 
void releaseRef ()
 

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 ()
 
- 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)
 
- 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

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

Member Function Documentation

float cnoid::SpotLight::beamWidth ( ) const
inline
Device * SpotLight::clone ( ) const
virtual

Reimplemented from cnoid::PointLight.

DeviceState * SpotLight::cloneState ( ) const
virtual

Reimplemented from cnoid::PointLight.

void SpotLight::copyStateFrom ( const SpotLight other)
void SpotLight::copyStateFrom ( const DeviceState other)
virtual

Reimplemented from cnoid::PointLight.

float cnoid::SpotLight::cutOffAngle ( ) const
inline
const Vector3& cnoid::SpotLight::direction ( ) const
inline
void SpotLight::forEachActualType ( boost::function< bool(const std::type_info &type)>  func)
virtual

Reimplemented from cnoid::PointLight.

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

Reimplemented from cnoid::PointLight.

void cnoid::SpotLight::setBeamWidth ( float  beamWidth)
inline
void cnoid::SpotLight::setCutOffAngle ( float  angle)
inline
void cnoid::SpotLight::setDirection ( const Vector3 direction)
inline
int SpotLight::stateSize ( ) const
virtual

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

Reimplemented from cnoid::PointLight.

const char * SpotLight::typeName ( )
virtual

Reimplemented from cnoid::PointLight.

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

Reimplemented from cnoid::PointLight.


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