Viewer - Attribute Visualization
    Preparing search index...

    Interface IAttributeVisualizationEngine

    interface IAttributeVisualizationEngine {
        defaultMaterial: IMaterialAbstractData;
        layers: { [key: string]: ILayer };
        overview: ISDTFOverview;
        addListener(cb: () => void): string;
        removeListener(token: string): boolean;
        updateAttributes(attributes: IAttribute[]): void;
        updateDefaultMaterial(material: IMaterialAbstractData): void;
        updateLayers(layers: { [key: string]: ILayer }): void;
    }

    Implemented by

    Index

    Properties

    defaultMaterial: IMaterialAbstractData
    layers: { [key: string]: ILayer }
    overview: ISDTFOverview

    Methods

    • Add a listener that will be called whenever there was an update to the attributes. Use this listener to update your menu.

      Parameters

      • cb: () => void

      Returns string

    • Remove a listener.

      Parameters

      • token: string

      Returns boolean

    • Update the attributes that are used to visualize the geometry. If an object is present in multiple of the attributes, only the first one will be used.

      Parameters

      Returns void

    • Update the default material that is used to visualize objects without attributes.

      Parameters

      • material: IMaterialAbstractData

      Returns void

    • Update the layers, the opacity is multiplied with the attribute visualization opacity.

      Parameters

      • layers: { [key: string]: ILayer }

      Returns void