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] WebCGMRect


Yes chapter 5.
ECMAScript snippet, yes but after approval.
 
Benoit


From: Lofton Henderson [mailto:lofton@rockynet.com]
Sent: Monday, June 09, 2008 12:56 PM
To: Bezaire, Benoit; cgmo-webcgm@lists.oasis-open.org
Subject: Re: [cgmo-webcgm] WebCGMRect

Thanks Benoit. 

VENDORS especially, have a look at it before Wednesday.  (I think we need to discuss/endorse this at the Wednesday telecon.)

I have a couple of small questions of clarification -- from Editor's perspective -- before I could put it in the spec:

1.) where would you propose to put the WebCGMRect interface in Chapter 5?

2.) could you supply the Ch.8 ECMAScript bits?  (Maybe after we endorse the Ch.5 bits.)

Plus one comment/question:

3.) things like 'union' are convenience methods, yes?  To the question, "do we need more", I would ask another question:  to the implementors want the obligation of implementing more?

Regards,
-Lofton.

At 12:21 PM 6/9/2008 -0400, Bezaire, Benoit wrote:
Here is the proposal for the WebCGMRect interface:
 
---
 
interface WebCGMRect {
   
attribute float xll; // x coordinate of the lower left corner
   
attribute float yll; // y coordinate of the lower left corner
   
attribute float xur; // x coordinate of the upper right corner
   
attribute float yur; // y coordinate of the upper right corner
 
   
WebCGMRect union( in WebCGMRect r );
};
 
Methods
    union
               
Computes the union of the current rectangle with the input rectangle r. Returns resulting new WebCGMRect
 
               
Parameters
                       
in WebCGMRect r. The rectangle used to calculate the union.
               
Return value
                       
WebCGMRect    The resulting rectangle.
               
No Exceptions
 
 
 
Updated APIs...
 
WebCGMRect getObjectExtent()

Retrieves the bounding box rectangle of the Graphical Primitive elements within an APS. The bounding box calculation is based on the abstract locus of the primitives within the APS it is not affected by CGM Primitive Attribute (such as line width) or Control elements, nor by APS Attributes or Style Properties (except geometric transform). The rectangle is defined by two diametrically opposite corner points expressed in NVDC after the application of the Current Transformation Matrix.Parameters
No parameters.
Return value
WebCGMRect; the bounding rectangle of the APS, or null if the APS has no Graphical Primitive elements.
Exceptions
No exceptions.

 
Updated APIs...
 
setView
    Sets the view to the specified rectangle expressed in NVDC units.

WebCGMRect::union and WebCGMAppStructure::getObjectExtent can be used to set the view around more than one APS.Parameters
viewRect of type WebCGMRect
The view rectangle in NVDC.
Return value
No return value.
Exceptions
No exceptions.

Questions:
- do we need other methods on the WebCGMRect interface? see for example: http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Rectangle.html
 
 

No virus found in this incoming message.
Checked by AVG.
Version: 8.0.100 / Virus Database: 270.1.0/1492 - Release Date: 6/9/2008 10:29 AM


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