theba.core.gui.ImagePane Class Reference

List of all members.

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()

Detailed Description

This class represents a scrollable slice-view to a given VolumeReader (Stack) such as the main-view on the tabbedpane.

Author:
jensbw

Definition at line 26 of file ImagePane.java.


Constructor & Destructor Documentation

theba.core.gui.ImagePane.ImagePane ( ThebaGUI  f  ) 
theba.core.gui.ImagePane.ImagePane ( ThebaGUI  forsk,
SliceReader  reader2 
)

Member Function Documentation

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

Parameters:
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 
)
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  ) 
void theba.core.gui.ImagePane.updateData ( int  slice  ) 

Member Data Documentation

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]
JTabbedPane theba.core.gui.ImagePane.tabPane = new JTabbedPane() [package]

Definition at line 42 of file ImagePane.java.


The documentation for this class was generated from the following file:

Generated on Fri Nov 13 08:57:08 2009 for Theba by  doxygen 1.6.1