HDK
|
#include <flattenedOverlayDataSourceProvider.h>
Public Member Functions | |
HD_API HdContainerDataSourceHandle | GetFlattenedDataSource (const Context &) const override |
Returns flattened data source. More... | |
HD_API void | ComputeDirtyLocatorsForDescendants (HdDataSourceLocatorSet *locators) const override |
Flattens a data source by using HdOverlayContainerDataSource.
Definition at line 37 of file flattenedOverlayDataSourceProvider.h.
|
overridevirtual |
If data source locators are dirtied in the input scene index, the locators relevant for the input data source serving this provider are extracted and made relative to the input data source.
They are later used to invalidate the flattened data source of the dirtied prim and its descendants and send prim dirtied messages to the descendants.
Example: If a prim dirtied for locator xform:matrix was received, the flattening scene index will call the flattened data source provider for xform. The locators given to ComputeDirtyLocatorsForDescendants will be { matrix }. If ComputeDirtyLocatorsForDescendants sets it to the universal set, the flatening scene index will emit a prim dirtied locator xform for the descendants.
The implementation of ComputeDirtyLocatorsForDescendants gives a chance to drop locators or expand the locator set in between.
Note that ComputeDirtyLocatorsForDescendants will never be called with the empty or universal set as these cases are already handled by the callee.
Implements HdFlattenedDataSourceProvider.
|
overridevirtual |
Returns flattened data source.
Implements HdFlattenedDataSourceProvider.