Skip to content

API / geotoolkit3d / util / Texture / Texture

Class: Texture

util.Texture.Texture

Utility class providing texture examples for 3D objects.<br> Texture source images are represented in data URI.

Table of contents

Constructors
  • [new Texture()](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit3d.util-5.texture.texture.md#new texture())
Accessors
Methods

Contents

Constructors

new Texture()

• new Texture()

Accessors

ball

• Static get ball(): SymbolTexture

A ball symbol, imitating a 3D effect.

Returns

SymbolTexture


circle

• Static get circle(): SymbolTexture

A circle symbol, with bright light and imitating a 3D effect.

Returns

SymbolTexture


cube

• Static get cube(): SymbolTexture

A cube symbol, imitating a 3D effect.

Returns

SymbolTexture


soliddot

• Static get soliddot(): SymbolTexture

A circle symbol, with solid fill color and no 3D effect.

Returns

SymbolTexture


sphere

• Static get sphere(): SymbolTexture

A sphere symbol, with dark color, imitating a 3D effect.

Returns

SymbolTexture


square

• Static get square(): SymbolTexture

A square symbol.

Returns

SymbolTexture


triangle

• Static get triangle(): SymbolTexture

A triangle symbol.

Returns

SymbolTexture

Methods

getClassName

▸ getClassName(): string

Returns

string


ballLoader

▸ Static ballLoader(onLoad?, onProgress?, onError?): SymbolTexture

A ball symbol loader

Parameters

Name Type Description
Optional onLoadLoadCallbackonLoad callback
Optional onProgressProgressCallbackonProgress callback
Optional onErrorErrorCallbackonError callback

Returns

SymbolTexture


circleLoader

▸ Static circleLoader(onLoad?, onProgress?, onError?): SymbolTexture

A circle symbol loader

Parameters

Name Type Description
Optional onLoadLoadCallbackonLoad callback
Optional onProgressProgressCallbackonProgress callback
Optional onErrorErrorCallbackonError callback

Returns

SymbolTexture


cubeLoader

▸ Static cubeLoader(onLoad?, onProgress?, onError?): SymbolTexture

A cube symbol loader

Parameters

Name Type Description
Optional onLoadLoadCallbackonLoad callback
Optional onProgressProgressCallbackonProgress callback
Optional onErrorErrorCallbackonError callback

Returns

SymbolTexture


getClassName

▸ Static getClassName(): string

Returns

string


loadTexture

▸ Static loadTexture(symbol, onLoad?, onProgress?, onError?): SymbolTexture

Helper method to get the appropriate symbol loader based on the given symbol name. The returned texture is an empty texture at first, but will be updated once loaded asynchronously. "onLoad" callback will be fired once the texture has been loaded.

Parameters

Name Type
symbolSymbol2DNames
Optional onLoadLoadCallback
Optional onProgressProgressCallback
Optional onErrorErrorCallback

Returns

SymbolTexture


soliddotLoader

▸ Static soliddotLoader(onLoad?, onProgress?, onError?): SymbolTexture

A soliddot symbol loader

Parameters

Name Type Description
Optional onLoadLoadCallbackonLoad callback
Optional onProgressProgressCallbackonProgress callback
Optional onErrorErrorCallbackonError callback

Returns

SymbolTexture


sphereLoader

▸ Static sphereLoader(onLoad?, onProgress?, onError?): SymbolTexture

A sphere symbol loader

Parameters

Name Type Description
Optional onLoadLoadCallbackonLoad callback
Optional onProgressProgressCallbackonProgress callback
Optional onErrorErrorCallbackonError callback

Returns

SymbolTexture


squareLoader

▸ Static squareLoader(onLoad?, onProgress?, onError?): SymbolTexture

A square symbol loader

Parameters

Name Type Description
Optional onLoadLoadCallbackonLoad callback
Optional onProgressProgressCallbackonProgress callback
Optional onErrorErrorCallbackonError callback

Returns

SymbolTexture


triangleLoader

▸ Static triangleLoader(onLoad?, onProgress?, onError?): SymbolTexture

A triangle symbol loader

Parameters

Name Type Description
Optional onLoadLoadCallbackonLoad callback
Optional onProgressProgressCallbackonProgress callback
Optional onErrorErrorCallbackonError callback

Returns

SymbolTexture