<div dir="ltr"><div>Hi Jamie,<br><br></div>Ideally, the entire kiwi c++ api would be available to you to call directly from the java files. The idea would be to use a tool like Swig to automatically generate java bindings. I started a work-in-progress branch that explored using Swig to generate java and python bindings to Kiwi, but that work was not completed. So for now, you must manually extend KiwiNative.java and KiwiNative.cpp to hand-write jni interface methods. So you could do that, write a new jni interface, to set the background color from Java. Or you could set the background color one time just in the setupGraphics() method of KiwiNative.cpp. I guess I'd recommend going the jni route for most flexibility. The jni methods are defined in KiwiNative.cpp and in KiwiNative.java.<br>
<br>Pat<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 19, 2014 at 3:52 PM, Wright James (NHS Greater Glasgow & Clyde) <span dir="ltr"><<a href="mailto:jamie.wright@nhs.net" target="_blank">jamie.wright@nhs.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I had seen that method but I couldn't see where it was actually used to set the blue background.<br>
<br>
When using the vesKiwi cpp files is the idea to access them through the JNI by calling them in KiwiNative.java and using them in other .java files? Or should I be editing the vesKiwi*.cpp files directly and rebuilding kiwiviewer each time? Apologies if this is explained on the wiki or elsewhere but I haven't been able to Google any results<br>
<br>
Jamie<br>
<br>
________________________________________<br>
From: Aashish Chaudhary [<a href="mailto:aashish.chaudhary@kitware.com">aashish.chaudhary@kitware.com</a>]<br>
Sent: 19 May 2014 17:01<br>
To: Wright James (NHS Greater Glasgow & Clyde)<br>
Cc: <a href="mailto:ves@public.kitware.com">ves@public.kitware.com</a><br>
Subject: Re: [Ves] Android Kiwiviewer: change KiwiGlSurfaceView background color<br>
<div class=""><br>
Have a look at the vesKiwiBaseApp.h and this method: setBackgroundColor.<br>
<br>
Let me know if this helps.<br>
<br>
- Aashish<br>
<br>
<br>
<br>
</div><div><div class="h5">On Mon, May 19, 2014 at 11:58 AM, Wright James (NHS Greater Glasgow & Clyde) <<a href="mailto:jamie.wright@nhs.net">jamie.wright@nhs.net</a><mailto:<a href="mailto:jamie.wright@nhs.net">jamie.wright@nhs.net</a>>> wrote:<br>
Dear All,<br>
<br>
I am trying to integrate VES into an Android application using the Kiwiviewer example application as a start. At present the default background color in the GlSurfaceView in this application is light blue. How can I change this to a different color? Apologies if this is an easy question but it's got me stumped.<br>
<br>
thanks, Jamie<br>
<br>
<br>
********************************************************************************************************************<br>
<br>
This message may contain confidential information. If you are not the intended recipient please inform the<br>
sender that you have received the message in error before deleting it.<br>
Please do not disclose, copy or distribute information in this e-mail or take any action in reliance on its contents:<br>
to do so is strictly prohibited and may be unlawful.<br>
<br>
Thank you for your co-operation.<br>
<br>
NHSmail is the secure email and directory service available for all NHS staff in England and Scotland<br>
NHSmail is approved for exchanging patient data and other sensitive information with NHSmail and GSi recipients<br>
NHSmail provides an email address for your career in the NHS and can be accessed anywhere<br>
<br>
********************************************************************************************************************<br>
<br>
</div></div>_______________________________________________<br>
Ves mailing list<br>
<a href="mailto:Ves@public.kitware.com">Ves@public.kitware.com</a><mailto:<a href="mailto:Ves@public.kitware.com">Ves@public.kitware.com</a>><br>
<div class="im HOEnZb"><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>
<br>
<br>
<br>
--<br>
| Aashish Chaudhary<br>
| Technical Leader<br>
| Kitware Inc.<br>
| <a href="http://www.kitware.com/company/team/chaudhary.html" target="_blank">http://www.kitware.com/company/team/chaudhary.html</a><br>
<br>
</div><div class="im HOEnZb">********************************************************************************************************************<br>
<br>
This message may contain confidential information. If you are not the intended recipient please inform the<br>
sender that you have received the message in error before deleting it.<br>
Please do not disclose, copy or distribute information in this e-mail or take any action in reliance on its contents:<br>
to do so is strictly prohibited and may be unlawful.<br>
<br>
Thank you for your co-operation.<br>
<br>
NHSmail is the secure email and directory service available for all NHS staff in England and Scotland<br>
NHSmail is approved for exchanging patient data and other sensitive information with NHSmail and GSi recipients<br>
NHSmail provides an email address for your career in the NHS and can be accessed anywhere<br>
<br>
********************************************************************************************************************<br>
</div><div class="HOEnZb"><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br></div>