[API](/solutions/geotoolkit/geotoolkit_js/apis/readme) / [geotoolkit3d](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit3d) / [scene](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit3d.scene-3) / [well](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit3d.scene-3#well) / [schematic](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit3d.scene-3#schematic) / [Sphere](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit3d.scene-3#sphere) / Sphere

# Class: Sphere

[schematic](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit3d.scene-3#schematic).[Sphere](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit3d.scene-3#sphere).Sphere

Creates a Sphere three.js.

## Hierarchy

- [`SchematicBase`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase)
↳ **`Sphere`**


## Table of contents

Constructors
- [new Sphere(options)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere.md#new sphere(options))


Methods
| [add](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere#add) | [afterRender](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere#afterrender) | [beforeRender](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere#beforerender) |
|  --- | --- | --- |
| [dispose](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere#dispose) | [getAnnotation](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere#getannotation) | [getBoundingBox](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere#getboundingbox) |
| [getClassName](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere#getclassname) | [getGeometry](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere#getgeometry) | [getMaterial](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere#getmaterial) |
| [getOptions](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere#getoptions) | [getVisible](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere#getvisible) | [invalidateObject](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere#invalidateobject) |
| [isDisposed](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere#isdisposed) | [isSelectable](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere#isselectable) | [notify](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere#notify) |
| [off](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere#off) | [on](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere#on) | [onStatsUpdated](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere#onstatsupdated) |
| [onVisibilityChanged](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere#onvisibilitychanged) | [remove](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere#remove) | [setAnnotation](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere#setannotation) |
| [setOptions](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere#setoptions) | [setPosition](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere#setposition) | [setRotation](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere#setrotation) |
| [setSelectable](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere#setselectable) | [setVisible](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere#setvisible) | [updateObject](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere#updateobject) |
| [useOwnHighlight](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere#useownhighlight) | [getClassName](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere#getclassname-1) | [register](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere#register) |


## Contents

Constructors
#### new Sphere(options)

• **new Sphere**(`options`)

#### Parameters

| Name  | Type  |
|  --- | --- |
| `options` | [`OptionsBase`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit3d.scene-3#sphere#optionsbase) |


#### Overrides

SchematicBase.constructor

Methods
#### add

▸ **add**(`object`): [`Sphere`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere)

Adds object as child of this object.

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `object` | `Object3D`<`Object3DEventMap`&gt; | `Object3D`<`Object3DEventMap`&gt;[] | object |


#### Returns

[`Sphere`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere)

this

#### Inherited from

[SchematicBase](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase).[add](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase#add)

#### afterRender

▸ **afterRender**(`scene`, `camera`, `plot`, `renderer`): [`Sphere`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere)

This function is called after rendering and can update this object's content.<br>
<br>
It should not trigger any invalidateObject though.<br>
Note that it is not necessary nor recommended to explicitly call afterRender on this object's children as beforeRender will be called on all nodes present in the scene.<br>
<br>
This will be executed after the transformations simplification.<br>
<br>

**`See`**

[Plot](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.plot.plot) for more details on the render steps

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `scene` | `Scene` | The scene |
| `camera` | `Camera` | The camera used for this render phase. |
| `plot` | [`Plot`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.plot.plot) | The 3D plot |
| `renderer` | `WebGLRenderer` | The renderer |


#### Returns

[`Sphere`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere)

#### Inherited from

[SchematicBase](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase).[afterRender](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase#afterrender)

#### beforeRender

▸ **beforeRender**(`scene`, `camera`, `plot`, `renderer`): [`Sphere`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere)

This function is called prior to rendering and can update this object's content.<br>
<br>
It should not trigger any invalidateObject though.<br>
Note that it is not necessary nor recommended to explicitly call beforeRender on this object's children as beforeRender will be called on all nodes present in the scene.<br>
<br>
This will be executed after the transformations simplification.<br>
<br>

**`See`**

[Plot](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.plot.plot) for more details on the render steps

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `scene` | `Scene` | The scene |
| `camera` | `Camera` | The camera used for this render phase. |
| `plot` | [`Plot`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.plot.plot) | The 3D plot |
| `renderer` | `WebGLRenderer` | The renderer |


#### Returns

[`Sphere`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere)

#### Inherited from

[SchematicBase](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase).[beforeRender](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase#beforerender)

#### dispose

▸ **dispose**(): `void`

Dispose object

#### Returns

`void`

#### Inherited from

[SchematicBase](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase).[dispose](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase#dispose)

#### getAnnotation

▸ **getAnnotation**(): [`AnnotationBase`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.annotationbase.annotationbase)

Get the current annotation holding title, icon, text...

#### Returns

[`AnnotationBase`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.annotationbase.annotationbase)

annotation

#### Inherited from

[SchematicBase](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase).[getAnnotation](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase#getannotation)

#### getBoundingBox

▸ **getBoundingBox**(): `Box3`

Returns the bounding box of the schematic.

#### Returns

`Box3`

#### Inherited from

[SchematicBase](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase).[getBoundingBox](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase#getboundingbox)

#### getClassName

▸ **getClassName**(): `string`

#### Returns

`string`

#### Inherited from

[SchematicBase](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase).[getClassName](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase#getclassname)

#### getGeometry

▸ **getGeometry**(): `SphereGeometry`

Returns the geometry of the schematic.

#### Returns

`SphereGeometry`

#### Overrides

[SchematicBase](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase).[getGeometry](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase#getgeometry)

#### getMaterial

▸ **getMaterial**(): `Material`

Return the material of the schematic being a material provided by the user ar creation or a created material
depending on the "fillstyle" option parameter at creation.

#### Returns

`Material`

#### Inherited from

[SchematicBase](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase).[getMaterial](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase#getmaterial)

#### getOptions

▸ **getOptions**(): [`OptionsBaseOut`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit3d.scene-3#sphere#optionsbaseout)

Get this Schematic Sphere options, font, color, etc...

#### Returns

[`OptionsBaseOut`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit3d.scene-3#sphere#optionsbaseout)

#### Overrides

[SchematicBase](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase).[getOptions](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase#getoptions)

#### getVisible

▸ **getVisible**(): `boolean`

Get visible

#### Returns

`boolean`

true, if object is visible

#### Inherited from

[SchematicBase](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase).[getVisible](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase#getvisible)

#### invalidateObject

▸ **invalidateObject**<`T`&gt;(`event?`): [`Sphere`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere)

Notifies this object and its parent that this object has been invalidated.<br>
If this object is in a Plot, it will be marked as dirty and will trigger a rendering cycle.<br>

#### Type parameters

| Name |
|  --- |
| `T` |


#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `Optional` `event` | [`Event`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.event.event)<`T`&gt; | The event to fire |


#### Returns

[`Sphere`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere)

#### Inherited from

[SchematicBase](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase).[invalidateObject](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase#invalidateobject)

#### isDisposed

▸ **isDisposed**(): `boolean`

Returns whether this object has been disposed

#### Returns

`boolean`

#### Inherited from

[SchematicBase](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase).[isDisposed](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase#isdisposed)

#### isSelectable

▸ **isSelectable**(): `boolean`

Return if this object can be picked/selected (see RendererPicking).<br>

#### Returns

`boolean`

#### Inherited from

[SchematicBase](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase).[isSelectable](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase#isselectable)

#### notify

▸ **notify**(`type`, `source`, `args?`): [`Sphere`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere)

* Notify listeners. Parent nodes will also be notified if they are instances of geotoolkit3d.scene.Object3D


#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `type` | `string` | event types |
| `source` | `any` | of the event |
| `Optional` `args` | `any` | arguments of the event |


#### Returns

[`Sphere`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere)

this

#### Inherited from

[SchematicBase](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase).[notify](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase#notify)

#### off

▸ **off**(`type?`, `callback?`): [`Sphere`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere)

Detach listener on event.
Calling .off() with no arguments removes all attached listeners.
Calling .off(type) with no callback removes all attached listeners for specific type.

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `Optional` `type` | `string` | type of the event |
| `Optional` `callback` | [`EventListener`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.util#eventdispatcher#eventlistener) | function to be called |


#### Returns

[`Sphere`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere)

this

#### Inherited from

[SchematicBase](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase).[off](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase#off)

▸ **off**<`E`&gt;(`type`, `callback`): [`Sphere`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere)

#### Type parameters

| Name | Type |
|  --- | --- |
| `E` | extends `string` |


#### Parameters

| Name  | Type  |
|  --- | --- |
| `type` | `E` |
| `callback` | (`eventType`: `E`, `sender`: [`Sphere`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere), `args`: [`EventMap`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit3d.scene-3#object3d#eventmap)[`E`]) => `void` |


#### Returns

[`Sphere`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere)

#### Inherited from

[SchematicBase](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase).[off](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase#off)

#### on

▸ **on**(`type`, `callback`, `options?`): [`Sphere`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere)

Attach listener on event that will be called whenever the specified event is delivered to the target
<p>
If the callback function is already in the list of event listeners for this target,
the function is not added a second time.
</p>
<p>
If a particular anonymous function is in the list of event listeners registered for a
certain target, and then later in the code, an identical anonymous function is given
in an "on" call, the second function will also be added to the list of
event listeners for that target.
</p>

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `type` | `string` | type of event or property |
| `callback` | [`EventListener`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.util#eventdispatcher#eventlistener) | to be called |
| `Optional` `options` | [`Options`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.util#eventdispatcher#options) | options of subscription |


#### Returns

[`Sphere`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere)

this

#### Inherited from

[SchematicBase](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase).[on](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase#on)

▸ **on**<`E`&gt;(`type`, `callback`, `options?`): [`Sphere`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere)

#### Type parameters

| Name | Type |
|  --- | --- |
| `E` | extends `string` |


#### Parameters

| Name  | Type  |
|  --- | --- |
| `type` | `E` |
| `callback` | (`eventType`: `E`, `sender`: [`Sphere`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere), `args`: [`EventMap`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit3d.scene-3#object3d#eventmap)[`E`]) => `void` |
| `Optional` `options` | [`Options`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.util#eventdispatcher#options) |


#### Returns

[`Sphere`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere)

#### Inherited from

[SchematicBase](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase).[on](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase#on)

#### onStatsUpdated

▸ **onStatsUpdated**(`metrics`): [`Sphere`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere)

This function is called when the plot has updated performance metric.<br>
It will be called every set number of frames.<br>
The number of frame is customizable in the plot options advancedrendering.performancemetrics.updateframeperiod and is 100 by default.

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `metrics` | [`PerformanceMetrics`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit3d.plot.plot#performancemetrics) | The performance metrics. |


#### Returns

[`Sphere`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere)

#### Inherited from

[SchematicBase](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase).[onStatsUpdated](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase#onstatsupdated)

#### onVisibilityChanged

▸ `Protected` **onVisibilityChanged**(): `void`

This method is called if visibility is changed.  Send event [Events.VisibilityChanged](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit3d.scene-3#object3d#events#visibilitychanged)

#### Returns

`void`

#### Inherited from

[SchematicBase](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase).[onVisibilityChanged](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase#onvisibilitychanged)

#### remove

▸ **remove**(`object`): [`Sphere`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere)

Removes object as child of this object.

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `object` | `Object3D`<`Object3DEventMap`&gt; | `Object3D`<`Object3DEventMap`&gt;[] | object |


#### Returns

[`Sphere`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere)

this

#### Inherited from

[SchematicBase](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase).[remove](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase#remove)

#### setAnnotation

▸ **setAnnotation**(`annotation`): [`Sphere`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere)

Set the current annotation holding title, icon, text...

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `annotation` | [`AnnotationBase`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.annotationbase.annotationbase) | annotation |


#### Returns

[`Sphere`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere)

this

#### Inherited from

[SchematicBase](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase).[setAnnotation](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase#setannotation)

#### setOptions

▸ **setOptions**(`options?`): [`Sphere`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere)

Set this Schematic Sphere options.

#### Parameters

| Name  | Type  |
|  --- | --- |
| `Optional` `options` | `Partial`<[`OptionsBase`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit3d.scene-3#sphere#optionsbase)&gt; |


#### Returns

[`Sphere`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere)

#### Overrides

[SchematicBase](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase).[setOptions](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase#setoptions)

#### setPosition

▸ **setPosition**(`position`): [`Sphere`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere)

Set Object's local position.

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `position` | `Object` | local position |
| `Optional` `position.x` | `number` | - 
 |
| `Optional` `position.y` | `number` | - 
 |
| `Optional` `position.z` | `number` | - 
 |


#### Returns

[`Sphere`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere)

this

#### Inherited from

[SchematicBase](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase).[setPosition](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase#setposition)

#### setRotation

▸ **setRotation**(`x`, `y`, `z`, `order?`): [`Sphere`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere)

Set Object's local rotation ([Euler angles](https://en.wikipedia.org/wiki/Euler_angles)), in radians.

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `x` | `number` | x angle |
| `y` | `number` | y angle |
| `z` | `number` | z angle |
| `Optional` `order` | `EulerOrder` | euler order |


#### Returns

[`Sphere`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere)

this

#### Inherited from

[SchematicBase](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase).[setRotation](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase#setrotation)

#### setSelectable

▸ **setSelectable**(`selectable`): `void`

Set if this object can be picked/selected (see RendererPicking).<br>

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `selectable` | `boolean` | if can be selected |


#### Returns

`void`

#### Inherited from

[SchematicBase](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase).[setSelectable](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase#setselectable)

#### setVisible

▸ **setVisible**(`visible`, `silent?`): [`Sphere`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere)

Set visible

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `visible` | `boolean` | true, if object is visible |
| `Optional` `silent` | `boolean` | true, if object shouldn't be invalidated |


#### Returns

[`Sphere`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere)

this

#### Inherited from

[SchematicBase](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase).[setVisible](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase#setvisible)

#### updateObject

▸ **updateObject**(`scene`, `camera`): [`Sphere`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere)

This function is called prior to rendering and can update this object's content.<br>
<br>
It should not trigger any invalidateObject though.<br>
Note that it is not necessary nor recommended to explicitly call updateObject on this object's children as updateObject will be called on all nodes present in the scene.<br>
<br>
This will be executed before the transformations simplification.<br>
<br>

**`See`**

[Plot](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.plot.plot) for more details on the render steps

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `scene` | `Scene` | The scene |
| `camera` | `Camera` | The camera |


#### Returns

[`Sphere`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.sphere.sphere)

#### Inherited from

[SchematicBase](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase).[updateObject](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase#updateobject)

#### useOwnHighlight

▸ **useOwnHighlight**(): `boolean`

Returns true if this object make its own highlight effect (like geotoolkit3d.scene.reservoir.hexahedral.ReservoirGrid)
This is to prevent unnecessary executions of the costly highlight passes.

#### Returns

`boolean`

#### Inherited from

[SchematicBase](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase).[useOwnHighlight](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase#useownhighlight)

#### getClassName

▸ `Static` **getClassName**(): `string`

#### Returns

`string`

#### Inherited from

[SchematicBase](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase).[getClassName](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase#getclassname-1)

#### register

▸ `Static` **register**(): `void`

Register object for special processing through a callback function<br>

**`Example`**

```ts
geotoolkit3d.util.ObjectProcessor.getDefaultInstance().registerObject(this.getClassName(), callback);
```

**`Deprecated`**

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

#### Returns

`void`

#### Inherited from

[SchematicBase](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase).[register](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.scene-3.well-1.schematic.schematicbase.schematicbase#register)