public class GeomTool
extends java.lang.Object
shapes
and
database-specific geometries.Modifier and Type | Field and Description |
---|---|
protected PixelData |
data |
protected Executor |
ex |
protected SessionFactory |
factory |
protected java.util.concurrent.atomic.AtomicBoolean |
hasShapes |
protected org.slf4j.Logger |
log |
protected SqlAction |
sql |
protected java.lang.String |
uuid |
Constructor and Description |
---|
GeomTool(PixelData data,
SqlAction sql,
SessionFactory factory) |
GeomTool(PixelData data,
SqlAction sql,
SessionFactory factory,
Executor ex,
java.lang.String uuid) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
dbPath(omero.model.Shape shape) |
java.lang.Object |
discriminator(java.lang.String string)
Maps from multiple possible user-provided names of shapes (e.g.
|
omero.model.Ellipse |
ellipse(double x,
double y,
double radiusx,
double radiusy) |
omero.model.Ellipse |
ellipse(double x,
double y,
double radiusx,
double radiusy,
int t,
int z) |
omero.api.ShapePoints |
getPoints(long shapeId,
org.hibernate.Session session) |
omero.api.RoiStats |
getStats(java.util.List<java.lang.Long> shapeIds) |
omero.api.ShapeStats[] |
getStatsRestricted(java.util.List<java.lang.Long> shapeIds,
int zForUnattached,
int tForUnattached,
int[] channels) |
omero.model.Line |
ln(double x1,
double y1,
double x2,
double y2) |
omero.model.Point |
pt(double x,
double y) |
java.util.List<omero.model.Shape> |
random(int count) |
omero.model.Rectangle |
rect(double x,
double y,
double w,
double h) |
protected org.slf4j.Logger log
protected final java.util.concurrent.atomic.AtomicBoolean hasShapes
protected final SqlAction sql
protected final SessionFactory factory
protected final PixelData data
protected final Executor ex
protected final java.lang.String uuid
public GeomTool(PixelData data, SqlAction sql, SessionFactory factory)
public GeomTool(PixelData data, SqlAction sql, SessionFactory factory, Executor ex, java.lang.String uuid)
public java.util.List<omero.model.Shape> random(int count)
public omero.model.Line ln(double x1, double y1, double x2, double y2)
public omero.model.Rectangle rect(double x, double y, double w, double h)
public omero.model.Point pt(double x, double y)
public omero.model.Ellipse ellipse(double x, double y, double radiusx, double radiusy)
public omero.model.Ellipse ellipse(double x, double y, double radiusx, double radiusy, int t, int z)
public java.lang.String dbPath(omero.model.Shape shape)
public omero.api.ShapePoints getPoints(long shapeId, org.hibernate.Session session)
public omero.api.RoiStats getStats(java.util.List<java.lang.Long> shapeIds)
public omero.api.ShapeStats[] getStatsRestricted(java.util.List<java.lang.Long> shapeIds, int zForUnattached, int tForUnattached, int[] channels)
public java.lang.Object discriminator(java.lang.String string)
string
- The string to check.
Version: 5.4.10-ice35-b105
Copyright © 2019 The University of Dundee & Open Microscopy Environment. All Rights Reserved.