7 #ifndef PXR_USD_USD_ATTRIBUTE_H
8 #define PXR_USD_USD_ATTRIBUTE_H
24 #include <type_traits>
273 std::vector<double>* times)
const;
295 std::vector<double> *times);
318 const std::vector<UsdAttribute> &attrs,
320 std::vector<double> *times);
363 bool* hasTimeSamples)
const;
467 template <
typename T>
471 return _Get(value,
time);
480 template <
typename T>
530 template <
typename T>
536 return _Set(value,
time);
912 :
UsdProperty(objType, prim, proxyPrimPath, propName) {}
914 SdfAttributeSpecHandle
921 SdfAttributeSpecHandle _CreateSpec()
const;
926 template <
typename T>
929 template <
typename T>
933 _GetPathForAuthoring(
const SdfPath &
path, std::string* whyNot)
const;
938 #endif // PXR_USD_USD_ATTRIBUTE_H
UsdStage * _GetStage() const
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
#define PXR_NAMESPACE_OPEN_SCOPE
GLsizei const GLfloat * value
GLsizei const GLchar *const * path
USD_API bool SetVariability(SdfVariability variability) const
bool GetFallbackValue(T *value) 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.
USD_API int64_t GetArraySizeConstraint() const
Return the array size constraint value for this attribute.
friend struct UsdPrim_AttrConnectionFinder
USD_API bool AddConnection(const SdfPath &source, UsdListPosition position=UsdListPositionBackOfPrependList) const
USD_API bool SetLimits(const VtDictionary &limits) const
std::vector< class SdfPath > SdfPathVector
USD_API UsdAttributeLimits GetHardLimits() const
USD_API bool HasValue() const
USD_API bool GetTimeSamples(std::vector< double > *times) const
GLsizei GLsizei GLchar * source
USD_API size_t GetNumTimeSamples() const
USD_API VtDictionary GetLimits() const
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()).
bool GetFallbackValue(T *value) const
USD_API TsSpline GetSpline() const
USD_API bool Clear() const
USD_API bool ClearArraySizeConstraint() const
std::vector< UsdAttribute > UsdAttributeVector
A std::vector of UsdAttributes.
std::string lower(string_view a)
Return an all-upper case version of a (locale-independent).
USD_API bool ClearLimits() const
USD_API bool HasAuthoredArraySizeConstraint() const
SIM_API const UT_StringHolder position
#define PXR_NAMESPACE_CLOSE_SCOPE
USD_API bool SetArraySizeConstraint(int64_t constraint) const
Set the array size constraint value for this attribute.
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 UsdAttributeLimits GetSoftLimits() const
USD_API bool HasAuthoredLimits() const
Return whether a limits dictionary is authored for the attribute.
USD_API SdfVariability GetVariability() const
USD_API void BlockAnimation() const
USD_API bool HasColorSpace() const