Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

AlgorithmControl Class Reference

Algorithm parameter control widget. More...

#include <AlgorithmControl.h>

List of all members.

Public Methods

Signals

Private Attributes

Private Slots


Detailed Description

This class manages a gui widget, which lets the user choose a specific Algorithm and adjust its parameters.

@note: Not all widgets the user sees in the algorithm control panel are declared here. The "differential mode" and the "View original shape" checkbox declares ContourWarpEffect.


Constructor & Destructor Documentation

AlgorithmControl::AlgorithmControl ( QWidget * parent = 0,
const char * name = 0,
WFlags fl = 0 )
 

Initializes the algorithms, all child widgets and installs signal/slots connections

AlgorithmControl::~AlgorithmControl ( )
 

Deallocates the algorithm instances.


Member Function Documentation

WarpAlgorithm * AlgorithmControl::getAlgorithm ( )
 

Returns the current WarpAlgorithm choosen by the user. The user chooses the warp algorithm with the combo box at top of the widget.

Note:
By now, only one algorithm is implemented, so the combo box is always deactivated.

void AlgorithmControl::enableControls ( bool value )
 

This is e.g. used when the differential mode is enabled. Because it may cause unpredictable results if the parameters are changed at same time, these sliders are deactivated. The other widgets being deactivated are the Edge as Frame check box and the algorithm selection combo box:

Parameters:
value   true means enabling, false disabling

void AlgorithmControl::frameAsEdgesChanged ( bool value ) [signal]
 

Note:
This signal is used by ContourWarpEffect for deciding whether a small frame is drawed around the image.
Parameters:
value   This parameter corresponds to toggled(bool)

void AlgorithmControl::warpChanged ( ) [signal]
 

This occurs if the parameters or the "edge as frame"-checkbox is changed.


Member Data Documentation

WarpAlgorithm ** AlgorithmControl::mAlgos [private]
 

This array is filled in the constructor.

FloatEditor ** AlgorithmControl::mEditors [private]
 

This array is filled in the constructor.

QVBox ** AlgorithmControl::mBoxes [private]
 

Note:
In each QVBox the parameter widgets for the corresponding algo are placed. Only the QVBox of the current algo is visible.


The documentation for this class was generated from the following file:
Generated at Fri Apr 19 16:53:06 2002 for GLFramework by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001