use of uk.ac.sussex.gdsc.smlm.ij.ij3d.ItemGroup in project GDSC-SMLM by aherbert.
the class ImageJ3DResultsViewer method getTotalTransparentObjects.
private static long getTotalTransparentObjects(Image3DUniverse univ, String ignoreName) {
long size = 0;
for (final Iterator<Content> it = univ.contents(); it.hasNext(); ) {
final Content c = it.next();
if (ignoreName.equals(c.getName())) {
continue;
}
if (!(c.getUserData() instanceof ResultsMetaData)) {
return 0;
}
final ContentInstant content = c.getCurrent();
if (content.getContent() instanceof ItemGroupNode) {
final ItemGroupNode node = (ItemGroupNode) content.getContent();
final ItemGroup g = node.getItemGroup();
if (g instanceof ItemGeometryGroup) {
size += g.size();
}
}
}
return size;
}
Aggregations