Article View: comp.windows.interviews
Article #35Graphic State & Transformers
From: Rajesh Gupta
Date: Sat, 31 Oct 1992 00:30
Date: Sat, 31 Oct 1992 00:30
47 lines
1977 bytes
1977 bytes
I have a few questions pertaining to Graphics within Unidraw. Any
help/pointers will be much appreciated:
i) Can someone out there list the RULES FOR USING TRANSFORMERS
(the Transformations processor) in InterViews. Browsing through
the literature and the man pages, I drew a blank. Stepping through
some code and dumping out data structure values unravelled part of
the mystery, but is turning out to be an extremely tedious process.
ii) Can I abstract the graphic state representation of InterViews to
a normalized and succinct representation in terms of a
- a chosen number of fonts, brushes and a perspective, and
- co-oridnates with respect to an absolute frame of reference
With this normailized representation I want to recreate a replica of
the graphic (same scaling, translation, rotation and perspective)
iii) I am having trouble with initializing the HANDLER for a component
derived from GraphicComp. This is the sequence of operations
I perform
- obtain the original coordinates of the views graphic,
- apply the graphic's total transformation to these
coordinates
- initialize a rubberhandle with the transformed co-ordinates
This does not work! What I get are rubber handles that are translated
to the left and to the bottom and these *do not change* when the graphic
is zoomed into.
Thanks in advance.
Rajesh
Motorola, Inc.
Tel: 602 897 3991
---
Technical Details
Message-ID:
<1992Oct31.003032.2785@newsgate.sps.mot.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!spsgate!mogate!newsgate!utopia!guptaReferences:
<16743@borg.cs.unc.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.windows.interviews Path: arc1-ca.pugleaf.net!sparky!uunet!spsgate!mogate!newsgate!utopia!gupta From: gupta@utopia.sps.mot.com (Rajesh Gupta) Subject: Graphic State & Transformers Message-ID: <1992Oct31.003032.2785@newsgate.sps.mot.com> Sender: usenet@newsgate.sps.mot.com Nntp-Posting-Host: 223.188.10.36 Reply-To: gupta@utopia.sps.mot.com Organization: Motorola, Inc. References: <16743@borg.cs.unc.edu> Date: Sat, 31 Oct 1992 00:30:32 GMT Lines: 47