On 20. Feb 2012, at 20:28, cpapado [via Software] wrote: > I'm sorry if my message was confusing, I meant that I want to connect to the > Collage master instance that runs inside the application node.
Ok, makes sense. > I did some reading and if I understand correctly, in my QT application I will > do the following: > > 1. Instantiate a LocalNode yes. > 2. Create a Node corresponding to the application node and provide a > ConnectionDescription to it (hostname and port. Question here would be > whether the port that the app node listens to is the port set in the .eqc > file). Yes. You can add a listener to your eq::Client programmatically, with a predefined port and use this one to connect. > 3. localNode->connect(appNode) Yes. > 4. localNode->mapObject(ptr, ID, version_latest) to map the objects. Yes. > My next question would be, what's the suggested way to get to the object IDs > from my QT application. In my EQ application (which is loosely based on > EQPly) the config will register the initData object as well as the frameData > object. frameData.id is then stored inside initData. initData.id is > propagated to all nodes as the uInitId through Node::ConfigInit() and is then > used to map the initData and from there other objects. Create a new node packet with a new command CMD_GET_INITDATA_ID = CMD_CLIENT_CUSTOM. Register a request and put the request ID in the packet. Send this packet from qt app to eq app. Register a command handler in eq::Client for this command and the cmd thread queue. In the handler, send another packet with CMD_GET_INITDATA_ID_REPLY = CMD_CLIENT_CUSTOM + 1 containing the initiate id and request ID. Handle this in the Qt's app cmd thread, and use the request ID to serve the init data ID to the main thread waiting on the request. HTH, Stefan. -- View this message in context: http://software.1713.n2.nabble.com/Affecting-Collage-objects-outside-an-Equalizer-application-tp7301888p7302314.html Sent from the Equalizer - Parallel Rendering mailing list archive at Nabble.com. _______________________________________________ eq-dev mailing list [email protected] http://www.equalizergraphics.com/cgi-bin/mailman/listinfo/eq-dev http://www.equalizergraphics.com

