Choreonoid  1.5
Public Member Functions | List of all members
cnoid::SgSpotLight Class Reference

#include <SceneLights.h>

Inheritance diagram for cnoid::SgSpotLight:
cnoid::SgPointLight cnoid::SgLight cnoid::SgPreprocessed cnoid::SgNode cnoid::SgObject cnoid::Referenced

Public Member Functions

 SgSpotLight ()
 
 SgSpotLight (const SgSpotLight &org)
 
virtual SgObjectclone (SgCloneMap &cloneMap) const
 
virtual void accept (SceneVisitor &visitor)
 
const Vector3direction () const
 
template<typename Derived >
void setDirection (const Eigen::MatrixBase< Derived > &d)
 
float beamWidth () const
 
void setBeamWidth (float w)
 
float cutOffAngle () const
 
void setCutOffAngle (float a)
 
- Public Member Functions inherited from cnoid::SgPointLight
 SgPointLight ()
 
 SgPointLight (const SgPointLight &org)
 
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::SgLight
bool on () const
 
void on (bool on)
 
const Vector3f & color () const
 
template<typename Derived >
void setColor (const Eigen::MatrixBase< Derived > &c)
 
float intensity () const
 
void setIntensity (float intensity)
 
float ambientIntensity () const
 
void setAmbientIntensity (float intensity)
 
- Public Member Functions inherited from cnoid::SgNode
 SgNode ()
 
 SgNode (const SgNode &org)
 
 ~SgNode ()
 
virtual const BoundingBoxboundingBox () const
 
SgNodecloneNode (SgCloneMap &cloneMap) const
 
virtual bool isGroup () const
 
- Public Member Functions inherited from cnoid::SgObject
const std::string & name () const
 
void setName (const std::string &name)
 
virtual int numChildObjects () const
 
virtual SgObjectchildObject (int index)
 
SignalProxy< void(const SgUpdate &update)> sigUpdated ()
 
void notifyUpdate (SgUpdate &update)
 
void notifyUpdate (int action=SgUpdate::MODIFIED)
 
void addParent (SgObject *parent, bool doNotify=false)
 
void removeParent (SgObject *parent)
 
int numParents () const
 
bool hasParents () const
 
const_parentIter parentBegin () const
 
const_parentIter parentEnd () const
 
SignalProxy< void(bool on)> sigGraphConnection ()
 
- Public Member Functions inherited from cnoid::Referenced
virtual ~Referenced ()
 
void addRef ()
 
void releaseRef ()
 

Additional Inherited Members

- Public Types inherited from cnoid::SgObject
typedef std::set< SgObject * > ParentContainer
 
typedef ParentContainer::iterator parentIter
 
typedef ParentContainer::const_iterator const_parentIter
 
- Protected Member Functions inherited from cnoid::SgLight
 SgLight ()
 
 SgLight (const SgLight &org)
 
- Protected Member Functions inherited from cnoid::SgPreprocessed
 SgPreprocessed ()
 
 SgPreprocessed (const SgPreprocessed &org)
 
- Protected Member Functions inherited from cnoid::SgObject
 SgObject ()
 
 SgObject (const SgObject &org)
 
virtual void onUpdated (SgUpdate &update)
 
- Protected Member Functions inherited from cnoid::Referenced
 Referenced ()
 
 Referenced (const Referenced &org)
 
int refCount () const
 

Constructor & Destructor Documentation

◆ SgSpotLight() [1/2]

SgSpotLight::SgSpotLight ( )

◆ SgSpotLight() [2/2]

SgSpotLight::SgSpotLight ( const SgSpotLight org)

Member Function Documentation

◆ accept()

void SgSpotLight::accept ( SceneVisitor visitor)
virtual

Reimplemented from cnoid::SgPointLight.

◆ beamWidth()

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

◆ clone()

SgObject * SgSpotLight::clone ( SgCloneMap cloneMap) const
virtual

Reimplemented from cnoid::SgPointLight.

◆ cutOffAngle()

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

◆ direction()

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

◆ setBeamWidth()

void cnoid::SgSpotLight::setBeamWidth ( float  w)
inline

◆ setCutOffAngle()

void cnoid::SgSpotLight::setCutOffAngle ( float  a)
inline

◆ setDirection()

template<typename Derived >
void cnoid::SgSpotLight::setDirection ( const Eigen::MatrixBase< Derived > &  d)
inline

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