HDK
|
#include <dataSource.h>
Public Member Functions | |
HD_DECLARE_DATASOURCE_ABSTRACT (HdVectorDataSource) | |
virtual size_t | GetNumElements ()=0 |
virtual HdDataSourceBaseHandle | GetElement (size_t element)=0 |
Public Member Functions inherited from HdDataSourceBase | |
virtual HD_API | ~HdDataSourceBase ()=0 |
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.
|
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.
|
pure virtual |
Return the number of elements in this datasource. This call is expected to be threadsafe.
Implemented in HdRetainedSmallVectorDataSource.
HdVectorDataSource::HD_DECLARE_DATASOURCE_ABSTRACT | ( | HdVectorDataSource | ) |