Class: Structure

structure.Structure

Structure

Constructor

new Structure()

Root class for 3D objects: atomic (module:structure.Molecule), map, or any 3D graphics vectorial object

Author:
  • Jean-Christophe Taveau

Members

bbox

Bounding Box

Properties:
Name Type Description
min vec3

Top-left-front corner of the bounding box

Properties
Name Type Description
x number

X-coordinate of the 'min' corner

y number

Y-coordinate of the 'min' corner

y number

Z-coordinate of the 'min' corner

max vec3

Bottom-right-back corner of the bounding box

Properties
Name Type Description
x number

X-coordinate of the 'max' corner

y number

Y-coordinate of the 'max' corner

z number

Z-coordinate of the 'max' corner

centroid :vec3

Center of Gravity - Centroid

Type:
  • vec3
Properties:
Name Type Description
centroid vec3

Center of gravity or centroid of this structure

Properties
Name Type Description
x number

X-coordinate

y number

Y-coordinate

y number

Z-coordinate

ID :string

Identifier

Type:
  • string

information :object

Information

Type:
  • object

Methods

isMolecule() → {boolean}

Is this structure an atomic model? (instance of class Molecule)

Returns:
  • true if this structure is an atomic model.
Type
boolean

isRaster() → {boolean}

Is this structure a 2D/3D-raster? (instance of class Raster)

Returns:
  • true if this structure is a 2D- or 3D-raster (image or volume/map).
Type
boolean

setTitle(str)

Set Title

Parameters:
Name Type Description
str string

Set a new title