On 26.02.2010 04:52, Gerrit Voß wrote:
....
         For a clusterServer we first set the server-specific values,
         like surface, left/right-eye in the ClusterWindow prototype.
         Then the Client just opened the ClusterWindow and the settings
         were allready good for all servers. How would You handle such
         a setup?
that might be a very very old leftover, looking at it something is odd
and looks unfinished.

Are you modifying the prototype or are you replacing it. Purely
modifying should still work as the getPrototype is still there.

I'll have a quick check and try to remember why it was left unfinished
and put the set function back in if I don't spot anything.



Hello,

so I tried to modify the prototype by calling getPrototype, casting the pointer and setting fields. But either I do something really wrong, or it just does not work:

example:
FieldContainer* test = MatrixCameraDecorator::getClassType().getPrototype();
MatrixCameraDecorator* matrixProto=dynamic_cast<MatrixCameraDecorator*>(test);
matrixProto->setPostProjection(calibMatrix);


As You can see, I want to set different decorators for cluster servers. The other way would be to catch the first frame in the server and then change the fields. Any other ideas?

Cheers,
Volker


--

-------------------------------------------------------
Volker Settgast
Computer Graphics    tel:      +43 316 873-5406
TU Graz              fax:      +43 316 873-5402
Inffeldgasse 16c     eMail:    v.settg...@cgv.tugraz.at
A-8010 Graz

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to