-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathlayerTree.cpp
54 lines (45 loc) · 1.23 KB
/
layerTree.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//
// Copyright 2016 Pixar
//
// Licensed under the terms set forth in the LICENSE.txt file available at
// https://openusd.org/license.
//
/// \file LayerTree.cpp
#include "pxr/pxr.h"
#include "pxr/usd/sdf/layerTree.h"
PXR_NAMESPACE_OPEN_SCOPE
////////////////////////////////////////////////////////////////////////
// SdfLayerTree
SdfLayerTreeHandle
SdfLayerTree::New( const SdfLayerHandle & layer,
const SdfLayerTreeHandleVector & childTrees,
const SdfLayerOffset & cumulativeOffset )
{
return TfCreateRefPtr( new SdfLayerTree(layer, childTrees,
cumulativeOffset) );
}
SdfLayerTree::SdfLayerTree( const SdfLayerHandle & layer,
const SdfLayerTreeHandleVector & childTrees,
const SdfLayerOffset & cumulativeOffset ) :
_layer(layer),
_offset(cumulativeOffset),
_childTrees(childTrees)
{
// Do nothing
}
const SdfLayerHandle &
SdfLayerTree::GetLayer() const
{
return _layer;
}
const SdfLayerOffset &
SdfLayerTree::GetOffset() const
{
return _offset;
}
const SdfLayerTreeHandleVector &
SdfLayerTree::GetChildTrees() const
{
return _childTrees;
}
PXR_NAMESPACE_CLOSE_SCOPE