<span id="result_box" class="" lang="en"><span class="hps">Hi</span> <span class="hps">Pat,</span><br><br><span class="hps">I have</span> <span class="hps">studied</span> <span class="hps">the example</span> <span class="hps">in</span> <span class="hps">Android</span> <span class="hps">/</span> <span class="hps">iOS</span> <span class="hps">/</span> <span class="hps">Kiwi</span><span>.</span><br>

<span class="hps">I found that</span> <span class="hps">the class</span> <span class="hps">contains</span> <span class="hps">an object</span> <span class="hps">ES2Renderer</span> <span class="hps">VesKiwiViewerApp</span><span>.</span><br>

<br><span class="hps">Apparently</span> <span class="hps">you must first</span> <span class="hps">use</span> <span class="hps">the method</span> <span class="hps">BuilInDataSetName</span> <span class="hps">() to</span> <span class="hps">pass the name</span> <span class="hps">of a file to</span> <span class="hps">the object</span> <span class="hps">VesKiwiViewerApp</span> <span class="hps">and then</span> <span class="hps">uses</span> <span class="hps">the</span> <span class="hps">Render () method</span><span>.</span><br>

<span class="hps">Is this correct</span><span>?</span><br><br><span class="hps"></span></span><span id="result_box" class="" lang="en"><span class="hps"><span id="result_box" class="" lang="en"><span class="hps">My</span> <span class="hps">biggest</span> <span class="hps">question</span> <span class="hps">is this:</span> <span class="hps">I want to create</span> <span class="hps">a graphical interface to</span> <span class="hps">the user</span> <span class="hps">via a</span> <span class="hps">xib</span> <span class="hps">file</span><span>,</span> <span class="hps">ie using</span> <span class="hps">the click and drag</span> <span class="hps">it</span> <span class="hps">to</span> <span class="hps">xcode</span> <span class="hps">offers</span><span>.</span> <span class="hps">As</span> <span class="hps">I relate</span> <span class="hps">the Render method (VesKiwiViewerApp)</span> <span class="hps">with</span> <span class="hps">one of the objects</span> <span class="hps">that</span> <span class="hps">xcode</span> <span class="hps">offers</span> <span class="hps">to drag</span> <span class="hps">me</span> <span class="hps">to the GUI</span><span>?</span> <span class="hps">And</span> <span class="hps">that</span> <span class="hps">object</span> <span class="hps">would that be?</span></span></span><span class="hps"></span><br>

<br><span class="hps atn">(</span><span>To</span> <span class="hps">better illustrate</span> <span class="hps">my question</span><span>:</span> <span class="hps">Java</span> <span class="hps">I need</span> <span class="hps">an object</span> <span class="hps">PictureBox</span> <span class="hps">to display</span> <span class="hps">a jpeg</span> <span class="hps">on the screen</span><span>,</span> <span class="hps">for example.</span><span>)</span><br>

<br><span class="hps">Thank you so much</span><br><span class="hps">Thiago</span></span><br><br><div class="gmail_quote">2012/11/26 Pat Marion <span dir="ltr"><<a href="mailto:pat.marion@kitware.com" target="_blank">pat.marion@kitware.com</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Have you tried building and running the KiwiViewer iOS app?  It is<br>
located in Apps/iOS/Kiwi.  This is the best place to start, if you<br>
want to try loading VTK files on the iphone.  You can run KiwiViewer<br>
in the iOS simulator or on an iOS device.  Just open the Xcode project<br>
and choose Run.  After you get it running, you can search through the<br>
objective-c source files to find the location where it calls<br>
loadDataSet(filename).<br>
<span class="HOEnZb"><font color="#888888"><br>
Pat<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Tue, Nov 27, 2012 at 5:19 AM, Thiago Tavares Magalhães<br>
<<a href="mailto:ttavaresm@gmail.com">ttavaresm@gmail.com</a>> wrote:<br>
> Hi Pat,<br>
><br>
> I understand, thanks for the reply.<br>
> I saw that some useful methods of this class would be the<br>
> "builtinDatasetName", the "builtinDatasetFilename" and "loadDataSet" for<br>
> example.<br>
> However, how could I use these methods to render a VTK file on the screen?<br>
> In other words, what xcode object can receive the output of these methods,<br>
> so I can finally see a VTK file rendered on the screen of an iphone?<br>
><br>
> Sorry for my inexperience.<br>
> I promise that soon not bother much.<br>
><br>
> hugs,<br>
> Thiago<br>
><br>
><br>
> 2012/11/25 Pat Marion <<a href="mailto:pat.marion@kitware.com">pat.marion@kitware.com</a>><br>
>><br>
>> Hi Thiago,<br>
>><br>
>> The classes in src/ves implement the core rendering library for OpenGL<br>
>> ES 2.0.  The classes in src/kiwi provide convenience for combining VTK<br>
>> with VES rendering.  For example, vesKiwiDataLoader,<br>
>> vesKiwiDataConversionTools, and the subclasses of<br>
>> vesKiwiDataRepresentation.  The vesKiwiViewerApp ties together a lot<br>
>> of these pieces and presents a single interface, so that it is easier<br>
>> to implement an Android or iOS app in Java or Objective-C.  Your<br>
>> Java/Objective-C code mostly just need to call methods on<br>
>> vesKiwiViewerApp.  If you're designing a mobile app that is similar to<br>
>> KiwiViewer, then you could reuse vesKiwiViewerApp, or derive from it<br>
>> and extend the behavior.  But, if your app has unique requirements<br>
>> that are different from those found in KiwiViewer, then you might not<br>
>> want to use vesKiwiViewerApp at all, instead you could just directly<br>
>> use the classes from VES and kiwi, or you could design your own app<br>
>> interface class.  In that case, vesKiwiViewerApp can serve as an<br>
>> example implementation.<br>
>><br>
>> Pat<br>
>><br>
>><br>
>><br>
>> 2012/11/24 Thiago Tavares Magalhães <<a href="mailto:ttavaresm@gmail.com">ttavaresm@gmail.com</a>>:<br>
>> > VesKiwiViwerApp<br>
><br>
><br>
><br>
><br>
> --<br>
> Thiago Tavares Magalhães<br>
> Instituto Superior de Tecnologia em Ciências da Computação de Petrópolis -<br>
> FAETERJ<br>
> Laboratório Nacional de Computação Científica - LNCC<br>
><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div style="text-align:left"><div><span style="color:rgb(102,102,102)"><span style="background-color:rgb(255,255,255)"><a href="http://lattes.cnpq.br/1989532473555107" target="_blank">Thiago Tavares Magalhães</a><br>

</span></span></div><span style="color:rgb(102,102,102)"><span style="background-color:rgb(255,255,255)"></span></span></div><div style="text-align:left"><span style="color:rgb(102,102,102)"><span style="background-color:rgb(255,255,255)">Instituto Superior de Tecnologia em Ciências da Computação de Petrópolis - <b>FAETERJ</b><br>

Laboratório Nacional de Computação Científica -<b> LNCC</b></span></span><br></div><br>