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.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 Object discriminator(String string)
string
- The string to check.
Version: 5.3.5-ice35-b73
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.