[Kst] [Bug 164245] New: The inputs for the BinnedMap cannot be set properly
Yiwen Mao
yiwenv at live.ca
Mon Jun 16 20:31:06 CEST 2008
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=164245
Summary: The inputs for the BinnedMap cannot be set properly
Product: kst
Version: unspecified
Platform: unspecified
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: scripting
AssignedTo: kst kde org
ReportedBy: yiwenv live ca
Version: 1.7.0 (using KDE 4.0.1)
Installed from: Unspecified
Compiler: Fedora 6
OS: Linux
//access BinnedMap object
kst> b=BinnedMap
BinnedMap
kst> v=new Vector();
Vector
kst> v.tagName="v"
v
kst> v.resize(10)
undefined
kst> for(var i=0;i<10;i++){v[i]=i+1}
10
//set up the input for the plugin
kst> b.x=v;
Vector
kst> v.y=v;
Vector
kst> v.z=v;
Vector
kst> b.xFrom=new Scalar(2);
Scalar
kst> b.xTo=new Scalar(5);
Scalar
kst> b.yFrom=new Scalar(2);
Scalar
kst> b.yTo=new Scalar(5);
Scalar
kst> b.nX=new Scalar(5);
Scalar
kst> b.nY=new Scalar(5);
Scalar
kst> b.autobin=new Scalar(0);
Scalar
//validate the plugin, but returns false
kst> b.validate()
false
//the property valid is not defined
kst> b.valid
undefined
More information about the Kst
mailing list