Uses of Class
mgui.geometry.Polygon2D
| Package | Description |
|---|---|
| mgui.geometry |
Provides 2D and 3D geometry representations and utilities for all shapes used in ModelGUI.
|
| mgui.geometry.polygon |
Provides classes for operating on 2D and 3D polygon shapes.
|
| mgui.geometry.util |
Uility classes for geometric operations.
|
| mgui.interfaces.graphics.util |
Utility classes operating on 2D and 3D graphics objects.
|
| mgui.interfaces.shapes |
This package provides interfaces for user interaction with shapes and shape models.
|
| mgui.interfaces.shapes.util | |
| mgui.morph.sections |
-
Uses of Polygon2D in mgui.geometry
Methods in mgui.geometry with parameters of type Polygon2D Modifier and Type Method Description static org.jogamp.vecmath.Point2fPolygon2D. getCenterOfGravity(Polygon2D thisPoly) -
Uses of Polygon2D in mgui.geometry.polygon
Method parameters in mgui.geometry.polygon with type arguments of type Polygon2D Modifier and Type Method Description voidPolygonEngine. MergePolygons(java.util.ArrayList<Polygon2D> polygons) -
Uses of Polygon2D in mgui.geometry.util
Methods in mgui.geometry.util that return Polygon2D Modifier and Type Method Description static Polygon2DGeometryFunctions. getConvexHull(java.util.ArrayList<org.jogamp.vecmath.Point2d> points)Returns the convex hull ofpoints.static Polygon2DGeometryFunctions. getConvexHull2f(java.util.ArrayList<org.jogamp.vecmath.Point2f> points)Returns the convex hull ofpoints.static Polygon2DGeometryFunctions. getIsInternalConcavePoly(Polygon2D poly, org.jogamp.vecmath.Point2f pt)static Polygon2DGeometryFunctions. getReversePolygon(Polygon2D thisPoly)Reverses the direction of this polygon (CW -> CCW or vice versa)Methods in mgui.geometry.util with parameters of type Polygon2D Modifier and Type Method Description static floatGeometryFunctions. getArea(Polygon2D thisPoly)Determines the area ofthisPoly.static java.util.ArrayList<MguiFloat>GeometryFunctions. getCrossProducts(Polygon2D thisPoly)Returns a list of cross-products corresponding the the vertices ofthisPoly.static Polygon2DGeometryFunctions. getIsInternalConcavePoly(Polygon2D poly, org.jogamp.vecmath.Point2f pt)static float[]GeometryFunctions. getNodeAngles(Polygon2D polygon)Returns an array of angles made by each node ofpolygonstatic java.util.ArrayList<org.jogamp.vecmath.Vector2f>GeometryFunctions. getNormals(Polygon2D polygon, boolean CW)Returns a list of vectors which are the normals to the nodes ofpolygon, given a direction of normal, indicated byCW(clockwise iftrue, counterclockwise iffalse).static Polygon3DGeometryFunctions. getPolygonFromPlane(Polygon2D poly2d, Plane3D plane)Returns a 3D polygon which is the representation of a 2D polygon expressed on the given plane.static Polygon2DGeometryFunctions. getReversePolygon(Polygon2D thisPoly)Reverses the direction of this polygon (CW -> CCW or vice versa)static float[]GeometryFunctions. getSegmentLengths(Polygon2D polygon)Returns a list of the lengths of each segment inpolygon.static boolean[][]GeometryFunctions. getSegmentsIntersect(Polygon2D poly1, Polygon2D poly2)static booleanGeometryFunctions. isClockwise(Polygon2D thisPoly)Determines whether a polygon is clockwise or not (i.e., counter-clockwise).static booleanGeometryFunctions. isInternalConcave(Polygon2D poly, org.jogamp.vecmath.Point2f pt)Tests whether a point pt is contained within the boundary of a polygon poly.static booleanGeometryFunctions. isInternalConvex(Polygon2D poly, org.jogamp.vecmath.Point2f pt)Tests whether a point pt is contained within the boundary of a convex polygon poly. -
Uses of Polygon2D in mgui.interfaces.graphics.util
Methods in mgui.interfaces.graphics.util with parameters of type Polygon2D Modifier and Type Method Description voidDrawingEngine. drawPolygon2D(java.awt.Graphics2D g, Polygon2D thisPoly)Draws a Polygon2D object.voidDrawingEngine. drawPolygon2DLabels(java.awt.Graphics2D g, Polygon2D thisPoly, java.lang.String preStr)Draws labels on the vertices of a polygon object, offset to the right (East).voidDrawingEngine. drawPolygon2DLine(java.awt.Graphics2D g, Polygon2D thisPoly)voidDrawingEngine. drawPolygon2DNodes(java.awt.Graphics2D g, Polygon2D thisPoly) -
Uses of Polygon2D in mgui.interfaces.shapes
Fields in mgui.interfaces.shapes declared as Polygon2D Modifier and Type Field Description Polygon2DVolume2DInt. outlineMethods in mgui.interfaces.shapes that return Polygon2D Modifier and Type Method Description Polygon2DPolygon2DInt. getPolygon()Methods in mgui.interfaces.shapes with parameters of type Polygon2D Modifier and Type Method Description voidVolume2DInt. setOutline(Polygon2D poly)Constructors in mgui.interfaces.shapes with parameters of type Polygon2D Constructor Description BoolPolygon2DInt(Polygon2D thisPoly)IntPolygon2DInt(Polygon2D thisPoly)LPolygon2DInt(Polygon2D thisPoly)Polygon2DInt(Polygon2D thisPoly) -
Uses of Polygon2D in mgui.interfaces.shapes.util
Methods in mgui.interfaces.shapes.util that return Polygon2D Modifier and Type Method Description static Polygon2DShapeFunctions. getIntersectionPolygon(Box3D box, Plane3D plane)Returns a 2D polygon in section coordinates representing the intersection of a Box3D object with the plane.static Polygon2DShapeFunctions. getIntersectionPolygon2(Box3D box, Plane3D plane)Returns a 2D polygon in section coordinates representing the intersection of a Box3D object with the plane.Methods in mgui.interfaces.shapes.util that return types with arguments of type Polygon2D Modifier and Type Method Description static java.util.ArrayList<Polygon2D>ShapeFunctions. getMergedPolygons(java.util.ArrayList<Polygon2D> polygons)static java.util.ArrayList<Polygon2D>ShapeFunctions. getMergedPolygonsbak(java.util.ArrayList<Polygon2D> polygons)Methods in mgui.interfaces.shapes.util with parameters of type Polygon2D Modifier and Type Method Description org.jogamp.vecmath.TexCoord2f[]TestTexture. getTexCoords(Polygon2D s)Method parameters in mgui.interfaces.shapes.util with type arguments of type Polygon2D Modifier and Type Method Description static java.util.ArrayList<Polygon2D>ShapeFunctions. getMergedPolygons(java.util.ArrayList<Polygon2D> polygons)static java.util.ArrayList<Polygon2D>ShapeFunctions. getMergedPolygonsbak(java.util.ArrayList<Polygon2D> polygons) -
Uses of Polygon2D in mgui.morph.sections
Fields in mgui.morph.sections declared as Polygon2D Modifier and Type Field Description Polygon2DMappedPolygon2D. APolygon2DMappedPolygon2D. BPolygon2DRadialRep2D. sourcePolygon2DRadialRepresentation. sourcePolygon2DMappedPolygon2DPath. startPolyMethods in mgui.morph.sections that return Polygon2D Modifier and Type Method Description Polygon2DMappedPolygon2D. getA()Polygon2DMappedPolygon2D. getB()Polygon2DMappedPolygon2DPath. getLastPolygon()Polygon2DMappedPolygon2D. getOrderedA()Polygon2DMappedPolygon2D. getOrderedB()Polygon2DRadialRep2DInt. getSource()Polygon2DMappedPolygon2DPath. getStartPolygon()Methods in mgui.morph.sections with parameters of type Polygon2D Modifier and Type Method Description voidMappedPolygon2D. setPolygons(Polygon2D a, Polygon2D b)voidRadialRep2DInt. setRepresentation(Polygon2D thisPoly)voidRadialRepresentation. SetRepresentation(Polygon2D thisPoly)Set the radial representation for a given polygonMethod parameters in mgui.morph.sections with type arguments of type Polygon2D Modifier and Type Method Description protected boolean[][]MorphEngine. getMultiPolygonMapping(java.util.ArrayList<Polygon2D> polys0, java.util.ArrayList<Polygon2D> polys1)protected double[][]MorphEngine. getPolygonDistances(java.util.ArrayList<Polygon2D> polys0, java.util.ArrayList<Polygon2D> polys1)Constructors in mgui.morph.sections with parameters of type Polygon2D Constructor Description ConstrainedRadialRepresentation(Polygon2D thisPoly)MappedPolygon2D(Polygon2D a, Polygon2D b, int psect, int nsect)Constructor passing a source (A) and target (B) polygon.MappedPolygon2DPath(Polygon2D startPoly)RadialRep2D(Polygon2D sourcePoly)RadialRep2DInt(Polygon2D thisPoly)RadialRepresentation(Polygon2D thisPoly)