Changeset 1610 for trunk/examples/objects
- Timestamp:
- Nov 4, 2009, 10:40:54 AM (15 years ago)
- Location:
- trunk/examples/objects/api
- Files:
-
- 3 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/objects/api/python/library
r1586 r1610 7 7 methods 8 8 lib.loadXml(xmltext) 9 10 9 lib.loadFile(filename) 11 12 13 10 lib.value(key[, ...]) 14 15 11 lib.diff(lib2) 16 17 12 lib.remove(key) 18 19 13 lib.xml() 20 21 14 lib.outcome() 22 15 lib.error() 23 24 lib.result(int status) 25 16 lib.result(status) 26 17 lib.contains() 27 18 … … 113 104 Code Example: 114 105 115 interror()106 lib.error() 116 107 Purpose: return the status of the object 117 108 Input Arguments: 0 -
trunk/examples/objects/api/python/number
r1586 r1610 4 4 Rappture.Number() 5 5 Rappture.Number(name, units, val[, min, max, label, desc]) 6 Rappture.Number( const Number& o)6 Rappture.Number(numObj) 7 7 8 8 methods … … 20 20 n.property(key[, val]) 21 21 n.propremove(key) 22 23 22 n.convert(to) 24 23 n.value(units) … … 26 25 n.random() 27 26 n.diff(o) 28 29 27 n.addPreset(label, desc, val[, units]) 30 28 n.delPreset(label) 31 32 29 n.configure(as, c) 33 30 n.dump(as, c) 34 35 31 n.outcome() 36 37 32 n.is() 38 33 … … 52 47 Code Example: 53 48 54 Rappture.Number( o)55 Purpose: construct a number object based on number object o56 Input Arguments: 1 57 1. o- number object to copy49 Rappture.Number(numObj) 50 Purpose: construct a number object based on number object numObj 51 Input Arguments: 1 52 1. numObj - number object to copy 58 53 Return Value: a newly created number object 59 54 Notes: None … … 96 91 Purpose: get/set the description of the object 97 92 Input Arguments: at most 1 98 1. const char *val - new description93 1. val - new description 99 94 Return Value: description of the object 100 95 Notes: if no description is set, None will be returned … … 118 113 Purpose: get/set the color of the object 119 114 Input Arguments: at most 1 120 1. const char *val - new color115 1. val - new color 121 116 Return Value: color of the object 122 117 Notes: if no color is set, None will be returned … … 164 159 Purpose: get/set the units of this object 165 160 Input Arguments: 1 166 1. const char *val - new units161 1. val - new units 167 162 Return Value: the string representing the object's units 168 163 Notes: if no units are set, None will be returned … … 173 168 Purpose: get/set a generic property in the property database 174 169 Input Arguments: at most 2 175 1. const char *key - property name176 2. const void *val - property value170 1. key - property name 171 2. val - property value 177 172 Return Value: value of the property 178 173 Notes: A copy val is stored in the property database … … 252 247 Purpose: delete the preset labeled "label" from this object 253 248 Input Arguments: 1 254 1. const char *label - label of the preset249 1. label - label of the preset 255 250 Return Value: None 256 251 Notes: preset is removed from the object -
trunk/examples/objects/api/python/plot
r1586 r1610 19 19 p.curve(name) 20 20 p.getNthCurve(n) 21 22 21 p.vvalue([...]) 23 22 p.random() 24 23 p.diff(o) 25 26 24 p.configure(as, c) 27 25 p.dump(as, c) 28 29 26 p.outcome() 30 31 27 p.is() 32 28 … … 84 80 Purpose: get/set the description of the object 85 81 Input Arguments: at most 1 86 1. const char *val - new description82 1. val - new description 87 83 Return Value: description of the object 88 84 Notes: if no description is set, None will be returned … … 106 102 Purpose: get/set the color of the object 107 103 Input Arguments: at most 1 108 1. const char *val - new color104 1. val - new color 109 105 Return Value: color of the object 110 106 Notes: if no color is set, None will be returned … … 116 112 Purpose: get/set a generic property in the property database 117 113 Input Arguments: at most 2 118 1. const char *key - property name119 2. const void *val - property value114 1. key - property name 115 2. val - property value 120 116 Return Value: value of the property 121 117 Notes: A copy val is stored in the property database
Note: See TracChangeset
for help on using the changeset viewer.