- 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').
- package: org.eclipse.gef4.geometry.examples.containment
PolygonPolygonContainment demonstrates touch/containment tests between Polygons.
CAGExample demonstrates how constructive-area-geometry (CAG) can be applied through Path representations.
CubicCurveDeCasteljauExample demonstrates how a CubicCurve gets constructed using the De Casteljau algorithm.
RegionClippingExample demonstrates how a Region can be used to compute clipping areas.
RingClippingExample demonstrates how demonstrates how a Ring can be used to compute clipping areas.
- package: org.eclipse.gef4.geometry.examples.intersection
CubicCurvesIntersection demonstrates intersection calculation for CubicCurves.
EllipseEllipseIntersection demonstrates intersection calculation between Ellipses.
PolygonPolygonIntersection demonstrates intersection calculation between Polygons.
QuadraticCurvesIntersection demonstrates intersection calculation between QuadraticCurves.
- package: org.eclipse.gef4.geometry.examples.scalerotate
CubicCurveScaleRotate demonstrates rotating/scaling of CubicCurves.
PolygonScaleRotate demonstrates rotating/scaling of Polygons.