Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AxesRepresentation

Axes representation. Show principal axes and/or a box aligned with them that fits the structure or selection.

Name: axes

example

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 ); } );

Hierarchy

Index

Constructors

constructor

Accessors

defaultScale

  • get defaultScale(): object

Methods

attach

  • attach(callback: any): void

build

  • build(updateWhat: any): void

clear

  • clear(): void

create

  • create(): void

createData

  • createData(): void

dispose

  • dispose(): void

getAssembly

  • getAssembly(): any

getAtomParams

  • getAtomParams(what: any, params: any): any

getAtomRadius

  • getAtomRadius(atom: any): number

getAxesData

  • getAxesData(sview: any): object
  • Parameters

    • sview: any

    Returns object

    • edge: object
      • color: number[] | Uint8Array | Int8Array | Int16Array | Int32Array | Uint16Array | Uint32Array | Float32Array | Uint8ClampedArray | Float64Array
      • color2: number[] | Uint8Array | Int8Array | Int16Array | Int32Array | Uint16Array | Uint32Array | Float32Array | Uint8ClampedArray | Float64Array
      • picking: AxesPicker
      • position1: Float32Array
      • position2: Float32Array
      • radius: number[] | Uint8Array | Int8Array | Int16Array | Int32Array | Uint16Array | Uint32Array | Float32Array | Uint8ClampedArray | Float64Array
    • vertex: object
      • color: number[] | Uint8Array | Int8Array | Int16Array | Int32Array | Uint16Array | Uint32Array | Float32Array | Uint8ClampedArray | Float64Array
      • picking: AxesPicker
      • position: Float32Array
      • radius: number[] | Uint8Array | Int8Array | Int16Array | Int32Array | Uint16Array | Uint32Array | Float32Array | Uint8ClampedArray | Float64Array

getBondParams

  • getBondParams(what: any, params: any): any

getBufferParams

  • getBufferParams(p: any): any

getColorParams

  • getColorParams(): any

getParameters

  • getParameters(): object & object

getPrincipalAxes

  • getPrincipalAxes(): any

getQuality

  • getQuality(): "high" | "medium" | "low"

getRadiusParams

  • getRadiusParams(): object

init

  • init(params: any): void

make

  • make(updateWhat: any, callback: any): void

setColor

  • setColor(value: any, p: any): this

setParameters

setRadius

  • setRadius(value: any, p: any): this

setSelection

setVisibility

  • setVisibility(value: boolean, noRenderRequest: boolean): Representation

update

  • update(what: any): void

updateData

  • updateData(what: any, data: any): void

updateParameters

  • updateParameters(bufferParams?: object, what: any): void

Generated using TypeDoc