[Ves] VesKiwiViwerApp
Thiago Tavares Magalhães
ttavaresm at gmail.com
Tue Nov 27 06:34:12 EST 2012
Hi Pat,
I have studied the example in Android / iOS / Kiwi.
I found that the class contains an object ES2Renderer VesKiwiViewerApp.
Apparently you must first use the method BuilInDataSetName () to pass the
name of a file to the object VesKiwiViewerApp and then uses the Render ()
method.
Is this correct?
My biggest question is this: I want to create a graphical interface to the
user via a xib file, ie using the click and drag it to xcode offers. As I
relate the Render method (VesKiwiViewerApp) with one of the objects that
xcode offers to drag me to the GUI? And that object would that be?
(To better illustrate my question: Java I need an object PictureBox to
display a jpeg on the screen, for example.)
Thank you so much
Thiago
2012/11/26 Pat Marion <pat.marion at kitware.com>
> Have you tried building and running the KiwiViewer iOS app? It is
> located in Apps/iOS/Kiwi. This is the best place to start, if you
> want to try loading VTK files on the iphone. You can run KiwiViewer
> in the iOS simulator or on an iOS device. Just open the Xcode project
> and choose Run. After you get it running, you can search through the
> objective-c source files to find the location where it calls
> loadDataSet(filename).
>
> Pat
>
> On Tue, Nov 27, 2012 at 5:19 AM, Thiago Tavares Magalhães
> <ttavaresm at gmail.com> wrote:
> > Hi Pat,
> >
> > I understand, thanks for the reply.
> > I saw that some useful methods of this class would be the
> > "builtinDatasetName", the "builtinDatasetFilename" and "loadDataSet" for
> > example.
> > However, how could I use these methods to render a VTK file on the
> screen?
> > In other words, what xcode object can receive the output of these
> methods,
> > so I can finally see a VTK file rendered on the screen of an iphone?
> >
> > Sorry for my inexperience.
> > I promise that soon not bother much.
> >
> > hugs,
> > Thiago
> >
> >
> > 2012/11/25 Pat Marion <pat.marion at kitware.com>
> >>
> >> Hi Thiago,
> >>
> >> The classes in src/ves implement the core rendering library for OpenGL
> >> ES 2.0. The classes in src/kiwi provide convenience for combining VTK
> >> with VES rendering. For example, vesKiwiDataLoader,
> >> vesKiwiDataConversionTools, and the subclasses of
> >> vesKiwiDataRepresentation. The vesKiwiViewerApp ties together a lot
> >> of these pieces and presents a single interface, so that it is easier
> >> to implement an Android or iOS app in Java or Objective-C. Your
> >> Java/Objective-C code mostly just need to call methods on
> >> vesKiwiViewerApp. If you're designing a mobile app that is similar to
> >> KiwiViewer, then you could reuse vesKiwiViewerApp, or derive from it
> >> and extend the behavior. But, if your app has unique requirements
> >> that are different from those found in KiwiViewer, then you might not
> >> want to use vesKiwiViewerApp at all, instead you could just directly
> >> use the classes from VES and kiwi, or you could design your own app
> >> interface class. In that case, vesKiwiViewerApp can serve as an
> >> example implementation.
> >>
> >> Pat
> >>
> >>
> >>
> >> 2012/11/24 Thiago Tavares Magalhães <ttavaresm at gmail.com>:
> >> > VesKiwiViwerApp
> >
> >
> >
> >
> > --
> > Thiago Tavares Magalhães
> > Instituto Superior de Tecnologia em Ciências da Computação de Petrópolis
> -
> > FAETERJ
> > Laboratório Nacional de Computação Científica - LNCC
> >
>
--
Thiago Tavares Magalhães <http://lattes.cnpq.br/1989532473555107>
Instituto Superior de Tecnologia em Ciências da Computação de Petrópolis - *
FAETERJ*
Laboratório Nacional de Computação Científica -* LNCC*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/ves/attachments/20121127/f9a9a075/attachment.html>
More information about the Ves
mailing list