7 #ifndef PXR_USD_USD_ATTRIBUTE_H
8 #define PXR_USD_USD_ATTRIBUTE_H
23 #include <type_traits>
257 std::vector<double>* times)
const;
279 std::vector<double> *times);
302 const std::vector<UsdAttribute> &attrs,
304 std::vector<double> *times);
347 bool* hasTimeSamples)
const;
451 template <
typename T>
455 return _Get(value,
time);
494 template <
typename T>
499 return _Set(value,
time);
708 :
UsdProperty(objType, prim, proxyPrimPath, propName) {}
710 SdfAttributeSpecHandle
717 SdfAttributeSpecHandle _CreateSpec()
const;
722 template <
typename T>
725 template <
typename T>
729 _GetPathForAuthoring(
const SdfPath &
path, std::string* whyNot)
const;
734 #endif // PXR_USD_USD_ATTRIBUTE_H
USD_API TfToken GetRoleName() const
Return the roleName for this attribute's typeName.
USD_API bool ClearColorSpace() const
std::string upper(string_view a)
Return an all-upper case version of a (locale-independent).
USD_API bool ClearConnections() const
USD_API bool GetConnections(SdfPathVector *sources) const
USD_API bool GetBracketingTimeSamples(double desiredTime, double *lower, double *upper, bool *hasTimeSamples) const
USD_API bool SetSpline(const TsSpline &spline)
Set the spline using the current edit target.
static constexpr UsdTimeCode Default()
bool Get(T *value, UsdTimeCode time=UsdTimeCode::Default()) const
USD_API bool SetConnections(const SdfPathVector &sources) const
USD_API bool HasAuthoredValueOpinion() const
GT_API const UT_StringHolder time
USD_API void Block() const
GLsizei const GLfloat * value
GLsizei const GLchar *const * path
USD_API bool SetVariability(SdfVariability variability) const
USD_API bool HasSpline() const
USD_API SdfValueTypeName GetTypeName() const
Return the "scene description" value type name for this attribute.
USD_API bool HasFallbackValue() const
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 Quat< T > spline(const Quat< T > &q0, const Quat< T > &q1, const Quat< T > &q2, const Quat< T > &q3, T t) IMATH_NOEXCEPT
USD_API bool ClearAtTime(UsdTimeCode time) const
USD_API bool HasAuthoredValue() const
USD_API UsdResolveInfo GetResolveInfo() const
static USD_API bool GetUnionedTimeSamples(const std::vector< UsdAttribute > &attrs, std::vector< double > *times)
UsdAttribute()
Construct an invalid attribute.
friend struct UsdPrim_AttrConnectionFinder
USD_API bool AddConnection(const SdfPath &source, UsdListPosition position=UsdListPositionBackOfPrependList) const
std::vector< class SdfPath > SdfPathVector
USD_API bool HasValue() const
USD_API bool GetTimeSamples(std::vector< double > *times) const
GLsizei GLsizei GLchar * source
USD_API size_t GetNumTimeSamples() const
std::vector< UsdAttribute > UsdAttributeVector
A std::vector of UsdAttributes.
USD_API void SetColorSpace(const TfToken &colorSpace) const
USD_API bool HasAuthoredConnections() const
bool Set(const T &value, UsdTimeCode time=UsdTimeCode::Default()) const
USD_API bool ClearDefault() const
Shorthand for ClearAtTime(UsdTimeCode::Default()).
USD_API TsSpline GetSpline() const
USD_API bool Clear() const
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
std::string lower(string_view a)
Return an all-upper case version of a (locale-independent).
SIM_API const UT_StringHolder position
#define PXR_NAMESPACE_CLOSE_SCOPE
USD_API bool GetTimeSamplesInInterval(const GfInterval &interval, std::vector< double > *times) const
USD_API TfToken GetColorSpace() const
static USD_API bool GetUnionedTimeSamplesInInterval(const std::vector< UsdAttribute > &attrs, const GfInterval &interval, std::vector< double > *times)
USD_API bool SetTypeName(const SdfValueTypeName &typeName) const
USD_API bool RemoveConnection(const SdfPath &source) const
USD_API bool ValueMightBeTimeVarying() const
USD_API SdfVariability GetVariability() const
USD_API bool HasColorSpace() const