Alembic Version 1.1
|
#include <IMaterial.h>
Classes | |
class | NetworkNode |
Public Types | |
typedef IMaterialSchema | this_type |
![]() | |
typedef MaterialSchemaInfo | info_type |
typedef ISchema< MaterialSchemaInfo > | this_type |
![]() | |
typedef ICompoundProperty | this_type |
Public Member Functions | |
IMaterialSchema () | |
IMaterialSchema (const ICompoundProperty &iParent, const std::string &iName, const Abc::Argument &iArg0=Abc::Argument(), const Abc::Argument &iArg1=Abc::Argument()) | |
IMaterialSchema (const ICompoundProperty &iProp, const Abc::Argument &iArg0=Abc::Argument(), const Abc::Argument &iArg1=Abc::Argument()) | |
IMaterialSchema (const IMaterialSchema &iCopy) | |
Copy constructor. | |
void | getTargetNames (std::vector< std::string > &iTargetNames) |
void | getShaderTypesForTarget (const std::string &iTargetName, std::vector< std::string > &oShaderTypeNames) |
bool | getShader (const std::string &iTarget, const std::string &iShaderType, std::string &oResult) |
Abc::ICompoundProperty | getShaderParameters (const std::string &iTarget, const std::string &iShaderType) |
size_t | getNumNetworkNodes () |
void | getNetworkNodeNames (std::vector< std::string > &oNames) |
NetworkNode | getNetworkNode (size_t iIndex) |
NetworkNode | getNetworkNode (const std::string &iNodeName) |
void | getNetworkTerminalTargetNames (std::vector< std::string > &oTargetNames) |
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 | getNumNetworkInterfaceParameterMappings () |
bool | getNetworkInterfaceParameterMapping (size_t iIndex, std::string &oInterfaceParamName, std::string &oMapToNodeName, std::string &oMapToParamName) |
void | getNetworkInterfaceParameterMappingNames (std::vector< std::string > &oNames) |
bool | getNetworkInterfaceParameterMapping (const std::string &iInterfaceParamName, std::string &oMapToNodeName, std::string &oMapToParamName) |
Abc::ICompoundProperty | getNetworkInterfaceParameters () |
![]() | |
ISchema () | |
ISchema (const ICompoundProperty &iParent, const std::string &iName, const Argument &iArg0=Argument(), const Argument &iArg1=Argument()) | |
ISchema (const ICompoundProperty &iProperty, const Argument &iArg0=Argument(), const Argument &iArg1=Argument()) | |
ISchema (const ICompoundProperty &iProperty, WrapExistingFlag iFlag, const Argument &iArg0=Argument(), const Argument &iArg1=Argument()) | |
virtual | ~ISchema () |
![]() | |
ICompoundProperty () | |
ICompoundProperty (const ICompoundProperty &iParent, const std::string &iName, const Argument &iArg0=Argument()) | |
ICompoundProperty (AbcA::CompoundPropertyReaderPtr iPtr, const Argument &iArg0=Argument(), const Argument &iArg1=Argument()) | |
ICompoundProperty (AbcA::CompoundPropertyReaderPtr iPtr, WrapExistingFlag, const Argument &iArg0=Argument(), const Argument &iArg1=Argument()) | |
ICompoundProperty (const IObject &iObject, const Argument &iArg0=Argument(), const Argument &iArg1=Argument()) | |
ICompoundProperty (const IObject &iObject, TopFlag, const Argument &iArg0=Argument(), const Argument &iArg1=Argument()) | |
~ICompoundProperty () | |
size_t | getNumProperties () const |
Returns the number of properties contained in this ICompoundProperty. | |
const AbcA::PropertyHeader & | getPropertyHeader (size_t i) const |
const AbcA::PropertyHeader * | getPropertyHeader (const std::string &iName) const |
ICompoundProperty | getParent () const |
![]() | |
const AbcA::PropertyHeader & | getHeader () const |
const std::string & | getName () const |
AbcA::PropertyType | getPropertyType () const |
bool | isScalar () const |
bool | isArray () const |
bool | isCompound () const |
bool | isSimple () const |
const AbcA::MetaData & | getMetaData () const |
const AbcA::DataType & | getDataType () const |
AbcA::TimeSamplingPtr | getTimeSampling () const |
IObject | getObject () const |
AbcA::CompoundPropertyReaderPtr | getPtr () const |
void | reset () |
bool | valid () const |
ALEMBIC_OPERATOR_BOOL (valid()) | |
![]() | |
ErrorHandler & | getErrorHandler () const |
ErrorHandler::Policy | getErrorHandlerPolicy () const |
Schema for reading and querying shader definitions from either an object or compound property. Only "monolithic" shader definitions (i.e. non network) are presently supported in this implementation.
Definition at line 52 of file IMaterial.h.
Definition at line 60 of file IMaterial.h.
|
inline |
Definition at line 62 of file IMaterial.h.
|
inline |
This constructor creates a new material reader. The first argument is the parent ICompoundProperty, from which the error handler policy for is derived. The second argument is the name of the ICompoundProperty that contains this schemas properties. The remaining optional arguments can be used to override the ErrorHandlerPolicy and to specify schema interpretation matching.
Definition at line 70 of file IMaterial.h.
|
inline |
This constructor wraps an existing ICompoundProperty as the material reader, and the error handler policy is derived from it. The remaining optional arguments can be used to override the ErrorHandlerPolicy and to specify schema interpretation matching.
Definition at line 84 of file IMaterial.h.
|
inline |
Copy constructor.
Definition at line 93 of file IMaterial.h.
bool Alembic::AbcMaterial::ALEMBIC_VERSION_NS::IMaterialSchema::getNetworkInterfaceParameterMapping | ( | const std::string & | iInterfaceParamName, |
std::string & | oMapToNodeName, | ||
std::string & | oMapToParamName ) |
bool Alembic::AbcMaterial::ALEMBIC_VERSION_NS::IMaterialSchema::getNetworkInterfaceParameterMapping | ( | size_t | iIndex, |
std::string & | oInterfaceParamName, | ||
std::string & | oMapToNodeName, | ||
std::string & | oMapToParamName ) |
void Alembic::AbcMaterial::ALEMBIC_VERSION_NS::IMaterialSchema::getNetworkInterfaceParameterMappingNames | ( | std::vector< std::string > & | oNames | ) |
Abc::ICompoundProperty Alembic::AbcMaterial::ALEMBIC_VERSION_NS::IMaterialSchema::getNetworkInterfaceParameters | ( | ) |
NetworkNode Alembic::AbcMaterial::ALEMBIC_VERSION_NS::IMaterialSchema::getNetworkNode | ( | const std::string & | iNodeName | ) |
NetworkNode Alembic::AbcMaterial::ALEMBIC_VERSION_NS::IMaterialSchema::getNetworkNode | ( | size_t | iIndex | ) |
void Alembic::AbcMaterial::ALEMBIC_VERSION_NS::IMaterialSchema::getNetworkNodeNames | ( | std::vector< std::string > & | oNames | ) |
bool Alembic::AbcMaterial::ALEMBIC_VERSION_NS::IMaterialSchema::getNetworkTerminal | ( | const std::string & | iTarget, |
const std::string & | iShaderType, | ||
std::string & | oNodeName, | ||
std::string & | oOutputName ) |
void Alembic::AbcMaterial::ALEMBIC_VERSION_NS::IMaterialSchema::getNetworkTerminalShaderTypesForTarget | ( | const std::string & | iTargetName, |
std::vector< std::string > & | oShaderTypeNames ) |
void Alembic::AbcMaterial::ALEMBIC_VERSION_NS::IMaterialSchema::getNetworkTerminalTargetNames | ( | std::vector< std::string > & | oTargetNames | ) |
size_t Alembic::AbcMaterial::ALEMBIC_VERSION_NS::IMaterialSchema::getNumNetworkInterfaceParameterMappings | ( | ) |
size_t Alembic::AbcMaterial::ALEMBIC_VERSION_NS::IMaterialSchema::getNumNetworkNodes | ( | ) |
bool Alembic::AbcMaterial::ALEMBIC_VERSION_NS::IMaterialSchema::getShader | ( | const std::string & | iTarget, |
const std::string & | iShaderType, | ||
std::string & | oResult ) |
Returns true and fills result with the shader name for a given target and shaderType if locally defined
Abc::ICompoundProperty Alembic::AbcMaterial::ALEMBIC_VERSION_NS::IMaterialSchema::getShaderParameters | ( | const std::string & | iTarget, |
const std::string & | iShaderType ) |
Returns the enclosing compound property for the given target and shader type. Call .valid() on the result to determine whether it's locally defined or not.
void Alembic::AbcMaterial::ALEMBIC_VERSION_NS::IMaterialSchema::getShaderTypesForTarget | ( | const std::string & | iTargetName, |
std::vector< std::string > & | oShaderTypeNames ) |
Fills a list of shader type strings for which either shader or parameter definitions are locally present for a given target. Shader type names match an agreed upon convention for shader terminals such as "surface," "displacement," "light", "coshader_somename."
void Alembic::AbcMaterial::ALEMBIC_VERSION_NS::IMaterialSchema::getTargetNames | ( | std::vector< std::string > & | iTargetNames | ) |
Fills a list of target name strings for which either shader or parameter definitions are locally present. Target name values match an upon convention for a renderer or application (i.e. "prman") This gets the target names for the monolithic shaders