NCBI C++ ToolKit
|
Search Toolkit Book for CPhyloNodeData
#include <gui/widgets/phylo_tree/phylo_tree_node.hpp>
Public Types | |
enum | TSelectedState { eNotSelected , eSelected , eTraced , eShared } |
enum | TDisplayChildren { eShowChildren , eHideChildren } |
enum | TBoundingState { eUnBounded , eBounded } |
typedef objects::CNode::TId | TID |
typedef string | TLabel |
typedef float | TDistance |
typedef int | TClusterID |
typedef vector< int > | TSelClusterIDs |
typedef CBioTreeFeatureList | TNodeFeaturesType |
typedef CVect2< float > | TPoint |
typedef pair< int, int > | TIndex |
typedef string | TColor |
Public Member Functions | |
CPhyloNodeData () | |
CPhyloNodeData (const CPhyloNodeData &rhs) | |
~CPhyloNodeData () | |
CPhyloNodeData & | operator= (const CPhyloNodeData &rhs) |
void | Init (const CBioTreeFeatureDictionary &dict, CRgbaGradColorTable *t) |
void | Sync (CBioTreeFeatureDictionary &dict) |
const CRef< objects::CSeq_id > & | GetSeqID () const |
void | SetSeqID (objects::CSeq_id *sid) |
CBioTreeFeatureList & | GetBioTreeFeatureList () |
const CBioTreeFeatureList & | GetBioTreeFeatureList () const |
void | SetBioTreeFeatureList (const CBioTreeFeatureList &btcfl) |
int | GetNumLeaves () const |
void | SetNumLeaves (int x_ln) |
int | GetNumLeavesEx () const |
void | SetNumLeavesEx (int x_ln) |
int | GetPrimaryCluster () const |
With selection clusters a node may have multiple cluster ids. More... | |
size_t | GetNumClusters () const |
Return total # of applicable clusters - selection + m_ClusterID. More... | |
TClusterID | GetClusterID (void) const |
void | SetClusterID (TClusterID x_id) |
int | GetPamlCounter () const |
void | SetPamlCounter (int x_ctr) |
TID | GetId () const |
void | SetId (TID x_id) |
TDistance | GetDistance () const |
void | SetDistance (TDistance x_dist) |
TDistance | GetDistanceFromRoot () const |
void | SetDistanceFromRoot (TDistance x_dist) |
TDistance | GetMaxChildDistance () const |
void | SetMaxChildDistance (TDistance x_dist) |
void | SetLabel (const TLabel &x_label) |
const TLabel & | GetLabel () const |
void | Set (TID x_id, TDistance x_dist, const TLabel &x_label) |
TPoint & | XY () |
float & | X () |
float & | Y () |
TPoint | XY () const |
float | X () const |
float | Y () const |
TIndex & | IDX () |
const TIndex & | IDX () const |
TSelectedState | GetSelectedState () const |
void | SetSelectedState (TSelectedState x_state) |
CPhyloTreeScheme::TPhyloTreeColors | GetColoration () const |
void | SetColoration (CPhyloTreeScheme::TPhyloTreeColors ct) |
TDisplayChildren | GetDisplayChildren () const |
void | SetDisplayChildren (TDisplayChildren show) |
TBoundingState | GetBoundedDisplay () const |
short | GetNodeEdColorIdx () const |
short | GetNodeFgColorIdx () const |
short | GetClusterColorIdx () const |
short | GetLabelFgColorIdx () const |
short | GetLabelBgColorIdx () |
void | SetNodeFgColorIdx (short idx) |
void | SetNodeEdgeColorIdx (short idx) |
void | SetClusterColorIdx (short idx) |
void | SetLabelColorIdx (short idx) |
void | SetLabelBgColorIdx (short idx) |
void | SetLabelRect (const CGlRect< float > &r) |
CGlRect< float > | GetLabelRect () const |
void | SetNodeOffset (const CVect2< float > &o) |
CVect2< float > | GetNodeOffset () const |
void | SetNodePixelOffset (const CVect2< float > &o) |
CVect2< float > | GetNodePixelOffset () const |
bool | HasSelClusters () const |
TSelClusterIDs & | GetSelClusters () |
void | SetSelClusters (const TSelClusterIDs &sc) |
void | SetMarkerColors (const string &str) |
string | GetMarkerColorsAsString () |
bool | HasNodeMarker () const |
vector< CRgbaColor > & | GetMarkerColors () |
float | GetMarkerSize () const |
void | SetMarkerSize (float f) |
CSubtreeBoundary * | GetSubtreeBoundary () |
Gets current boundary or creates a new one if m_Boundary is NULL. More... | |
void | DeleteSubtreeBoundary () |
Deletes current boundary (if not NULL). More... | |
float | GetNodeSize () const |
void | SetNodeSize (float x_sz) |
float | GetAngle (void) const |
void | SetAngle (float angle) |
float | GetDrawAngle (void) const |
void | SetDrawAngle (float angle) |
float | GetEdgeScore () const |
void | SetEdgeScore (float s) |
void | SetFeature (CBioTreeFeatureDictionary &dict, const string &name, const string &value) |
void | RemoveFeature (CBioTreeFeatureDictionary &dict, const string &name) |
void | InitFeatures (const CBioTreeFeatureDictionary &dict, CRgbaGradColorTable *t) |
float | GetScaledAngle (const CVect3< float > &scale, float a, bool for_label=true) const |
Utility to get screen rotation angle after scaling. More... | |
CVect2< float > | GetNodePosEx (const CVect3< float > &scale, CPhyloTreeScheme *scheme, float &node_size, float size_scaler=1.0f) const |
Get modified center of node position - this works for collapsed nodes in rotated layouts and with offsets between label and node. More... | |
void | Render (const CGlPane &pane, const CGlTextureFont &font, CRgbaGradColorTable *color_table, const CVect3< float > &scale, bool truncate_labels, TModelUnit max_len=-1.0f) |
Draw the label using scale to compute its offset from m_BasePos. More... | |
void | RenderRotated (const CGlPane &pane, const CGlTextureFont &font, CRgbaGradColorTable *color_table, const CVect3< float > &scale, float orig_angle, bool truncate_labels) |
Draw the label and rotate it to match m_Angle (radial text) This form does not support label truncation. More... | |
CVect2< float > | GetTextOut (CGlPane &pane, const CGlTextureFont &font, const CVect3< float > &scale, bool truncate_labels, string &text_out) |
Return the drawing position and (possibly truncated) text. More... | |
void | GetLabelRect (const CVect2< float > &scale, CVect2< float > &lower_left, CVect2< float > &upper_right, bool rotated=false) |
Find the rectangle for the label given the current zoom level (scale) More... | |
bool | PointInTextBox (const CVect2< float > &scale, CVect2< float > pt, bool rotated=false) |
Return true if pt is inside of this nodes text box. More... | |
CGlRect< float > | GetLabelRect (const CVect2< float > &scale, bool rotated) |
Find the rectangle for the label in pixel coordinates, taking rotation into account. More... | |
void | GetBoundingRect (const CVect2< float > &scale, CVect2< float > &lower_left, CVect2< float > &upper_right, bool rotated=false) |
Find the rectangle for the node and label combined given the current zoom level (scale) More... | |
CVect4< CVect2< float > > | GetRotatedTextBox (const CVect3< float > &scale, float &angle, float orig_angle=0.0f) const |
Return text box (m_LabelRect) rotated to align with radial edges. More... | |
CVect2< float > | GetRotatedTextPos (const CVect3< float > &scale, float &angle) const |
Return the text starting point rotated to align with radial edges. More... | |
float | GetMinX (const CVect2< float > &scale) |
Return labels minimal X coordinate. More... | |
float | GetDefaultNodeSize (const CPhyloTreeScheme *scheme) const |
Get modified node size - includes scaled (BOA) size. More... | |
float | GetNodeLayoutSize (const CPhyloTreeScheme *scheme) const |
Get modified node size - use this instead of GetDefaultNodeSize when doing layout (doesn't go to 0 if leaf node size does) This is basically the height of the node for layout purposes. More... | |
float | GetNodeWidthScaler (const CPhyloTreeScheme *scheme) const |
Get modified node width (length) for collapsed nodes. Default is 1. More... | |
float | GetNodeOverhang (const CVect2< float > &scale) const |
Get extenstion of node beyond end of edge in pixels. More... | |
void | SetVisible (bool b) |
Flag to renderer to determine whether to draw label. More... | |
bool | GetVisible () const |
void | SetDisplayLabel (const string &t) |
set/get label text More... | |
const string & | GetDisplayLabel () const |
void | SetNodeDisplaySize (float s) |
set/get node size (this is the result of GetDefaultNodeSize()) More... | |
float | GetNodeDisplaySize () const |
void | SetEdgeColorGradient (bool g) |
Enable or disable gradient coloring of edges between nodes. More... | |
bool | GetEdgeColorGradient () const |
void | SetNodeDisplayColor (const CRgbaColor &c) |
Set/get node color. More... | |
CRgbaColor | GetNodeDisplayColor () const |
void | SetTextDisplayColor (const CRgbaColor &c) |
Set/get text color. More... | |
CRgbaColor | GetTextDisplayColor () const |
void | SetAlreadyDrawn (bool b) |
Flag set after each drawing and cleared when rendering frame done. More... | |
bool | GetAlreadyDrawn () const |
Static Public Attributes | |
static const TColor | TNoColor = "" |
Protected Member Functions | |
string | x_GetParameter (const string &features, const string &parm) |
bool | x_HasExtendedParms () const |
Protected Attributes | |
CRef< objects::CSeq_id > | m_SeqID |
CBioTreeFeatureList | m_Features |
int | m_NumLeaves |
int | m_NumLeavesEx |
int | m_PamlCounter |
TClusterID | m_ClusterID |
TID | m_ID |
TDistance | m_Distance |
TDistance | m_DistanceFromRoot |
TDistance | m_MaxChildDistance |
TPoint | m_XY |
TIndex | m_IDX |
float | m_Angle |
float | m_DrawAngle |
float | m_EdgeScore |
CGlRect< float > | m_LabelRect |
CVect2< float > | m_NodeOffset |
CVect2< float > | m_NodePixelOffset |
Pixel offset to apply the node. More... | |
TSelectedState | m_Selected |
CPhyloTreeScheme::TPhyloTreeColors | m_ColorType |
SExtendedNodeParms * | m_ExtendedParms |
CRgbaColor | m_NodeColor |
Current node color. More... | |
CRgbaColor | m_FgColor |
Current text color. More... | |
TLabel | m_Label |
Full label. More... | |
string | m_Text |
Text to render. More... | |
float | m_Size |
float | m_NodeSize |
Scaled node size. More... | |
float | m_NodeWidth |
This is computed by GetNodeWidthScaler(..) for collapsed nodes and we need to hang onto it for node label positioning. More... | |
short | m_NodeEdColorIdx |
Node colors defined by scheme. More... | |
short | m_NodeFgColorIdx |
short | m_ClusterColorIdx |
short | m_LabelFgColorIdx |
Label color. More... | |
short | m_LabelBgColorIdx |
bool | m_EdgeColorGradient |
Controls use of gradient coloring for edges - if false, edges will be a single color, if true the edge will transition from child to parent color. More... | |
bool | m_Children |
expand-collapse state (expanded==true) More... | |
bool | m_Visible |
True if node is visible. More... | |
bool | m_AlreadyDrawn |
Text is alpha-blended so we add a flag to prevent drawing multiple times. More... | |
Definition at line 82 of file phylo_tree_node.hpp.
typedef int CPhyloNodeData::TClusterID |
Definition at line 87 of file phylo_tree_node.hpp.
typedef string CPhyloNodeData::TColor |
Definition at line 110 of file phylo_tree_node.hpp.
typedef float CPhyloNodeData::TDistance |
Definition at line 86 of file phylo_tree_node.hpp.
typedef objects::CNode::TId CPhyloNodeData::TID |
Definition at line 84 of file phylo_tree_node.hpp.
typedef pair<int, int> CPhyloNodeData::TIndex |
Definition at line 109 of file phylo_tree_node.hpp.
typedef string CPhyloNodeData::TLabel |
Definition at line 85 of file phylo_tree_node.hpp.
Definition at line 89 of file phylo_tree_node.hpp.
typedef CVect2<float> CPhyloNodeData::TPoint |
Definition at line 108 of file phylo_tree_node.hpp.
typedef vector<int> CPhyloNodeData::TSelClusterIDs |
Definition at line 88 of file phylo_tree_node.hpp.
Enumerator | |
---|---|
eUnBounded | |
eBounded |
Definition at line 103 of file phylo_tree_node.hpp.
Enumerator | |
---|---|
eShowChildren | |
eHideChildren |
Definition at line 98 of file phylo_tree_node.hpp.
Enumerator | |
---|---|
eNotSelected | |
eSelected | |
eTraced | |
eShared |
Definition at line 91 of file phylo_tree_node.hpp.
|
inline |
Definition at line 115 of file phylo_tree_node.hpp.
CPhyloNodeData::CPhyloNodeData | ( | const CPhyloNodeData & | rhs | ) |
Definition at line 160 of file phylo_tree_node.cpp.
CPhyloNodeData::~CPhyloNodeData | ( | ) |
Definition at line 211 of file phylo_tree_node.cpp.
References m_ExtendedParms, and NULL.
void CPhyloNodeData::DeleteSubtreeBoundary | ( | ) |
Deletes current boundary (if not NULL).
Definition at line 341 of file phylo_tree_node.cpp.
References SExtendedNodeParms::m_Boundary, m_ExtendedParms, NULL, and x_HasExtendedParms().
Referenced by InitFeatures().
|
inline |
Definition at line 391 of file phylo_tree_node.hpp.
References m_AlreadyDrawn.
|
inline |
Definition at line 267 of file phylo_tree_node.hpp.
References m_Angle.
Referenced by CCalcRadialTree::operator()(), Render(), IPhyloTreeRender::x_AddCollapsedGeomNode(), and IPhyloTreeRender::x_AddCollapsedTextureNode().
CBioTreeFeatureList & CPhyloNodeData::GetBioTreeFeatureList | ( | ) |
Definition at line 606 of file phylo_tree_node.cpp.
References m_Features.
Referenced by CPhyloTreeWidget::OnExportSelection(), visitor_paste_subtree::operator()(), CVisitorAccumulateProperty::operator()(), and CPhyloSelectionSetMgr::SetSelectionSetProperty().
|
inline |
Definition at line 157 of file phylo_tree_node.hpp.
References m_Features.
CPhyloNodeData::TBoundingState CPhyloNodeData::GetBoundedDisplay | ( | ) | const |
Definition at line 322 of file phylo_tree_node.cpp.
References eBounded, eUnBounded, SExtendedNodeParms::m_Boundary, m_ExtendedParms, NULL, and x_HasExtendedParms().
Referenced by CCalcCircularTree::operator()(), CCalcBoundary::operator()(), CCalcRadialTree::operator()(), CCalcRectangularTree::operator()(), and CCalcSlantedTree::operator()().
void CPhyloNodeData::GetBoundingRect | ( | const CVect2< float > & | scale, |
CVect2< float > & | lower_left, | ||
CVect2< float > & | upper_right, | ||
bool | rotated = false |
||
) |
Find the rectangle for the node and label combined given the current zoom level (scale)
Definition at line 1162 of file phylo_tree_node.cpp.
References abs, GetLabelRect(), m_NodeOffset, m_NodeSize, max(), min(), CVect2< T >::X(), X(), CVect2< T >::Y(), and Y().
|
inline |
Definition at line 229 of file phylo_tree_node.hpp.
References m_ClusterColorIdx.
|
inline |
|
inline |
Definition at line 219 of file phylo_tree_node.hpp.
References m_ColorType.
float CPhyloNodeData::GetDefaultNodeSize | ( | const CPhyloTreeScheme * | scheme | ) | const |
Get modified node size - includes scaled (BOA) size.
Definition at line 1188 of file phylo_tree_node.cpp.
References eHideChildren, CPhyloTreeScheme::GetBoaNodes(), GetDisplayChildren(), CPhyloTreeScheme::GetLeafNodeSize(), CPhyloTreeScheme::GetMaxNodeSize(), CPhyloTreeScheme::GetMaxNumChildren(), CPhyloTreeScheme::GetMinNodeSize(), CPhyloTreeScheme::GetMinNumChildren(), GetNodeSize(), CPhyloTreeScheme::GetNodeSize(), GetNumLeaves(), GetNumLeavesEx(), log, and min().
Referenced by IPhyloTreeRender::GetDefaultNodeSize(), GetNodeLayoutSize(), GetNodePosEx(), and GetNodeWidthScaler().
|
inline |
Definition at line 222 of file phylo_tree_node.hpp.
References eHideChildren, eShowChildren, and m_Children.
Referenced by CPhyloTreeNode::Expanded(), GetDefaultNodeSize(), GetNodeOverhang(), GetNodePosEx(), GetNodeWidthScaler(), and Sync().
Definition at line 371 of file phylo_tree_node.hpp.
References m_Text.
|
inline |
Definition at line 184 of file phylo_tree_node.hpp.
References fabs, and m_Distance.
Referenced by CCalcCircularTree::operator()(), CPhyloTreeDataSource::ReRootEdge(), CPhyloTreeDataSource::ReRootMidpoint(), Sync(), CPhyloTreeMaxDirectChildDist::x_OnStep(), CPhyloTreeMaxChildDist::x_OnStep(), CPhyloTreeDistFromRoot::x_OnStep(), and CPhyloTreeMidpointDist::x_OnStep().
|
inline |
Definition at line 187 of file phylo_tree_node.hpp.
References fabs, and m_DistanceFromRoot.
|
inline |
Definition at line 270 of file phylo_tree_node.hpp.
References m_DrawAngle.
|
inline |
Definition at line 379 of file phylo_tree_node.hpp.
References m_EdgeColorGradient.
|
inline |
Definition at line 273 of file phylo_tree_node.hpp.
References m_EdgeScore.
Referenced by IPhyloTreeRender::GetEdgeColor().
|
inline |
Definition at line 181 of file phylo_tree_node.hpp.
References m_ID.
Referenced by CTreeQueryExec::EvalNext(), CPhyloTreeDataSource::ExecuteStringQuery(), CPhyloTreeNode::IsUnused(), visitor_copy_subtree::operator()(), visitor_paste_subtree::operator()(), and IPhyloTreeRender::TTHH_NeedTooltip().
|
inline |
Definition at line 231 of file phylo_tree_node.hpp.
References m_LabelBgColorIdx.
|
inline |
Definition at line 230 of file phylo_tree_node.hpp.
References m_LabelFgColorIdx.
|
inline |
Definition at line 240 of file phylo_tree_node.hpp.
References m_LabelRect.
Referenced by GetBoundingRect(), GetLabelRect(), GetMinX(), GetRotatedTextBox(), GetRotatedTextPos(), GetTextOut(), CPhyloTreeWidget::IterateSelection(), PointInTextBox(), and Render().
Find the rectangle for the label in pixel coordinates, taking rotation into account.
Definition at line 1115 of file phylo_tree_node.cpp.
References a, CGlRect< T >::Bottom(), GetLabelRect(), CGlRect< T >::Left(), m_Angle, max(), min(), r(), CGlRect< T >::Right(), CGlRect< T >::SetBottom(), CGlRect< T >::SetLeft(), CGlRect< T >::SetRight(), CGlRect< T >::SetTop(), CGlRect< T >::Top(), CVect2< T >::X(), CGlPoint< T >::X(), CVect2< T >::Y(), and CGlPoint< T >::Y().
void CPhyloNodeData::GetLabelRect | ( | const CVect2< float > & | scale, |
CVect2< float > & | lower_left, | ||
CVect2< float > & | upper_right, | ||
bool | rotated = false |
||
) |
Find the rectangle for the label given the current zoom level (scale)
Definition at line 1045 of file phylo_tree_node.cpp.
References GetLabelRect(), GetRotatedTextBox(), max(), min(), r(), CVect2< T >::X(), CVect4< T >::X(), X(), CVect2< T >::Y(), CVect4< T >::Y(), and Y().
vector< CRgbaColor > & CPhyloNodeData::GetMarkerColors | ( | ) |
Definition at line 249 of file phylo_tree_node.cpp.
References m_ExtendedParms, SExtendedNodeParms::m_MarkerColors, and x_HasExtendedParms().
Referenced by InitFeatures().
string CPhyloNodeData::GetMarkerColorsAsString | ( | ) |
Definition at line 307 of file phylo_tree_node.cpp.
References i, m_ExtendedParms, SExtendedNodeParms::m_MarkerColors, string, and x_HasExtendedParms().
float CPhyloNodeData::GetMarkerSize | ( | ) | const |
Definition at line 257 of file phylo_tree_node.cpp.
References m_ExtendedParms, SExtendedNodeParms::m_MarkerSize, and x_HasExtendedParms().
|
inline |
Definition at line 190 of file phylo_tree_node.hpp.
References fabs, and m_MaxChildDistance.
Return labels minimal X coordinate.
Definition at line 1183 of file phylo_tree_node.cpp.
References GetLabelRect(), CVect2< T >::X(), and X().
|
inline |
Definition at line 383 of file phylo_tree_node.hpp.
References m_NodeColor.
|
inline |
Definition at line 375 of file phylo_tree_node.hpp.
References m_NodeSize.
|
inline |
Definition at line 227 of file phylo_tree_node.hpp.
References m_NodeEdColorIdx.
|
inline |
Definition at line 228 of file phylo_tree_node.hpp.
References m_NodeFgColorIdx.
float CPhyloNodeData::GetNodeLayoutSize | ( | const CPhyloTreeScheme * | scheme | ) | const |
Get modified node size - use this instead of GetDefaultNodeSize when doing layout (doesn't go to 0 if leaf node size does) This is basically the height of the node for layout purposes.
Definition at line 1226 of file phylo_tree_node.cpp.
References GetDefaultNodeSize(), CPhyloTreeScheme::GetNodeSize(), max(), and ncbi::grid::netcache::search::fields::size.
Referenced by IPhyloTreeRender::GetNodeLayoutSize().
|
inline |
Definition at line 243 of file phylo_tree_node.hpp.
References m_NodeOffset.
Get extenstion of node beyond end of edge in pixels.
In circular views, this takes tfhe offset into the circle into account as well.
Definition at line 1272 of file phylo_tree_node.cpp.
References abs, eShowChildren, GetDisplayChildren(), CGlRect< T >::Left(), CVect2< T >::Length(), m_LabelRect, m_NodeOffset, m_NodePixelOffset, m_NodeWidth, min(), CGlRect< T >::Right(), CVect2< T >::X(), and CVect2< T >::Y().
Referenced by GetRotatedTextBox().
|
inline |
Definition at line 246 of file phylo_tree_node.hpp.
References m_NodePixelOffset.
CVect2< float > CPhyloNodeData::GetNodePosEx | ( | const CVect3< float > & | scale, |
CPhyloTreeScheme * | scheme, | ||
float & | node_size, | ||
float | size_scaler = 1.0f |
||
) | const |
Get modified center of node position - this works for collapsed nodes in rotated layouts and with offsets between label and node.
Definition at line 683 of file phylo_tree_node.cpp.
References a, eShowChildren, GetDefaultNodeSize(), GetDisplayChildren(), GetScaledAngle(), m_Angle, m_NodeOffset, m_XY, CVect2< T >::X(), CVect3< T >::X(), CVect2< T >::Y(), and CVect3< T >::Y().
|
inline |
Definition at line 264 of file phylo_tree_node.hpp.
References m_Size.
Referenced by GetDefaultNodeSize().
float CPhyloNodeData::GetNodeWidthScaler | ( | const CPhyloTreeScheme * | scheme | ) | const |
Get modified node width (length) for collapsed nodes. Default is 1.
Definition at line 1237 of file phylo_tree_node.cpp.
References eHideChildren, CPhyloTreeScheme::GetBoaNodes(), GetDefaultNodeSize(), GetDisplayChildren(), CPhyloTreeScheme::GetMaxBranchDist(), CPhyloTreeScheme::GetMaxNodeSize(), CPhyloTreeScheme::GetMaxNumChildren(), CPhyloTreeScheme::GetMinNodeSize(), CPhyloTreeScheme::GetMinNumChildren(), log, m_MaxChildDistance, and m_NodeWidth.
Referenced by CPhyloCircularCladogram::GetNodeLabelDist(), IPhyloTreeRender::GetNodeLabelDist(), IPhyloTreeRender::x_AddCollapsedGeomNode(), and IPhyloTreeRender::x_AddCollapsedTextureNode().
size_t CPhyloNodeData::GetNumClusters | ( | ) | const |
Return total # of applicable clusters - selection + m_ClusterID.
Definition at line 628 of file phylo_tree_node.cpp.
References HasSelClusters(), m_ClusterID, m_ExtendedParms, and SExtendedNodeParms::m_SelClusters.
|
inline |
Definition at line 161 of file phylo_tree_node.hpp.
References m_NumLeaves.
Referenced by GetDefaultNodeSize(), and CPhyloTreeLabel::x_GenerateAutoLabel().
|
inline |
Definition at line 164 of file phylo_tree_node.hpp.
References m_NumLeavesEx.
Referenced by CTreeGraphicsModel::EnableCircularLabelTrimming(), GetDefaultNodeSize(), and CCalcRadialTree::operator()().
|
inline |
Definition at line 178 of file phylo_tree_node.hpp.
References m_PamlCounter.
int CPhyloNodeData::GetPrimaryCluster | ( | ) | const |
With selection clusters a node may have multiple cluster ids.
Return highest-priority cluster (first selection cluster, if present, m_ClusterID otherwise)
Definition at line 616 of file phylo_tree_node.cpp.
References HasSelClusters(), m_ClusterID, m_ExtendedParms, and SExtendedNodeParms::m_SelClusters.
CVect4< CVect2< float > > CPhyloNodeData::GetRotatedTextBox | ( | const CVect3< float > & | scale, |
float & | angle, | ||
float | orig_angle = 0.0f |
||
) | const |
Return text box (m_LabelRect) rotated to align with radial edges.
Definition at line 942 of file phylo_tree_node.cpp.
References GetLabelRect(), GetNodeOverhang(), GetScaledAngle(), m_Angle, r(), result, CVect2< T >::Set(), CVect2< T >::X(), CVect3< T >::X(), X(), CGlPoint< T >::X(), CVect2< T >::Y(), CVect3< T >::Y(), Y(), and CGlPoint< T >::Y().
Referenced by GetLabelRect(), and RenderRotated().
CVect2< float > CPhyloNodeData::GetRotatedTextPos | ( | const CVect3< float > & | scale, |
float & | angle | ||
) | const |
Return the text starting point rotated to align with radial edges.
Definition at line 977 of file phylo_tree_node.cpp.
References GetLabelRect(), GetScaledAngle(), m_Angle, r(), result, CVect2< T >::X(), CVect3< T >::X(), X(), CVect2< T >::Y(), CVect3< T >::Y(), and Y().
float CPhyloNodeData::GetScaledAngle | ( | const CVect3< float > & | scale, |
float | a, | ||
bool | for_label = true |
||
) | const |
Utility to get screen rotation angle after scaling.
Definition at line 666 of file phylo_tree_node.cpp.
References a, CVect3< T >::X(), and CVect3< T >::Y().
Referenced by GetNodePosEx(), GetRotatedTextBox(), and GetRotatedTextPos().
CPhyloNodeData::TSelClusterIDs & CPhyloNodeData::GetSelClusters | ( | ) |
Definition at line 225 of file phylo_tree_node.cpp.
References m_ExtendedParms, SExtendedNodeParms::m_SelClusters, and x_HasExtendedParms().
Referenced by InitFeatures(), CPhyloSelectionSetMgr::SetSelectionSetProperty(), and Sync().
|
inline |
Definition at line 216 of file phylo_tree_node.hpp.
References m_Selected.
Definition at line 153 of file phylo_tree_node.hpp.
References m_SeqID.
CSubtreeBoundary * CPhyloNodeData::GetSubtreeBoundary | ( | ) |
Gets current boundary or creates a new one if m_Boundary is NULL.
Definition at line 330 of file phylo_tree_node.cpp.
References SExtendedNodeParms::m_Boundary, m_ExtendedParms, NULL, and x_HasExtendedParms().
Referenced by InitFeatures().
|
inline |
Definition at line 387 of file phylo_tree_node.hpp.
References m_FgColor.
CVect2< float > CPhyloNodeData::GetTextOut | ( | CGlPane & | pane, |
const CGlTextureFont & | font, | ||
const CVect3< float > & | scale, | ||
bool | truncate_labels, | ||
string & | text_out | ||
) |
Return the drawing position and (possibly truncated) text.
Definition at line 998 of file phylo_tree_node.cpp.
References GetLabelRect(), CGlPane::GetViewport(), m_Text, CGlPane::ProjectX(), r(), CGlTextureFont::Truncate(), CGlPane::UnProjectX(), CGlRect< T >::Width(), CVect2< T >::X(), CVect3< T >::X(), X(), CVect2< T >::Y(), CVect3< T >::Y(), and Y().
|
inline |
Definition at line 367 of file phylo_tree_node.hpp.
References m_Visible.
bool CPhyloNodeData::HasNodeMarker | ( | ) | const |
Definition at line 241 of file phylo_tree_node.cpp.
References m_ExtendedParms, SExtendedNodeParms::m_MarkerColors, and x_HasExtendedParms().
Referenced by InitFeatures().
bool CPhyloNodeData::HasSelClusters | ( | ) | const |
Definition at line 217 of file phylo_tree_node.cpp.
References m_ExtendedParms, SExtendedNodeParms::m_SelClusters, and x_HasExtendedParms().
Referenced by GetNumClusters(), GetPrimaryCluster(), InitFeatures(), and Sync().
|
inline |
Definition at line 213 of file phylo_tree_node.hpp.
References m_IDX.
Referenced by NodeIdxSort::operator()(), and CPhyloTreeLabel::x_GenerateAutoLabel().
Definition at line 214 of file phylo_tree_node.hpp.
References m_IDX.
void CPhyloNodeData::Init | ( | const CBioTreeFeatureDictionary & | dict, |
CRgbaGradColorTable * | t | ||
) |
Definition at line 532 of file phylo_tree_node.cpp.
References CBioTreeFeatureList::GetFeatureValue(), CSeqUtils::GetGIString(), CBioTreeFeatureDictionary::GetId(), InitFeatures(), m_Features, PHYLO_FEAT_SEQID, SetSeqID(), and t.
void CPhyloNodeData::InitFeatures | ( | const CBioTreeFeatureDictionary & | dict, |
CRgbaGradColorTable * | t | ||
) |
Definition at line 385 of file phylo_tree_node.cpp.
References arr, CSubtreeBoundary::CreateShapes(), DeleteSubtreeBoundary(), EDGE_GRADIENT, eHideChildren, eShowChildren, NStr::fConvErr_NoThrow, CBioTreeFeatureList::GetFeatureValue(), CBioTreeFeatureDictionary::GetId(), GetMarkerColors(), GetSelClusters(), GetSubtreeBoundary(), HasNodeMarker(), HasSelClusters(), i, m_EdgeColorGradient, m_ExtendedParms, m_Features, SExtendedNodeParms::m_SelClusters, PHYLO_EDGE_COLOR, PHYLO_FEAT_CLUSTERID, PHYLO_FEAT_DIST, PHYLO_LABEL_BGCOLOR, PHYLO_LABEL_COLOR, PHYLO_NODE_BOUNDED, PHYLO_NODE_COLLAPSED, PHYLO_NODE_COLOR, PHYLO_NODE_MARKER, PHYLO_NODE_SIZE, PHYLO_SELECT_CLUSTERS, SetClusterID(), SetDisplayChildren(), SetDistance(), SetLabelBgColorIdx(), SetLabelColorIdx(), SetMarkerColors(), SetNodeEdgeColorIdx(), SetNodeFgColorIdx(), SetNodeSize(), ncbi::grid::netcache::search::fields::size, NStr::Split(), NStr::StringToDouble(), NStr::StringToInt(), t, and true.
Referenced by Init().
CPhyloNodeData & CPhyloNodeData::operator= | ( | const CPhyloNodeData & | rhs | ) |
Definition at line 166 of file phylo_tree_node.cpp.
References m_Angle, m_Children, m_ClusterColorIdx, m_ClusterID, m_ColorType, m_Distance, m_DistanceFromRoot, m_DrawAngle, m_EdgeColorGradient, m_ExtendedParms, m_Features, m_FgColor, m_ID, m_IDX, m_Label, m_LabelBgColorIdx, m_LabelFgColorIdx, m_LabelRect, m_MaxChildDistance, m_NodeColor, m_NodeEdColorIdx, m_NodeFgColorIdx, m_NodeOffset, m_NodePixelOffset, m_NodeWidth, m_NumLeaves, m_NumLeavesEx, m_PamlCounter, m_Selected, m_SeqID, m_Size, m_XY, and NULL.
bool CPhyloNodeData::PointInTextBox | ( | const CVect2< float > & | scale, |
CVect2< float > | pt, | ||
bool | rotated = false |
||
) |
Return true if pt is inside of this nodes text box.
Definition at line 1081 of file phylo_tree_node.cpp.
References a, GetLabelRect(), m_DrawAngle, r(), CVect2< T >::X(), X(), CVect2< T >::Y(), and Y().
void CPhyloNodeData::RemoveFeature | ( | CBioTreeFeatureDictionary & | dict, |
const string & | name | ||
) |
Definition at line 374 of file phylo_tree_node.cpp.
References CBioTreeFeatureDictionary::GetId(), CBioTreeFeatureDictionary::HasFeature(), m_Features, and CBioTreeFeatureList::RemoveFeature().
Referenced by CPhyloTreeNode::ExpandCollapse(), and Sync().
void CPhyloNodeData::Render | ( | const CGlPane & | pane, |
const CGlTextureFont & | font, | ||
CRgbaGradColorTable * | color_table, | ||
const CVect3< float > & | scale, | ||
bool | truncate_labels, | ||
TModelUnit | max_len = -1.0f |
||
) |
Draw the label using scale to compute its offset from m_BasePos.
Definition at line 711 of file phylo_tree_node.cpp.
References IRender::Begin(), IRender::BlendFunc(), IRender::Color4fv(), IGlFont::eMetric_CharHeight, IRender::Enable(), IRender::End(), GetAngle(), CRgbaGradColorTable::GetColor(), CRgbaColor::GetColorArray(), GetGl(), GetLabelRect(), CGlTextureFont::GetMetric(), CGlPane::GetScaleX(), CGlPane::GetScaleY(), CGlPane::GetViewport(), m_AlreadyDrawn, m_FgColor, m_LabelBgColorIdx, m_Text, m_Visible, min(), IRender::PolygonMode(), CGlPane::ProjectX(), r(), SetDrawAngle(), CGlTextureFont::TextOut(), CGlTextureFont::TextWidth(), CGlTextureFont::Truncate(), IRender::Vertex2d(), CGlRect< T >::Width(), CVect3< T >::X(), X(), CVect3< T >::Y(), and Y().
void CPhyloNodeData::RenderRotated | ( | const CGlPane & | pane, |
const CGlTextureFont & | font, | ||
CRgbaGradColorTable * | color_table, | ||
const CVect3< float > & | scale, | ||
float | orig_angle, | ||
bool | truncate_labels | ||
) |
Draw the label and rotate it to match m_Angle (radial text) This form does not support label truncation.
Definition at line 806 of file phylo_tree_node.cpp.
References IRender::Begin(), CGlTextureFont::BeginText(), IRender::BlendFunc(), IRender::Color4fv(), delta(), IRender::Enable(), IRender::End(), CGlTextureFont::EndText(), CRgbaGradColorTable::GetColor(), CRgbaColor::GetColorArray(), GetGl(), GetRotatedTextBox(), CGlPane::GetViewport(), CGlRect< T >::Height(), i, CVect2< T >::Length(), m_AlreadyDrawn, m_FgColor, m_LabelBgColorIdx, m_Text, m_Visible, max(), min(), IRender::PolygonMode(), CGlPane::Project(), CGlPane::ProjectX(), CGlPane::ProjectY(), SetDrawAngle(), CGlTextureFont::TextWidth(), CGlTextureFont::Truncate(), IRender::Vertex2f(), CGlRect< T >::Width(), CGlTextureFont::WriteText(), X(), CGlPoint< T >::X(), Y(), and CGlPoint< T >::Y().
Definition at line 196 of file phylo_tree_node.hpp.
References m_Distance, m_ID, and m_Label.
Referenced by CPhyloTreeNode::CPhyloTreeNode().
|
inline |
Flag set after each drawing and cleared when rendering frame done.
Definition at line 390 of file phylo_tree_node.hpp.
References b, and m_AlreadyDrawn.
Referenced by IPhyloTreeRender::x_RenderNodeVbo().
|
inline |
Definition at line 268 of file phylo_tree_node.hpp.
References m_Angle.
Referenced by CCalcSlantedTree::operator()().
void CPhyloNodeData::SetBioTreeFeatureList | ( | const CBioTreeFeatureList & | btcfl | ) |
Definition at line 611 of file phylo_tree_node.cpp.
References m_Features.
|
inline |
Definition at line 235 of file phylo_tree_node.hpp.
References m_ClusterColorIdx.
|
inline |
Definition at line 176 of file phylo_tree_node.hpp.
References m_ClusterID.
Referenced by InitFeatures().
|
inline |
Definition at line 220 of file phylo_tree_node.hpp.
References m_ColorType.
|
inline |
Definition at line 223 of file phylo_tree_node.hpp.
References eShowChildren, and m_Children.
Referenced by CPhyloTreeNode::ExpandCollapse(), and InitFeatures().
|
inline |
Definition at line 185 of file phylo_tree_node.hpp.
References m_Distance.
Referenced by InitFeatures(), CPhyloTreeDataSource::ReRoot(), CPhyloTreeDataSource::ReRootEdge(), CPhyloTreeDataSource::ReRootMidpoint(), and CPhyloTree::x_ConvertUpstream().
|
inline |
Definition at line 188 of file phylo_tree_node.hpp.
References m_DistanceFromRoot.
|
inline |
Definition at line 271 of file phylo_tree_node.hpp.
References m_DrawAngle.
Referenced by Render(), and RenderRotated().
|
inline |
Enable or disable gradient coloring of edges between nodes.
Definition at line 378 of file phylo_tree_node.hpp.
References g(), and m_EdgeColorGradient.
|
inline |
Definition at line 274 of file phylo_tree_node.hpp.
References m_EdgeScore.
void CPhyloNodeData::SetFeature | ( | CBioTreeFeatureDictionary & | dict, |
const string & | name, | ||
const string & | value | ||
) |
Definition at line 350 of file phylo_tree_node.cpp.
References eUnknown, CBioTreeFeatureDictionary::GetId(), CBioTreeFeatureDictionary::HasFeature(), m_Features, MAX_PROPERTIES, NCBI_THROW, CBioTreeFeatureDictionary::Register(), CBioTreeFeatureList::SetFeature(), and rapidjson::value.
Referenced by CPhyloTreeNode::ExpandCollapse(), CPhyloTreeDataSource::NewNode(), CPhyloTreeDataSource::ReRootMidpoint(), and Sync().
void CPhyloNodeData::SetId | ( | TID | x_id | ) |
Definition at line 640 of file phylo_tree_node.cpp.
References m_ID.
Referenced by CPhyloTreeDataSource::Remove(), and IPhyloTreeFilter::x_OnStep().
Definition at line 193 of file phylo_tree_node.hpp.
References m_Label.
Referenced by CPhyloTreeNode::SetLabel().
|
inline |
Definition at line 237 of file phylo_tree_node.hpp.
References m_LabelBgColorIdx.
Referenced by InitFeatures().
|
inline |
Definition at line 236 of file phylo_tree_node.hpp.
References m_LabelFgColorIdx.
Referenced by InitFeatures().
Definition at line 239 of file phylo_tree_node.hpp.
References m_LabelRect, and r().
Definition at line 273 of file phylo_tree_node.cpp.
References color, NStr::fConvErr_NoThrow, m_ExtendedParms, SExtendedNodeParms::m_MarkerColors, SetMarkerSize(), str(), NStr::StringToDouble(), x_GetParameter(), and x_HasExtendedParms().
Referenced by InitFeatures().
void CPhyloNodeData::SetMarkerSize | ( | float | f | ) |
Definition at line 265 of file phylo_tree_node.cpp.
References f, m_ExtendedParms, SExtendedNodeParms::m_MarkerSize, and x_HasExtendedParms().
Referenced by SetMarkerColors().
|
inline |
Definition at line 191 of file phylo_tree_node.hpp.
References m_MaxChildDistance.
|
inline |
Set/get node color.
Definition at line 382 of file phylo_tree_node.hpp.
References m_NodeColor.
Referenced by IPhyloTreeRender::x_RenderNodeVbo().
|
inline |
set/get node size (this is the result of GetDefaultNodeSize())
Definition at line 374 of file phylo_tree_node.hpp.
References m_NodeSize.
Referenced by IPhyloTreeRender::x_RenderNodeVbo().
|
inline |
Definition at line 234 of file phylo_tree_node.hpp.
References m_NodeEdColorIdx.
Referenced by InitFeatures().
|
inline |
Definition at line 233 of file phylo_tree_node.hpp.
References m_NodeFgColorIdx.
Referenced by InitFeatures().
Definition at line 242 of file phylo_tree_node.hpp.
References m_NodeOffset.
Referenced by IPhyloTreeRender::x_AddCollapsedGeomNode(), IPhyloTreeRender::x_AddCollapsedTextureNode(), and IPhyloTreeRender::x_RenderNodeVbo().
Definition at line 245 of file phylo_tree_node.hpp.
References m_NodePixelOffset.
|
inline |
Definition at line 265 of file phylo_tree_node.hpp.
References m_Size.
Referenced by InitFeatures().
|
inline |
Definition at line 162 of file phylo_tree_node.hpp.
References m_NumLeaves.
|
inline |
Definition at line 165 of file phylo_tree_node.hpp.
References m_NumLeavesEx.
|
inline |
Definition at line 179 of file phylo_tree_node.hpp.
References m_PamlCounter.
void CPhyloNodeData::SetSelClusters | ( | const TSelClusterIDs & | sc | ) |
Definition at line 233 of file phylo_tree_node.cpp.
References m_ExtendedParms, SExtendedNodeParms::m_SelClusters, and x_HasExtendedParms().
|
inline |
Definition at line 217 of file phylo_tree_node.hpp.
References m_Selected.
|
inline |
Definition at line 154 of file phylo_tree_node.hpp.
References m_SeqID, and CRef< C, Locker >::Reset().
Referenced by Init().
|
inline |
Set/get text color.
Definition at line 386 of file phylo_tree_node.hpp.
References m_FgColor.
Referenced by IPhyloTreeRender::x_RenderNodeVbo().
void CPhyloNodeData::SetVisible | ( | bool | b | ) |
Flag to renderer to determine whether to draw label.
Definition at line 1178 of file phylo_tree_node.cpp.
Referenced by IPhyloTreeRender::x_RenderNodeVbo().
void CPhyloNodeData::Sync | ( | CBioTreeFeatureDictionary & | dict | ) |
Definition at line 572 of file phylo_tree_node.cpp.
References NStr::DoubleToString(), eHideChildren, GetClusterID(), GetDisplayChildren(), GetDistance(), GetLabel(), GetSelClusters(), HasSelClusters(), i, NStr::IntToString(), PHYLO_FEAT_CLUSTERID, PHYLO_FEAT_DIST, PHYLO_FEAT_LABEL, PHYLO_NODE_COLLAPSED, PHYLO_SELECT_CLUSTERS, RemoveFeature(), SetFeature(), and tmp.
Referenced by CPhyloTreeDataSource::ReRoot(), CPhyloTreeDataSource::ReRootEdge(), CPhyloTreeDataSource::ReRootMidpoint(), CPhyloTreeNode::SetLabel(), and CPhyloTree::x_ConvertUpstream().
|
inline |
Definition at line 206 of file phylo_tree_node.hpp.
References m_XY, and CVect2< T >::X().
Referenced by GetBoundingRect(), GetLabelRect(), GetMinX(), GetRotatedTextBox(), GetRotatedTextPos(), GetTextOut(), CCalcRadialTree::operator()(), CDrawRadialTreeVbo::operator()(), CCalcSlantedTree::operator()(), CDrawSlantedTreeVbo::operator()(), PointInTextBox(), Render(), and RenderRotated().
|
inline |
Definition at line 210 of file phylo_tree_node.hpp.
References m_XY, and CVect2< T >::X().
Definition at line 645 of file phylo_tree_node.cpp.
References NStr::ToLower().
Referenced by SetMarkerColors().
|
inlineprotected |
Definition at line 395 of file phylo_tree_node.hpp.
References m_ExtendedParms, and NULL.
Referenced by DeleteSubtreeBoundary(), GetBoundedDisplay(), GetMarkerColors(), GetMarkerColorsAsString(), GetMarkerSize(), GetSelClusters(), GetSubtreeBoundary(), HasNodeMarker(), HasSelClusters(), SetMarkerColors(), SetMarkerSize(), and SetSelClusters().
|
inline |
Definition at line 205 of file phylo_tree_node.hpp.
References m_XY.
Referenced by CPhyloTreeWidget::RedrawDataSource(), and CPhyloTreeWidget::SendEditEvent().
|
inline |
Definition at line 209 of file phylo_tree_node.hpp.
References m_XY.
|
inline |
Definition at line 207 of file phylo_tree_node.hpp.
References m_XY, and CVect2< T >::Y().
Referenced by GetBoundingRect(), GetLabelRect(), GetRotatedTextBox(), GetRotatedTextPos(), GetTextOut(), CCalcRadialTree::operator()(), CDrawRadialTreeVbo::operator()(), CCalcSlantedTree::operator()(), CDrawSlantedTreeVbo::operator()(), PointInTextBox(), Render(), and RenderRotated().
|
inline |
Definition at line 211 of file phylo_tree_node.hpp.
References m_XY, and CVect2< T >::Y().
|
protected |
Text is alpha-blended so we add a flag to prevent drawing multiple times.
Definition at line 486 of file phylo_tree_node.hpp.
Referenced by GetAlreadyDrawn(), Render(), RenderRotated(), and SetAlreadyDrawn().
|
protected |
Definition at line 423 of file phylo_tree_node.hpp.
Referenced by GetAngle(), GetLabelRect(), GetNodePosEx(), GetRotatedTextBox(), GetRotatedTextPos(), operator=(), and SetAngle().
|
protected |
expand-collapse state (expanded==true)
Definition at line 482 of file phylo_tree_node.hpp.
Referenced by GetDisplayChildren(), operator=(), and SetDisplayChildren().
|
protected |
Definition at line 472 of file phylo_tree_node.hpp.
Referenced by GetClusterColorIdx(), operator=(), and SetClusterColorIdx().
|
protected |
Definition at line 409 of file phylo_tree_node.hpp.
Referenced by GetClusterID(), GetNumClusters(), GetPrimaryCluster(), operator=(), and SetClusterID().
|
protected |
Definition at line 442 of file phylo_tree_node.hpp.
Referenced by GetColoration(), operator=(), and SetColoration().
|
protected |
Definition at line 413 of file phylo_tree_node.hpp.
Referenced by GetDistance(), operator=(), Set(), and SetDistance().
|
protected |
Definition at line 415 of file phylo_tree_node.hpp.
Referenced by GetDistanceFromRoot(), operator=(), and SetDistanceFromRoot().
|
protected |
Definition at line 426 of file phylo_tree_node.hpp.
Referenced by GetDrawAngle(), operator=(), PointInTextBox(), and SetDrawAngle().
|
protected |
Controls use of gradient coloring for edges - if false, edges will be a single color, if true the edge will transition from child to parent color.
Definition at line 480 of file phylo_tree_node.hpp.
Referenced by GetEdgeColorGradient(), InitFeatures(), operator=(), and SetEdgeColorGradient().
|
protected |
Definition at line 430 of file phylo_tree_node.hpp.
Referenced by GetEdgeScore(), and SetEdgeScore().
|
protected |
Definition at line 445 of file phylo_tree_node.hpp.
Referenced by DeleteSubtreeBoundary(), GetBoundedDisplay(), GetMarkerColors(), GetMarkerColorsAsString(), GetMarkerSize(), GetNumClusters(), GetPrimaryCluster(), GetSelClusters(), GetSubtreeBoundary(), HasNodeMarker(), HasSelClusters(), InitFeatures(), operator=(), SetMarkerColors(), SetMarkerSize(), SetSelClusters(), x_HasExtendedParms(), and ~CPhyloNodeData().
|
protected |
Definition at line 398 of file phylo_tree_node.hpp.
Referenced by GetBioTreeFeatureList(), Init(), InitFeatures(), operator=(), RemoveFeature(), SetBioTreeFeatureList(), and SetFeature().
|
protected |
Current text color.
Definition at line 450 of file phylo_tree_node.hpp.
Referenced by GetTextDisplayColor(), operator=(), Render(), RenderRotated(), and SetTextDisplayColor().
|
protected |
Definition at line 411 of file phylo_tree_node.hpp.
Referenced by GetId(), operator=(), Set(), and SetId().
|
protected |
Definition at line 421 of file phylo_tree_node.hpp.
Referenced by IDX(), and operator=().
|
protected |
Full label.
Definition at line 453 of file phylo_tree_node.hpp.
Referenced by GetLabel(), operator=(), Set(), and SetLabel().
|
protected |
Definition at line 476 of file phylo_tree_node.hpp.
Referenced by GetLabelBgColorIdx(), operator=(), Render(), RenderRotated(), and SetLabelBgColorIdx().
|
protected |
Label color.
Definition at line 475 of file phylo_tree_node.hpp.
Referenced by GetLabelFgColorIdx(), operator=(), and SetLabelColorIdx().
|
protected |
Definition at line 433 of file phylo_tree_node.hpp.
Referenced by GetLabelRect(), GetNodeOverhang(), operator=(), and SetLabelRect().
|
protected |
Definition at line 417 of file phylo_tree_node.hpp.
Referenced by GetMaxChildDistance(), GetNodeWidthScaler(), operator=(), and SetMaxChildDistance().
|
protected |
Current node color.
Definition at line 448 of file phylo_tree_node.hpp.
Referenced by GetNodeDisplayColor(), operator=(), and SetNodeDisplayColor().
|
protected |
Node colors defined by scheme.
Definition at line 468 of file phylo_tree_node.hpp.
Referenced by GetNodeEdColorIdx(), operator=(), and SetNodeEdgeColorIdx().
|
protected |
Definition at line 469 of file phylo_tree_node.hpp.
Referenced by GetNodeFgColorIdx(), operator=(), and SetNodeFgColorIdx().
|
protected |
Definition at line 436 of file phylo_tree_node.hpp.
Referenced by GetBoundingRect(), GetNodeOffset(), GetNodeOverhang(), GetNodePosEx(), operator=(), and SetNodeOffset().
|
protected |
Pixel offset to apply the node.
Definition at line 438 of file phylo_tree_node.hpp.
Referenced by GetNodeOverhang(), GetNodePixelOffset(), operator=(), and SetNodePixelOffset().
|
protected |
Scaled node size.
Definition at line 461 of file phylo_tree_node.hpp.
Referenced by GetBoundingRect(), GetNodeDisplaySize(), and SetNodeDisplaySize().
|
mutableprotected |
This is computed by GetNodeWidthScaler(..) for collapsed nodes and we need to hang onto it for node label positioning.
Definition at line 465 of file phylo_tree_node.hpp.
Referenced by GetNodeOverhang(), GetNodeWidthScaler(), and operator=().
|
protected |
Definition at line 401 of file phylo_tree_node.hpp.
Referenced by GetNumLeaves(), operator=(), and SetNumLeaves().
|
protected |
Definition at line 403 of file phylo_tree_node.hpp.
Referenced by GetNumLeavesEx(), operator=(), and SetNumLeavesEx().
|
protected |
Definition at line 406 of file phylo_tree_node.hpp.
Referenced by GetPamlCounter(), operator=(), and SetPamlCounter().
|
protected |
Definition at line 441 of file phylo_tree_node.hpp.
Referenced by GetSelectedState(), operator=(), and SetSelectedState().
|
protected |
Definition at line 397 of file phylo_tree_node.hpp.
Referenced by GetSeqID(), operator=(), and SetSeqID().
|
protected |
Definition at line 458 of file phylo_tree_node.hpp.
Referenced by GetNodeSize(), operator=(), and SetNodeSize().
|
protected |
Text to render.
Definition at line 455 of file phylo_tree_node.hpp.
Referenced by GetDisplayLabel(), GetTextOut(), Render(), RenderRotated(), and SetDisplayLabel().
|
protected |
True if node is visible.
Definition at line 484 of file phylo_tree_node.hpp.
Referenced by GetVisible(), Render(), RenderRotated(), and SetVisible().
|
protected |
Definition at line 420 of file phylo_tree_node.hpp.
Referenced by GetNodePosEx(), operator=(), X(), XY(), and Y().
|
static |
Definition at line 112 of file phylo_tree_node.hpp.