38#ifndef Alembic_AbcMaterial_MaterialAssignment_h
39#define Alembic_AbcMaterial_MaterialAssignment_h
41#include <Alembic/Util/Export.h>
42#include <Alembic/AbcMaterial/IMaterial.h>
43#include <Alembic/AbcMaterial/OMaterial.h>
46namespace AbcMaterial {
47namespace ALEMBIC_VERSION_NS {
49#define MATERIALASSIGN_PROPNAME ".material.assign"
50#define MATERIAL_PROPNAME ".material"
60ALEMBIC_EXPORT
void addMaterialAssignment(
62 const std::string & iValue,
63 const std::string & iPropName = MATERIALASSIGN_PROPNAME );
69ALEMBIC_EXPORT
void addMaterialAssignment(
70 Abc::OCompoundProperty iProp,
71 const std::string & iValue,
72 const std::string & iPropName = MATERIALASSIGN_PROPNAME );
82 const std::string & iPropName = MATERIAL_PROPNAME );
87 Abc::OCompoundProperty iProp,
88 const std::string & iPropName = MATERIAL_PROPNAME );
98ALEMBIC_EXPORT
bool getMaterialAssignmentPath(
100 std::string & oResult,
101 const std::string & iPropName = MATERIALASSIGN_PROPNAME );
108ALEMBIC_EXPORT
bool getMaterialAssignmentPath(
109 Abc::ICompoundProperty iProp,
110 std::string & oResult,
111 const std::string & iPropName = MATERIALASSIGN_PROPNAME );
119ALEMBIC_EXPORT
bool hasMaterial(
120 Abc::IObject iObject,
122 const std::string & iPropName = MATERIAL_PROPNAME );
128ALEMBIC_EXPORT
bool hasMaterial(
129 Abc::ICompoundProperty iCompound,
131 const std::string & iPropName = MATERIAL_PROPNAME );
136using namespace ALEMBIC_VERSION_NS;
Definition IMaterial.h:54
Definition OMaterial.h:55
Alembic namespace ...
Definition ArchiveInfo.cpp:39