OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

cgmo-webcgm message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: RE: [cgmo-webcgm] ISSUE: the method name 'setViewPort'


At 06:42 AM 4/14/2008 -0700, Galt, Stuart A wrote:
>setViewBox sounds great to me.

Okay, let's finish this one off on Wednesday telecon.

I'm interested to hear what any other of our SVG experts think about it, 
esp. my assertions about 'viewport', 'viewBox', etc.

(Btw, I forgot to include the link to my SVG reference:
http://www.w3.org/TR/SVG11/coords.html  )

-Lofton.

>
>
> > -----Original Message-----
> > From: Lofton Henderson [mailto:lofton@rockynet.com]
> > Sent: Sunday, April 13, 2008 11:03 AM
> > To: CGM Open WebCGM TC
> > Subject: [cgmo-webcgm] ISSUE: the method name 'setViewPort'
> >
> > Hi all --
> >
> > This is not a big technical issue, but I'm a little
> > uncomfortable with the calling the pan-zoom rectangle
> > "viewport".  Reasons:
> >
> > 1.) That is the name of a <param> element (sub-element of the <object>
> > element) that is being deprecated.  Although it has the same
> > meaning as described for 'viewport' <param>, I think that
> > description is less-than-ideal because...
> >
> > 2.) From my past work in ISO graphics standards, "viewport"
> > typically refers to something in *device* (display)
> > coordinate space, which is the mapping target of a window in
> > user space (the latter being VDC or NVDC, in our case).
> >
> > 3.) Altho' I find it slightly unclear in some places, SVG
> > seems to use "viewport" in approximately that (#2) way -- it
> > refers to a target mapping rectangle in device/media space.
> > The closest SVG thing to our pan-zoom rectangle seems to be
> > SVG's viewBox attribute.  See [1], especially sections 7.1,
> > 7.2 and 7.7.
> >
> > Suggestion:  how about just setPanZoom?  (Alternative:  mimic
> > SVG exactly and call it setViewBox.)
> >
> > Thoughts?
> >
> > -Lofton.
> >
> > At 03:04 PM 3/24/2008 -0700, Galt, Stuart A wrote:
> > >Hello,
> > >
> > >Chapter 1 - no changes
> > >Chapter 2 - no changes
> > >Chapter 3 - no changes
> > >Chapter 4 - no changes
> > >
> > >Chapter 5
> > >
> > >In 5.7.5
> > >Add to the IDL
> > >
> > >void              setViewPort (in WebCGMString port);
> > >
> > >In the methods section add:
> > >
> > >setViewPort
> > >Sets the viewport to the specified rectangle expressed in NVDC units.
> > >
> > >To set the viewport around two APS you could get the object
> > extent of
> > >both APS and then set the viewport to the new rectangle
> > defined by the
> > >minimum x value, minimum y value, maximum x value, maximum y value.
> > >
> > >Parameter
> > >                 port of type WebCGM String
> > >                 The two corner points of a rectangle in NVDC
> > >
> > >Exceptions
> > >No exceptions.
> > >
> > >chapter 6 - no changes
> > >chapter 7 - no changes
> > >chapter 8 -
> > >
> > >add to the WebCGM object methods
> > >The WebCGMPicture object has the following methods:
> > >...
> > >setViewPort(port)
> > >         This method has no return value.
> > >         The port parameter is of type String.
> > >
> > >
> > >
> > >--
> > >Stuart Galt
> > >SGML Resource Group
> > >stuart.a.galt@boeing.com
> > >(206) 544-3656
> > >
> > >
> > >---------------------------------------------------------------------
> > >To unsubscribe from this mail list, you must leave the OASIS TC that
> > >generates this mail.  You may a link to this group and all
> > your TCs in
> > >OASIS
> > >at:
> > >https://www.oasis-open.org/apps/org/workgroup/portal/my_workg
>roups.php
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this mail list, you must leave the OASIS
> > TC that generates this mail.  You may a link to this group
> > and all your TCs in OASIS
> > at:
> > https://www.oasis-open.org/apps/org/workgroup/portal/my_workgr
>oups.php
> >
> >
>
>---------------------------------------------------------------------
>To unsubscribe from this mail list, you must leave the OASIS TC that
>generates this mail.  You may a link to this group and all your TCs in OASIS
>at:
>https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]