HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HdFlattenedOverlayDataSourceProvider Class Reference

#include <flattenedOverlayDataSourceProvider.h>

+ Inheritance diagram for HdFlattenedOverlayDataSourceProvider:

Public Member Functions

HD_API HdContainerDataSourceHandle GetFlattenedDataSource (const Context &) const override
 Returns flattened data source. More...
 
HD_API void ComputeDirtyLocatorsForDescendants (HdDataSourceLocatorSet *locators) const override
 

Detailed Description

Flattens a data source by using HdOverlayContainerDataSource.

Definition at line 37 of file flattenedOverlayDataSourceProvider.h.

Member Function Documentation

HD_API void HdFlattenedOverlayDataSourceProvider::ComputeDirtyLocatorsForDescendants ( HdDataSourceLocatorSet locators) const
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.

HD_API HdContainerDataSourceHandle HdFlattenedOverlayDataSourceProvider::GetFlattenedDataSource ( const Context ctx) const
overridevirtual

Returns flattened data source.

Implements HdFlattenedDataSourceProvider.


The documentation for this class was generated from the following file: