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.Point2f
Polygon2D. 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 void
PolygonEngine. 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 Polygon2D
GeometryFunctions. getConvexHull(java.util.ArrayList<org.jogamp.vecmath.Point2d> points)
Returns the convex hull ofpoints
.static Polygon2D
GeometryFunctions. getConvexHull2f(java.util.ArrayList<org.jogamp.vecmath.Point2f> points)
Returns the convex hull ofpoints
.static Polygon2D
GeometryFunctions. getIsInternalConcavePoly(Polygon2D poly, org.jogamp.vecmath.Point2f pt)
static Polygon2D
GeometryFunctions. 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 float
GeometryFunctions. 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 Polygon2D
GeometryFunctions. getIsInternalConcavePoly(Polygon2D poly, org.jogamp.vecmath.Point2f pt)
static float[]
GeometryFunctions. getNodeAngles(Polygon2D polygon)
Returns an array of angles made by each node ofpolygon
static 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 Polygon3D
GeometryFunctions. getPolygonFromPlane(Polygon2D poly2d, Plane3D plane)
Returns a 3D polygon which is the representation of a 2D polygon expressed on the given plane.static Polygon2D
GeometryFunctions. 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 boolean
GeometryFunctions. isClockwise(Polygon2D thisPoly)
Determines whether a polygon is clockwise or not (i.e., counter-clockwise).static boolean
GeometryFunctions. isInternalConcave(Polygon2D poly, org.jogamp.vecmath.Point2f pt)
Tests whether a point pt is contained within the boundary of a polygon poly.static boolean
GeometryFunctions. 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 void
DrawingEngine. drawPolygon2D(java.awt.Graphics2D g, Polygon2D thisPoly)
Draws a Polygon2D object.void
DrawingEngine. 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).void
DrawingEngine. drawPolygon2DLine(java.awt.Graphics2D g, Polygon2D thisPoly)
void
DrawingEngine. 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 Polygon2D
Volume2DInt. outline
Methods in mgui.interfaces.shapes that return Polygon2D Modifier and Type Method Description Polygon2D
Polygon2DInt. getPolygon()
Methods in mgui.interfaces.shapes with parameters of type Polygon2D Modifier and Type Method Description void
Volume2DInt. 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 Polygon2D
ShapeFunctions. getIntersectionPolygon(Box3D box, Plane3D plane)
Returns a 2D polygon in section coordinates representing the intersection of a Box3D object with the plane.static Polygon2D
ShapeFunctions. 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 Polygon2D
MappedPolygon2D. A
Polygon2D
MappedPolygon2D. B
Polygon2D
RadialRep2D. source
Polygon2D
RadialRepresentation. source
Polygon2D
MappedPolygon2DPath. startPoly
Methods in mgui.morph.sections that return Polygon2D Modifier and Type Method Description Polygon2D
MappedPolygon2D. getA()
Polygon2D
MappedPolygon2D. getB()
Polygon2D
MappedPolygon2DPath. getLastPolygon()
Polygon2D
MappedPolygon2D. getOrderedA()
Polygon2D
MappedPolygon2D. getOrderedB()
Polygon2D
RadialRep2DInt. getSource()
Polygon2D
MappedPolygon2DPath. getStartPolygon()
Methods in mgui.morph.sections with parameters of type Polygon2D Modifier and Type Method Description void
MappedPolygon2D. setPolygons(Polygon2D a, Polygon2D b)
void
RadialRep2DInt. setRepresentation(Polygon2D thisPoly)
void
RadialRepresentation. 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)