Changeset 1586 for trunk/examples/objects
- Timestamp:
- Oct 23, 2009, 7:56:25 AM (15 years ago)
- Location:
- trunk/examples/objects
- Files:
-
- 3 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/objects/api/c/number
r1581 r1586 59 59 void Rp_NumberVValue(Rp_Number *num, void *storage, size_t numHints, 60 60 va_list arg) const; 61 void Rp_NumberRandom(); 62 Rp_Chain *Rp_NumberDiff(const Rp_Object *o); 61 63 62 64 void Rp_NumberAddPreset(Rp_Number *num, const char *label, … … 368 370 va_list arg. Values stored in the object are 369 371 not changed. 372 Code Example: 373 374 void Rp_NumberRandom(); 375 Purpose: populate the object with a random value 376 Input Arguments: 0 377 Return Value: None 378 Notes: the current value of this object will be populated 379 with a random value that fits within the min and 380 max if they were specified. 381 Code Example: 382 383 Rp_Chain *Rp_NumberDiff(const Rp_Object *o); 384 Purpose: return a linked list showing the differences between 385 this object and Rp_Object *o 386 Input Arguments: 1 387 1. const Rp_Object *o - object to diff against 388 Return Value: list of differences between objects 389 Notes: None 370 390 Code Example: 371 391 -
trunk/examples/objects/api/c/plot
r1581 r1586 42 42 void Rp_PlotVValue(Rp_Plot *p, void *storage, size_t numHints, 43 43 va_list arg) const; 44 void Rp_PlotRandom(); 45 Rp_Chain *Rp_PlotDiff(Rp_Plot *o); 44 46 45 47 void Rp_PlotConfigure(Rp_Plot *p, size_t as, ClientData c); … … 264 266 Code Example: 265 267 268 void Rp_PlotRandom(); 269 Purpose: populate the object with a random value 270 Input Arguments: 0 271 Return Value: None 272 Notes: the current value of this object will be populated 273 with a random value that fits within the min and 274 max if they were specified. 275 Code Example: 276 277 Rp_Chain *Rp_PlotDiff(const Rp_Object *o); 278 Purpose: return a linked list showing the differences between 279 this object and Rp_Object *o 280 Input Arguments: 1 281 1. const Rp_Object *o - object to diff against 282 Return Value: list of differences between objects 283 Notes: None 284 Code Example: 285 266 286 void Rp_PlotConfigure(Rp_Plot *p, size_t as, ClientData c); 267 287 Purpose: configure the object based on the data in "c". -
trunk/examples/objects/api/cpp/boolean
r1581 r1586 46 46 47 47 void vvalue(void *storage, size_t numHints, va_list arg) const; 48 void random(); 49 Rp_Chain *diff(const Object& o); 48 50 49 51 void configure(size_t as, ClientData c); … … 244 246 va_list arg. Values stored in the object are 245 247 not changed. 248 Code Example: 249 250 void random(); 251 Purpose: populate the object with a random value 252 Input Arguments: 0 253 Return Value: None 254 Notes: the current value of this object will be populated 255 with a random value that fits within the min and 256 max if they were specified. 257 Code Example: 258 259 Rp_Chain *diff(const Rp_Object &o); 260 Purpose: return a linked list showing the differences between 261 this object and Rp_Object &o 262 Input Arguments: 1 263 1. const Rp_Object &o - object to diff against 264 Return Value: list of differences between objects 265 Notes: None 246 266 Code Example: 247 267 -
trunk/examples/objects/api/cpp/choice
r1581 r1586 46 46 47 47 void vvalue(void *storage, size_t numHints, va_list arg) const; 48 void random(); 49 Rp_Chain *diff(const Object& o); 50 48 51 49 52 Choice& addPreset(const char *label, const char *desc, … … 251 254 va_list arg. Values stored in the object are 252 255 not changed. 256 Code Example: 257 258 void random(); 259 Purpose: populate the object with a random value 260 Input Arguments: 0 261 Return Value: None 262 Notes: the current value of this object will be populated 263 with a random value that fits within the min and 264 max if they were specified. 265 Code Example: 266 267 Rp_Chain *diff(const Rp_Object &o); 268 Purpose: return a linked list showing the differences between 269 this object and Rp_Object &o 270 Input Arguments: 1 271 1. const Rp_Object &o - object to diff against 272 Return Value: list of differences between objects 273 Notes: None 253 274 Code Example: 254 275 -
trunk/examples/objects/api/cpp/curve
r1581 r1586 54 54 55 55 void vvalue(void *storage, size_t numHints, va_list arg) const; 56 void random(); 57 Rp_Chain *diff(const Object& o); 56 58 57 59 void configure(size_t as, ClientData c); … … 281 283 Code Example: 282 284 285 void random(); 286 Purpose: populate the object with a random value 287 Input Arguments: 0 288 Return Value: None 289 Notes: the current value of this object will be populated 290 with a random value that fits within the min and 291 max if they were specified. 292 Code Example: 293 294 Rp_Chain *diff(const Rp_Object &o); 295 Purpose: return a linked list showing the differences between 296 this object and Rp_Object &o 297 Input Arguments: 1 298 1. const Rp_Object &o - object to diff against 299 Return Value: list of differences between objects 300 Notes: None 301 Code Example: 302 283 303 void configure(size_t as, ClientData c); 284 304 Purpose: configure the object based on the data in "c". -
trunk/examples/objects/api/cpp/number
r1581 r1586 58 58 double value(const char *units) const; 59 59 void vvalue(void *storage, size_t numHints, va_list arg) const; 60 void random(); 61 Rp_Chain *diff(const Object& o); 60 62 61 63 Number& addPreset(const char *label, const char *desc, … … 334 336 va_list arg. Values stored in the object are 335 337 not changed. 338 Code Example: 339 340 void random(); 341 Purpose: populate the object with a random value 342 Input Arguments: 0 343 Return Value: None 344 Notes: the current value of this object will be populated 345 with a random value that fits within the min and 346 max if they were specified. 347 Code Example: 348 349 Rp_Chain *diff(const Rp_Object &o); 350 Purpose: return a linked list showing the differences between 351 this object and Rp_Object &o 352 Input Arguments: 1 353 1. const Rp_Object &o - object to diff against 354 Return Value: list of differences between objects 355 Notes: None 336 356 Code Example: 337 357 -
trunk/examples/objects/api/cpp/plot
r1581 r1586 45 45 46 46 void vvalue(void *storage, size_t numHints, va_list arg) const; 47 void random(); 48 Rp_Chain *diff(const Object& o); 47 49 48 50 void configure(size_t as, ClientData c); … … 246 248 Code Example: 247 249 250 void random(); 251 Purpose: populate the object with a random value 252 Input Arguments: 0 253 Return Value: None 254 Notes: the current value of this object will be populated 255 with a random value that fits within the min and 256 max if they were specified. 257 Code Example: 258 259 Rp_Chain *diff(const Rp_Object &o); 260 Purpose: return a linked list showing the differences between 261 this object and Rp_Object &o 262 Input Arguments: 1 263 1. const Rp_Object &o - object to diff against 264 Return Value: list of differences between objects 265 Notes: None 266 Code Example: 267 248 268 void configure(size_t as, ClientData c); 249 269 Purpose: configure the object based on the data in "c". -
trunk/examples/objects/app-fermi/fermi4.py
r1581 r1586 1 1 #! /usr/bin/env python 2 2 # ---------------------------------------------------------------------- 3 # EXAMPLE: Fermi-Dirac function in C++.3 # EXAMPLE: Fermi-Dirac function in Python. 4 4 # 5 5 # This simple example shows how to use Rappture within a simulator 6 # written in C++.6 # written in Python. 7 7 # ====================================================================== 8 8 # AUTHOR: Derrick Kearney, Purdue University … … 57 57 lib = Rappture.Library(argv[1]) 58 58 59 # T = Rappture.Number();60 # Ef = 0.0;61 # dE = 0.0;62 # kT = 0.0;63 # Emin = 0.0;64 # Emax = 0.0;65 59 nPts = 200; 66 60 EArr = list() # [nPts];
Note: See TracChangeset
for help on using the changeset viewer.