theba.core.Tracker Class Reference

List of all members.

Public Member Functions

 Tracker (ThebaGUI f)
short getCurrentId ()
void log (String line)
abstract void mouseClicked (Point3D point3D)
void paint (Graphics g, int selectedSlice)
void pause (boolean var)
abstract void reset ()
abstract void setup ()
abstract void stop ()
abstract void track ()

Protected Attributes

ThebaGUI control
boolean keepTracking = false
PrintStream log = null
boolean paused = false

Detailed Description

This is the interface representing all tracker-modules. Trackers must implement this interface and be placed in the trackers package to be identified by the ThebaGUI framework

Author:
jensbw

Definition at line 19 of file Tracker.java.


Constructor & Destructor Documentation

theba.core.Tracker.Tracker ( ThebaGUI  f  ) 

This is the only allowed constructor for trackers, as trackers are automatically instantiated based on class-file inspection in the current tracker-directory

Definition at line 33 of file Tracker.java.

References theba.core.Tracker.control.


Member Function Documentation

short theba.core.Tracker.getCurrentId (  ) 

This function is called by the imagePane to indicate the id of the currently tracked fiber. A 0-value indicates that no id is currently active

Definition at line 42 of file Tracker.java.

Referenced by theba.core.gui.ImagePane.setData().

void theba.core.Tracker.log ( String  line  ) 

This is simple a log-function that stores a string in a file called log.txt

Parameters:
line 

Definition at line 52 of file Tracker.java.

References theba.core.Tracker.log.

abstract void theba.core.Tracker.mouseClicked ( Point3D  point3D  )  [pure virtual]

This function is called whenever a user indicates a point in the stack, such as when a region is clicked

Implemented in theba.trackers.BackTracker, theba.trackers.FiberTracker, theba.trackers.FloodTracker3D, and theba.trackers.HHTracker.

void theba.core.Tracker.paint ( Graphics  g,
int  selectedSlice 
)

This method is called by the imagePane, after the current slice has been rendered. It allows the currently selected tracker to display tracker-specific information such as overlays etc.

Parameters:
g The current graphicscontext
selectedSlice The currently viewed slice

Definition at line 80 of file Tracker.java.

void theba.core.Tracker.pause ( boolean  var  ) 

This function is called whenever a user selects or unselects the pause-button in the main toolbar. It should temporarily stop any ongoing operation

Definition at line 88 of file Tracker.java.

References theba.core.Tracker.paused.

abstract void theba.core.Tracker.reset (  )  [pure virtual]

This method is called after setup, and each time the tracker is restarted

Implemented in theba.trackers.BackTracker, theba.trackers.FiberTracker, theba.trackers.FloodTracker3D, and theba.trackers.HHTracker.

Referenced by theba.core.gui.ThebaGUI.flipVolume().

abstract void theba.core.Tracker.setup (  )  [pure virtual]

This function is called every time a new tracker is selected, and can be used to set up custom buttons or menuitems, as well as initializing any removed data

Implemented in theba.trackers.BackTracker, theba.trackers.FiberTracker, theba.trackers.FloodTracker3D, and theba.trackers.HHTracker.

abstract void theba.core.Tracker.stop (  )  [pure virtual]

This function is called whenever a user indicates that the current operation should be terminated

Implemented in theba.trackers.BackTracker, theba.trackers.FiberTracker, theba.trackers.FloodTracker3D, and theba.trackers.HHTracker.

Referenced by theba.core.gui.ThebaGUI.actionPerformed().

abstract void theba.core.Tracker.track (  )  [pure virtual]

This function should initiate a track, and is called after setup()

Implemented in theba.trackers.BackTracker, theba.trackers.FiberTracker, theba.trackers.FloodTracker3D, and theba.trackers.HHTracker.


Member Data Documentation

boolean theba.core.Tracker.keepTracking = false [protected]
PrintStream theba.core.Tracker.log = null [protected]
boolean theba.core.Tracker.paused = false [protected]

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