Go to the documentation of this file.
6 #ifndef CNOID_BODY_MATERIAL_TABLE_H
7 #define CNOID_BODY_MATERIAL_TABLE_H
10 #include <cnoid/NullOut>
12 #include "exportdecl.h"
32 int maxMaterialId()
const;
33 int numMaterials()
const;
35 int numContactMaterials()
const;
37 ContactMaterial* contactMaterial(
const std::string& name1,
const std::string& name2)
const;
39 void forEachMaterial(std::function<
void(
int id,
Material* material)> func);
40 void forEachMaterialPair(std::function<
void(
int id1,
int id2,
ContactMaterial* cm)> func);
47 bool load(
const std::string& filename, std::ostream& os =
nullout());
ref_ptr< MaterialTable > MaterialTablePtr
Definition: MaterialTable.h:54
std::function< ContactMaterial *(const ContactMaterial *org)> ContactMaterialCopyFactory
Definition: MaterialTable.h:21
std::ostream & nullout()
Definition: NullOut.cpp:26
Definition: Material.h:15
Definition: AbstractSceneLoader.h:11
Definition: CloneMap.h:13
Definition: Referenced.h:54
Definition: MaterialTable.h:18