7#ifndef PXR_IMAGING_HD_DATA_SOURCE_LEGACY_PRIM_H
8#define PXR_IMAGING_HD_DATA_SOURCE_LEGACY_PRIM_H
10#include "pxr/imaging/hd/api.h"
11#include "pxr/imaging/hd/dataSource.h"
12#include "pxr/imaging/hd/dataSourceLocator.h"
14#include "pxr/usd/sdf/path.h"
23PXR_NAMESPACE_OPEN_SCOPE
28#define HD_LEGACY_PRIMTYPE_TOKENS \
34 HD_LEGACY_PRIMTYPE_TOKENS);
50 : _id(
id), _sceneDelegate(sceneDelegate) {}
74 HdDataSourceBaseHandle
Get(
const TfToken &name)
override;
90 HdDataSourceBaseHandle _GetPrimvarsDataSource();
91 HdDataSourceBaseHandle _GetExtComputationPrimvarsDataSource();
92 HdDataSourceBaseHandle _GetMaterialBindingsDataSource();
93 HdDataSourceBaseHandle _GetXformDataSource();
94 HdDataSourceBaseHandle _GetMaterialDataSource();
95 HdDataSourceBaseHandle _GetIntegratorDataSource();
96 HdDataSourceBaseHandle _GetSampleFilterDataSource();
97 HdDataSourceBaseHandle _GetDisplayFilterDataSource();
98 HdDataSourceBaseHandle _GetDisplayStyleDataSource();
99 HdDataSourceBaseHandle _GetInstancedByDataSource();
100 HdDataSourceBaseHandle _GetInstancerTopologyDataSource();
101 HdDataSourceBaseHandle _GetVolumeFieldBindingDataSource();
102 HdDataSourceBaseHandle _GetCoordSysBindingDataSource();
103 HdDataSourceBaseHandle _GetVisibilityDataSource();
104 HdDataSourceBaseHandle _GetPurposeDataSource();
105 HdDataSourceBaseHandle _GetExtentDataSource();
106 HdDataSourceBaseHandle _GetCategoriesDataSource();
107 HdDataSourceBaseHandle _GetInstanceCategoriesDataSource();
110 bool _IsInstanceable();
118 std::atomic_bool _primvarsBuilt;
119 bool _extComputationPrimvarsBuilt : 1;
121 HdContainerDataSourceAtomicHandle _primvars;
122 HdContainerDataSourceHandle _extComputationPrimvars;
127 HdContainerDataSourceAtomicHandle _instancerTopology;
132bool HdLegacyPrimTypeIsVolumeField(
TfToken const &primType);
134PXR_NAMESPACE_CLOSE_SCOPE
A datasource representing structured (named, hierarchical) data, for example a geometric primitive or...
Represents an object which can produce scene data.
This is an HdContainerDataSource which represents a prim-level data source for adapting HdSceneDelega...
void PrimDirtied(const HdDataSourceLocatorSet &locators)
This clears internal cached values and is currently called only by HdLegacyPrimSceneIndex in response...
TfTokenVector GetNames() override
Returns the list of names for which Get(...) is expected to return a non-null value.
static const HdDataSourceLocatorSet & GetCachedLocators()
Return which locators PrimDirtied will respond to...
HdDataSourceBaseHandle Get(const TfToken &name) override
Returns the child datasource of the given name.
Represents a set of data source locators closed under descendancy.
This is a data source which holds a legacy ext computation.
Interface class that defines the execution environment for the client to run a computation.
Adapter class providing data exchange with the client scene graph.
A path value used to locate objects in layers or scenegraphs.
Token for efficient comparison, assignment, and hashing of known strings.
This file defines some macros that are useful for declaring and using static TfTokens.
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.
TfToken class for efficient string referencing and hashing, plus conversions to and from stl string c...
std::vector< TfToken > TfTokenVector
Convenience types.