Generated on Mon Nov 30 23:53:48 2009 for Gecode by doxygen 1.6.1

Gecode::Gist::Gist Class Reference
[Gist: the Gecode Interactive Search Tool]

Gecode Interactive Search Tool More...

#include <qtgist.hh>

List of all members.

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

Gecode::Gist::Gist::Gist ( Space root,
bool  bab,
QWidget *  parent,
const Options opt 
)

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

Inspect current node.

Definition at line 76 of file qtgist.hh.

Stop search.

Definition at line 78 of file qtgist.hh.

Reset Gist.

Definition at line 80 of file qtgist.hh.

Navigate to parent node.

Definition at line 82 of file qtgist.hh.

Navigate to leftmost child node.

Definition at line 84 of file qtgist.hh.

Navigate to left sibling.

Definition at line 86 of file qtgist.hh.

Navigate to right sibling.

Definition at line 88 of file qtgist.hh.

Navigate to root node.

Definition at line 90 of file qtgist.hh.

Navigate to next solution (to the left).

Definition at line 92 of file qtgist.hh.

Navigate to previous solution (to the right).

Definition at line 94 of file qtgist.hh.

Search next solution in current subtree.

Definition at line 96 of file qtgist.hh.

Search all solutions in current subtree.

Definition at line 98 of file qtgist.hh.

Toggle whether current node is hidden.

Definition at line 100 of file qtgist.hh.

Hide failed subtrees under current node.

Definition at line 102 of file qtgist.hh.

Unhide all hidden subtrees under current node.

Definition at line 104 of file qtgist.hh.

Zoom tree to fit window.

Definition at line 106 of file qtgist.hh.

Center on current node.

Definition at line 108 of file qtgist.hh.

Export PDF of current subtree.

Definition at line 110 of file qtgist.hh.

Export PDF of whole tree.

Definition at line 112 of file qtgist.hh.

Print tree.

Definition at line 114 of file qtgist.hh.

Set path from current node to the root.

Definition at line 117 of file qtgist.hh.

Inspect all nodes on selected path.

Definition at line 119 of file qtgist.hh.

Open node statistics inspector.

Definition at line 121 of file qtgist.hh.

Group of all actions for solution inspectors.

Definition at line 124 of file qtgist.hh.

Group of all actions for double click inspectors.

Definition at line 126 of file qtgist.hh.


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