NTNMLModelLODTreeLayer


@interface NTNMLModelLODTreeLayer : NTLayer

An advanced layer for 3D models that supports automatic Level of Detail (LOD) calculation based on view. Should be used together with corresponding data source.

  • Constructs a NMLModelLODTreeLayer object from a data source.

    Declaration

    Objective-C

    - (id)initWithDataSource:(NTNMLModelLODTreeDataSource *)dataSource;

    Parameters

    dataSource

    The data source from which this layer loads data.

  • Returns the data source of this layer.

    Declaration

    Objective-C

    - (NTNMLModelLODTreeDataSource *)getDataSource;

    Return Value

    The data source that was bound to this vector layer on construction.

  • Returns memory usage constraints for the layer.

    Declaration

    Objective-C

    - (unsigned long)getMaxMemorySize;

    Return Value

    The memory usage constraints for the layer.

  • Set memory usage constraints for the layer. The specified limit is not exact, but should be relatively close to the actual memory usage of the layer. If specific view requires more data than specified limit, then lower LOD levels of the models are used. The default is 80MB.

    Declaration

    Objective-C

    - (void)setMaxMemorySize:(unsigned long)size;

    Parameters

    size

    The memory limit in bytes.

  • Returns relative model LOD resolution.

    Declaration

    Objective-C

    - (float)getLODResolutionFactor;

    Return Value

    The relative model LOD resolution.

  • Set relative model LOD resolution. Higher values than 1 result in higher details (but slower performance and higher memory usage), while lower values give better performance but lower quality. The default is 1.

    Declaration

    Objective-C

    - (void)setLODResolutionFactor:(float)factor;

    Parameters

    factor

    The relative LOD resolution factor.

  • Returns the NML model event listener.

    Declaration

    Objective-C

    - (NTNMLModelLODTreeEventListener *)getNMLModelLODTreeEventListener;

    Return Value

    The NML model event listener.

  • Sets the NML model event listener.

    Declaration

    Objective-C

    - (void)setNMLModelLODTreeEventListener:
        (NTNMLModelLODTreeEventListener *)nmlModelLODTreeEventListener;

    Parameters

    nmlModelLODTreeEventListener

    The vector element event listener.

  • Undocumented

    Declaration

    Objective-C

    - (BOOL)isUpdateInProgress;
  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;