Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RenderableSeriesSceneEntity<TRenderableSeries, TEntityState, TNativeEntity>

Go to JavaScript Charting Documentation
Go to JavaScript Chart Examples
Go to SciChart.js on Github
summary

Defines a special BaseSceneEntity3D type which hosts the entity for a RenderableSeries, or chart type in SciChart's High Performance JavaScript 3D Charts

Type parameters

Hierarchy

Implements

Index

Constructors

Protected constructor

Properties

Readonly children

summary

Gets the collection of IBaseSceneEntity - child entities or 3D Objects which belong to this entity.

description

A SciChart3DSurface has a SciChart3DSurface.rootEntity property. You can add BaseSceneEntity3D to this property, and each entity can have a collection of child entities.

Use grouping to control visibility of many entities at once, or to create more complex scenes.

remarks

Adding a BaseSceneEntity3D to the children collection will cause the 3D Scene to be redrawn.

Protected currentRenderPassData

currentRenderPassData: RenderPassInfo3D

The RenderPassInfo3D containing data about the current rendering pass

Readonly id

id: string = generateGuid()

A unique Id for the IBaseSceneEntity

isVisible

isVisible: boolean = true

When true, the entity and all its children are visible

parent

Gets the parent Entity

Protected parentSeries

parentSeries: TRenderableSeries

Readonly rootSceneEntity

rootSceneEntity: RootSceneEntity
inheritdoc

Protected state

state: TEntityState

Readonly Abstract type

Gets the type of Scene Entity. See ESceneEntityType for a list of values

Protected webAssemblyContext

webAssemblyContext: TSciChart3D

The SciChart 3D WebAssembly Context containing native methods and access to our WebGL2 Engine and WebAssembly numerical methods

Accessors

entityId

  • get entityId(): number
  • set entityId(value: number): void
  • Gets or sets a unique Id for the IBaseSceneEntity. The SciChart3D engine requires Ids fit into UInt32 (4 billion)

    inheritdoc

    Returns number

  • Gets or sets a unique Id for the IBaseSceneEntity. The SciChart3D engine requires Ids fit into UInt32 (4 billion)

    inheritdoc

    Parameters

    • value: number

    Returns void

entityIdProvider

nativeEntity

  • get nativeEntity(): TNativeEntity
  • Gets the native SCRTSceneEntity - a WebAssembly 3D Scene Entity type which is passed to our WebGL WebAssembly 3D Engine

    inheritdoc

    Returns TNativeEntity

Protected world

  • get world(): SCRTSceneWorld
  • Called internally - gets the world entity

    Returns SCRTSceneWorld

Methods

Render

  • Render(): void
  • Render method called from WebAssembly engine. Use this to do immediate-mode 3D drawing, or to draw created meshes When overriding, you must call super.Update() for the object to draw in the scene

    Returns void

Update

  • Update(deltaTime: number): void
  • Update method called from WebAssembly engine. Use this to update meshes, properties, geometry before draw. When overriding, you must call super.Update() for the object to draw in the scene

    Parameters

    • deltaTime: number

    Returns void

Protected attachChild

  • Called internally - Attach a child to the current entity

    Parameters

    Returns void

delete

  • delete(): void
  • Deletes native (WebAssembly) memory used by this type, after which it cannot be used.

    remarks

    Call .delete() before finishing with the object to ensure that WebAssmembly memory leaks do not occur.

    All elements within SciChart's High Performance Realtime JavaScript Charts which implement IDeletable must be deleted manually to free native (WebAssembly) memory

    Returns void

Protected detachChild

  • Called internally - detach a child from the current entity

    Parameters

    Returns void

getEntity

getRoot

Abstract hitTest

  • Performs a HitTest operation on the entity, returning the HitTestInfo3D containing the result. This contains information about the hit-test operation such as the index of the data-point under the mouse, and may be used for tooltips, selection or inspection of the 3d scene through mouse-clicks

    Parameters

    • screenPoint: Point

      The screen point (X,Y pixel coordinate in 2D space)

    Returns HitTestInfo3D

Protected hitTestXyz

  • Parameters

    Returns HitTestInfo3D

invalidateScene

  • invalidateScene(): void
  • Call this to inform SciChart that data or properties have changed and the 3D Scene must be redrawn

    Returns void

notifySeriesPropertyChanged

  • notifySeriesPropertyChanged(propertyName: string): void

onAttached

  • onAttached(): void

onDetached

  • onDetached(): void

onDpiChanged

onEngineRestart

  • onEngineRestart(): void

Protected setNativeEntity

  • setNativeEntity(entity: TNativeEntity): void
  • Called internally - sets the native entity

    Parameters

    • entity: TNativeEntity

    Returns void

setRenderPassData

Protected Abstract updateSeries

  • updateSeries(): void
  • When overriden in derived classes, this method is called when the series entity must be updated before drawing.

    Returns void

visitEntities

Generated using TypeDoc