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

#include <SceneLights.h>

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

Public Member Functions

virtual SgObjectclone (SgCloneMap &cloneMap) const
 
virtual void accept (SceneVisitor &visitor)
 
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 ()
 

Protected Member Functions

 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
 

Additional Inherited Members

- Public Types inherited from cnoid::SgObject
typedef std::set< SgObject * > ParentContainer
 
typedef ParentContainer::iterator parentIter
 
typedef ParentContainer::const_iterator const_parentIter
 

Constructor & Destructor Documentation

◆ SgLight() [1/2]

SgLight::SgLight ( )
protected

◆ SgLight() [2/2]

SgLight::SgLight ( const SgLight org)
protected

Member Function Documentation

◆ accept()

void SgLight::accept ( SceneVisitor visitor)
virtual

◆ ambientIntensity()

float cnoid::SgLight::ambientIntensity ( ) const
inline

◆ clone()

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

◆ color()

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

◆ intensity()

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

◆ on() [1/2]

bool cnoid::SgLight::on ( ) const
inline

◆ on() [2/2]

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

◆ setAmbientIntensity()

void cnoid::SgLight::setAmbientIntensity ( float  intensity)
inline

◆ setColor()

template<typename Derived >
void cnoid::SgLight::setColor ( const Eigen::MatrixBase< Derived > &  c)
inline

◆ setIntensity()

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

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