Class GeomTool


  • public class GeomTool
    extends java.lang.Object
    Strategy for handling the conversion between shapes and database-specific geometries.
    Since:
    Beta4.1
    • Method Detail

      • random

        public java.util.List<Shape> random​(int count)
      • ln

        public Line ln​(double x1,
                       double y1,
                       double x2,
                       double y2)
      • rect

        public Rectangle rect​(double x,
                              double y,
                              double w,
                              double h)
      • pt

        public Point pt​(double x,
                        double y)
      • ellipse

        public Ellipse ellipse​(double x,
                               double y,
                               double radiusx,
                               double radiusy)
      • ellipse

        public Ellipse ellipse​(double x,
                               double y,
                               double radiusx,
                               double radiusy,
                               int t,
                               int z)
      • dbPath

        public java.lang.String dbPath​(Shape shape)
      • getStats

        public RoiStats getStats​(java.util.List<java.lang.Long> shapeIds)
      • getStatsRestricted

        public ShapeStats[] getStatsRestricted​(java.util.List<java.lang.Long> shapeIds,
                                               int zForUnattached,
                                               int tForUnattached,
                                               int[] channels)
      • discriminator

        public java.lang.Object discriminator​(java.lang.String string)
        Maps from multiple possible user-provided names of shapes (e.g. "::omero::model::Text", "Text", "TextI", "omero.model.TextI", "ome.model.roi.Text", ...) to the definitive database discriminator.
        Parameters:
        string - The string to check.
        Returns:
        See above.