Choreonoid  1.8
Public Member Functions | Static Public Member Functions | List of all members
cnoid::Material Class Reference

#include <Material.h>

Inheritance diagram for cnoid::Material:
cnoid::Referenced

Public Member Functions

 Material ()
 
 Material (const Mapping *info)
 
 Material (const Material &org)
 
 ~Material ()
 
const std::string & name () const
 
void setName (const std::string &name)
 
double roughness () const
 
void setRoughness (double r)
 
double viscosity () const
 
void setViscosity (double v)
 
Mappinginfo ()
 
const Mappinginfo () const
 
template<typename T >
info (const std::string &key, const T &defaultValue) const
 
void resetInfo (Mapping *info)
 
template<>
bool info (const std::string &key, const bool &defaultValue) const
 
template<>
int info (const std::string &key, const int &defaultValue) const
 
template<>
double info (const std::string &key, const double &defaultValue) const
 
- Public Member Functions inherited from cnoid::Referenced
virtual ~Referenced ()
 

Static Public Member Functions

static int idOfName (const std::string &name)
 
static int id (const std::string &name)
 
static std::string nameOfId (int id)
 
static std::string name (int id)
 

Additional Inherited Members

- Protected Member Functions inherited from cnoid::Referenced
 Referenced ()
 
 Referenced (const Referenced &)
 
int refCount () const
 

Constructor & Destructor Documentation

◆ Material() [1/3]

Material::Material ( )

◆ Material() [2/3]

Material::Material ( const Mapping info)

◆ Material() [3/3]

Material::Material ( const Material org)

◆ ~Material()

Material::~Material ( )

Member Function Documentation

◆ id()

static int cnoid::Material::id ( const std::string &  name)
inlinestatic

◆ idOfName()

int Material::idOfName ( const std::string &  name)
static

◆ info() [1/6]

Mapping* cnoid::Material::info ( )
inline

◆ info() [2/6]

const Mapping* cnoid::Material::info ( ) const
inline

◆ info() [3/6]

template<>
CNOID_EXPORT bool cnoid::Material::info ( const std::string &  key,
const bool &  defaultValue 
) const

◆ info() [4/6]

template<>
CNOID_EXPORT double cnoid::Material::info ( const std::string &  key,
const double &  defaultValue 
) const

◆ info() [5/6]

template<>
CNOID_EXPORT int cnoid::Material::info ( const std::string &  key,
const int &  defaultValue 
) const

◆ info() [6/6]

template<typename T >
T cnoid::Material::info ( const std::string &  key,
const T &  defaultValue 
) const

◆ name() [1/2]

const std::string& cnoid::Material::name ( ) const
inline

◆ name() [2/2]

static std::string cnoid::Material::name ( int  id)
inlinestatic

◆ nameOfId()

std::string Material::nameOfId ( int  id)
static

◆ resetInfo()

void cnoid::Material::resetInfo ( Mapping info)
inline

◆ roughness()

double cnoid::Material::roughness ( ) const
inline

◆ setName()

void cnoid::Material::setName ( const std::string &  name)
inline

◆ setRoughness()

void cnoid::Material::setRoughness ( double  r)
inline

◆ setViscosity()

void cnoid::Material::setViscosity ( double  v)
inline

◆ viscosity()

double cnoid::Material::viscosity ( ) const
inline

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