WebCGM DOM - External Control for Web Graphics

Download Report

Transcript WebCGM DOM - External Control for Web Graphics

WebCGM DOM - External
Control for Web Graphics
Dave Cruikshank
Technical Fellow, The Boeing Company
CTO, CGM Open
Ulrich Laesche
President, Ematek Informatik GmbH
XML Europe 2002
Barcelona, 21 - 23 May
Agenda
•
•
•
•
•
•
Background
Application Structuring
WebCGM Application Structures
WebCGM DOM Requirements
Development Status
Example
XML Europe 2002
Barcelona, 21 - 23 May
Background
• CGM (ISO/IEC 8632)
–
–
–
–
Computer Graphics Metafile - interchange
Robust 2-dimensional graphics language
Stable – 15 years as an ISO standard
Widely supported – technical documentation,
CAD/CAM, desktop publishing, etc.
– Widely profiled – Air Transport Assn, CALS,
AECMA, automotive, telecommunications, etc.
XML Europe 2002
Barcelona, 21 - 23 May
Background - CGM
CGM Version 1 (1987)
Version 2 (Am1:1989)
Version 3 (Am3:1991)
Defect Corrections
Republish
CGM:1992
XML Europe 2002
Barcelona, 21 - 23 May
Background - CGM
CGM Version 3 (1992)
Profiles&Conformance (Am1:1994)
Version 4 (Am2:1995)
Defect Corrections
Republish
CGM:1999
XML Europe 2002
Barcelona, 21 - 23 May
Background
• CGM Open
– Consortium formed in 1998
(www.cgmopen.org)
Users
Boeing
EADS
Bombardier
US Navy
MOD UK
Xerox
(AECMA)
Vendors
Itedo
Sys Dev Inc
Larson S/W
Auto-trol
Ematek
Bentley
(Corel)
XML Europe 2002
Barcelona, 21 - 23 May
Independents
NIST
Lofton Henderson
Bruce Garner
Background - WebCGM
• Based on ATA GREXCHANGE
• Extensions for application
structuring
• Targeted for technical illustrations
– 2D
– Line art
– Navigation functionality
XML Europe 2002
Barcelona, 21 - 23 May
Background - WebCGM
WebCGM V1.0 (1999)
Defect Corrections
Republish
WebCGM V1.0 Release
2 (2001)
XML Europe 2002
Barcelona, 21 - 23 May
Application Structuring
• Group graphical primitives by type
• Attach attributes to groups to
support:
– Linking
– Information retrieval
– Viewer behavior
– Etc.
XML Europe 2002
Barcelona, 21 - 23 May
WebCGM Application
Structure Types
gdata – graphical
primitives
opt – optional
rep – repeat
cho – choice
layer
Picture Body
opt
rep
cho
gdata
rep
cho
grobject
para
grobject
rep
cho
gdata
grobject
XML Europe 2002
Barcelona, 21 - 23 May
para
para
subpara
gdata
gdata
WebCGM Application
Structure Attributes
• layer
– id
– layer Description
– layer Name
• grobject
–
–
–
–
–
–
id
region
view Context
linkuri
screentip
name
• para & subpara
–
–
–
–
–
XML Europe 2002
Barcelona, 21 - 23 May
id
region
linkuri
screentip
content
WebCGM
• What does that buy us?
– The ability to navigate through and
between illustrations
• example
XML Europe 2002
Barcelona, 21 - 23 May
WebCGM
• Why a DOM?
– Control over viewer behavior externally
• Attributes of primitives (color, weight, font,
etc.)
• Visibility of objects
– Remove some (most) of the metadata
from the CGM file
• Context sensitive linking
• Context sensitive screen tips
XML Europe 2002
Barcelona, 21 - 23 May
WebCGM DOM
requirements
• Metafile level
– Access to:
•
•
•
•
File name
URL
Metafile version
Metafile Description
XML Europe 2002
Barcelona, 21 - 23 May
WebCGM DOM
requirements
• Picture level
– Access to:
•
•
•
•
Picture name
VDC extent
Parent
List of children
– Control over:
• Links between children
XML Europe 2002
Barcelona, 21 - 23 May
WebCGM DOM
requirements
• Graphical primitives
– Control over:
•
•
•
•
Color
Intensity
Line weight
Edge weight
XML Europe 2002
Barcelona, 21 - 23 May
WebCGM DOM
requirements
• Layer application structure type
– Access to:
•
•
•
•
•
Identifier
Layer name
Layer description
Parent
List of children
– Control over:
• Visibility
• Links between children
XML Europe 2002
Barcelona, 21 - 23 May
WebCGM DOM
requirements
• Grobject application structure type
– Access to:
•
•
•
•
•
•
Identifier
Name
Region
View context
Parent
List of children
– Control over:
• Linkuri
• Screentip
• visibility
XML Europe 2002
Barcelona, 21 - 23 May
WebCGM DOM
requirements
• Para and subpara application structure
type
– Access to:
•
•
•
•
•
•
Identifier
Region
View context
Content
Parent
List of children
– Control over:
• Linkuri
• Screentip
• visibility
XML Europe 2002
Barcelona, 21 - 23 May
WebCGM DOM
requirements
• Application structure graphical primitives
– Control over:
•
•
•
•
•
•
•
Color
Intensity
Line weight
Edge weight
Text font
Text size
Text scale factor
XML Europe 2002
Barcelona, 21 - 23 May
WebCGM DOM
requirements
• Event handling:
– OnClick
– OnMouseOver
– OnMouseOut
– OnLoad
– OnUnload
XML Europe 2002
Barcelona, 21 - 23 May
DOM Work in Progress
Watch this space
http://www.cgmopen.org
XML Europe 2002
Barcelona, 21 - 23 May