public class GeomTool
extends java.lang.Object
shapes
and
database-specific geometries.Modifier and Type | Field and Description |
---|---|
protected PixelData |
data |
protected ome.services.util.Executor |
ex |
protected ome.tools.hibernate.SessionFactory |
factory |
protected java.util.concurrent.atomic.AtomicBoolean |
hasShapes |
protected org.slf4j.Logger |
log |
protected ome.util.SqlAction |
sql |
protected java.lang.String |
uuid |
Constructor and Description |
---|
GeomTool(PixelData data,
ome.util.SqlAction sql,
ome.tools.hibernate.SessionFactory factory) |
GeomTool(PixelData data,
ome.util.SqlAction sql,
ome.tools.hibernate.SessionFactory factory,
ome.services.util.Executor ex,
java.lang.String uuid) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
dbPath(Shape shape) |
java.lang.Object |
discriminator(java.lang.String string)
Maps from multiple possible user-provided names of shapes (e.g.
|
Ellipse |
ellipse(double x,
double y,
double radiusx,
double radiusy) |
Ellipse |
ellipse(double x,
double y,
double radiusx,
double radiusy,
int t,
int z) |
ShapePoints |
getPoints(long shapeId,
org.hibernate.Session session) |
RoiStats |
getStats(java.util.List<java.lang.Long> shapeIds) |
ShapeStats[] |
getStatsRestricted(java.util.List<java.lang.Long> shapeIds,
int zForUnattached,
int tForUnattached,
int[] channels) |
Line |
ln(double x1,
double y1,
double x2,
double y2) |
Point |
pt(double x,
double y) |
java.util.List<Shape> |
random(int count) |
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 ome.util.SqlAction sql
protected final ome.tools.hibernate.SessionFactory factory
protected final PixelData data
protected final ome.services.util.Executor ex
protected final java.lang.String uuid
public GeomTool(PixelData data, ome.util.SqlAction sql, ome.tools.hibernate.SessionFactory factory)
public GeomTool(PixelData data, ome.util.SqlAction sql, ome.tools.hibernate.SessionFactory factory, ome.services.util.Executor ex, java.lang.String uuid)
public java.util.List<Shape> random(int count)
public Line ln(double x1, double y1, double x2, double y2)
public Rectangle rect(double x, double y, double w, double h)
public Point pt(double x, double y)
public Ellipse ellipse(double x, double y, double radiusx, double radiusy)
public Ellipse ellipse(double x, double y, double radiusx, double radiusy, int t, int z)
public java.lang.String dbPath(Shape shape)
public ShapePoints getPoints(long shapeId, org.hibernate.Session session)
public RoiStats getStats(java.util.List<java.lang.Long> shapeIds)
public 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.