All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
dataSourceStageGlobals.h
1//
2// Copyright 2020 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_DATA_SOURCE_STAGE_GLOBALS_H
8#define PXR_USD_IMAGING_USD_IMAGING_DATA_SOURCE_STAGE_GLOBALS_H
9
10#include "pxr/usdImaging/usdImaging/api.h"
11
12#include "pxr/usd/usd/prim.h"
13#include "pxr/usd/usd/timeCode.h"
14
15#include "pxr/imaging/hd/dataSourceLocator.h"
16
17#include "pxr/usd/sdf/path.h"
18
19PXR_NAMESPACE_OPEN_SCOPE
20
31{
32public:
33 USDIMAGING_API
35
36 // Datasource API
37
39 virtual UsdTimeCode GetTime() const = 0;
40
42 virtual void FlagAsTimeVarying(
43 const SdfPath &hydraPath,
44 const HdDataSourceLocator &locator) const = 0;
45
51 const SdfPath &usdPath) const = 0;
52};
53
54
55PXR_NAMESPACE_CLOSE_SCOPE
56
57#endif // PXR_USD_IMAGING_USD_IMAGING_DATA_SOURCE_STAGE_GLOBALS_H
Represents an object that can identify the location of a data source.
A path value used to locate objects in layers or scenegraphs.
Definition: path.h:274
This class is used as a context object with global stage information, that gets passed down to dataso...
virtual void FlagAsTimeVarying(const SdfPath &hydraPath, const HdDataSourceLocator &locator) const =0
Flags the given hydraPath as time varying at the given locator.
virtual void FlagAsAssetPathDependent(const SdfPath &usdPath) const =0
Flags the object at usdPath as dependent on an asset path.
virtual UsdTimeCode GetTime() const =0
Returns the current time represented in this instance.
Represent a time value, which may be either numeric, holding a double value, or a sentinel value UsdT...
Definition: timeCode.h:67