On Oct 11, 2013, at 2:02 PM, Todd Furlong <
furl...@gmail.com> wrote:
> The configuration manager does the XML part of the parsing, but yes I'm looking to parse. I just verified that the slave nodes have access to this config data as well, so that's a nice bonus -- each node can do its own inside/outside detection.
>
> Each surface viewport has its own copy of the corner data, but the config system is the only place where we can get the full overview of the cluster, so I think it's correct to get it from there. It could certainly be easier to access, but I think the means to access that data would most likely be a duplication of the approach I'm taking.
>
> We can skip the config->save shown above and instead do:
> config->getByType("cluster_node", elements);
>
> That will get us ConfigElementPtr's for each cluster node, and then we can call getChildElements on each of those and look for "display_window", then "surface_viewport", and then finally we can get the corner locations as surface viewport properties.
You are correct. We have done that for other window data. I did not realize all of the cluster_node elements were on all of the nodes. That is useful.