Loading...
Searching...
No Matches
HdConcatenatedVectorDataSource Class Reference

Lazily composes two or more vector data source by concatenating all the elements (in the order in which the vector data sources are listed). More...

#include <concatenatedVectorDataSource.h>

+ Inheritance diagram for HdConcatenatedVectorDataSource:

Public Member Functions

 HD_DECLARE_DATASOURCE (HdConcatenatedVectorDataSource)
 
 HD_DECLARE_DATASOURCE_INITIALIZER_LIST_NEW (HdConcatenatedVectorDataSource, HdVectorDataSourceHandle)
 
HD_API size_t GetNumElements () override
 Return the number of elements in this datasource.
 
HD_API HdDataSourceBaseHandle GetElement (size_t i) override
 Return the element at position element in this datasource.
 
- Public Member Functions inherited from HdVectorDataSource
 HD_DECLARE_DATASOURCE_ABSTRACT (HdVectorDataSource)
 
- Public Member Functions inherited from HdDataSourceBase

Static Public Member Functions

static HD_API HdVectorDataSourceHandle ConcatenatedVectorDataSources (const HdVectorDataSourceHandle &src1, const HdVectorDataSourceHandle &src2)
 Creates HdConcatenatedVectorDataSource from sources, but only if needed.
 

Detailed Description

Lazily composes two or more vector data source by concatenating all the elements (in the order in which the vector data sources are listed).

Definition at line 18 of file concatenatedVectorDataSource.h.

Member Function Documentation

◆ ConcatenatedVectorDataSources()

static HD_API HdVectorDataSourceHandle ConcatenatedVectorDataSources ( const HdVectorDataSourceHandle & src1,
const HdVectorDataSourceHandle & src2 )
static

Creates HdConcatenatedVectorDataSource from sources, but only if needed.

If one of given handles is null, the other handle is returned instead.

◆ GetElement()

HD_API HdDataSourceBaseHandle GetElement ( size_t element)
overridevirtual

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.

Implements HdVectorDataSource.

◆ GetNumElements()

HD_API size_t GetNumElements ( )
overridevirtual

Return the number of elements in this datasource.

This call is expected to be threadsafe.

Implements HdVectorDataSource.


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