class WMSystem
Available on all platforms
WMSystem, corresponding to a SCENE object
Class Fields
static var readAtOnce:Bool
global flag which defines the way to generate polygons. Default is true.
If this value is true, all the polygons are created by single call of gen(). All the objects are created at once.
If false, gen() will be called several times. Objects are shown in stepwise manner. This is suitable for large system.
static var readChainAtOnce:Bool
Similar flag to readAtOnce
. Default is true.
If this flag is true, polygons of chains (which consists RIBBONs and CHAINs) are created by a single calll of gen(). This means all the polygons of this object are created at once.
If false, gen() will be called several times. Objects of chains will be generated in stepwise fashion. If you have very large CHAIN in your xml data, try to use false.
static var readSize:Int
approximate data size which is read by single call of gen() when readAtOnce is false
Instance Fields
function draw(c:Context3D, mpos:Matrix3D, proj:Matrix3D, voffset:Vector3D, light:Vector3D, cpos:Vector3D, dcActive:Bool, dcCoeff:Float, dcLength:Float):Bool
draw this SCENE
function empty():Bool
is this instance empty? (true if this instance does not have ATOMs, BONDs, ... )
function registerXml(myxml:Xml):Void
set XML data corresponding to this SCENE; not read, just send xml data
function rescaleCoord():Void
rescale coordinate according to the current stage width and height. This function will be called by RESCALE event handler. This does not work as desired yet...