Package boofcv.gui.feature
Class VisualizeShapes
java.lang.Object
boofcv.gui.feature.VisualizeShapes
Functions for rendering different shapes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddraw(Point2D_F64 p0, Point2D_F64 p1, Graphics2D g2) static voiddraw(Quadrilateral_F64 quad, Color sideA, Color others, Graphics2D g2) static voiddraw(Quadrilateral_F64 quad, Graphics2D g2) static voiddrawArrow(double x0, double y0, double x1, double y1, double length, Line2D.Double line, Graphics2D g2) static voiddrawArrow(Point2D_F64 p0, Point2D_F64 p1, Graphics2D g2) static voiddrawArrow(Quadrilateral_F64 quad, Graphics2D g2) static voiddrawArrowSubPixel(Point2D_F64 p0, Point2D_F64 p1, Line2D.Double line, Graphics2D g2) static voiddrawArrowSubPixel(Quadrilateral_F64 quad, double strokeSize, double scale, Graphics2D g2) static voiddrawEllipse(EllipseRotated_F64 ellipse, double scale, Graphics2D g2) static voiddrawEllipse(EllipseRotated_F64 ellipse, Graphics2D g2) Draws the rotated ellipsestatic voiddrawPolygon(Polygon2D_F64 polygon, boolean loop, double scale, Color color0, Color colorOthers, Graphics2D g2) static voiddrawPolygon(Polygon2D_F64 polygon, boolean loop, double scale, Graphics2D g2) static voiddrawPolygon(Polygon2D_F64 polygon, boolean loop, Graphics2D g2) Draws a polygonstatic voiddrawPolygon(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 voiddrawPolygonCorners(Polygon2D_F64 polygon, int radius, Graphics2D g2, boolean interpolate) static voiddrawQuad(Quadrilateral_F64 quad, Graphics2D g2, boolean subpixel) static voiddrawQuad(Quadrilateral_F64 quad, Graphics2D g2, boolean subpixel, Color color1, Color color2) static voiddrawQuad(Quadrilateral_F64 quad, Graphics2D g2, double scale, boolean subpixel, Color color1, Color color2) static voiddrawRectangle(double x0, double y0, double x1, double y1, Line2D.Double line, Graphics2D g2) static voiddrawRectangle(Rectangle2D_I32 rect, Graphics2D g2) Draws an axis aligned rectanglestatic voiddrawSubPixel(Point2D_F64 p0, Point2D_F64 p1, Line2D.Double line, Graphics2D g2) static voidfillPolygon(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)
-