System documentation of the GNU Image-Finding Tool

CQHierarchy Class Reference

This is a simple hierarchy based browser. More...

#include <CQHierarchy.h>

Inheritance diagram for CQHierarchy:

CQuery CMagic

List of all members.

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.


Detailed Description

This is a simple hierarchy based browser.

: Wolfgang Müller


Constructor & Destructor Documentation

CQHierarchy::CQHierarchy (  ) 

default constructor

CQHierarchy::~CQHierarchy (  ) 

we need to unregister the accessors used


Member Function Documentation

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.

Parameters:
inQuery an CXMLElement containing a query-step element
inNumberOfInterestingImages preferred number of result images (ignored)
inDifferenceToBest preferred relevance cutoff (ignored)

Implements CQuery.


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

Need for discussion? Want to contribute? Contact
help-gift@gnu.org Generated using Doxygen