Skip to main content

ViewportNode

megane-viewer


megane-viewer / ViewportNode

Class: ViewportNode

Defined in: pipeline/builder.ts:411

3D rendering output node. All data to be rendered must be connected here.

Ports: inp.particle — atom data inp.bond — bond data inp.cell — simulation cell inp.traj — trajectory channel inp.label — text labels inp.mesh — polyhedra mesh inp.vector — vector field

Extends

  • PipelineNode

Constructors

Constructor

new ViewportNode(__namedParameters?): Viewport

Defined in: pipeline/builder.ts:428

Parameters

__namedParameters?
cellAxesVisible?

boolean = true

perspective?

boolean = false

pivotMarkerVisible?

boolean = true

Returns

Viewport

Overrides

PipelineNode.constructor

Properties

_id

_id: string | null = null

Defined in: pipeline/builder.ts:83

Inherited from

PipelineNode._id


_inpPorts

protected readonly _inpPorts: object

Defined in: pipeline/builder.ts:414

bond

bond: string = "bond"

cell

cell: string = "cell"

label

label: string = "label"

mesh

mesh: string = "mesh"

particle

particle: string = "particle"

traj

traj: string = "trajectory"

vector

vector: string = "vector"

Overrides

PipelineNode._inpPorts


_outPorts

protected readonly _outPorts: Record<string, string> = {}

Defined in: pipeline/builder.ts:413

Overrides

PipelineNode._outPorts


cellAxesVisible

cellAxesVisible: boolean

Defined in: pipeline/builder.ts:425


nodeType

readonly nodeType: "viewport" = "viewport"

Defined in: pipeline/builder.ts:412

Overrides

PipelineNode.nodeType


perspective

perspective: boolean

Defined in: pipeline/builder.ts:424


pivotMarkerVisible

pivotMarkerVisible: boolean

Defined in: pipeline/builder.ts:426

Accessors

inp

Get Signature

get inp(): PortAccessor

Defined in: pipeline/builder.ts:91

Input port namespace. Access ports via node.inp.portName

Returns

PortAccessor

Inherited from

PipelineNode.inp


out

Get Signature

get out(): PortAccessor

Defined in: pipeline/builder.ts:86

Output port namespace. Access ports via node.out.portName

Returns

PortAccessor

Inherited from

PipelineNode.out

Methods

_toSerializedParams()

_toSerializedParams(): object

Defined in: pipeline/builder.ts:443

Serialize node parameters to the SerializedPipeline v3 node dict.

Returns

object

cellAxesVisible

cellAxesVisible: boolean

perspective

perspective: boolean

pivotMarkerVisible

pivotMarkerVisible: boolean

type

type: string

Overrides

PipelineNode._toSerializedParams