public class GeomTool extends Object
shapes
and
database-specific geometries.
Implements ApplicationListener
in order to keep the strategy-specific
geometry columns in sync when a ShapeChangeMessage
is published.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 cx,
double cy,
double rx,
double ry) |
omero.model.Ellipse |
ellipse(double cx,
double cy,
double rx,
double ry,
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.Rect |
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.Rect rect(double x, double y, double w, double h)
public omero.model.Point pt(double x, double y)
public omero.model.Ellipse ellipse(double cx, double cy, double rx, double ry)
public omero.model.Ellipse ellipse(double cx, double cy, double rx, double ry, int t, int z)
public String dbPath(omero.model.Shape shape)
public omero.api.ShapePoints getPoints(long shapeId, org.hibernate.Session session)
Version: 5.1.4-ice35-b55
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.