32 #if !defined(CU_SEQTREE_HPP)
33 #define CU_SEQTREE_HPP
57 SeqItem(
int rowid,
double dist=0.0);
60 void select(
bool on=
true);
61 void select(
CCdCore* cd,
bool on=
true);
62 int getAllInstances();
63 int getAllSelectedInstances();
106 double getMaxDistanceToRoot();
110 void getOrdersInTree(vector<int>& positions);
111 void getDiversityRankToRow(
int colRow, list<int>& rankList);
117 void getSelectedSequenceRowid(
const iterator& node, vector<int>& selections);
118 void getSequenceRowid(
const iterator& node, vector<int>& selections);
119 void clearInternalNodeSelection();
120 void selectByRowID(
const set<int>& receivedSelection,
bool select=
true,
CCdCore* cd=0);
121 void selectByTax(
const vector<int>& rows,
long taxid);
123 void selectNode(
const iterator& node,
bool select=
true,
CCdCore* cd=0);
125 void getDistantNodes(
double dist, vector<SeqTreeIterator>& nodes);
127 void uncollapseAll();
157 void prepare(
int& numLeaf,
double& maxDist,
const iterator& cursor);
158 void prepareCollapsedNodes(
int& numLeaf);
159 void clearTaxSelection();
160 void getDistantNodes(
const iterator& start,
double dist, vector<SeqTreeIterator>& nodes);
161 void getDiversityRankUnderNode(
SeqTreeIterator node, list<int>& rankList);
CConstRef< CSeq_id > seqId
queue< iterator > IteQueue
IteQueue m_collapsedNodes
map< int, iterator > RowLeafMap
std::string m_longestName
SeqTreeBase::iterator SeqTreeIterator
tree< SeqItem > SeqTreeBase
map< int, string > RowMembershipColor
map< int, std::string > IntToStringMap
bool operator==(const CEquivRange &A, const CEquivRange &B)
CNcbiOstream & operator<<(CNcbiOstream &out, const CEquivRange &range)
static void DLIST_NAME() init(DLIST_LIST_TYPE *list)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define END_SCOPE(ns)
End the previously defined scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define BEGIN_SCOPE(ns)
Define a new scope.
#define NCBI_CDUTILS_EXPORT