Loading...
Searching...
No Matches
dataSourceRelationship.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_RELATIONSHIP_H
8#define PXR_USD_IMAGING_USD_IMAGING_DATA_SOURCE_RELATIONSHIP_H
9
10#include "pxr/usdImaging/usdImaging/api.h"
11#include "pxr/usdImaging/usdImaging/dataSourceStageGlobals.h"
12#include "pxr/usd/usd/relationship.h"
13#include "pxr/imaging/hd/dataSource.h"
14#include "pxr/imaging/hd/dataSourceTypeDefs.h"
15
16PXR_NAMESPACE_OPEN_SCOPE
17
23{
24public:
25 HD_DECLARE_DATASOURCE(UsdImagingDataSourceRelationship);
26
29 USDIMAGING_API
30 VtValue GetValue(HdSampledDataSource::Time shutterOffset) override;
31
34 USDIMAGING_API
36 HdSampledDataSource::Time shutterOffset) override;
37
39 USDIMAGING_API
41 HdSampledDataSource::Time startTime,
42 HdSampledDataSource::Time endTime,
43 std::vector<HdSampledDataSource::Time> *outSampleTimes) override;
44
45private:
51 USDIMAGING_API
53 const UsdRelationship &usdRel,
54 const UsdImagingDataSourceStageGlobals &stageGlobals);
55
56private:
57 UsdRelationship _usdRel;
58 const UsdImagingDataSourceStageGlobals & _stageGlobals;
59};
60
61HD_DECLARE_DATASOURCE_HANDLES(UsdImagingDataSourceRelationship);
62
63PXR_NAMESPACE_CLOSE_SCOPE
64
65#endif // PXR_USD_IMAGING_USD_IMAGING_DATA_SOURCE_RELATIONSHIP_H
A datasource representing a concretely-typed sampled value.
Definition: dataSource.h:193
A data source that represents a USD relationship.
USDIMAGING_API bool GetContributingSampleTimesForInterval(HdSampledDataSource::Time startTime, HdSampledDataSource::Time endTime, std::vector< HdSampledDataSource::Time > *outSampleTimes) override
Returns false indicating USD relationhips cannot vary with time.
USDIMAGING_API VtValue GetValue(HdSampledDataSource::Time shutterOffset) override
Returns the extracted path array value of the attribute, as a VtValue.
USDIMAGING_API VtArray< SdfPath > GetTypedValue(HdSampledDataSource::Time shutterOffset) override
Returns the extracted path array value of the attribute.
This class is used as a context object with global stage information, that gets passed down to dataso...
A UsdRelationship creates dependencies between scenegraph objects by allowing a prim to target other ...
Definition: relationship.h:111
Represents an arbitrary dimensional rectangular container class.
Definition: array.h:213
Provides a container which may hold any type, and provides introspection and iteration over array typ...
Definition: value.h:90