public final class Display3D extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Display3D.VectorStringContent |
Modifier and Type | Method and Description |
---|---|
Future<Collection<Future<Content>>> |
addContent(Collection<Content> col) |
Future<Content> |
addContent(Content c) |
static Future<Content> |
addFatPoint(String title,
LayerSet ls,
double wx,
double wy,
double wz,
double wr,
Color color)
Expects uncalibrated wx,wy,wz, (i.e.
|
static Future<Collection<Future<Content>>> |
addMesh(LayerSet ref_ls,
VectorString3D vs,
String title,
Color color)
Creates a mesh from the given VectorString3D, which is unbound to any existing Pipe.
|
static Future<Collection<Future<Content>>> |
addMesh(LayerSet ref_ls,
VectorString3D vs,
String title,
Color color,
double[] widths,
float alpha)
Creates a mesh from the given VectorString3D, which is unbound to any existing Pipe.
|
static boolean |
contains(LayerSet ls,
String title) |
List<Point3f> |
createFatPoint(double wx,
double wy,
double wz,
double wr,
ij.measure.Calibration cal)
Creates a calibrated sphere to represent a point at LayerSet pixel coordinates wx, wy, wz, with radius wr.
|
Callable<Content> |
createMesh(ProjectThing pt,
Displayable displ,
int resample)
Returns a function that returns a Content object.
|
static void |
destroy() |
static void |
doneWaiting() |
static int |
estimateResamplingFactor(LayerSet ls,
double width,
double height) |
static Display3D |
get(LayerSet ls)
Get an existing Display3D for the given LayerSet, or create a new one for it (and cache it).
|
static Display3D |
getDisplay(LayerSet ls)
Get the Display3D instance that exists for the given LayerSet, if any.
|
static Hashtable<LayerSet,Display3D> |
getMasterTable()
The sky will fall on your head if you modify any of the objects contained in this table -- which is a copy of the original, but the objects are the originals.
|
static Content |
getProfileContent(Displayable d)
Checks if the given Displayable is a Profile, and tries to find a possible Content object in the Image3DUniverse of its LayerSet according to the title as created from its profile_list ProjectThing.
|
Image3DUniverse |
getUniverse() |
static void |
init() |
static boolean |
isDisplayed(Displayable d)
Checks if there is any Display3D instance currently showing the given Displayable.
|
static String |
makeTitle(Displayable d) |
static String |
makeTitle(Patch p) |
static void |
remove(ProjectThing pt)
Considers there is only one Display3D for each LayerSet.
|
static void |
removeFrom3D(ProjectThing pt)
Remove all basic type children contained in
pt and its children, recursively. |
static void |
resetView(LayerSet ls) |
static Future<Boolean> |
setColor(Displayable d,
Color color) |
static Future<Boolean> |
setTransparency(Displayable d,
float alpha) |
static void |
setWaitingCursor() |
static Future<Collection<Future<Content>>> |
show(LayerSet ref_ls,
Collection<Content> col) |
static Future<Vector<Future<Content>>> |
show(ProjectThing pt) |
static Future<Vector<Future<Content>>> |
show(ProjectThing pt,
boolean wait,
int resample)
Scan the
ProjectThing children and assign the renderable ones to an existing Display3D for their LayerSet , or open a new one. |
static void |
showAndResetView(ProjectThing pt) |
static void |
showOrthoslices(ij.ImagePlus imp,
String title,
int wx,
int wy,
float scale2D,
Layer first) |
static void |
showOrthoslices(Patch p) |
static void |
showVolume(Patch p) |
static Future<Content> |
update(Displayable d)
Remake the mesh for the Displayable in a separate Thread, if it's included in a Display3D
(otherwise returns null).
|
public static Hashtable<LayerSet,Display3D> getMasterTable()
public Image3DUniverse getUniverse()
public static Display3D get(LayerSet ls)
public static Display3D getDisplay(LayerSet ls)
public static void setWaitingCursor()
public static void doneWaiting()
public static Future<Vector<Future<Content>>> show(ProjectThing pt)
public static void showAndResetView(ProjectThing pt)
public static Future<Vector<Future<Content>>> show(ProjectThing pt, boolean wait, int resample)
ProjectThing
children and assign the renderable ones to an existing Display3D
for their LayerSet
, or open a new one. If true == wait && -1 != resample
, then the method returns only when the mesh/es have been added.public static void resetView(LayerSet ls)
public static void showOrthoslices(Patch p)
public static void showVolume(Patch p)
public static void showOrthoslices(ij.ImagePlus imp, String title, int wx, int wy, float scale2D, Layer first)
public static void remove(ProjectThing pt)
public static void removeFrom3D(ProjectThing pt)
pt
and its children, recursively.pt
- public Callable<Content> createMesh(ProjectThing pt, Displayable displ, int resample)
public static Future<Collection<Future<Content>>> addMesh(LayerSet ref_ls, VectorString3D vs, String title, Color color)
public static Future<Collection<Future<Content>>> addMesh(LayerSet ref_ls, VectorString3D vs, String title, Color color, double[] widths, float alpha)
public static Future<Collection<Future<Content>>> show(LayerSet ref_ls, Collection<Content> col)
public Future<Collection<Future<Content>>> addContent(Collection<Content> col)
public static final int estimateResamplingFactor(LayerSet ls, double width, double height)
public static boolean isDisplayed(Displayable d)
public static Content getProfileContent(Displayable d)
public static Future<Boolean> setColor(Displayable d, Color color)
public static Future<Boolean> setTransparency(Displayable d, float alpha)
public static String makeTitle(Displayable d)
public static Future<Content> update(Displayable d)
public static void destroy()
public static void init()
public List<Point3f> createFatPoint(double wx, double wy, double wz, double wr, ij.measure.Calibration cal)
Copyright © 2015–2021 Fiji. All rights reserved.