[Ves] VesKiwiViwerApp

Thiago Tavares Magalhães ttavaresm at gmail.com
Wed Nov 28 12:37:51 EST 2012


Hi Aashish

I'll explore these possibilities here then.

Thank you for your cooperation!

hugs,
Thiago

2012/11/27 Aashish Chaudhary <aashish.chaudhary at kitware.com>

> Hi Thiago,
>
> There are two things:
>
> 1) XCode version is linked with the iOS version. So you would have to
> make sure they are compatible.
> 2) To run it on the device you need a provision file. Now if you have
> a iOS developer program membership then you can do it yourself.
> 3) Worst case, you can run it on the simulator.
>
> Hope this helps.
>
> Thanks,
>
>
> On Tue, Nov 27, 2012 at 1:18 PM, Thiago Tavares Magalhães
> <ttavaresm at gmail.com> wrote:
> > Sorry, but came over a little problem
> >
> > I used the command "open KiwiMidas.xcodeproj /" and open the xcode
> project.
> > However, when I try to run, the message error xcode:
> >
> > Xcode can not run using the selected device.
> > No provisioned iOS devices are available with a compatible iOS version.
> > Connect an iOS device with a recent enough version of iOS to run your
> > application or choose an iOS simulator to the destination.
> >
> > There is a relationship with the version of xcode?
> > What do you think?
> >
> > Thank you,
> > Thiago
> >
> >
> > 2012/11/27 Thiago Tavares Magalhães <ttavaresm at gmail.com>
> >>
> >> Hi Aashish,
> >>
> >> It worked perfectly.
> >> Many thanks to Pat and Aashish.
> >> I'm sure this example will help much my job.
> >>
> >> Hugs and many thanks,
> >> Thiago
> >>
> >>
> >> 2012/11/27 Aashish Chaudhary <aashish.chaudhary at kitware.com>
> >>>
> >>> Hi, Thiago
> >>>
> >>> You want to save you changes before you checkout new code. There are
> >>> couple of ways to do so:
> >>>
> >>> a) Just run
> >>> 1. git stash
> >>>
> >>> b)
> >>> 1. git checkout -b branch_name
> >>> 2. git add filename1 filname2
> >>> 3. git commit -m "Some message"
> >>>
> >>> and then get back to your usual checkout command.
> >>>
> >>> Hope it helps.
> >>>
> >>>
> >>> On Tue, Nov 27, 2012 at 12:37 PM, Thiago Tavares Magalhães
> >>> <ttavaresm at gmail.com> wrote:
> >>> > Hi Pat
> >>> >
> >>> > Is there a specific directory where I need to run these commands?
> >>> > After I execute the last command opens the following error:
> >>> >
> >>> > error: Your location changes to the Following files would be
> >>> > overwritten by
> >>> > checkout:
> >>> > Android / iOS / Kiwi / Kiwi / LoadDataController.m
> >>> > Android / iOS / Kiwi / Kiwi / kiwiAppDelegate.mm
> >>> > Please, commit your changes or stash Them before you can switch
> >>> > branches.
> >>> > Aborting
> >>> >
> >>> > Maybe that way the command is trying to overwrite files from Kiwi.
> >>> > But I'm not sure.
> >>> >
> >>> > Already thank you,
> >>> > Thiago
> >>> >
> >>> >
> >>> >
> >>> > 2012/11/27 Pat Marion <pat.marion at kitware.com>
> >>> >>
> >>> >> Sorry I think I had a typo.
> >>> >>
> >>> >> Try:
> >>> >>
> >>> >> git remote rm stage
> >>> >> git remote add stage git://vtk.org/stage/VES.git
> >>> >>
> >>> >>
> >>> >> Pat
> >>> >>
> >>> >> On Tue, Nov 27, 2012 at 11:16 PM, Thiago Tavares Magalhães
> >>> >> <ttavaresm at gmail.com> wrote:
> >>> >> > Hi Pat
> >>> >> >
> >>> >> > Thank you so much.
> >>> >> > I think that is exactly what I need.
> >>> >> >
> >>> >> > When I run the line "git remote add git :/ stage / vtk.org:
> stage /
> >>> >> > VES.git"
> >>> >> > terminal proceeds normally.
> >>> >> >
> >>> >> > However when I run the line "git fetch stage" appears the
> following
> >>> >> > error
> >>> >> > message:
> >>> >> > "fatal: Unable to look up vtk.org (port stage) (nodename nor
> >>> >> > servname
> >>> >> > provided, or not known)"
> >>> >> > And now?
> >>> >> >
> >>> >> > Thank you,
> >>> >> > Thiago
> >>> >> >
> >>> >> >
> >>> >> >
> >>> >> > 2012/11/27 Pat Marion <pat.marion at kitware.com>
> >>> >> >>
> >>> >> >> Normally, you would use a GLKViewController in Xcode's Interface
> >>> >> >> Builder.  The iOS app in Apps/iOS/Kiwi was developed before iOS
> >>> >> >> GLKit
> >>> >> >> was released, so Apps/iOS/Kiwi is now a slightly out dated
> example,
> >>> >> >> and it does not use GLKView or GLKViewController, it uses the
> >>> >> >> ES2Renderer as you saw.  For a more recent example, you could
> >>> >> >> checkout
> >>> >> >> the midas-kiwi branch on the VES stage remote:
> >>> >> >>
> >>> >> >> git remote add stage git://vtk.org:stage/VES.git
> >>> >> >> git fetch stage
> >>> >> >> git checkout -t stage/midas-kiwi
> >>> >> >>
> >>> >> >> Then look in Apps/iOS/KiwiMidas.  This app uses a GLKView and
> >>> >> >> GLKViewController.  These are objects that you can create in
> >>> >> >> Xcode's
> >>> >> >> Interface Builder, you can put them in a xib file.  Then you
> could
> >>> >> >> see
> >>> >> >> the file MyGLKViewController.mm for an example of how the
> >>> >> >> GLKViewController calls vesKiwiViewerApp::render().
> >>> >> >>
> >>> >> >> Pat
> >>> >> >>
> >>> >> >>
> >>> >> >>
> >>> >> >> On Tue, Nov 27, 2012 at 9:34 PM, Thiago Tavares Magalhães
> >>> >> >> <ttavaresm at gmail.com> wrote:
> >>> >> >> > 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
> >>> >> >> > 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
> >>> >> > 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
> >>> > Instituto Superior de Tecnologia em Ciências da Computação de
> >>> > Petrópolis -
> >>> > FAETERJ
> >>> > Laboratório Nacional de Computação Científica - LNCC
> >>> >
> >>> >
> >>> > _______________________________________________
> >>> > Ves mailing list
> >>> > Ves at public.kitware.com
> >>> > http://public.kitware.com/cgi-bin/mailman/listinfo/ves
> >>> >
> >>>
> >>>
> >>>
> >>> --
> >>> | Aashish Chaudhary
> >>> | R&D Engineer
> >>> | Kitware Inc.
> >>> | www.kitware.com
> >>
> >>
> >>
> >>
> >> --
> >> 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
> > Instituto Superior de Tecnologia em Ciências da Computação de Petrópolis
> -
> > FAETERJ
> > Laboratório Nacional de Computação Científica - LNCC
> >
>
>
>
> --
> | Aashish Chaudhary
> | R&D Engineer
> | Kitware Inc.
> | www.kitware.com
>



-- 
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/20121128/105433e9/attachment-0001.html>


More information about the Ves mailing list