24 #ifndef PXR_USD_SDF_RELATIONSHIP_SPEC_H 25 #define PXR_USD_SDF_RELATIONSHIP_SPEC_H 30 #include "pxr/usd/sdf/api.h" 31 #include "pxr/usd/sdf/declareSpec.h" 35 PXR_NAMESPACE_OPEN_SCOPE
68 static SdfRelationshipSpecHandle
69 New(
const SdfPrimSpecHandle& owner,
70 const std::string& name,
125 SdfPath _MakeCompleteTargetSpecPath(
const SdfPath& srcPath)
const;
127 SdfSpecHandle _GetTargetSpec(
const SdfPath& path)
const;
133 friend class Sdf_PyRelationshipAccess;
136 PXR_NAMESPACE_CLOSE_SCOPE
138 #endif // PXR_USD_SDF_RELATIONSHIP_SPEC_H Base class for SdfAttributeSpec and SdfRelationshipSpec.
Represents a set of list editing operations.
SDF_API void ClearTargetPathList() const
Clears the list of target paths on this relationship.
static SDF_API SdfRelationshipSpecHandle New(const SdfPrimSpecHandle &owner, const std::string &name, bool custom=true, SdfVariability variability=SdfVariabilityUniform)
Creates a new prim relationship instance.
SDF_API SdfTargetsProxy GetTargetPathList() const
Returns the relationship's target path list editor.
SDF_API void RemoveTargetPath(const SdfPath &path, bool preserveTargetOrder=false)
Removes the specified target path.
SDF_API bool HasTargetPathList() const
Returns true if the relationship has any target paths.
SDF_API void SetNoLoadHint(bool noload)
Set whether loading the target of this relationship is necessary to load the prim we're attached to.
SDF_API void ReplaceTargetPath(const SdfPath &oldPath, const SdfPath &newPath)
Updates the specified target path.
A subclass of SdfPropertySpec that holds typed data.
A path value used to locate objects in layers or scenegraphs.
SdfVariability
An enum that identifies variability types for attributes.
SDF_API bool GetNoLoadHint(void) const
Get whether loading the target of this relationship is necessary to load the prim we're attached to.
A property that contains a reference to one or more SdfPrimSpec instances.