ViewportState
megane-viewer / ViewportState
Interface: ViewportState
Defined in: pipeline/types.ts:1131
The collected data for rendering, produced by ViewportNode.
representationMode is computed from incoming particle streams: the first
non-null representationOverride (in stream order) wins; otherwise it
defaults to "atoms". The Viewport node itself no longer owns this setting
— it lives on the dedicated Representation node.
Properties
bonds
bonds:
BondData[]
Defined in: pipeline/types.ts:1133
cellAxesVisible
cellAxesVisible:
boolean
Defined in: pipeline/types.ts:1140
cells
cells:
CellData[]
Defined in: pipeline/types.ts:1134
labels
labels:
LabelData[]
Defined in: pipeline/types.ts:1136
meshes
meshes:
MeshData[]
Defined in: pipeline/types.ts:1137
particles
particles:
ParticleData[]
Defined in: pipeline/types.ts:1132
perspective
perspective:
boolean
Defined in: pipeline/types.ts:1139
pivotMarkerVisible
pivotMarkerVisible:
boolean
Defined in: pipeline/types.ts:1141
representationByAtom
representationByAtom:
RepresentationMode[] |null
Defined in: pipeline/types.ts:1152
Per-atom representation for the primary structure, length === nAtoms.
null when every atom shares representationMode (the common case — keeps
the global fast path). Populated only when disjoint particle branches ask
for different representations (e.g. "show the water as lines while the
rest stays ball-and-stick"). The renderer applies the global mesh mode
(representationMode) to the non-"line" atoms and draws the "line"
atoms with the line renderer.
representationMode
representationMode:
RepresentationMode
Defined in: pipeline/types.ts:1142
trajectories
trajectories:
TrajectoryData[]
Defined in: pipeline/types.ts:1135
vectors
vectors:
VectorData[]
Defined in: pipeline/types.ts:1138