class WMDefaults

Available on all platforms

container for default values for each

Class Fields

static var gl_Atom:WMBase

Global default value for ATOM elements

  • radius: 4.0
  • color0: 0x00FF00
  • alpha: 1.0
  • quality: 3
  • ambient: 0.35
  • diffuse: 0.6
  • specular: 0.3
  • gloss: 30
  • shader "Phong"

static var gl_Bond:WMBase

Global default for BOND element

  • radius: 3.0
  • color0: 0x00FF00
  • color1: 0x00FF00
  • alpha: 1.0
  • offset: 0
  • quality: 2
  • ambient: 0.4
  • diffuse: 0.5
  • specular: 0.2
  • gloss: 30
  • shader: "Phong"

static var gl_BondDashed:Int

Whether dashed line is used or not. Note that this value is integer. Default is 0. A bond will be drawn in (this value+1) of dashes.

static var gl_BondExclude:Bool

Whether bottom and top faces are excluded. Default is false.

static var gl_BondRound:Bool

Whether spherical object is used intead for top and bottom faces. Default is true, VMD licorice like object is used.

static var gl_Coil:WMBase

Global default for COILs.

  • radius: 3.0
  • color0: 0x00FF00
  • color1: 0x00FF00
  • alpha: 1.0
  • quality: 0
  • ambient: 0.3
  • diffuse: 0.6
  • specular: 0.3
  • gloss: 30
  • shader: "Phong"

static var gl_Label:WMBase

Global default of LABELs

  • width(radius; window width): 130.0
  • color0(font color): 0xFFFFFF
  • alpha: 1.0

static var gl_LabelFont:String

Global default for LABEL font. Default is "Arial"

static var gl_LabelSize:Float

Global default for LABEL font size. Default is 32.0.

static var gl_Object3D:WMBase

Global default for OBJ3Ds

  • radius: 1.0
  • color0: 0x00FF00
  • alpha: 1.0
  • quality: 3
  • ambient: 0.4
  • diffuse: 0.5
  • specular: 0.2
  • gloss: 30
  • shader: "Phong"

static var gl_Object3DType:String

Global default for OBJ3D type. Default is "cone"

static var gl_Ribbon:WMBase

Global default for RIBBONs

  • radius(width): 8.0
  • color0: 0xFF0000
  • color1: 0xFF0000
  • alpha: 1.0
  • ambient: 0.3
  • diffuse: 0.6
  • specular: 0.3
  • gloss: 30
  • shader: "Phong"

static var gl_RibbonSmoothing:Bool

Global default for whether smooth ribbon is used. Default is false. Note that smooth ribbon is designed for beta-strand. You might not use for other purposes.

static var gl_RibbonThickness:Float

Global default for ribbon thickness. Default is 0.0.

static var gl_Shape:WMBase

Global default for SHAPEs

  • color0: 0x00FF00
  • alpha: 1.0
  • ambient: 0.4
  • diffuse: 0.5
  • specular: 0.2
  • gloss: 30
  • shader: "Phong"

Instance Fields

var Atom:WMBase

local default of ATOMs

var Bond:WMBase

local default for BONDs

var BondDashed:Int

local default for dashing of BONDs

var BondExclude:Bool

local default for face excluding of BOND

var BondRound:Bool

local default for face rounding of BOND

var Coil:WMBase

local default of COILs

var Label:WMBase

local default of LABELs

var LabelFont:String

local default of fontname for LABELs

var LabelSize:Float

local default of font size for LABELs

var Object3D:WMBase

local default for OBJ3Ds

var Object3DType:String

local default type of OBJ3Ds

var Ribbon:WMBase

local default for `Ribbon`

var RibbonSmoothing:Bool

local default for smoothing of RIBBONs

var RibbonThickness:Float

local default for thickness of RIBBONs

var Shape:WMBase

local default for SHAPEs

function new():Void

Constructor.

Initial value of SCENE local default values are copied from global default values.

function get_Atom():WMBase

getter of Atom

function get_Bond():WMBase

getter for Bond

function get_BondDashed():Int

getter of BondDashed

function get_BondExclude():Bool

getter of BondExclude

function get_BondRound():Bool

getter of BondRound

function get_Coil():WMBase

getter of Coil

function get_Label():WMBase

getter of Label

function get_LabelFont():String

getter of LabelFont

function get_LabelSize():Float

getter of LabelSize

function get_Object3D():WMBase

getter of Object3D

function get_Object3DType():String

getter of Object3DType

function get_Ribbon():WMBase

getter of Ribbon

function get_RibbonSmoothing():Bool

getter of RibbonSmoothing

function get_RibbonThickness():Float

getter of RibbonThickness

function get_Shape():WMBase

getter of Shape

function set_Atom(a:WMBase):WMBase

setter of Atom

function set_Bond(b:WMBase):WMBase

setter for Bond

function set_BondDashed(d:Int):Int

setter of BondDashed

function set_BondExclude(f:Bool):Bool

setter of BondExclude

function set_BondRound(f:Bool):Bool

setter of BondRound

function set_Coil(c:WMBase):WMBase

setter of Coil

function set_Label(l:WMBase):WMBase

setter of Label

function set_LabelFont(f:String):String

setter of LabelFont

function set_LabelSize(s:Float):Float

setter of LabelSize

function set_Object3D(o:WMBase):WMBase

setter of Object3D

function set_Object3DType(t:String):String

getter of Object3DType

function set_Ribbon(r:WMBase):WMBase

setter of Ribbon

function set_RibbonSmoothing(b:Bool):Bool

setter of RibbonSmoothing

function set_RibbonThickness(t:Float):Float

setter of RibbonThickness

function set_Shape(s:WMBase):WMBase

setter of Shape