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

#include <SceneDrawables.h>

Inheritance diagram for cnoid::SgMaterial:
cnoid::SgObject cnoid::ClonableReferenced cnoid::Referenced

Public Member Functions

 SgMaterial ()
 
 SgMaterial (const SgMaterial &org)
 
float ambientIntensity () const
 
void setAmbientIntensity (float intensity)
 
const Vector3f & diffuseColor () const
 
template<typename Derived >
void setDiffuseColor (const Eigen::MatrixBase< Derived > &c)
 
const Vector3f & emissiveColor () const
 
template<typename Derived >
void setEmissiveColor (const Eigen::MatrixBase< Derived > &c)
 
const Vector3f & specularColor () const
 
template<typename Derived >
void setSpecularColor (const Eigen::MatrixBase< Derived > &c)
 
float specularExponent () const
 
void setSpecularExponent (float e)
 
float shininess () const
 
void setShininess (float s)
 
float transparency () const
 
void setTransparency (float t)
 
- 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

virtual ReferenceddoClone (CloneMap *cloneMap) const override
 
- 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::SgObject
static bool checkNonNodeCloning (const CloneMap &cloneMap)
 
static void setNonNodeCloning (CloneMap &cloneMap, bool on)
 

Constructor & Destructor Documentation

◆ SgMaterial() [1/2]

SgMaterial::SgMaterial ( )

◆ SgMaterial() [2/2]

SgMaterial::SgMaterial ( const SgMaterial org)

Member Function Documentation

◆ ambientIntensity()

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

◆ diffuseColor()

const Vector3f& cnoid::SgMaterial::diffuseColor ( ) const
inline

◆ doClone()

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

Reimplemented from cnoid::SgObject.

◆ emissiveColor()

const Vector3f& cnoid::SgMaterial::emissiveColor ( ) const
inline

◆ setAmbientIntensity()

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

◆ setDiffuseColor()

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

◆ setEmissiveColor()

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

◆ setShininess()

void SgMaterial::setShininess ( float  s)

◆ setSpecularColor()

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

◆ setSpecularExponent()

void cnoid::SgMaterial::setSpecularExponent ( float  e)
inline

◆ setTransparency()

void cnoid::SgMaterial::setTransparency ( float  t)
inline

◆ shininess()

float SgMaterial::shininess ( ) const

◆ specularColor()

const Vector3f& cnoid::SgMaterial::specularColor ( ) const
inline

◆ specularExponent()

float cnoid::SgMaterial::specularExponent ( ) const
inline

◆ transparency()

float cnoid::SgMaterial::transparency ( ) const
inline

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