Uses of Class
mgui.geometry.Shape2D
Package | Description |
---|---|
mgui.geometry |
Provides 2D and 3D geometry representations and utilities for all shapes used in ModelGUI.
|
mgui.geometry.util |
Uility classes for geometric operations.
|
mgui.interfaces.plots.mgui | |
mgui.interfaces.shapes |
This package provides interfaces for user interaction with shapes and shape models.
|
mgui.interfaces.shapes.graphs | |
mgui.morph.sections |
-
Uses of Shape2D in mgui.geometry
Subclasses of Shape2D in mgui.geometry Modifier and Type Class Description class
Circle2D
Represents a 2D circle.class
Ellipse2D
Represents an ellipse shape.class
Graph2D
Represents a graph as a 2D geometric shape.class
LineSegment2D
Represents a line segment in R2.class
Point2D
Represents a 2D point.class
PointSet2D
Represents a set of 2D points.class
Polygon2D
Represents a series of connected 2D points, defining either a polyline or a closed polygon.class
Radius2D
DEV NOTE: deprecate or change; does not have fixed geometry, thus doesn't fit definition of aShape
.class
Rect2D
Represents a 2D rectangle.class
Text2D
Represents a character string with 2D geometry.class
Triangle2D
Represents a 2D triangle.class
Vector2D
Represents a 2D vector, defined by an end-point and a vector. -
Uses of Shape2D in mgui.geometry.util
Methods in mgui.geometry.util with parameters of type Shape2D Modifier and Type Method Description static org.jogamp.vecmath.Point2f
GeometryFunctions. getCenterOfGravity(Shape2D s)
static int
GeometryFunctions. getClosestVertex(Shape2D shape, org.jogamp.vecmath.Point2f point)
Returns the vertex ofshape
which is closest topoint
.static void
GeometryFunctions. rotate(Shape2D shape, org.jogamp.vecmath.Point2d base_point, double angle)
Rotatesshape
aboutbase_point
byangle
radians.static void
GeometryFunctions. rotate(Shape2D shape, org.jogamp.vecmath.Point2f base_point, double angle)
Rotatesshape
aboutbase_point
byangle
radians. -
Uses of Shape2D in mgui.interfaces.plots.mgui
Methods in mgui.interfaces.plots.mgui that return Shape2D Modifier and Type Method Description Shape2D
PlotMap2D. mapDataShapeToPlot(Shape2D data_shape)
Maps an mgui shape from data points to plot pointsMethods in mgui.interfaces.plots.mgui with parameters of type Shape2D Modifier and Type Method Description java.awt.Shape
PlotMap2D. mapDataShapeToGraphic(Shape2D data_shape)
Maps an mgui shape from data points to graphic pointsShape2D
PlotMap2D. mapDataShapeToPlot(Shape2D data_shape)
Maps an mgui shape from data points to plot pointsjava.awt.Shape
PlotMap2D. mapPlotShapeToGraphic(Shape2D plot_shape)
Maps an mgui shape from data points to graphic points -
Uses of Shape2D in mgui.interfaces.shapes
Fields in mgui.interfaces.shapes declared as Shape2D Modifier and Type Field Description Shape2D
Shape2DInt. thisShape
Methods in mgui.interfaces.shapes that return Shape2D Modifier and Type Method Description Shape2D
Shape2DInt. getShape()
Methods in mgui.interfaces.shapes with parameters of type Shape2D Modifier and Type Method Description void
BoolPolygon2DInt. setShape(Shape2D thisShape)
void
IntPolygon2DInt. setShape(Shape2D thisShape)
void
Polygon2DInt. setShape(Shape2D newShape)
void
Rect2DInt. setShape(Shape2D newShape)
void
Shape2DInt. setShape(Shape2D newShape)
void
Text2DInt. setShape(Shape2D newShape)
-
Uses of Shape2D in mgui.interfaces.shapes.graphs
Methods in mgui.interfaces.shapes.graphs with parameters of type Shape2D Modifier and Type Method Description void
Graph2DInt. setShape(Shape2D shape)
-
Uses of Shape2D in mgui.morph.sections
Subclasses of Shape2D in mgui.morph.sections Modifier and Type Class Description class
RadialRep2D
Methods in mgui.morph.sections that return Shape2D Modifier and Type Method Description Shape2D
RadialRep2DInt. getShape()