GeoPathReaderGeneric

Description

sealed class Tinman.Engine.Scenes.Data.GeoPathReaderGeneric
<TSample val>
<TTrait val : IGeoPathSampleTrait<TSample>>

Derived from

Disposable abstract
IGeoPathReaderGeneric<TSample>

Default implementation of the IGeoPathReaderGeneric interface.

Use Wrap to create a geo path reader for a specific geo path sample type.

Public / Methods

Wrap


[OwnerReturn]
public static method Wrap → (1)

reader in : IGeoPathReader own

[not-null]
The reader to wrap.

returns → IGeoPathReaderGeneric<TSample>

The wrapping IGeoPathSampleTrait.

Creates a new instance of IGeoPathReaderGeneric that wraps the given reader in and reads geo path samples of the specified type.

This method uses GeoPathComponentId.For3 to obtain the list of geo path component identifiers of the given geo path sample type and then calls IGeoPathReader.Component for each one, to register them.