Loading...
Searching...
No Matches
HdDataSourceLegacyPrim Class Reference

This is an HdContainerDataSource which represents a prim-level data source for adapting HdSceneDelegate calls into the forms defined by HdSchemas during emulation of legacy scene delegates. More...

#include <dataSourceLegacyPrim.h>

+ Inheritance diagram for HdDataSourceLegacyPrim:

Public Member Functions

 HD_DECLARE_DATASOURCE (HdDataSourceLegacyPrim)
 
TfTokenVector GetNames () override
 Returns the list of names for which Get(...) is expected to return a non-null value.
 
HdDataSourceBaseHandle Get (const TfToken &name) override
 Returns the child datasource of the given name.
 
void PrimDirtied (const HdDataSourceLocatorSet &locators)
 This clears internal cached values and is currently called only by HdLegacyPrimSceneIndex in response to its own DirtyPrims method.
 
- Public Member Functions inherited from HdContainerDataSource
 HD_DECLARE_DATASOURCE_ABSTRACT (HdContainerDataSource)
 
virtual TfTokenVector GetNames ()=0
 Returns the list of names for which Get(...) is expected to return a non-null value.
 
virtual HdDataSourceBaseHandle Get (const TfToken &name)=0
 Returns the child datasource of the given name.
 

Static Public Member Functions

static const HdDataSourceLocatorSetGetCachedLocators ()
 Return which locators PrimDirtied will respond to...
 
- Static Public Member Functions inherited from HdContainerDataSource
static HD_API HdDataSourceBaseHandle Get (const Handle &container, const HdDataSourceLocator &locator)
 A convenience function: given container, return the descendant identified by locator, which may be at any depth.
 

Protected Member Functions

 HdDataSourceLegacyPrim (const SdfPath &id, const TfToken &type, HdSceneDelegate *sceneDelegate)
 

Protected Attributes

SdfPath _id
 
TfToken _type
 
HdSceneDelegate_sceneDelegate
 

Detailed Description

This is an HdContainerDataSource which represents a prim-level data source for adapting HdSceneDelegate calls into the forms defined by HdSchemas during emulation of legacy scene delegates.

Definition at line 51 of file dataSourceLegacyPrim.h.

Member Function Documentation

◆ Get()

HdDataSourceBaseHandle Get ( const TfToken name)
overridevirtual

Returns the child datasource of the given name.

This call is expected to be threadsafe.

Implements HdContainerDataSource.

◆ GetCachedLocators()

static const HdDataSourceLocatorSet & GetCachedLocators ( )
static

Return which locators PrimDirtied will respond to...

◆ GetNames()

TfTokenVector GetNames ( )
overridevirtual

Returns the list of names for which Get(...) is expected to return a non-null value.

This call is expected to be threadsafe.

Implements HdContainerDataSource.

◆ PrimDirtied()

void PrimDirtied ( const HdDataSourceLocatorSet locators)

This clears internal cached values and is currently called only by HdLegacyPrimSceneIndex in response to its own DirtyPrims method.

Member Data Documentation

◆ _id

SdfPath _id
protected

Definition at line 96 of file dataSourceLegacyPrim.h.

◆ _sceneDelegate

HdSceneDelegate* _sceneDelegate
protected

Definition at line 98 of file dataSourceLegacyPrim.h.

◆ _type

TfToken _type
protected

Definition at line 97 of file dataSourceLegacyPrim.h.


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