ViewportState
megane-viewer / ViewportState
Interface: ViewportState
Defined in: pipeline/types.ts:714
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:716
cellAxesVisible
cellAxesVisible:
boolean
Defined in: pipeline/types.ts:723
cells
cells:
CellData[]
Defined in: pipeline/types.ts:717
labels
labels:
LabelData[]
Defined in: pipeline/types.ts:719
meshes
meshes:
MeshData[]
Defined in: pipeline/types.ts:720
particles
particles:
ParticleData[]
Defined in: pipeline/types.ts:715
perspective
perspective:
boolean
Defined in: pipeline/types.ts:722
pivotMarkerVisible
pivotMarkerVisible:
boolean
Defined in: pipeline/types.ts:724
representationByAtom
representationByAtom:
RepresentationMode[] |null
Defined in: pipeline/types.ts:735
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:725
trajectories
trajectories:
TrajectoryData[]
Defined in: pipeline/types.ts:718
vectors
vectors:
VectorData[]
Defined in: pipeline/types.ts:721