7 #ifndef PXR_USD_SDF_ATTRIBUTE_SPEC_H
8 #define PXR_USD_SDF_ATTRIBUTE_SPEC_H
58 static SdfAttributeSpecHandle
59 New(
const SdfPrimSpecHandle& owner,
236 double* tUpper)
const;
252 time, static_cast<SdfAbstractDataValue *>(&outValue));
292 SdfAttributeSpecHandle
294 const SdfLayerHandle &
layer,
298 bool isCustom =
false);
316 const SdfLayerHandle &
layer,
320 bool isCustom =
false);
324 #endif // PXR_USD_SDF_ATTRIBUTE_SPEC_H
SDF_API void ClearSpline()
Clear the spline from this attribute spec.
SDF_API SdfConnectionsProxy GetConnectionPathList() const
SDF_API bool QueryTimeSample(double time, VtValue *value=NULL) const
GT_API const UT_StringHolder time
#define PXR_NAMESPACE_OPEN_SCOPE
GLsizei const GLfloat * value
static SDF_API SdfAttributeSpecHandle New(const SdfPrimSpecHandle &owner, const std::string &name, const SdfValueTypeName &typeName, SdfVariability variability=SdfVariabilityVarying, bool custom=false)
SDF_API bool HasSpline() const
SDF_API bool HasConnectionPaths() const
Returns true if any connection paths are set on this attribute.
SDF_API void SetSpline(const TsSpline &value)
Set the provided value as the spline for this attribute spec.
SDF_API TsSpline GetSpline() const
SDF_API VtTokenArray GetAllowedTokens() const
bool QueryTimeSample(double time, T *data) const
SDF_API void ClearAllowedTokens()
Clears the allowed tokens metadata for this attribute.
SDF_API void ClearColorSpace()
Clears the colorSpace metadata value set on this attribute.
GLenum GLuint GLint GLint layer
SDF_API void EraseTimeSample(double time)
SDF_API bool SdfJustCreatePrimAttributeInLayer(const SdfLayerHandle &layer, const SdfPath &attrPath, const SdfValueTypeName &typeName, SdfVariability variability=SdfVariabilityVarying, bool isCustom=false)
SDF_API bool HasColorSpace() const
Returns true if this attribute has a colorSpace value authored.
SDF_API SdfTimeSampleMap GetTimeSampleMap() const
SDF_API bool HasAllowedTokens() const
Returns true if allowed tokens metadata is set for this attribute.
SDF_API size_t GetNumTimeSamples() const
void SetTimeSample(double time, const T &value)
SDF_API std::set< double > ListTimeSamples() const
GLuint const GLchar * name
SDF_API bool HasArraySizeConstraint() const
SDF_API bool HasLimits() const
Returns true if limits metadata is set for this attribute.
SDF_API void ClearDisplayUnit()
Clears the display unit of the attribute.
SDF_API void SetLimits(const VtDictionary &limits)
Sets the limits dictionary for this attribute.
SDF_API void SetDisplayUnit(const TfEnum &displayUnit)
Sets the display unit of the attribute.
SDF_API void SetColorSpace(const TfToken &colorSpace)
SDF_API void ClearConnectionPaths()
Clears the connection paths for this attribute.
SDF_API TfToken GetColorSpace() const
#define PXR_NAMESPACE_CLOSE_SCOPE
SDF_API SdfAttributeSpecHandle SdfCreatePrimAttributeInLayer(const SdfLayerHandle &layer, const SdfPath &attrPath, const SdfValueTypeName &typeName, SdfVariability variability=SdfVariabilityVarying, bool isCustom=false)
SDF_API bool GetBracketingTimeSamples(double time, double *tLower, double *tUpper) const
SDF_API TfToken GetRoleName() const
SDF_API bool HasDisplayUnit() const
Returns true if a display unit is set for this attribute.
SDF_API VtDictionary GetLimits() const
Returns the limits dictionary for this attribute.
SDF_API void ClearArraySizeConstraint()
Clears the array size constraint value for this attribute.
SDF_API void ClearLimits()
Clears the limits metadata for this attribute.
SDF_API void SetArraySizeConstraint(int64_t constraint)
std::map< double, VtValue > SdfTimeSampleMap
A map from sample times to sample values.
SDF_API int64_t GetArraySizeConstraint() const
SDF_API TfEnum GetDisplayUnit() const
Returns the display unit of the attribute.
SDF_API void SetTimeSample(double time, const VtValue &value)
SDF_API void SetAllowedTokens(const VtTokenArray &allowedTokens)
Sets the allowed tokens metadata for this attribute.