NCBI C++ ToolKit
|
Search Toolkit Book for IFeatSorter
IFeatSorter is an abstract interface for sorting features based on any criteria. More...
#include <gui/widgets/seq_graphic/feature_sorter.hpp>
Public Member Functions | |
virtual int | GetGroupIdx (const objects::CMappedFeat &feat) const =0 |
Get the sorted group index for a given feature. More... | |
virtual bool | ChildFeatureFirst () const |
Priority on sorting parent or child features. More... | |
Public Member Functions inherited from IObjectSorter | |
virtual | ~IObjectSorter () |
virtual string | GroupIdxToName (int idx) const =0 |
Convert group index into group name. More... | |
virtual SSorterDescriptor | GetThisDescr () const =0 |
Return a name for the sorter. More... | |
IFeatSorter is an abstract interface for sorting features based on any criteria.
Definition at line 79 of file feature_sorter.hpp.
|
inlinevirtual |
Priority on sorting parent or child features.
In case there are parent-child relation features, and the sorting may be in conflict for parent and child features, we need a priority of sorting parent feature or child features to decide which sorted group they should go together.
Definition at line 92 of file feature_sorter.hpp.
Get the sorted group index for a given feature.
@ret any index >=0 will be considered as a valid index. Otherwise, it is an invalid index.
Implemented in CFeatStrandSorter, CGRCStatusSorter, CDbvarValidationSorter, CDbvarSamplesetTypeSorter, CDbvarClinicalAsstSorter, CDbvarPilotSorter, CDbvarQualitySorter, and CCloneConcordancySorter.