Hi Eduardo,<br><br>You're correct that the vesKiwiViewerApp api is insufficient. There's a branch called kiwi-update which has a new version of the code which adds methods to access the internal representations, and add new ones to the list. You could use this branch, or modify your copy of vesKiwiViewerApp. The kiwi-update branch has a lot of changes to it though, so if don't want the disruption then I would recommend you just modify vesKiwiViewerApp to add accessors to the internal representations vector.<br>
<br>But, you might be interested in some of the changes, there are new features to the existing image widget class vesKiwiImageWidgetRepresentation. I'd be interested to hear from you if you want to share what you are doing with your ImageWidgetRepresentation class, and if you have any suggestions for improvements to the vesKiwiWidgetRepresentation base class. Thanks!<br>
<br>Pat<br><br><div class="gmail_quote">On Wed, Feb 13, 2013 at 9:43 AM, Eduardo Poyart <span dir="ltr"><<a href="mailto:poyart@gmail.com" target="_blank">poyart@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hello,<div><br></div><div>I extended vesKiwiViewerApp with my own subclass ViewerApp. I also needed to create a new representation, which I called ImageWidgetRepresentation, extending from vesKiwiWidgetRepresentation.</div>
<div><br></div><div>I wrote a custom load routine in ViewerApp, and now I need to add the data to Internal, with something like:</div><div><br></div>
<div><span>this</span>->Internal->DataRepresentations.push_back(rep);</div><div><br></div><div>However this can't be done since vesKiwiViewerApp.Internal is private. What is the correct design pattern in this case?</div>
<div><br></div><div>Thanks</div><span class="HOEnZb"><font color="#888888"><div>Eduardo</div><div><br></div><div><br></div><div><br></div></font></span></div>
<br>_______________________________________________<br>
Ves mailing list<br>
<a href="mailto:Ves@public.kitware.com">Ves@public.kitware.com</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/ves" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/ves</a><br>
<br></blockquote></div><br>