24 #ifndef PXR_USD_IMAGING_USD_IMAGING_INDEX_PROXY_H
25 #define PXR_USD_IMAGING_USD_IMAGING_INDEX_PROXY_H
131 _rprimsToRemove.push_back(cachePath);
132 _hdPrimInfoToRemove.push_back(cachePath);
133 _RemoveDependencies(cachePath);
138 _TypeAndPath primToRemove = {primType, cachePath};
139 _sprimsToRemove.push_back(primToRemove);
140 _hdPrimInfoToRemove.push_back(cachePath);
141 _RemoveDependencies(cachePath);
146 _TypeAndPath primToRemove = {primType, cachePath};
147 _bprimsToRemove.push_back(primToRemove);
148 _hdPrimInfoToRemove.push_back(cachePath);
149 _RemoveDependencies(cachePath);
154 _instancersToRemove.push_back(cachePath);
155 _hdPrimInfoToRemove.push_back(cachePath);
156 _RemoveDependencies(cachePath);
206 UsdImagingDelegate::_Worker* worker)
207 : _delegate(delegate)
213 void _UniqueifyPathsToRepopulate();
215 UsdImagingDelegate::_HdPrimInfo*
216 _AddHdPrimInfo(
SdfPath const& cachePath,
221 void _RemoveDependencies(
SdfPath const& cachePath);
224 return _usdPathsToRepopulate;
226 void _ProcessRemovals();
228 void _AddTask(
SdfPath const& usdPath);
230 struct _TypeAndPath {
235 typedef std::vector<_TypeAndPath> _TypeAndPathVector;
237 typedef std::vector<UsdImagingDelegate::_DependencyMap::value_type>
241 UsdImagingDelegate::_Worker* _worker;
244 _TypeAndPathVector _sprimsToRemove;
245 _TypeAndPathVector _bprimsToRemove;
248 _DependencyVector _dependenciesToRemove;
254 #endif //PXR_USD_IMAGING_USD_IMAGING_INDEX_PROXY_H
USDIMAGING_API bool IsSprimTypeSupported(TfToken const &typeId) const
USDIMAGING_API void InsertSprim(TfToken const &primType, SdfPath const &cachePath, UsdPrim const &usdPrim, UsdImagingPrimAdapterSharedPtr adapter=UsdImagingPrimAdapterSharedPtr())
void RemoveInstancer(SdfPath const &cachePath)
USDIMAGING_API void RequestTrackVariability(SdfPath const &cachePath)
USDIMAGING_API void MarkInstancerDirty(SdfPath const &cachePath, HdDirtyBits dirtyBits)
friend class UsdImagingIndexProxy
void RemoveRprim(SdfPath const &cachePath)
USDIMAGING_API UsdImagingPrimAdapterSharedPtr GetMaterialAdapter(UsdPrim const &materialPrim)
USDIMAGING_API void InsertBprim(TfToken const &primType, SdfPath const &cachePath, UsdPrim const &usdPrim, UsdImagingPrimAdapterSharedPtr adapter=UsdImagingPrimAdapterSharedPtr())
USDIMAGING_API bool IsRprimTypeSupported(TfToken const &typeId) const
USDIMAGING_API void RequestUpdateForTime(SdfPath const &cachePath)
USDIMAGING_API void AddDependency(SdfPath const &cachePath, UsdPrim const &usdPrim)
USDIMAGING_API void MarkRprimDirty(SdfPath const &cachePath, HdDirtyBits dirtyBits)
std::vector< class SdfPath > SdfPathVector
A vector of SdfPaths.
void RemoveBprim(TfToken const &primType, SdfPath const &cachePath)
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
void RemoveSprim(TfToken const &primType, SdfPath const &cachePath)
USDIMAGING_API bool IsPopulated(SdfPath const &cachePath) const
USDIMAGING_API void RemovePrimInfoDependency(SdfPath const &cachePath)
#define PXR_NAMESPACE_CLOSE_SCOPE
std::shared_ptr< UsdImagingPrimAdapter > UsdImagingPrimAdapterSharedPtr
USDIMAGING_API void InsertRprim(TfToken const &primType, SdfPath const &cachePath, UsdPrim const &usdPrim, UsdImagingPrimAdapterSharedPtr adapter=UsdImagingPrimAdapterSharedPtr())
USDIMAGING_API void MarkSprimDirty(SdfPath const &cachePath, HdDirtyBits dirtyBits)
USDIMAGING_API void MarkBprimDirty(SdfPath const &cachePath, HdDirtyBits dirtyBits)
USDIMAGING_API void InsertInstancer(SdfPath const &cachePath, UsdPrim const &usdPrim, UsdImagingPrimAdapterSharedPtr adapter=UsdImagingPrimAdapterSharedPtr())
USDIMAGING_API void Repopulate(SdfPath const &usdPath)
USDIMAGING_API bool IsBprimTypeSupported(TfToken const &typeId) const