order of buffer operations in DBASE process

New Message Reply Date view Thread view Subject view Author view

AnitaKishore (kishore++at++electrogig.com)
Fri, 9 Feb 1996 10:43:11 -0800


HI,

        I am observing a wrong behaviour in the following situations - may be
due to my mistake.

I have the following scene graph created in APP process:

                         root
|
                        switch
|
                   ----------------
| | |
                scene0 scene1 scene2

I need to insert another sceneX as the X child of switch in the DBASE process.
In order to maintain multi-process sync between the above scene order and the
scene order in a UI, I have to do the insertion as follows:

DBASE process callback:

        - create newSwitch and set its switch value
        - for all scenes
              - buffer remove scene from switch
              - buffer add scene to newSwitch
        - buffer insert sceneX in newSwitch
        - buffer remove switch and async delete switch from root
        - buffer add newSwitch to root
        - merge buffer

I would expect newSwitch to have children in the same order as the old switch,
but instead the order is reversed! SceneX is correctly inserted, but the
rest of the scenes are in reverse order. Even if I don't insert any new scene,
the order is still reversed.

Anybody has any ideas on this?

thanks a lot

-anita

------------------------------------------------------------------------
Anita Kishore
kishore++at++electrogig.com
------------------------------------------------------------------------


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:23 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.