public class MeshFrame3D extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
MeshFrame3D.HudDisplay |
Constructor and Description |
---|
MeshFrame3D() |
Modifier and Type | Method and Description |
---|---|
void |
addChannelVolume(ChannelVolume cv) |
void |
addDataObject(DataObject obj) |
void |
addDataObject(DataObject object,
double dx,
double dy,
double dz) |
void |
addKeyListener(KeyListener kl) |
void |
addLights() |
void |
addPickListener(CanvasView listener) |
void |
addTransientObject(DataObject o) |
Component |
asJPanel(JFrame frame) |
Component |
asJPanel(Window parent) |
void |
centerView(double[] center) |
void |
changeVolumeClipping(int minDelta,
int maxDelta) |
void |
chooseToContrastChannelVolume() |
void |
chooseToremoveChannelVolume() |
void |
clearTransients() |
void |
createNewChannelVolume() |
Color |
getBackgroundColor() |
DataCanvas |
getCanvas() |
List<ChannelVolume> |
getChannelVolumes() |
double[] |
getForward() |
JFrame |
getJFrame() |
double[] |
getViewParameters()
All of the values necessary to have the same view.
|
VolumeDataObject |
getVolumeDataObject() |
void |
hideAxis() |
void |
hideVolume() |
void |
lookTowards(double[] normal,
double[] up)
Tries to look along the normal value provided, with the up axis used for up.
|
void |
lookTowards(double x,
double y,
double z)
Tries to look along the normal value provided.
|
void |
observeObject(Object key,
DataObject obj) |
void |
recordShot() |
void |
removeChannelVolume(ChannelVolume cv) |
void |
removeDataObject(DataObject mesh) |
void |
removeKeyListener(KeyListener kl) |
void |
removeLights() |
void |
removePickListener(CanvasView listener) |
void |
removeTransient(DataObject obj) |
void |
rotateView(int dx,
int dy)
rotates the data canvas view.
|
void |
setAmbientBrightness(float delta) |
void |
setBackgroundColor(Color bg) |
void |
setCanvasControllerEnabled(boolean v)
For enabling and disabling the default controller.
|
void |
setDirectionalBrightness(float delta) |
void |
setHud(MeshFrame3D.HudDisplay hud)
For drawing graphics on the rendered screen.
|
void |
setNoHud() |
void |
setSegmentationController(SegmentationController control) |
void |
setViewParameters(double[] parameters)
Restores a previous view.
|
void |
setVisible(boolean t) |
void |
showAxis() |
void |
showEnergy(MeshImageStack stack,
ExternalEnergy erg) |
void |
showFrame(boolean exit_on_close) |
void |
showVolume(MeshImageStack stack)
Backs the volume texture date with the supplied image stack.
|
BufferedImage |
snapShot() |
void |
syncDirectionalLight() |
void |
syncMesh(int currentFrame) |
void |
toggleAxis() |
void |
updateRingController() |
boolean |
volumeShowing() |
public Color getBackgroundColor()
public VolumeDataObject getVolumeDataObject()
public DataCanvas getCanvas()
public void addChannelVolume(ChannelVolume cv)
public void removeChannelVolume(ChannelVolume cv)
public List<ChannelVolume> getChannelVolumes()
public void createNewChannelVolume()
public void chooseToremoveChannelVolume()
public void chooseToContrastChannelVolume()
public void lookTowards(double x, double y, double z)
x
- component of normaly
- z
- public void lookTowards(double[] normal, double[] up)
normal
- normalized vector that to be looked along.up
- vector that will nearly 'up' when looking along.public void rotateView(int dx, int dy)
dx
- rotation about veritical view.dy
- rotation about horizontal view.DataCanvas.rotateView(int, int)
public void centerView(double[] center)
public double[] getViewParameters()
public void setViewParameters(double[] parameters)
DataCanvas.setViewParameters(double[])
public void showFrame(boolean exit_on_close)
public void setHud(MeshFrame3D.HudDisplay hud)
hud
- public void setNoHud()
public void removeLights()
public void setAmbientBrightness(float delta)
public void setDirectionalBrightness(float delta)
public void syncDirectionalLight()
public double[] getForward()
public void addLights()
public void showAxis()
public void hideAxis()
public void addDataObject(DataObject obj)
public void addDataObject(DataObject object, double dx, double dy, double dz)
public void observeObject(Object key, DataObject obj)
public void removeDataObject(DataObject mesh)
public BufferedImage snapShot()
public void addTransientObject(DataObject o)
public void clearTransients()
public void addKeyListener(KeyListener kl)
public void removeKeyListener(KeyListener kl)
public void setCanvasControllerEnabled(boolean v)
v
- public void toggleAxis()
public void recordShot()
public void setBackgroundColor(Color bg)
public void setVisible(boolean t)
public void addPickListener(CanvasView listener)
public void removePickListener(CanvasView listener)
public void removeTransient(DataObject obj)
public void setSegmentationController(SegmentationController control)
public void syncMesh(int currentFrame)
public void showVolume(MeshImageStack stack)
stack
- public void showEnergy(MeshImageStack stack, ExternalEnergy erg)
public JFrame getJFrame()
public void changeVolumeClipping(int minDelta, int maxDelta)
public void hideVolume()
public void updateRingController()
public boolean volumeShowing()
Copyright © 2013–2022 Francis Crick Institute. All rights reserved.