ThreeB 1.1
|
Callback class used by FitSpots to provide enough hooks for a user interface. More...
#include <multispot5.h>
Classes | |
struct | UserIssuedStop |
Public Member Functions | |
virtual void | per_spot (int iteration, int pass, int spot_num, int total_spots)=0 |
virtual void | per_modification (int iteration, int spot_num, int total_spots)=0 |
virtual void | per_pass (int iteration, int pass, const std::vector< TooN::Vector< 4 > > &spots)=0 |
virtual void | perhaps_stop ()=0 |
virtual | ~UserInterfaceCallback () |
Callback class used by FitSpots to provide enough hooks for a user interface.
Definition at line 63 of file multispot5.h.
UserInterfaceCallback::~UserInterfaceCallback | ( | ) | [virtual] |
virtual void UserInterfaceCallback::per_spot | ( | int | iteration, |
int | pass, | ||
int | spot_num, | ||
int | total_spots | ||
) | [pure virtual] |
This function is called once per spot in each pass.
The idea is to provide a display along the lines of: Iteration #1 optimizing #2% complete
iteration | Iteration number |
pass | Pass number |
spot_num | Spot currently being optimized |
total_spots | Total number of spots to be optimized |
Implemented in NullUICallback, and JNIUserInterface.
virtual void UserInterfaceCallback::per_modification | ( | int | iteration, |
int | spot_num, | ||
int | total_spots | ||
) | [pure virtual] |
This function is called once per spot in the modification phase.
The idea is to provide a display along the lines of: Iteration #1 modifying #2% complete
iteration | Iteration number |
spot_num | Spot currently being optimized |
total_spots | Total number of spots to be optimized |
Implemented in NullUICallback, and JNIUserInterface.
virtual void UserInterfaceCallback::per_pass | ( | int | iteration, |
int | pass, | ||
const std::vector< TooN::Vector< 4 > > & | spots | ||
) | [pure virtual] |
This function is called once each time PASS data is outputted.
It will allow the GUI to build up a reconstruction.
iteration | Iteration number |
pass | Pass number |
spots | Data to be reconstructed |
Implemented in NullUICallback, and JNIUserInterface.
virtual void UserInterfaceCallback::perhaps_stop | ( | ) | [pure virtual] |
The user wishes to issue a stop instruction to the program (perhaps done via an asynchronus call to an instance of of UserInterfaceCallback).
This function is called as often as possible and will throw UserIssuedStop when the condition is met.
Implemented in NullUICallback, and JNIUserInterface.