All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
instancerContext.h
Go to the documentation of this file.
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_IMAGING_USD_IMAGING_INSTANCER_CONTEXT_H
8#define PXR_USD_IMAGING_USD_IMAGING_INSTANCER_CONTEXT_H
9
11
12#include "pxr/pxr.h"
13#include "pxr/usdImaging/usdImaging/api.h"
14#include "pxr/usd/sdf/path.h"
15
16PXR_NAMESPACE_OPEN_SCOPE
17
18
19using UsdImagingPrimAdapterSharedPtr =
20 std::shared_ptr<class UsdImagingPrimAdapter>;
21
28{
29public:
32
35
39
42
43 // The inheritable purpose bound to the instance prim being processed. If
44 // the instance prim can provide this, prototypes without an explicit or
45 // inherited purpose will inherit this purpose from the instance.
46 TfToken instanceInheritablePurpose;
47
50 UsdImagingPrimAdapterSharedPtr instancerAdapter;
51};
52
53
54PXR_NAMESPACE_CLOSE_SCOPE
55
56#endif // PXR_USD_IMAGING_USD_IMAGING_INSTANCER_CONTEXT_H
A path value used to locate objects in layers or scenegraphs.
Definition: path.h:274
Token for efficient comparison, assignment, and hashing of known strings.
Definition: token.h:71
UsdImagingPrimAdapterSharedPtr instancerAdapter
The instancer's prim Adapter.
SdfPath instancerMaterialUsdPath
The USD path to the material bound to the instance prim being processed.
SdfPath instancerCachePath
The cachePath of the instancer.
TfToken instanceDrawMode
The draw mode bound to the instance prim being processed.
TfToken childName
The name of the child prim, typically used for prototypes.
Object used by instancer prim adapters to pass along context about the instancer and instance prim to...