🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.graphics.explorer
Article #56

Re: 2 questions

#56
From: Dave Shreiner
Date: Sun, 26 Jul 1992 03:45
44 lines
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
Technical Details
Message-ID: <1992Jul26.034532.23794@odin.corp.sgi.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!darwin.sura.net!jvnc.net!rutgers!sgigate!odin!arioch.csd.sgi.com!shreiner
References: <1992Jul26.021149.15167@cc.gatech.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!darwin.sura.net!jvnc.net!rutgers!sgigate!odin!arioch.csd.sgi.com!shreiner
From: shreiner@arioch.csd.sgi.com (Dave Shreiner)
Newsgroups: comp.graphics.explorer
Subject: Re: 2 questions
Message-ID: <1992Jul26.034532.23794@odin.corp.sgi.com>
Date: 26 Jul 92 03:45:32 GMT
References: <1992Jul26.021149.15167@cc.gatech.edu>
Sender: news@odin.corp.sgi.com (Net News)
Organization: Silicon Graphics, Inc.
Lines: 44
Nntp-Posting-Host: arioch.csd.sgi.com