7#ifndef PXR_USD_SDF_RELATIONSHIP_SPEC_H
8#define PXR_USD_SDF_RELATIONSHIP_SPEC_H
13#include "pxr/usd/sdf/api.h"
14#include "pxr/usd/sdf/declareSpec.h"
18PXR_NAMESPACE_OPEN_SCOPE
51 static SdfRelationshipSpecHandle
52 New(
const SdfPrimSpecHandle& owner,
53 const std::string& name,
108 SdfPath _MakeCompleteTargetSpecPath(
const SdfPath& srcPath)
const;
110 SdfSpecHandle _GetTargetSpec(
const SdfPath& path)
const;
116 friend class Sdf_PyRelationshipAccess;
131SdfRelationshipSpecHandle
133 const SdfLayerHandle &layer,
136 bool isCustom =
false);
155 const SdfLayerHandle &layer,
158 bool isCustom =
false);
160PXR_NAMESPACE_CLOSE_SCOPE
A subclass of SdfPropertySpec that holds typed data.
Represents a set of list editing operations.
A path value used to locate objects in layers or scenegraphs.
Base class for SdfAttributeSpec and SdfRelationshipSpec.
A property that contains a reference to one or more SdfPrimSpec instances.
SDF_API bool GetNoLoadHint(void) const
Get whether loading the target of this relationship is necessary to load the prim we're attached to.
SDF_API void ClearTargetPathList() const
Clears the list of target paths on this relationship.
SDF_API void ReplaceTargetPath(const SdfPath &oldPath, const SdfPath &newPath)
Updates the specified target path.
SDF_API SdfTargetsProxy GetTargetPathList() const
Returns the relationship's target path list editor.
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 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 RemoveTargetPath(const SdfPath &path, bool preserveTargetOrder=false)
Removes the specified target path.
SDF_API SdfRelationshipSpecHandle SdfCreateRelationshipInLayer(const SdfLayerHandle &layer, const SdfPath &relPath, SdfVariability variability=SdfVariabilityVarying, bool isCustom=false)
Convenience function to create a relationshipSpec on a primSpec at the given path,...
SDF_API bool SdfJustCreateRelationshipInLayer(const SdfLayerHandle &layer, const SdfPath &relPath, SdfVariability variability=SdfVariabilityVarying, bool isCustom=false)
Convenience function to create a relationshipSpec on a primSpec at the given path,...
SdfVariability
An enum that identifies variability types for attributes.