Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "GEF/GEF4/Geometry"

< GEF‎ | GEF4
m
m
Line 3: Line 3:
 
This is the documentation of the GEF4 Geometry API. You can find a small tutorial for the API [[GEF/GEF4/Geometry/Tutorial | here]].
 
This is the documentation of the GEF4 Geometry API. You can find a small tutorial for the API [[GEF/GEF4/Geometry/Tutorial | here]].
  
== Primitives ==
+
== Geometric figures ==
  
 
[[Image:interface-hierarchy.png|Interface hierarchy]]
 
[[Image:interface-hierarchy.png|Interface hierarchy]]
 +
 +
This diagram depicts the interface hierarchy which underlies the individual geometry classes. In turn, the inheritance hierarchy classifies the figures by their construction type. So that many operations are generalized in a few abstract classes.
 +
 +
=== IGeometry ===
 +
 +
[[Image:igeometry-class-diagram.png|IGeometry]]
 +
 +
  
 
=== Point ===
 
=== Point ===

Revision as of 06:38, 16 March 2012

Description

This is the documentation of the GEF4 Geometry API. You can find a small tutorial for the API here.

Geometric figures

Interface hierarchy

This diagram depicts the interface hierarchy which underlies the individual geometry classes. In turn, the inheritance hierarchy classifies the figures by their construction type. So that many operations are generalized in a few abstract classes.

IGeometry

IGeometry


Point

Dimension

Angle

Shapes

Line

Rectangle

RoundedRectangle

Polygon

Polyline

Ellipse

QuadraticCurve

CubicCurve

Path

Conversions (From/To AWT/SWT/Geometry)

From SWT to Geometry

Important. Very easy via the toSWT...() methods.

From AWT to Geometry

From Geometry to AWT

From AWT to SWT

From SWT to AWT

Affine transformations

Via projective geometry. All matrices can be combined before applying them to the particular shape.

Translation

Rotation

Scaling

Shearing

Euclidean geometry

Vector

Straight

Projective geometry

Vector3D

Straight3D

Back to the top