Manta Interactive Ray Tracer Development Mailing List

Text archives Help


Re: [Manta] xwindowui question


Chronological Thread 
  • From: Roni Choudhury <roni@cs.utah.edu>
  • To: James Bigler <bigler@cs.utah.edu>
  • Cc: manta@sci.utah.edu
  • Subject: Re: [Manta] xwindowui question
  • Date: Mon, 15 Oct 2007 15:04:59 -0600

Cool, thanks!

roni

James Bigler wrote:
You should extend MantaInterface.h to be able to add and remove UserInterface* objects. There should also be a way to get a vector of them as well. These functions should be pure virtual like everything else.

In RTRT.h you implement these functions.

In XWindow.h and other UserInterface constructors, you add a call to add themselves to the rtrt_interface passed in. You should also likely deregister itself in the destructor, but comment it out if it core dumps delete it there.

This should be enough changes to Manta to get you able to add your own keyboard shortcuts to XWindow.

James

On Oct 15, 2007, at 2:51 PM, Roni Choudhury wrote:

I guess my question was if there is a real way :)

I'm not sure how to get that pointer without changing the code, and I don't know the best way to do that.

roni

James Bigler wrote:
I thought I talked to you about this problem on Friday. It's easy to do if you have a pointer to the XWindow class. The trick is in getting a pointer to that class, so you can add keyboard transactions to it.
It may be nice to add a list of UserInterface* to MantaInteface, so that if anything the rendering engine could communicate various things to it. Once this is done, we could query the list of UserInterface classes and dynamically cast them to find if there is an XWindow class.
James
On Oct 15, 2007, at 12:12 PM, Roni Choudhury wrote:
Is there an easy way to add new key bindings to the XWindowUI? Or should I just hard code them in?

roni





Archive powered by MHonArc 2.6.16.

Top of page