7 #ifndef PXR_USD_USD_ATTRIBUTE_QUERY_H
8 #define PXR_USD_USD_ATTRIBUTE_QUERY_H
118 explicit operator bool()
const {
124 UsdAttributeQuery &
operator=(
const UsdAttributeQuery &other);
128 UsdAttributeQuery &
operator=(UsdAttributeQuery &&other) =
default;
142 template <
typename T>
145 "T must be an SdfValueType.");
146 return _Get(value,
time);
175 std::vector<double>* times)
const;
191 const std::vector<UsdAttributeQuery> &attrQueries,
192 std::vector<double> *times);
207 const std::vector<UsdAttributeQuery> &attrQueries,
209 std::vector<double> *times);
225 bool* hasTimeSamples)
const;
274 template <
typename T>
300 template <
typename T>
307 std::unique_ptr<UsdResolveTarget> _resolveTarget;
312 #endif // PXR_USD_USD_ATTRIBUTE_QUERY_H
std::string upper(string_view a)
Return an all-upper case version of a (locale-independent).
bool Get(T *value, UsdTimeCode time=UsdTimeCode::Default()) const
USD_API bool HasValue() const
static constexpr UsdTimeCode Default()
GT_API const UT_StringHolder time
#define PXR_NAMESPACE_OPEN_SCOPE
GLsizei const GLfloat * value
USD_API bool HasSpline() const
USD_API size_t GetNumTimeSamples() const
USD_API bool HasAuthoredValueOpinion() const
USD_API UsdAttributeQuery & operator=(const UsdAttributeQuery &other)
Copy assignment.
USD_API UsdAttributeQuery()
Construct an invalid query object.
USD_API bool HasFallbackValue() const
USD_API bool ValueMightBeTimeVarying() const
std::vector< TfToken > TfTokenVector
Convenience types.
bool GetFallbackValue(T *value) const
static USD_API bool GetUnionedTimeSamplesInInterval(const std::vector< UsdAttributeQuery > &attrQueries, const GfInterval &interval, std::vector< double > *times)
bool GetFallbackValue(T *value) const
USD_API bool GetTimeSamples(std::vector< double > *times) const
USD_API bool GetTimeSamplesInInterval(const GfInterval &interval, std::vector< double > *times) const
static USD_API bool GetUnionedTimeSamples(const std::vector< UsdAttributeQuery > &attrQueries, std::vector< double > *times)
bool IsValid() const
Return true if this is a valid object, false otherwise.
USD_API bool HasAuthoredValue() const
std::string lower(string_view a)
Return an all-upper case version of a (locale-independent).
#define PXR_NAMESPACE_CLOSE_SCOPE
USD_API TsSpline GetSpline() const
USD_API bool GetBracketingTimeSamples(double desiredTime, double *lower, double *upper, bool *hasTimeSamples) const
USD_API const UsdAttribute & GetAttribute() const
Return the attribute associated with this query.
static USD_API std::vector< UsdAttributeQuery > CreateQueries(const UsdPrim &prim, const TfTokenVector &attrNames)