class WMBase
Available on all platforms
Base class for wm3d objects.
Sub classes:
WMObjBase | Base Object of wm3d. |
Class Fields
static var characteristicSize:Float
scale factor used for relative scaling; default is 0.0025.
See also useRelative
and scaleBase
.
static var scaleBase:Float
relative scale factor; default value is min(stageWidth,stageHeight)*characteristicSize
static function getRelative(r:Float):Float
returns actual position of r
(if relative scaling is false, r
itself
will be returned)
static function parseColor(c:String):Int
convert color in string (such as red) into RGB integer (such as 0xFF0000).
Input value c
is color string and the return value is RGB color in
integer.
static function setScaleBase(st:Stage):Void
set scale factor for relative scaling.
Stage size st
is used as a reference length.
static function splitString(s:String):Array<String>
split string like split function is perl.
Return value is array of splitted strings of s
.
Instance Fields
function new(r:Float, c0:Int, c1:Int, a:Float, o:Float, q:Int, ag:Float, d:Float, sp:Float, gl:Float, sh:String):Void
Constructor.
function loadFromXml(x:Xml, def:WMDefaults):Void
load varibles from Xml. If def
is given, def
is used as an initial
values and then overwritten by Xml data x
.
function set(r:Float, c0:Int, c1:Int, a:Float, o:Float, q:Int, ag:Float, d:Float, sp:Float, gl:Float, sh:String):Void
set vaiables