This is a simple hierarchy based browser. More...
#include <CQHierarchy.h>
Public Member Functions | |
CQHierarchy () | |
default constructor | |
~CQHierarchy () | |
we need to unregister the accessors used | |
CQHierarchy (CAccessorAdminCollection &inAccessorAdminCollection, CAlgorithm &inAlgorithm) | |
In fact, what we are doing here is to get ourselves an accessor ACURL2FTS to do a proper fastQuery. | |
virtual CIDRelevanceLevelPairList * | fastQuery (const CXMLElement &inQuery, int inNumberOfInterestingImages, double inDifferenceToBest) |
enables moving in the hierarchy. | |
virtual bool | setAlgorithm (CAlgorithm &inAlgorithm) |
set the Algorithm. | |
Protected Member Functions | |
void | init () |
sets mCurrentPosition to 0 | |
Protected Attributes | |
list< TID > | mCurrentPath |
The current position in the hierarchy. |
This is a simple hierarchy based browser.
: Wolfgang Müller
CQHierarchy::CQHierarchy | ( | ) |
default constructor
CQHierarchy::~CQHierarchy | ( | ) |
we need to unregister the accessors used
virtual CIDRelevanceLevelPairList* CQHierarchy::fastQuery | ( | const CXMLElement & | inQuery, |
int | inNumberOfInterestingImages, | ||
double | inDifferenceToBest | ||
) | [virtual] |
enables moving in the hierarchy.
You can either move down (i.e. you select an image) or up in the hierarchy (by getting a cui-hierarchy-move-up signal as query). RICHLY COMMENTED IN THE *.cc FILE.
inQuery | an CXMLElement containing a query-step element |
inNumberOfInterestingImages | preferred number of result images (ignored) |
inDifferenceToBest | preferred relevance cutoff (ignored) |
Implements CQuery.