Ignore:
Timestamp:
Oct 23, 2009 7:56:25 AM (11 years ago)
Author:
dkearney
Message:

updating potential apis for c cpp and python. adding random() and diff()
functions to the rappture objects. objects should be able to generate a random
value for itself based on how it was configured. objects should be able to
compare itself with another object and tell us what the differences are.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/objects/api/cpp/curve

    r1581 r1586  
    5454
    5555    void vvalue(void *storage, size_t numHints, va_list arg) const;
     56    void random();
     57    Rp_Chain *diff(const Object& o);
    5658
    5759    void configure(size_t as, ClientData c);
     
    281283    Code Example:
    282284
     285void 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
     294Rp_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
    283303void configure(size_t as, ClientData c);
    284304    Purpose: configure the object based on the data in "c".
Note: See TracChangeset for help on using the changeset viewer.