#include <MaterialFlatten.h>
|
| MaterialFlatten () |
| Create empty. Use append to add material schema manually.
|
|
| MaterialFlatten (IMaterialSchema iMaterialSchema) |
| Create with a single materialSchema.
|
|
| MaterialFlatten (IMaterial iMaterialObject) |
|
| MaterialFlatten (Abc::IObject iObject, Abc::IArchive iAlternateSearchArchive=Abc::IArchive()) |
|
void | append (IMaterialSchema iMaterialSchema) |
| Manually append a schema to the inheritance hierarchy.
|
|
void | append (IMaterial iMaterialObject) |
| Append the schemas of matching parent material objects.
|
|
bool | empty () |
| Returns true is there are no schema in the inheritance path.
|
|
void | getTargetNames (std::vector< std::string > &oTargetNames) |
|
void | getShaderTypesForTarget (const std::string &iTargetName, std::vector< std::string > &oShaderTypeNames) |
|
bool | getShader (const std::string &iTarget, const std::string &iShaderType, std::string &oResult) |
|
void | getShaderParameters (const std::string &iTarget, const std::string &iShaderType, ParameterEntryVector &oResult) |
|
void | getNetworkTerminalTargetNames (std::vector< std::string > &iTargetNames) |
| network stuff
|
|
void | getNetworkTerminalShaderTypesForTarget (const std::string &iTargetName, std::vector< std::string > &oShaderTypeNames) |
|
bool | getNetworkTerminal (const std::string &iTarget, const std::string &iShaderType, std::string &oNodeName, std::string &oOutputName) |
|
size_t | getNumNetworkNodes () |
|
NetworkNode | getNetworkNode (size_t iIndex) |
|
NetworkNode | getNetworkNode (const std::string &iNodeName) |
|
Utility class for querying against flattened inheritance hierarchies or definitions.
Definition at line 49 of file MaterialFlatten.h.
◆ ParameterEntryVector
◆ SchemaVector
◆ StringMap
◆ StringMapPtr
◆ MaterialFlatten() [1/4]
Alembic::AbcMaterial::ALEMBIC_VERSION_NS::MaterialFlatten::MaterialFlatten |
( |
| ) |
|
Create empty. Use append to add material schema manually.
◆ MaterialFlatten() [2/4]
Alembic::AbcMaterial::ALEMBIC_VERSION_NS::MaterialFlatten::MaterialFlatten |
( |
IMaterialSchema | iMaterialSchema | ) |
|
Create with a single materialSchema.
◆ MaterialFlatten() [3/4]
Alembic::AbcMaterial::ALEMBIC_VERSION_NS::MaterialFlatten::MaterialFlatten |
( |
IMaterial | iMaterialObject | ) |
|
Create from a material object. The schemas of matching parent material objects are automatically append
◆ MaterialFlatten() [4/4]
Create from an IObject. This will interpret values for hasMaterial and getMaterialAssignmentPath to flatten the full assignment and inheritance chain. A locally present material is first in the inheritance path. A material assignment is then appended with IMaterial rules.
An alternate archive can be optionally specified. If provided, assigned material paths will be traversed within that archive instead of the archive of the object itself.
◆ append() [1/2]
void Alembic::AbcMaterial::ALEMBIC_VERSION_NS::MaterialFlatten::append |
( |
IMaterial | iMaterialObject | ) |
|
Append the schemas of matching parent material objects.
◆ append() [2/2]
void Alembic::AbcMaterial::ALEMBIC_VERSION_NS::MaterialFlatten::append |
( |
IMaterialSchema | iMaterialSchema | ) |
|
Manually append a schema to the inheritance hierarchy.
◆ empty()
bool Alembic::AbcMaterial::ALEMBIC_VERSION_NS::MaterialFlatten::empty |
( |
| ) |
|
Returns true is there are no schema in the inheritance path.
◆ getNetworkNode() [1/2]
NetworkNode Alembic::AbcMaterial::ALEMBIC_VERSION_NS::MaterialFlatten::getNetworkNode |
( |
const std::string & | iNodeName | ) |
|
◆ getNetworkNode() [2/2]
NetworkNode Alembic::AbcMaterial::ALEMBIC_VERSION_NS::MaterialFlatten::getNetworkNode |
( |
size_t | iIndex | ) |
|
◆ getNetworkTerminal()
bool Alembic::AbcMaterial::ALEMBIC_VERSION_NS::MaterialFlatten::getNetworkTerminal |
( |
const std::string & | iTarget, |
|
|
const std::string & | iShaderType, |
|
|
std::string & | oNodeName, |
|
|
std::string & | oOutputName ) |
◆ getNetworkTerminalShaderTypesForTarget()
void Alembic::AbcMaterial::ALEMBIC_VERSION_NS::MaterialFlatten::getNetworkTerminalShaderTypesForTarget |
( |
const std::string & | iTargetName, |
|
|
std::vector< std::string > & | oShaderTypeNames ) |
◆ getNetworkTerminalTargetNames()
void Alembic::AbcMaterial::ALEMBIC_VERSION_NS::MaterialFlatten::getNetworkTerminalTargetNames |
( |
std::vector< std::string > & | iTargetNames | ) |
|
◆ getNumNetworkNodes()
size_t Alembic::AbcMaterial::ALEMBIC_VERSION_NS::MaterialFlatten::getNumNetworkNodes |
( |
| ) |
|
◆ getShader()
bool Alembic::AbcMaterial::ALEMBIC_VERSION_NS::MaterialFlatten::getShader |
( |
const std::string & | iTarget, |
|
|
const std::string & | iShaderType, |
|
|
std::string & | oResult ) |
Returns true and fills result with the shader name of first defined for the target and shaderType within the inheritance hierarchy. False if not defined.
◆ getShaderParameters()
void Alembic::AbcMaterial::ALEMBIC_VERSION_NS::MaterialFlatten::getShaderParameters |
( |
const std::string & | iTarget, |
|
|
const std::string & | iShaderType, |
|
|
ParameterEntryVector & | oResult ) |
Fills result with the parent compound and property header for shader parameters defined for the target and shader type within the inheritance hierarchy. Shallower definitions mask deeper ones (i.e. you'll only get one entry for a given name)
◆ getShaderTypesForTarget()
void Alembic::AbcMaterial::ALEMBIC_VERSION_NS::MaterialFlatten::getShaderTypesForTarget |
( |
const std::string & | iTargetName, |
|
|
std::vector< std::string > & | oShaderTypeNames ) |
Fill the list with a union of shader types define for the specified target within the inheritance hierarchy
◆ getTargetNames()
void Alembic::AbcMaterial::ALEMBIC_VERSION_NS::MaterialFlatten::getTargetNames |
( |
std::vector< std::string > & | oTargetNames | ) |
|
Fill the list with a union of target names defined within the inheritance hierarchy
The documentation for this class was generated from the following file: