2 #include "AL/usdmaya/Common.h"
36 {
return m_stack.top().m_thisLayer; }
41 {
return m_stack.top().m_parentLayer; }
46 {
return m_stack.top().m_isSubLayer; }
51 {
return static_cast<uint32_t
>(m_stack.size()); }
58 std::vector<Layer*> m_subLayers;
59 std::vector<Layer*> m_childLayers;
66 std::stack<StackItem> m_stack;
void visitAll()
call to visit all of the layers
A custom proxy shape node that attaches itself to a USD file, and then renders it. The stage is held internally as a member variable, and it will be composed based on a change to the "filePath" attribute.
Definition: ProxyShape.h:33
virtual ~LayerVisitor()
dtor
Definition: LayerVisitor.h:25
uint32_t depth() const
returns the recursion depth.
Definition: LayerVisitor.h:50
virtual void onVisit()
override to implement your own custom processing for each layer.
Definition: LayerVisitor.h:31
bool isSubLayer() const
returns true if the current layer is a sub layer
Definition: LayerVisitor.h:45
Layer * thisLayer() const
returns the current layer being visited
Definition: LayerVisitor.h:35
The layer node stores a reference to an SdfLayer.
Definition: Layer.h:20
A class that follows the visitor pattern to walk through all layer nodes associated with the specifie...
Definition: LayerVisitor.h:16
LayerVisitor(ProxyShape *shape)
ctor
Layer * parentLayer() const
returns the parent of the current layer being visited
Definition: LayerVisitor.h:40