Skip to main content

ViewportNode

megane-viewer


megane-viewer / ViewportNode

Class: ViewportNode

Defined in: pipeline/builder.ts:927

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:944

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:102

Inherited from​

PipelineNode._id


_inpPorts​

protected readonly _inpPorts: object

Defined in: pipeline/builder.ts:930

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:929

Overrides​

PipelineNode._outPorts


cellAxesVisible​

cellAxesVisible: boolean

Defined in: pipeline/builder.ts:941


nodeType​

readonly nodeType: "viewport" = "viewport"

Defined in: pipeline/builder.ts:928

Overrides​

PipelineNode.nodeType


perspective​

perspective: boolean

Defined in: pipeline/builder.ts:940


pivotMarkerVisible​

pivotMarkerVisible: boolean

Defined in: pipeline/builder.ts:942

Accessors​

inp​

Get Signature​

get inp(): PortAccessor

Defined in: pipeline/builder.ts:110

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:105

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

Returns​

PortAccessor

Inherited from​

PipelineNode.out

Methods​

_toSerializedParams()​

_toSerializedParams(): object

Defined in: pipeline/builder.ts:959

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