All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
arc.h
1//
2// Copyright 2016 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7#ifndef PXR_USD_PCP_ARC_H
8#define PXR_USD_PCP_ARC_H
9
10#include "pxr/pxr.h"
11#include "pxr/usd/pcp/api.h"
12#include "pxr/usd/pcp/mapExpression.h"
13#include "pxr/usd/pcp/node.h"
14#include "pxr/usd/pcp/types.h"
15#include "pxr/usd/sdf/path.h"
16
17PXR_NAMESPACE_OPEN_SCOPE
18
19class PcpPrimIndex_Graph;
20
27class PcpArc
28{
29public:
30 PcpArc()
31 : type(PcpArcTypeRoot)
32 , siblingNumAtOrigin(0)
33 , namespaceDepth(0)
34 { }
35
38
43
50
54
55 // index among sibling arcs at origin; lower is stronger
56 int siblingNumAtOrigin;
57
58 // Absolute depth in namespace of node that introduced this node.
59 // Note that this does *not* count any variant selections.
60 int namespaceDepth;
61};
62
63PXR_NAMESPACE_CLOSE_SCOPE
64
65#endif // PXR_USD_PCP_ARC_H
Represents an arc connecting two nodes in the prim index.
Definition: arc.h:28
PcpMapExpression mapToParent
The value-mapping function used to map values from this arc's source node to its parent node.
Definition: arc.h:53
PcpNodeRef origin
The origin node of this arc.
Definition: arc.h:49
PcpArcType type
The type of this arc.
Definition: arc.h:37
PcpNodeRef parent
The parent (or target) node of this arc.
Definition: arc.h:42
An expression that yields a PcpMapFunction value.
Definition: mapExpression.h:39
PcpNode represents a node in an expression tree for compositing scene description.
Definition: node.h:47
PcpArcType
Describes the type of arc connecting two nodes in the prim index.
Definition: types.h:27