public class GeomTool extends Object
shapes
and
database-specific geometries.Modifier and Type | Field and Description |
---|---|
protected PixelData |
data |
protected Executor |
ex |
protected SessionFactory |
factory |
protected AtomicBoolean |
hasShapes |
protected org.slf4j.Logger |
log |
protected SqlAction |
sql |
protected String |
uuid |
Constructor and Description |
---|
GeomTool(PixelData data,
SqlAction sql,
SessionFactory factory) |
GeomTool(PixelData data,
SqlAction sql,
SessionFactory factory,
Executor ex,
String uuid) |
Modifier and Type | Method and Description |
---|---|
String |
dbPath(omero.model.Shape shape) |
Object |
discriminator(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(List<Long> shapeIds) |
omero.api.ShapeStats[] |
getStatsRestricted(List<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) |
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 AtomicBoolean hasShapes
protected final SqlAction sql
protected final SessionFactory factory
protected final PixelData data
protected final Executor ex
protected final String uuid
public GeomTool(PixelData data, SqlAction sql, SessionFactory factory)
public GeomTool(PixelData data, SqlAction sql, SessionFactory factory, Executor ex, String uuid)
public 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 String dbPath(omero.model.Shape shape)
public omero.api.ShapePoints getPoints(long shapeId, org.hibernate.Session session)
public omero.api.ShapeStats[] getStatsRestricted(List<Long> shapeIds, int zForUnattached, int tForUnattached, int[] channels)
public Object discriminator(String string)
string
- The string to check.
Version: 5.4.0-ice35-b74
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.