HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
dataSourceRelationship.h
Go to the documentation of this file.
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 
15 
17 
18 /// \class UsdImagingDataSourceRelationship
19 ///
20 /// A data source that represents a USD relationship
21 ///
23 {
24 public:
26 
27  /// Returns the extracted path array value of the attribute, as a VtValue.
28  /// \p shutterOffset is ignored.
30  VtValue GetValue(HdSampledDataSource::Time shutterOffset) override;
31 
32  /// Returns the extracted path array value of the attribute.
33  /// \p shutterOffset is ignored.
36  HdSampledDataSource::Time shutterOffset) override;
37 
38  /// Returns \c false indicating USD relationhips cannot vary with time.
41  HdSampledDataSource::Time startTime,
43  std::vector<HdSampledDataSource::Time> *outSampleTimes) override;
44 
45 private:
46  /// Constructs a new UsdImagingDataSourceRelationship for the given
47  /// \p usdRel.
48  ///
49  /// \p stageGlobals represents the context object for the UsdStage with
50  /// which to evaluate this relationship.
53  const UsdRelationship &usdRel,
54  const UsdImagingDataSourceStageGlobals &stageGlobals);
55 
56 private:
57  UsdRelationship _usdRel;
58  const UsdImagingDataSourceStageGlobals & _stageGlobals;
59 };
60 
62 
64 
65 #endif // PXR_USD_IMAGING_USD_IMAGING_DATA_SOURCE_RELATIONSHIP_H
HD_DECLARE_DATASOURCE(UsdImagingDataSourceRelationship)
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.
#define USDIMAGING_API
Definition: api.h:23
HD_DECLARE_DATASOURCE_HANDLES(UsdImagingDataSourceRelationship)
USDIMAGING_API VtArray< SdfPath > GetTypedValue(HdSampledDataSource::Time shutterOffset) override
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74
USDIMAGING_API VtValue GetValue(HdSampledDataSource::Time shutterOffset) override
Definition: value.h:146