Loading...
Searching...
No Matches
HdVectorDataSource Class Referenceabstract

A datasource representing indexed data. More...

#include <dataSource.h>

+ Inheritance diagram for HdVectorDataSource:

Public Member Functions

 HD_DECLARE_DATASOURCE_ABSTRACT (HdVectorDataSource)
 
virtual size_t GetNumElements ()=0
 Return the number of elements in this datasource.
 
virtual HdDataSourceBaseHandle GetElement (size_t element)=0
 Return the element at position element in this datasource.
 

Detailed Description

A datasource representing indexed data.

This should be used when a scene index is expected to manipulate the indexing; for array-valued data, a HdSampledDataSource can be used instead. Note that implementations are responsible for providing cache invalidation, if necessary.

Definition at line 147 of file dataSource.h.

Member Function Documentation

◆ GetElement()

virtual HdDataSourceBaseHandle GetElement ( size_t  element)
pure virtual

Return the element at position element in this datasource.

This is expected to return non-null for the range [0, numElements). This call is expected to be threadsafe.

Implemented in HdRetainedSmallVectorDataSource.

◆ GetNumElements()

virtual size_t GetNumElements ( )
pure virtual

Return the number of elements in this datasource.

This call is expected to be threadsafe.

Implemented in HdRetainedSmallVectorDataSource.


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