Last updated

API / geotoolkit3d / util / ObjectProcessor / ObjectProcessor

Class: ObjectProcessor

util.ObjectProcessor.ObjectProcessor

This utility class provides a way to bind objects with a callback function.
For example, if an object is selected, it will be processed through callback function if its namespace is in processor.

Deprecated

since 5.0, to allow custom object highlighting, please instead implement the interface geotoolkit3d/scene/ICustomHighlight.

Table of contents

Constructors
Methods

Contents

Constructors

new ObjectProcessor(name, options)

new ObjectProcessor(name?, options?)

Parameters

Name Type
Optional namestring
Optional optionsWarningOptions
Methods

getClassName

getClassName(): string

Returns

string


getName

getName(): string

Return name of provider

Returns

string


getProperties

getProperties(): Options

Return the properties of this processor

Returns

Options

properties


processObject

processObject(object): Object3D<Object3DEventMap> | Object3D<Object3DEventMap>[]

Return and process the object if it has been registered in the processor

Parameters

Name Type Description
objectObject3D<Object3DEventMap>the object to be processed

Returns

Object3D<Object3DEventMap> | Object3D<Object3DEventMap>[]

object


registerObject

registerObject(name, callback): ObjectProcessor

Register object with its class name, by binding it to a custom process callback.

Parameters

Name Type Description
namestringthe class name of object
callbackCallbackthe callback that binds with

Returns

ObjectProcessor

this


resetProcessor

resetProcessor(): ObjectProcessor

Reset the processor to default state

Returns

ObjectProcessor

this


setName

setName(name): ObjectProcessor

Set name

Parameters

Name Type Description
namestringname of the header provider

Returns

ObjectProcessor

this


getClassName

Static getClassName(): string

Returns

string


getDefaultInstance

Static getDefaultInstance(options?): ObjectProcessor

Return default instance of the ObjectProcessor

Parameters

Name Type
Optional optionsWarningOptions

Returns

ObjectProcessor

this