the structure object
the viewer object
parameters object
Set representation parameters
structure parameter object
this object
Set representation parameters
selection string, see {@tutorial selection-language}
this object
Set the visibility of the representation
visibility flag
this object
Generated using TypeDoc
Axes representation. Show principal axes and/or a box aligned with them that fits the structure or selection.
Name: axes
stage.loadFile( "rcsb://3pqr", { assembly: "BU1" } ).then( function( o ){ o.addRepresentation( "cartoon" ); o.addRepresentation( "axes", { sele: "RET", showAxes: false, showBox: true, radius: 0.2 } ); o.addRepresentation( "ball+stick", { sele: "RET" } ); o.addRepresentation( "axes", { sele: ":B and backbone", showAxes: false, showBox: true, radius: 0.2 } ); stage.autoView(); var pa = o.structure.getPrincipalAxes(); stage.animationControls.rotate( pa.getRotationQuaternion(), 1500 ); } );