24 #ifndef PXR_USD_USD_ATTRIBUTE_QUERY_H
25 #define PXR_USD_USD_ATTRIBUTE_QUERY_H
134 explicit operator bool()
const {
140 UsdAttributeQuery &
operator=(
const UsdAttributeQuery &other);
144 UsdAttributeQuery &
operator=(UsdAttributeQuery &&other) =
default;
158 template <
typename T>
161 "T must be an SdfValueType.");
162 return _Get(value,
time);
184 std::vector<double>* times)
const;
200 const std::vector<UsdAttributeQuery> &attrQueries,
201 std::vector<double> *times);
216 const std::vector<UsdAttributeQuery> &attrQueries,
218 std::vector<double> *times);
234 bool* hasTimeSamples)
const;
284 template <
typename T>
291 std::unique_ptr<UsdResolveTarget> _resolveTarget;
296 #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
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.
static USD_API bool GetUnionedTimeSamplesInInterval(const std::vector< UsdAttributeQuery > &attrQueries, const GfInterval &interval, std::vector< double > *times)
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)
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
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 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)