API / geotoolkit3d / util / Texture / Texture
Utility class providing texture examples for 3D objects.
Texture source images are represented in data URI.
Constructors
Methods
Accessors
• Static get ball(): SymbolTexture
A ball symbol, imitating a 3D effect.
• Static get circle(): SymbolTexture
A circle symbol, with bright light and imitating a 3D effect.
• Static get cube(): SymbolTexture
A cube symbol, imitating a 3D effect.
• Static get soliddot(): SymbolTexture
A circle symbol, with solid fill color and no 3D effect.
• Static get sphere(): SymbolTexture
A sphere symbol, with dark color, imitating a 3D effect.
• Static get square(): SymbolTexture
A square symbol.
• Static get triangle(): SymbolTexture
A triangle symbol.
Methods
▸ getClassName(): string
string
▸ Static ballLoader(onLoad?, onProgress?, onError?): SymbolTexture
A ball symbol loader
| Name | Type | Description |
|---|---|---|
Optional onLoad | LoadCallback | onLoad callback |
Optional onProgress | ProgressCallback | onProgress callback |
Optional onError | ErrorCallback | onError callback |
▸ Static circleLoader(onLoad?, onProgress?, onError?): SymbolTexture
A circle symbol loader
| Name | Type | Description |
|---|---|---|
Optional onLoad | LoadCallback | onLoad callback |
Optional onProgress | ProgressCallback | onProgress callback |
Optional onError | ErrorCallback | onError callback |
▸ Static cubeLoader(onLoad?, onProgress?, onError?): SymbolTexture
A cube symbol loader
| Name | Type | Description |
|---|---|---|
Optional onLoad | LoadCallback | onLoad callback |
Optional onProgress | ProgressCallback | onProgress callback |
Optional onError | ErrorCallback | onError callback |
▸ Static getClassName(): string
string
▸ 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.
| Name | Type |
|---|---|
symbol | Symbol2DNames |
Optional onLoad | LoadCallback |
Optional onProgress | ProgressCallback |
Optional onError | ErrorCallback |
▸ Static soliddotLoader(onLoad?, onProgress?, onError?): SymbolTexture
A soliddot symbol loader
| Name | Type | Description |
|---|---|---|
Optional onLoad | LoadCallback | onLoad callback |
Optional onProgress | ProgressCallback | onProgress callback |
Optional onError | ErrorCallback | onError callback |
▸ Static sphereLoader(onLoad?, onProgress?, onError?): SymbolTexture
A sphere symbol loader
| Name | Type | Description |
|---|---|---|
Optional onLoad | LoadCallback | onLoad callback |
Optional onProgress | ProgressCallback | onProgress callback |
Optional onError | ErrorCallback | onError callback |
▸ Static squareLoader(onLoad?, onProgress?, onError?): SymbolTexture
A square symbol loader
| Name | Type | Description |
|---|---|---|
Optional onLoad | LoadCallback | onLoad callback |
Optional onProgress | ProgressCallback | onProgress callback |
Optional onError | ErrorCallback | onError callback |
▸ Static triangleLoader(onLoad?, onProgress?, onError?): SymbolTexture
A triangle symbol loader
| Name | Type | Description |
|---|---|---|
Optional onLoad | LoadCallback | onLoad callback |
Optional onProgress | ProgressCallback | onProgress callback |
Optional onError | ErrorCallback | onError callback |