public class SlicePicker extends Object
Constructor and Description |
---|
SlicePicker(MeshImageStack s,
double[] normal,
double[] center) |
Modifier and Type | Method and Description |
---|---|
void |
addCursor(ThreeDCursor cursor) |
void |
addDragListener() |
void |
addMouseListener(MouseListener ml) |
void |
addMouseMotionListener(MouseMotionListener initializer) |
void |
addProjectable(Projectable p) |
void |
addProjectable(Projectable p,
Color c) |
void |
addProjectableMesh(ProjectableMesh pm,
DeformableMesh3D mesh) |
JPanel |
buildView() |
void |
clear() |
double[] |
getNormal() |
double[] |
getNormalizedCoordinates(double ox,
double oy) |
double |
getScale() |
boolean |
inBounds(double x,
double y) |
void |
refreshSlice() |
void |
removeProjectable(Projectable p) |
void |
rotateView() |
void |
setLabel(String label) |
void |
setLength(double l)
Sets the limits that this picker can choose, ranging from -l/2 to +l/2.
|
void |
setSliderValue(int v) |
void |
shiftViewport(double dx,
double dy) |
public SlicePicker(MeshImageStack s, double[] normal, double[] center)
public void setLength(double l)
l
- public void addCursor(ThreeDCursor cursor)
cursor
- public void refreshSlice()
public void setSliderValue(int v)
public void rotateView()
public JPanel buildView()
public void addProjectable(Projectable p)
public void addProjectable(Projectable p, Color c)
public void removeProjectable(Projectable p)
public void clear()
public void addDragListener()
public void shiftViewport(double dx, double dy)
public void addMouseListener(MouseListener ml)
public double[] getNormalizedCoordinates(double ox, double oy)
public boolean inBounds(double x, double y)
public void addMouseMotionListener(MouseMotionListener initializer)
public void setLabel(String label)
public double[] getNormal()
public double getScale()
public void addProjectableMesh(ProjectableMesh pm, DeformableMesh3D mesh)
Copyright © 2013–2022 Francis Crick Institute. All rights reserved.