Thread View: comp.graphics.explorer
2 messages
2 total messages
Started by Sougata Mukherjea
Sun, 26 Jul 1992 02:11
2 questions
Author: Sougata Mukherjea
Date: Sun, 26 Jul 1992 02:11
Date: Sun, 26 Jul 1992 02:11
20 lines
1468 bytes
1468 bytes
Hi,
I am trying to develop some modules in the explorer and have these 2 questions:
(1) I have opended a Gl-Motif window and I want to divide it into 4 equal parts
to show 4 different views (Perspective, Top, Front, Side) of an object.
I am drawing the object using gl but my problem is dividing the window so
that in each a different view can be shown.
(2) I want to build up a dialog box similar to the Connections window that pops up
in the module builder. Specifically, on two sides of my window various buttons
would be shown. The user can connect a button from 1 side to a button in the
other side. Once connected, the connection would be shown by a blue line (as
is the case for all connections in Explorer). What is the easiest way to write
this code?
Hope someone can help!
==============================================================================
Sougata Mukherjea (sougata@cc.gatech.edu)
Graphics Visualization and Usability Center
College of Computing
Georgia Tech
=============================================================================
Re: 2 questions
Author: Dave Shreiner
Date: Sun, 26 Jul 1992 03:45
Date: Sun, 26 Jul 1992 03:45
44 lines
2597 bytes
2597 bytes
In article <1992Jul26.021149.15167@cc.gatech.edu>, sougata@cc.gatech.edu (Sougata Mukherjea) writes:
> Hi,
> I am trying to develop some modules in the explorer and have these 2 questions:
> (1) I have opended a Gl-Motif window and I want to divide it into 4 equal parts
> to show 4 different views (Perspective, Top, Front, Side) of an object.
> I am drawing the object using gl but my problem is dividing the window so
> that in each a different view can be shown.
I'd take a look at the viewport() command. It controls where you're
graphics are going to be drawn in the window.
> (2) I want to build up a dialog box similar to the Connections window that pops up
> in the module builder. Specifically, on two sides of my window various buttons
> would be shown. The user can connect a button from 1 side to a button in the
> other side. Once connected, the connection would be shown by a blue line (as
> is the case for all connections in Explorer). What is the easiest way to write
> this code?
Given that you probably have only GL and X/Motif to choose from, its got
to be one of them. Buttons and popups like Explorer uses are a result of
Motif, so that would be the easiest for that. Since you can't mix X and
GL in a window, if you choose that route, then you'd need to draw the wire
using Xlib. Its my guess that's how Explorer renders the wires and the like.
>
> Hope someone can help!
> ==============================================================================
> Sougata Mukherjea (sougata@cc.gatech.edu)
> Graphics Visualization and Usability Center
> College of Computing
> Georgia Tech
> =============================================================================
Hope that helps.
Thanx,
Dave
---------------------------------------------------------------------------
Dave Shreiner <shreiner@sgi.com>
Silicon Graphics, Inc. (415) 390 - 5063
"Silently screaming I bang my head against the wall" - Suicidal Tendencies
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads