HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HdVectorDataSource Class Referenceabstract

#include <dataSource.h>

+ Inheritance diagram for HdVectorDataSource:

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
 

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

virtual HdDataSourceBaseHandle HdVectorDataSource::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.

virtual size_t HdVectorDataSource::GetNumElements ( )
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  )

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