[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [cgmo-webcgm] ISSUE: the method name 'setViewPort'
setViewBox sounds great to me. Stuart > -----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 > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]