Package boofcv.gui.feature
Class VisualizeShapes
java.lang.Object
boofcv.gui.feature.VisualizeShapes
Functions for rendering different shapes.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
draw
(Point2D_F64 p0, Point2D_F64 p1, Graphics2D g2) static void
draw
(Quadrilateral_F64 quad, Color sideA, Color others, Graphics2D g2) static void
draw
(Quadrilateral_F64 quad, Graphics2D g2) static void
drawArrow
(double x0, double y0, double x1, double y1, double length, Line2D.Double line, Graphics2D g2) static void
drawArrow
(Point2D_F64 p0, Point2D_F64 p1, Graphics2D g2) static void
drawArrow
(Quadrilateral_F64 quad, Graphics2D g2) static void
drawArrowSubPixel
(Point2D_F64 p0, Point2D_F64 p1, Line2D.Double line, Graphics2D g2) static void
drawArrowSubPixel
(Quadrilateral_F64 quad, double strokeSize, double scale, Graphics2D g2) static void
drawEllipse
(EllipseRotated_F64 ellipse, double scale, Graphics2D g2) static void
drawEllipse
(EllipseRotated_F64 ellipse, Graphics2D g2) Draws the rotated ellipsestatic void
drawPolygon
(Polygon2D_F64 polygon, boolean loop, double scale, Color color0, Color colorOthers, Graphics2D g2) static void
drawPolygon
(Polygon2D_F64 polygon, boolean loop, double scale, Graphics2D g2) static void
drawPolygon
(Polygon2D_F64 polygon, boolean loop, Graphics2D g2) Draws a polygonstatic void
drawPolygon
(Polygon2D_F64 polygon, boolean loop, Graphics2D g2, boolean interpolate) static <T extends Point2D_I32>
voiddrawPolygon
(List<T> vertexes, boolean loop, double scale, Graphics2D g2) static <T extends Point2D_I32>
voiddrawPolygon
(List<T> vertexes, boolean loop, Graphics2D g2) Draws a polygonstatic void
drawPolygonCorners
(Polygon2D_F64 polygon, int radius, Graphics2D g2, boolean interpolate) static void
drawQuad
(Quadrilateral_F64 quad, Graphics2D g2, boolean subpixel) static void
drawQuad
(Quadrilateral_F64 quad, Graphics2D g2, boolean subpixel, Color color1, Color color2) static void
drawQuad
(Quadrilateral_F64 quad, Graphics2D g2, double scale, boolean subpixel, Color color1, Color color2) static void
drawRectangle
(double x0, double y0, double x1, double y1, Line2D.Double line, Graphics2D g2) static void
drawRectangle
(Rectangle2D_I32 rect, Graphics2D g2) Draws an axis aligned rectanglestatic void
drawSubPixel
(Point2D_F64 p0, Point2D_F64 p1, Line2D.Double line, Graphics2D g2) static void
fillPolygon
(Polygon2D_F64 polygon, double scale, Graphics2D g2)
-
Constructor Details
-
VisualizeShapes
public VisualizeShapes()
-
-
Method Details
-
draw
-
draw
-
draw
-
drawSubPixel
-
drawArrowSubPixel
public static void drawArrowSubPixel(Quadrilateral_F64 quad, double strokeSize, double scale, Graphics2D g2) -
drawArrowSubPixel
public static void drawArrowSubPixel(Point2D_F64 p0, Point2D_F64 p1, Line2D.Double line, Graphics2D g2) -
drawArrow
-
drawArrow
-
drawArrow
public static void drawArrow(double x0, double y0, double x1, double y1, double length, Line2D.Double line, Graphics2D g2) -
drawPolygon
public static <T extends Point2D_I32> void drawPolygon(List<T> vertexes, boolean loop, Graphics2D g2) Draws a polygon- Parameters:
vertexes
- List of vertices in the polygonloop
- true if the end points are connected, forming a loopg2
- Graphics object it's drawn to
-
drawPolygon
public static <T extends Point2D_I32> void drawPolygon(List<T> vertexes, boolean loop, double scale, Graphics2D g2) -
drawPolygon
Draws a polygon- Parameters:
polygon
- The polygonloop
- true if the end points are connected, forming a loopg2
- Graphics object it's drawn to
-
drawPolygon
public static void drawPolygon(Polygon2D_F64 polygon, boolean loop, Graphics2D g2, boolean interpolate) -
drawPolygon
-
drawPolygon
public static void drawPolygon(Polygon2D_F64 polygon, boolean loop, double scale, Color color0, Color colorOthers, Graphics2D g2) -
fillPolygon
-
drawPolygonCorners
public static void drawPolygonCorners(Polygon2D_F64 polygon, int radius, Graphics2D g2, boolean interpolate) -
drawEllipse
Draws the rotated ellipse- Parameters:
ellipse
- Description of the ellipseg2
- Graphics object
-
drawEllipse
-
drawRectangle
Draws an axis aligned rectangle- Parameters:
rect
- Rectangleg2
- Graphics object
-
drawRectangle
public static void drawRectangle(double x0, double y0, double x1, double y1, Line2D.Double line, Graphics2D g2) -
drawQuad
-
drawQuad
public static void drawQuad(Quadrilateral_F64 quad, Graphics2D g2, boolean subpixel, Color color1, Color color2) -
drawQuad
public static void drawQuad(Quadrilateral_F64 quad, Graphics2D g2, double scale, boolean subpixel, Color color1, Color color2)
-