MaterialX  1.38.5
Classes | Typedefs | Functions
Look.h File Reference

Look element subclasses. More...

#include <MaterialXCore/Export.h>
#include <MaterialXCore/Material.h>
#include <MaterialXCore/Property.h>
#include <MaterialXCore/Variant.h>

Go to the source code of this file.

Classes

class  Look
 A look element within a Document. More...
 
class  LookGroup
 A look group element within a Document. More...
 
class  MaterialAssign
 A material assignment element within a Look. More...
 
class  Visibility
 A visibility element within a Look. More...
 

Typedefs

using LookPtr = shared_ptr< Look >
 A shared pointer to a Look.
 
using ConstLookPtr = shared_ptr< const Look >
 A shared pointer to a const Look.
 
using LookGroupPtr = shared_ptr< LookGroup >
 A shared pointer to a LookGroup.
 
using ConstLookGroupPtr = shared_ptr< const LookGroup >
 A shared pointer to a const LookGroup.
 
using MaterialAssignPtr = shared_ptr< MaterialAssign >
 A shared pointer to a MaterialAssign.
 
using ConstMaterialAssignPtr = shared_ptr< const MaterialAssign >
 A shared pointer to a const MaterialAssign.
 
using VisibilityPtr = shared_ptr< Visibility >
 A shared pointer to a Visibility.
 
using ConstVisibilityPtr = shared_ptr< const Visibility >
 A shared pointer to a const Visibility.
 

Functions

MX_CORE_API vector< MaterialAssignPtrgetGeometryBindings (ConstNodePtr materialNode, const string &geom=UNIVERSAL_GEOM_NAME)
 Return a vector of all MaterialAssign elements that bind this material node to the given geometry string. More...
 

Detailed Description

Look element subclasses.

Function Documentation

◆ getGeometryBindings()

MX_CORE_API vector<MaterialAssignPtr> getGeometryBindings ( ConstNodePtr  materialNode,
const string &  geom = UNIVERSAL_GEOM_NAME 
)

Return a vector of all MaterialAssign elements that bind this material node to the given geometry string.

Parameters
materialNodeNode to examine
geomThe geometry for which material bindings should be returned. By default, this argument is the universal geometry string "/", and all material bindings are returned.
Returns
Vector of MaterialAssign elements