Gecode::Gist::Gist Class Reference
[Gist: the Gecode Interactive Search Tool]
Gecode Interactive Search Tool More...
#include <qtgist.hh>
Signals | |
void | statusChanged (const Statistics &, bool) |
Signals that the tree has changed. | |
void | solution (const Space *) |
Signals that a solution has been found. | |
void | finished (void) |
Signals that Gist is ready to be closed. | |
Public Member Functions | |
Gist (Space *root, bool bab, QWidget *parent, const Options &opt) | |
Constructor. | |
~Gist (void) | |
Destructor. | |
void | addDoubleClickInspector (Inspector *i0) |
Add double click inspector i0. | |
void | addSolutionInspector (Inspector *i0) |
Add solution inspector i0. | |
void | setAutoHideFailed (bool b) |
Set preference whether to automatically hide failed subtrees. | |
void | setAutoZoom (bool b) |
Set preference whether to automatically zoom to fit. | |
bool | getAutoHideFailed (void) |
Return preference whether to automatically hide failed subtrees. | |
bool | getAutoZoom (void) |
Return preference whether to automatically zoom to fit. | |
void | setShowCopies (bool b) |
Set preference whether to show copies in the tree. | |
bool | getShowCopies (void) |
Return preference whether to show copies in the tree. | |
void | setRefresh (int i) |
Set refresh rate. | |
bool | getSmoothScrollAndZoom (void) |
Return preference whether to use smooth scrolling and zooming. | |
void | setSmoothScrollAndZoom (bool b) |
Set preference whether to use smooth scrolling and zooming. | |
void | setRecompDistances (int c_d, int a_d) |
Set recomputation parameters c_d and a_d. | |
int | getCd (void) |
Return recomputation distance. | |
int | getAd (void) |
Return adaptive recomputation distance. | |
bool | finish (void) |
Stop search and wait until finished. | |
void | resizeEvent (QResizeEvent *) |
Handle resize event. | |
Public Attributes | |
QAction * | inspect |
Inspect current node. | |
QAction * | stop |
Stop search. | |
QAction * | reset |
Reset Gist. | |
QAction * | navUp |
Navigate to parent node. | |
QAction * | navDown |
Navigate to leftmost child node. | |
QAction * | navLeft |
Navigate to left sibling. | |
QAction * | navRight |
Navigate to right sibling. | |
QAction * | navRoot |
Navigate to root node. | |
QAction * | navNextSol |
Navigate to next solution (to the left). | |
QAction * | navPrevSol |
Navigate to previous solution (to the right). | |
QAction * | searchNext |
Search next solution in current subtree. | |
QAction * | searchAll |
Search all solutions in current subtree. | |
QAction * | toggleHidden |
Toggle whether current node is hidden. | |
QAction * | hideFailed |
Hide failed subtrees under current node. | |
QAction * | unhideAll |
Unhide all hidden subtrees under current node. | |
QAction * | zoomToFit |
Zoom tree to fit window. | |
QAction * | center |
Center on current node. | |
QAction * | exportPDF |
Export PDF of current subtree. | |
QAction * | exportWholeTreePDF |
Export PDF of whole tree. | |
QAction * | |
Print tree. | |
QAction * | setPath |
Set path from current node to the root. | |
QAction * | inspectPath |
Inspect all nodes on selected path. | |
QAction * | showNodeStats |
Open node statistics inspector. | |
QActionGroup * | solutionInspectorGroup |
Group of all actions for solution inspectors. | |
QActionGroup * | doubleClickInspectorGroup |
Group of all actions for double click inspectors. | |
Protected Member Functions | |
void | addInspector (Inspector *i, bool solutionInspector) |
Add inspector i0. |
Detailed Description
Gecode Interactive Search Tool
This class provides an interactive search tree viewer and explorer as a Qt widget. You can embedd or inherit from this widget to use Gist in your own project.
Definition at line 55 of file qtgist.hh.
Constructor & Destructor Documentation
Constructor.
Definition at line 46 of file qtgist.cpp.
Gecode::Gist::Gist::~Gist | ( | void | ) |
Destructor.
Definition at line 345 of file qtgist.cpp.
Member Function Documentation
void Gecode::Gist::Gist::addDoubleClickInspector | ( | Inspector * | i0 | ) |
Add double click inspector i0.
Definition at line 341 of file qtgist.cpp.
void Gecode::Gist::Gist::addSolutionInspector | ( | Inspector * | i0 | ) |
Add solution inspector i0.
Definition at line 336 of file qtgist.cpp.
void Gecode::Gist::Gist::setAutoHideFailed | ( | bool | b | ) |
Set preference whether to automatically hide failed subtrees.
Definition at line 462 of file qtgist.cpp.
void Gecode::Gist::Gist::setAutoZoom | ( | bool | b | ) |
Set preference whether to automatically zoom to fit.
Definition at line 464 of file qtgist.cpp.
bool Gecode::Gist::Gist::getAutoHideFailed | ( | void | ) |
Return preference whether to automatically hide failed subtrees.
Definition at line 466 of file qtgist.cpp.
bool Gecode::Gist::Gist::getAutoZoom | ( | void | ) |
Return preference whether to automatically zoom to fit.
Definition at line 468 of file qtgist.cpp.
void Gecode::Gist::Gist::setShowCopies | ( | bool | b | ) |
Set preference whether to show copies in the tree.
Definition at line 494 of file qtgist.cpp.
bool Gecode::Gist::Gist::getShowCopies | ( | void | ) |
Return preference whether to show copies in the tree.
Definition at line 498 of file qtgist.cpp.
void Gecode::Gist::Gist::setRefresh | ( | int | i | ) |
Set refresh rate.
Definition at line 470 of file qtgist.cpp.
bool Gecode::Gist::Gist::getSmoothScrollAndZoom | ( | void | ) |
Return preference whether to use smooth scrolling and zooming.
Definition at line 472 of file qtgist.cpp.
void Gecode::Gist::Gist::setSmoothScrollAndZoom | ( | bool | b | ) |
Set preference whether to use smooth scrolling and zooming.
Definition at line 476 of file qtgist.cpp.
void Gecode::Gist::Gist::setRecompDistances | ( | int | c_d, | |
int | a_d | |||
) |
Set recomputation parameters c_d and a_d.
Definition at line 480 of file qtgist.cpp.
int Gecode::Gist::Gist::getCd | ( | void | ) |
Return recomputation distance.
Definition at line 485 of file qtgist.cpp.
int Gecode::Gist::Gist::getAd | ( | void | ) |
Return adaptive recomputation distance.
Definition at line 489 of file qtgist.cpp.
bool Gecode::Gist::Gist::finish | ( | void | ) |
Stop search and wait until finished.
Definition at line 444 of file qtgist.cpp.
void Gecode::Gist::Gist::resizeEvent | ( | QResizeEvent * | ) |
Handle resize event.
Definition at line 300 of file qtgist.cpp.
void Gecode::Gist::Gist::statusChanged | ( | const Statistics & | , | |
bool | ||||
) | [signal] |
Signals that the tree has changed.
void Gecode::Gist::Gist::solution | ( | const Space * | ) | [signal] |
Signals that a solution has been found.
void Gecode::Gist::Gist::finished | ( | void | ) | [signal] |
Signals that Gist is ready to be closed.
void Gecode::Gist::Gist::addInspector | ( | Inspector * | i, | |
bool | solutionInspector | |||
) | [protected] |
Add inspector i0.
Definition at line 305 of file qtgist.cpp.
Member Data Documentation
QAction* Gecode::Gist::Gist::inspect |
QAction* Gecode::Gist::Gist::stop |
QAction* Gecode::Gist::Gist::reset |
QAction* Gecode::Gist::Gist::navUp |
QAction* Gecode::Gist::Gist::navDown |
QAction* Gecode::Gist::Gist::navLeft |
QAction* Gecode::Gist::Gist::navRight |
QAction* Gecode::Gist::Gist::navRoot |
QAction* Gecode::Gist::Gist::navNextSol |
QAction* Gecode::Gist::Gist::navPrevSol |
QAction* Gecode::Gist::Gist::searchNext |
QAction* Gecode::Gist::Gist::searchAll |
QAction* Gecode::Gist::Gist::toggleHidden |
QAction* Gecode::Gist::Gist::hideFailed |
QAction* Gecode::Gist::Gist::unhideAll |
QAction* Gecode::Gist::Gist::zoomToFit |
QAction* Gecode::Gist::Gist::center |
QAction* Gecode::Gist::Gist::exportPDF |
QAction* Gecode::Gist::Gist::print |
QAction* Gecode::Gist::Gist::setPath |
QAction* Gecode::Gist::Gist::inspectPath |
QAction* Gecode::Gist::Gist::showNodeStats |
QActionGroup* Gecode::Gist::Gist::solutionInspectorGroup |
QActionGroup* Gecode::Gist::Gist::doubleClickInspectorGroup |
The documentation for this class was generated from the following files:
- gecode/gist/qtgist.hh (Revision: 9107)
- gecode/gist/qtgist.cpp (Revision: 9119)