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.
GEF/GEF4/Geometry/Examples
Examples (undeployed)
- bundle: org.eclipse.gef4.geometry.examples
The examples provided by Examples demonstrate how to use the API provided by the Geometry module of GEF4 Geometry. They are not deployed on our update-sites and have to checked out in source (org.eclipse.gef4.geometry.examples
) from our GEF4 Git repository. In order to have the example plug-in compile properly, all other required GEF4 bundles will either have to be installed (in a matching version) into your running eclipse platform (if this is used as target), added to a target definition (the target definitions contained in org.eclipse.gef4.target
may be augmented for this purpose), or checked out in source as well (see GEF Project Contributor Guide for details on how to obtain the sources and setup your workspace). Having prepared everything as outlined before, the standalone example might easily be started by launching one of the following example classes from org.eclipse.gef4.geometry.examples
via the context menu ('Run As' -> 'Java Application').
Touch/Containment
- package: org.eclipse.gef4.geometry.examples.containment
The Touch/Containment examples demonstrate touch and containment detection of Ellipse and Polygon shapes with other geometries.
EllipseLineContainment
The EllipseLineContainment
demonstrates touch/containment tests between Ellipse and Line.
EllipsePolygonContainment
The EllipsePolygonContainment
demonstrates touch/containment tests between Ellipse and Polygon.
EllipseRectangleContainment
The EllipseRectangleContainment
demonstrates touch/containment tests between Ellipse and Rectangle.
PolygonCubicCurveContainment
The PolygonCubicCurveContainment
demonstrates touch/containment tests between Polygon and CubicCurve.
PolygonEllipseContainment
The PolygonEllipseContainment
demonstrates touch/containment tests between Polygon and Ellipse.
PolygonLineContainment
The PolygonLineContainment
demonstrates touch/containment tests between Polygon and Line.
PolygonPolygonContainment
The PolygonPolygonContainment
demonstrates touch/containment tests between Polygons.
PolygonPolylineContainment
The PolygonPolylineContainment
demonstrates touch/containment tests between Polygon and Polyline.
PolygonRectangleContainment
The PolygonRectangleContainment
demonstrates touch/containment tests between Polygon and Rectangle.
Demos
The Demos demonstrate some advanced features of GEF4 Geometry.
BezierApproximationExample
The BezierApproximationExample
demonstrates how a BezierCurve can be approximated from a list of Points.
CAGExample
The CAGExample
demonstrates how constructive-area-geometry (CAG) can be applied through Path representations.
ConvexHullExample
The ConvexHullExample
demonstrates how a convex hull Polygon can be computed from a set of Points.
CubicCurveDeCasteljauExample
The CubicCurveDeCasteljauExample
demonstrates how a CubicCurve gets constructed using the De Casteljau algorithm.
CubicInterpolationExample
The CubicInterpolationExample
demonstrates how a CubicCurve can be interpolated from a set of Points using different width coefficients.
CurvedPolygonExample
The CurvedPolygonExample
demonstrates usage of a CurvedPolygon.