Mantis Bugtracker

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000979 [Croquet] Any feature always 03-15-05 19:42 03-15-05 19:44
Reporter howardstearns View Status public  
Assigned To
Priority normal Resolution open Platform
Status new   OS
Projection none   OS Version
ETA none Product Build
Summary 0000979: enhancement: a means to map over frames outside of rendering
Description The rendering code maps over the hierarchy of frames. As it recurses, it provides for "instancing" of frames, whereby the same frame instance can appear as children of multiple parents. For example, it sets the frameParent and the global position of the frame and its boundSphere.

However, it's dangerous to include application code within rendering, just for the purpose of having this stuff taken care of for us. An error during rendering produces nasty loops and is difficult to debug. Also, it is not easy to arrange for all such activity to be handled during rendering. Consider, for example, application code that needs to examine the frame hierarchy during an event handler.
Steps To Reproduce
Additional Information The attached changeset provides a TFrame>>mapFrame:parent: that does the same traversal and setup as is done during rendering, and evaluates a given block for each frame. The changeset also has a #mapFrame:parent:postChildrenBlock:, whose extra argument is an additional block that can be used, for example, to pop something pushed during the block evaluated for the node itself.
Attached Files  mapFrame.cs [^] (2,294 bytes) 03-15-05 19:42

- Relationships

- Notes
(0001266 - 121 - 121 - 121 - 121 - 121 - 121)
03-15-05 19:44

See also issue 978, which provides collision detection code that I used within a block that I gave to #mapFrame:parent:.

- Issue History
Date Modified Username Field Change
03-15-05 19:42 howardstearns New Issue
03-15-05 19:42 howardstearns File Added: mapFrame.cs
03-15-05 19:44 howardstearns Note Added: 0001266

Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
33 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker