feature_val =
n->GetBioTreeFeatureList().GetFeatureValue(
m_PriorityId);
188, m_Color(0.0f, 0.0f, 0.0f, 1.0f)
195, m_FontSize(font_size)
246objects::CScope& scope,
247 boolexpand_all=
false);
252 void Init(
constobjects::CBioTreeContainer&
tree,
253objects::CScope& scope,
254 boolexpand_all=
false);
259 stringGenerateTooltipFormat();
263 voidComputeLengthsFromRoot();
266 floatGetClosestLen(
floatpct)
const;
275 const string& labelfmt=
"");
287 voidReRootEdge(
TTreeIdxedge_child_node);
290 voidReRootMidpoint();
299 voidSort(
boolascending);
300 voidSortDist(
boolascending);
301 voidSortLabel(
boolascending);
302 voidSortLabelRange(
boolascending);
308 voidFilterDistances(
doublex_dist);
323 unsigned int GetNumNodes(
void) {
returnm_Calc ? m_Calc->GetNumNodes() : 0; }
324 unsigned int GetVisibleNodes(
void) {
returnm_Calc ? m_Calc->GetVisibleNodes() : 0;}
325 unsigned int GetNumEdges(
void) {
returnm_Calc ? m_Calc->GetNumEdges() : 0; }
327 int GetWidth(
void) {
returnm_Calc ? m_Calc->GetWidth() : 0; }
328 int GetSize(
void) {
returnm_Calc ? m_Calc->GetHeight() : 0; }
331 double GetMinDistance(
void) {
returnm_Calc ? m_Calc->GetMinDistance() : 0.0; }
339 virtual stringGetColumnLabel(
size_tcol)
const;
340 virtual size_tGetColsCount()
const;
343 virtual voidClearQueryResults();
346 virtual voidExecuteStringQuery(
const string&
query,
347 size_t& num_selected,
348 size_t& num_queried,
359 TTreeIdxIterateOverSelNodes(
intdirection,
boolhighlight);
373 TTreeIdxNewNode(
boolafter =
true);
374 voidRemove(
boolsubtree =
true);
375 voidRemoveSelected();
376 voidMoveNode(
boolup);
377 bool ClipboardEmpty()
const{
returnm_sTreeClipboard.GetRootIdx() == TNodeType::Null(); }
383 voidSetCollapsedLabels(
constvector<CPhyloNodeData::TID>& node_ids);
386 voidCollapseSelected();
423 tree[node].GetValue().Init(
tree.GetFeatureDict(), m_ColorTable);
static CRef< CScope > m_Scope
User-defined methods of the data storage class.
Things for representing and manipulating bio trees.
Features storage for the bio tree node.
Template class to create a table with custom row-column access.
void RemoveDuplicateIDs()
Remove duplicate IDs from individual sets.
visitor_read_properties(CRgbaGradColorTable *t)
ETreeTraverseCode operator()(TTreeType &tree, TTreeType::TTreeIdx node, int delta)
CRgbaGradColorTable * m_ColorTable
unsigned int GetVisibleNodes(void)
const TClusterToColorMap & GetClusterToColorMap() const
Get map that translates cluster-ids to color indices.
TTreeIdx GetCurrentSearchNode() const
vector< CPhyloTree::TID > m_StringQueryIDs
Temporary storage for string query results to get ID's back to caller.
double GetMinDistance(void)
CRef< objects::CScope > m_Scope
TTreeIdx m_SearchCurrentNode
CPhyloTree::TNodeType TNodeType
CPhyloTree::TClusterID TClusterID
void SetCurrentSearchNode(TTreeIdx node_idx)
CTreeLabel GetTreeLabel() const
TClusterID GetMaxClusterID()
const CPhyloTree * GetTree() const
std::map< int, size_t > TClusterToColorMap
virtual CRef< objects::CScope > GetScope()
Return a scope for the data source, if available.
CRef< CPhyloTree > m_TreeModel
CAppJobDispatcher::TJobID TJobID
unsigned int GetNumEdges(void)
CPhyloSelectionSetMgr & GetSelectionSets()
static CPhyloTree m_sTreeClipboard
static (to allow copying between trees)
CPhyloTreeCalculator * m_Calc
CPhyloTree::TTreeIdx TTreeIdx
const vector< CPhyloTree::TID > & GetStringQueryIDs() const
Get IDs selected by most recent call to FindNodes.
unsigned int GetNumNodes(void)
std::vector< float > m_LenDistribution
double GetNormDistance(void)
const CBioTreeFeatureDictionary & GetDictionary() const
CTreeGraphicsModel & GetModel()
Get model for rendering.
bool ClipboardEmpty() const
bool HasLenDistribution() const
Return true if data is available (for trees without distances, may not be)
TClusterToColorMap m_ClusterToColorMap
void SetTreeLabel(const CTreeLabel &l)
Label for tree (optional element of biotreecontainer)
Tree subclass also has functions and data needed for rendering and selection.
CPhyloNodeData::TClusterID TClusterID
CBioTreeFeatureDictionary & GetFeatureDict()
Return feature dictionary.
class CRgbaColor provides a simple abstraction for managing colors.
CRgbaGradColorTable Provides a storage for colors (to eliminate color creation overhead) and Function...
EStringMatching
String matching algorithms.
@ ePlainSearch
Plain search.
class CTreeGraphicsModel Model for rendering tree graphics data.
string GetFontName() const
CRgbaColor GetColor() const
void SetFontName(const string &f)
CTreeLabel(string label, string font, int font_size, const CRgbaColor &c, int xpos, int ypos)
void SetLabel(const string &l)
void SetColor(const CRgbaColor &c)
object, that will be attached to event
Include a standard set of the NCBI C++ Toolkit most basic headers.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static int StringToInt(const CTempString str, TStringToNumFlags flags=0, int base=10)
Convert string to int.
ECase
Which type of string comparison.
@ fConvErr_NoThrow
Do not throw an exception on error.
@ eCase
Case sensitive compare.
ETreeTraverseCode
Tree traverse code returned by the traverse predicate function.
unsigned int TBioTreeFeatureId
Feature Id.
TBioTreeFeatureId GetId(const string &feature_name) const
If feature is already registered returns its id by name.
const string & GetFeatureValue(TBioTreeFeatureId id) const
Get feature value by id.
const TFeatureDict & GetFeatureDict() const
Get reference on the internal map.
@ eTreeTraverse
Keep traversal.
#define NCBI_GUIWIDGETS_PHYLO_TREE_EXPORT
static const char label[]
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.
void Filter(TTimeline &timeline, TServers &servers)
Int4 delta(size_t dimension_, const Int4 *score_)
static SLJIT_INLINE sljit_ins l(sljit_gpr r, sljit_s32 d, sljit_gpr x, sljit_gpr b)
CPhyloNodeData::TDisplayChildren GetExpanded() const
CPhyloNodeData::TDisplayChildren m_Expanded
Indicates if all nodes are to be expanded or collapsed.
void AddNode(CPhyloNodeData::TID id)
vector< CPhyloNodeData::TID > & GetIds()
void SetExpanded(CPhyloNodeData::TDisplayChildren ec)
vector< CPhyloNodeData::TID > m_NodeIds
Node ids to find node in either tree or biotree.
Edits for one or more nodes.
CBioTreeFeatureDictionary & GetPrevDictionary()
vector< CUpdatedFeature > m_Updated
One entry for each updated node.
vector< CUpdatedFeature > & GetUpdated()
CBioTreeFeatureDictionary m_Dictionary
CBioTreeFeatureDictionary m_PrevDictionary
Store value of dictionary before edit for undo.
CBioTreeFeatureDictionary & GetDictionary()
Edits for one or more nodes.
CPhyloSelectionSetMgr & GetUpdatedSet()
CPhyloSelectionSetMgr m_PrevSet
Previous values (for undo)
CPhyloSelectionSetMgr & GetPrevSet()
CPhyloSelectionSetMgr m_UpdatedSet
Updated set.
CBioTreeFeatureList & GetPrevFeatures()
CPhyloTree::TTreeIdx m_NodeIdx
Node index or pointer (set to NULL after first execute)
CBioTreeFeatureList m_Features
Updated feature list (includes all features, not just those that changed)
bool operator<(const CUpdatedFeature &rhs) const
CBioTreeFeatureList m_PrevFeatures
Feature list prior to edit (for undo)
void SetNode(CPhyloNodeData::TID id, CPhyloTree::TTreeIdx tidx)
CBioTreeFeatureList & GetFeatures()
CPhyloNodeData::TID m_NodeId
Node id to find node in either tree or biotree.
bool FeatureUpdated(TBioTreeFeatureId fid)
Function to exclude nodes during a collapse those nodes that meet a priority threshold.
TBioTreeFeatureId m_PriorityId
SPriorityCollapse(CPhyloTree &m_TreeModel)
virtual bool operator()(const CPhyloTreeNode &n)
size_t TTreeIdx
Bi-directionaly linked N way tree allocated in a contiguous memory block.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4