24 #ifndef PXR_USD_USD_ATTRIBUTE_H
25 #define PXR_USD_USD_ATTRIBUTE_H
40 #include <type_traits>
266 std::vector<double>* times)
const;
288 std::vector<double> *times);
311 const std::vector<UsdAttribute> &attrs,
313 std::vector<double> *times);
356 bool* hasTimeSamples)
const;
435 template <
typename T>
439 return _Get(value,
time);
476 template <
typename T>
481 return _Set(value,
time);
651 :
UsdProperty(objType, prim, proxyPrimPath, propName) {}
653 SdfAttributeSpecHandle
660 SdfAttributeSpecHandle _CreateSpec()
const;
665 template <
typename T>
668 template <
typename T>
677 #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
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 GLchar *const * string
GLsizei const GLfloat * value
GLsizei const GLchar *const * path
USD_API bool SetVariability(SdfVariability variability) const
USD_API SdfValueTypeName GetTypeName() const
Return the "scene description" value type name for this attribute.
USD_API bool HasFallbackValue() const
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
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
std::vector< class SdfPath > SdfPathVector
A vector of SdfPaths.
USD_API bool ClearDefault() const
Shorthand for ClearAtTime(UsdTimeCode::Default()).
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