Choreonoid  1.8
Public Member Functions | Protected 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::ClonableReferenced cnoid::Referenced

Public Member Functions

 SgSpotLight ()
 
 SgSpotLight (const SgSpotLight &org)
 
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)
 
float cutOffExponent () const
 
void setCutOffExponent (float e)
 
- 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 ()
 
int classId () const
 
SgNodecloneNode () const
 
SgNodecloneNode (CloneMap &cloneMap) const
 
virtual const BoundingBoxboundingBox () const
 
virtual const BoundingBoxuntransformedBoundingBox () const
 
SgNodePath findNode (const std::string &name, Affine3 &out_T)
 
void addDecorationReference ()
 
void releaseDecorationReference ()
 
bool isDecoratedSomewhere () const
 
- Public Member Functions inherited from cnoid::SgObject
SgObjectclone () const
 
SgObjectclone (CloneMap &cloneMap) const
 
void setAttribute (int attr)
 
void setAttributes (int attrs)
 
int attributes () const
 
bool hasAttribute (int attr) const
 
bool hasAttributes (int attrs) const
 
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, SgUpdateRef update=nullptr)
 
void removeParent (SgObject *parent)
 
int numParents () const
 
bool hasParents () const
 
const_parentIter parentBegin () const
 
const_parentIter parentEnd () const
 
SignalProxy< void(bool on)> sigGraphConnection ()
 
bool hasValidBoundingBoxCache () const
 
void invalidateBoundingBox ()
 
void setBoundingBoxCacheReady () const
 
bool hasUri () const
 
const std::string & uri () const
 
bool hasAbsoluteUri () const
 
const std::string & absoluteUri () const
 
bool hasUriFragment () const
 
const std::string & uriFragment () const
 
void setUriByFilePathAndBaseDirectory (const std::string &filePath, const std::string &baseDirectory)
 
void setUriByFilePathAndCurrentDirectory (const std::string &filePath)
 
void setUri (const std::string &uri, const std::string &absoluteUri)
 
void setUriFragment (const std::string &fragment)
 
void clearUri ()
 
bool isNode () const
 
SgNodetoNode ()
 
bool isGroupNode () const
 
SgGrouptoGroupNode ()
 
bool isTransformNode () const
 
SgTransformtoTransformNode ()
 
- Public Member Functions inherited from cnoid::Referenced
virtual ~Referenced ()
 

Protected Member Functions

 SgSpotLight (int polymorhicId)
 
virtual ReferenceddoClone (CloneMap *cloneMap) const override
 
- Protected Member Functions inherited from cnoid::SgPointLight
 SgPointLight (int polymorhicId)
 
- Protected Member Functions inherited from cnoid::SgLight
 SgLight (int polymorhicId)
 
 SgLight (const SgLight &org)
 
- Protected Member Functions inherited from cnoid::SgPreprocessed
 SgPreprocessed (int classId)
 
 SgPreprocessed (const SgPreprocessed &org)
 
- Protected Member Functions inherited from cnoid::SgNode
 SgNode (int classId)
 
- Protected Member Functions inherited from cnoid::SgObject
 SgObject ()
 
 SgObject (const SgObject &org)
 
void notifyUpperNodesOfUpdate (SgUpdate &update)
 
void notifyUpperNodesOfUpdate (SgUpdate &update, bool doInvalidateBoundingBox)
 
- Protected Member Functions inherited from cnoid::Referenced
 Referenced ()
 
 Referenced (const Referenced &)
 
int refCount () const
 

Additional Inherited Members

- Public Types inherited from cnoid::SgObject
enum  Attribute {
  Node = 1 << 0, GroupNode = 1 << 1, TransformNode = 1 << 2, Composite = 1 << 3,
  Geometry = 1 << 4, Appearance = 1 << 5, NodeDecoration = 1 << 6, Marker = 1 << 7,
  Operable = 1 << 8, MaxAttributeBit = 9, GroupAttribute = GroupNode, NodeDecorationGroup = NodeDecoration,
  MarkerAttribute = Marker
}
 
typedef std::set< SgObject * > ParentContainer
 
typedef ParentContainer::iterator parentIter
 
typedef ParentContainer::const_iterator const_parentIter
 
- Static Public Member Functions inherited from cnoid::SgNode
static int findClassId (const std::type_info &nodeType)
 
template<class NodeType >
static int findClassId ()
 
template<class NodeType >
static int findPolymorphicId ()
 
- Static Public Member Functions inherited from cnoid::SgObject
static bool checkNonNodeCloning (const CloneMap &cloneMap)
 
static void setNonNodeCloning (CloneMap &cloneMap, bool on)
 

Constructor & Destructor Documentation

◆ SgSpotLight() [1/3]

SgSpotLight::SgSpotLight ( )

◆ SgSpotLight() [2/3]

SgSpotLight::SgSpotLight ( const SgSpotLight org)

◆ SgSpotLight() [3/3]

SgSpotLight::SgSpotLight ( int  polymorhicId)
protected

Member Function Documentation

◆ beamWidth()

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

◆ cutOffAngle()

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

◆ cutOffExponent()

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

◆ direction()

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

◆ doClone()

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

Reimplemented from cnoid::SgPointLight.

◆ setBeamWidth()

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

◆ setCutOffAngle()

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

◆ setCutOffExponent()

void cnoid::SgSpotLight::setCutOffExponent ( float  e)
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: