[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [cgmo-webcgm] WebCGMRect
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.ParametersReturn value
- No parameters.
Exceptions
- WebCGMRect; the bounding rectangle of the APS, or null if the APS has no Graphical Primitive elements.
- 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.ParametersReturn value
- viewRect of type WebCGMRect
- The view rectangle in NVDC.
Exceptions
- No return value.
- 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]