Hello Antonio,
Antonio Bleile wrote:
> Scrive Marcus Lindblom <[EMAIL PROTECTED]>:
>> Inspecting the change list seems like the easy way, if it's possible and
>> fits your application.
>
> That's interesting! The problem is that I don't really know
> how to interpret the change list. When I call
> Thread::getCurrent()->getChangeList()->dump();
> I get some interesting output, e.g. the from/to/up changes
> of the camera.
the changelist records a bunch of information (ref count changes,
creation, destruction of fc and changes to fc). For your case the change
entries are the interesting ones. They have this type
typedef std::pair<UInt32, BitVector> ChangeEntry;
where the UInt32 is the id of the container that changed and the
BitVector is a mask that indicates which fields have changed.
> But I need to know which object has changed,
> and as far as I can see the changelist holds just the field
> containers, not the nodeptr's to which the fields belong?
hm, nodes are fieldcontainers so I'm not sure what you are driving at
here. To get the container that belongs to the id stored in the
changelist you need to use the FieldContainerFactory.
> In case the camera has been rotated I don't need to update
> the shadows, so a binary test on the changelist empty state
> wouldn't be sufficient... :(
No, you would have to take a more detailed look at the entries in the
changelist. Things that come to mind are:
- Children field of Node,
- Core field of Node,
- all property fields of Geometry,
- value fields of GeoProperties
Hope it helps,
Carsten
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users