Manta Interactive Ray Tracer Development Mailing List

Text archives Help


Re: [Manta] xwindowui question


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

So, are you using manta.cc to start up Manta? Where were you planning on adding the extra hooks? manta.cc, the scene file?

@Abe, I think it's reasonable to be able to ask the engine, "What UIs do you have attached to you?" How else could this information be transmitted?

James

On Oct 15, 2007, at 3:23 PM, Roni Choudhury wrote:

I'd like to be able to hit a key and get some camera specs from the system. Then I can propagate the camera settings to my other renderers and make side-by-side comparisons.

roni

James Bigler wrote:
Roni, how are you creating XWindow? I forgot *why* you needed to do this.
James
On Oct 15, 2007, at 3:16 PM, Abe Stephens wrote:

Alternatively you could make a copy of StandAlone/manta.cc and modify XWindowUI as necessary after it is created (line ~351) or explicitly create whatever you want. This wouldn't require modifying the core headers. I think it's the best way to do it and mirrors what we've done in the past.

Abe

On Oct 15, 2007, at 3:01 PM, 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