Public Member Functions | |
ImagePane (ThebaGUI f) | |
ImagePane (ThebaGUI forsk, SliceReader reader2) | |
IndexColorModel | getIndexedColorModel () |
VolumeReader | getSliceReader () |
Stack | getVolume () |
boolean | isDrawFibers () |
void | paintComponent (Graphics g) |
void | generateColorTable () |
int | getColor (short val) |
void | setData (short[] data, int w, int h) |
void | setDrawFibers (boolean drawFibers) |
void | setReader (VolumeReader reader) |
void | showSlice (int index) |
void | updateData (int slice) |
void | setInput (SliceReader writer) |
Package Attributes | |
ThebaGUI | control |
boolean | drawFibers = false |
BufferedImage | img |
JTabbedPane | tabPane = new JTabbedPane() |
This class represents a scrollable slice-view to a given VolumeReader (Stack) such as the main-view on the tabbedpane.
Definition at line 26 of file ImagePane.java.
theba.core.gui.ImagePane.ImagePane | ( | ThebaGUI | f | ) |
Definition at line 46 of file ImagePane.java.
References theba.core.gui.ImagePane.control, theba.core.gui.ImagePane.generateColorTable(), and theba.core.gui.ThebaGUI.setPointerLabel().
theba.core.gui.ImagePane.ImagePane | ( | ThebaGUI | forsk, | |
SliceReader | reader2 | |||
) |
Definition at line 59 of file ImagePane.java.
References theba.core.gui.ImagePane.control, theba.core.gui.ImagePane.generateColorTable(), and theba.core.gui.ThebaGUI.setPointerLabel().
void theba.core.gui.ImagePane.generateColorTable | ( | ) |
Generate a lookup-table with predefined colors for each region
Definition at line 120 of file ImagePane.java.
References theba.core.gui.ImagePane.control, theba.core.gui.ThebaGUI.INVALID, and theba.core.gui.ThebaGUI.MAX_FIBERS.
Referenced by theba.core.gui.ImagePane.ImagePane().
int theba.core.gui.ImagePane.getColor | ( | short | val | ) |
Get the lookup-color for a given reg-value
val |
Definition at line 136 of file ImagePane.java.
Referenced by theba.core.gui.ImagePane.setData().
IndexColorModel theba.core.gui.ImagePane.getIndexedColorModel | ( | ) |
Creates and returns a colormodel suitable for identifying fibres
Definition at line 76 of file ImagePane.java.
VolumeReader theba.core.gui.ImagePane.getSliceReader | ( | ) |
Definition at line 97 of file ImagePane.java.
Referenced by theba.core.gui.ThebaGUI.getSlice().
Stack theba.core.gui.ImagePane.getVolume | ( | ) |
Definition at line 101 of file ImagePane.java.
Referenced by theba.core.gui.ThebaGUI.getStack().
boolean theba.core.gui.ImagePane.isDrawFibers | ( | ) |
Definition at line 105 of file ImagePane.java.
References theba.core.gui.ImagePane.drawFibers.
void theba.core.gui.ImagePane.paintComponent | ( | Graphics | g | ) |
Definition at line 110 of file ImagePane.java.
References theba.core.gui.ImagePane.img.
void theba.core.gui.ImagePane.setData | ( | short[] | data, | |
int | w, | |||
int | h | |||
) |
Definition at line 144 of file ImagePane.java.
References theba.core.gui.ImagePane.control, theba.core.gui.ImagePane.getColor(), theba.core.Tracker.getCurrentId(), theba.core.gui.ThebaGUI.getCurrentTracker(), theba.core.gui.ImagePane.img, and theba.core.gui.ThebaGUI.isMinimized().
Referenced by theba.core.gui.ThebaGUI.showImage(), theba.core.gui.ImagePane.showSlice(), and theba.core.gui.ImagePane.updateData().
void theba.core.gui.ImagePane.setDrawFibers | ( | boolean | drawFibers | ) |
Definition at line 177 of file ImagePane.java.
void theba.core.gui.ImagePane.setInput | ( | SliceReader | writer | ) |
Definition at line 206 of file ImagePane.java.
References theba.core.io.VolumeReader.destroy().
void theba.core.gui.ImagePane.setReader | ( | VolumeReader | reader | ) |
Definition at line 181 of file ImagePane.java.
void theba.core.gui.ImagePane.showSlice | ( | int | index | ) |
Definition at line 186 of file ImagePane.java.
References theba.core.gui.ImagePane.control, theba.core.io.VolumeReader.getSlice(), theba.core.gui.ThebaGUI.height, theba.core.gui.ImagePane.setData(), and theba.core.gui.ThebaGUI.width.
void theba.core.gui.ImagePane.updateData | ( | int | slice | ) |
Definition at line 196 of file ImagePane.java.
References theba.core.io.VolumeReader.getHeight(), theba.core.io.VolumeReader.getSlice(), theba.core.io.VolumeReader.getWidth(), and theba.core.gui.ImagePane.setData().
Referenced by theba.core.gui.ThebaGUI.updateImage().
ThebaGUI theba.core.gui.ImagePane.control [package] |
Definition at line 36 of file ImagePane.java.
Referenced by theba.core.gui.ImagePane.generateColorTable(), theba.core.gui.ImagePane.ImagePane(), theba.core.gui.ImagePane.setData(), and theba.core.gui.ImagePane.showSlice().
boolean theba.core.gui.ImagePane.drawFibers = false [package] |
Definition at line 38 of file ImagePane.java.
Referenced by theba.core.gui.ImagePane.isDrawFibers().
BufferedImage theba.core.gui.ImagePane.img [package] |
Definition at line 40 of file ImagePane.java.
Referenced by theba.core.gui.ImagePane.paintComponent(), and theba.core.gui.ImagePane.setData().
JTabbedPane theba.core.gui.ImagePane.tabPane = new JTabbedPane() [package] |
Definition at line 42 of file ImagePane.java.