objects::CNode::TId
TID;
126, m_NodeOffset(0.0f, 0.0f)
127, m_NodePixelOffset(0.0f, 0.0f)
130, m_ExtendedParms(
NULL)
131, m_NodeColor(1.0f, 0.0f, 1.0f, 1.0f)
132, m_FgColor(1.0f, 0.0f, 1.0f, 1.0f)
136, m_NodeEdColorIdx(-1)
137, m_NodeFgColorIdx(-1)
138, m_ClusterColorIdx(-1)
139, m_LabelFgColorIdx(-1)
140, m_LabelBgColorIdx(-1)
141, m_EdgeColorGradient(
false)
142, m_Children(
true) {}
154 void SetSeqID(objects::CSeq_id* sid) { m_SeqID.Reset(sid); }
170 intGetPrimaryCluster()
const;
173 size_tGetNumClusters()
const;
182 voidSetId(TID x_id);
206 float&
X() {
returnm_XY.X(); }
207 float&
Y() {
returnm_XY.Y(); }
210 float X()
const{
returnm_XY.X(); }
211 float Y()
const{
returnm_XY.Y(); }
225TBoundingState GetBoundedDisplay()
const;
248 boolHasSelClusters()
const;
249TSelClusterIDs& GetSelClusters();
250 voidSetSelClusters(
constTSelClusterIDs& sc);
252 voidSetMarkerColors(
const string&
str);
253 stringGetMarkerColorsAsString();
254 boolHasNodeMarker()
const;
255vector<CRgbaColor>& GetMarkerColors();
256 floatGetMarkerSize()
const;
257 voidSetMarkerSize(
float f);
261 voidDeleteSubtreeBoundary();
277 const string& name,
const string&
value);
285 floatGetScaledAngle(
const CVect3<float>& scale,
float a,
boolfor_label =
true)
const;
292 floatsize_scaler = 1.0f)
const;
295 voidRender(
const CGlPane& pane,
299 booltruncate_labels,
304 voidRenderRotated(
const CGlPane& pane,
309 booltruncate_labels);
315 booltruncate_labels,
322 boolrotated=
false);
327 boolrotated=
false);
337 boolrotated=
false);
341 float& angle,
floatorig_angle = 0.0f)
const;
345 float& angle)
const;
366 voidSetVisible(
bool b);
394 stringx_GetParameter(
const string& features,
const string& parm);
496 CPhyloTreeNode(
intx_id,
doublex_dist,
const string& x_label);
511 const string&
label);
514 int NumChildren()
const{
return static_cast<int>(m_ChildNodes.size()); }
517 bool IsLeafEx()
const{
return(m_ChildNodes.empty() || (!Expanded())); }
User-defined methods of the data storage class.
Things for representing and manipulating bio trees.
Features storage for the bio tree node.
void SetNumLeavesEx(int x_ln)
void SetDistanceFromRoot(TDistance x_dist)
void SetEdgeScore(float s)
float GetEdgeScore() const
const CRef< objects::CSeq_id > & GetSeqID() const
const TLabel & GetLabel() const
TDistance GetMaxChildDistance() const
void SetNodeDisplayColor(const CRgbaColor &c)
Set/get node color.
void SetClusterID(TClusterID x_id)
void SetClusterColorIdx(short idx)
TSelectedState m_Selected
CVect2< float > m_NodeOffset
void SetLabelBgColorIdx(short idx)
float m_NodeWidth
This is computed by GetNodeWidthScaler(..) for collapsed nodes and we need to hang onto it for node l...
CRef< objects::CSeq_id > m_SeqID
void SetSelectedState(TSelectedState x_state)
TDistance GetDistanceFromRoot() const
short GetNodeFgColorIdx() const
void SetNodeOffset(const CVect2< float > &o)
CGlRect< float > m_LabelRect
TLabel m_Label
Full label.
void SetAngle(float angle)
void SetPamlCounter(int x_ctr)
void SetTextDisplayColor(const CRgbaColor &c)
Set/get text color.
bool GetAlreadyDrawn() const
void SetNodeFgColorIdx(short idx)
bool m_AlreadyDrawn
Text is alpha-blended so we add a flag to prevent drawing multiple times.
bool x_HasExtendedParms() const
void SetNumLeaves(int x_ln)
void SetLabelRect(const CGlRect< float > &r)
void SetDistance(TDistance x_dist)
static const TColor TNoColor
SExtendedNodeParms * m_ExtendedParms
CRgbaColor m_FgColor
Current text color.
int GetNumLeavesEx() const
short m_NodeEdColorIdx
Node colors defined by scheme.
void SetSeqID(objects::CSeq_id *sid)
short GetClusterColorIdx() const
bool GetEdgeColorGradient() const
CVect2< float > GetNodePixelOffset() const
void SetLabelColorIdx(short idx)
const TIndex & IDX() const
const string & GetDisplayLabel() const
float GetNodeSize() const
float GetNodeDisplaySize() const
int GetPamlCounter() const
void SetDrawAngle(float angle)
CVect2< float > GetNodeOffset() const
CRgbaColor GetTextDisplayColor() const
short m_LabelFgColorIdx
Label color.
TSelectedState GetSelectedState() const
short GetLabelFgColorIdx() const
short GetNodeEdColorIdx() const
void SetEdgeColorGradient(bool g)
Enable or disable gradient coloring of edges between nodes.
TDistance m_MaxChildDistance
void SetNodeEdgeColorIdx(short idx)
CRgbaColor GetNodeDisplayColor() const
TClusterID GetClusterID(void) const
const CBioTreeFeatureList & GetBioTreeFeatureList() const
void SetNodeSize(float x_sz)
float GetAngle(void) const
void Set(TID x_id, TDistance x_dist, const TLabel &x_label)
CGlRect< float > GetLabelRect() const
CBioTreeFeatureList TNodeFeaturesType
void SetMaxChildDistance(TDistance x_dist)
void SetLabel(const TLabel &x_label)
TDisplayChildren GetDisplayChildren() const
void SetAlreadyDrawn(bool b)
Flag set after each drawing and cleared when rendering frame done.
TDistance m_DistanceFromRoot
bool m_Children
expand-collapse state (expanded==true)
void SetDisplayChildren(TDisplayChildren show)
vector< int > TSelClusterIDs
string m_Text
Text to render.
void SetNodePixelOffset(const CVect2< float > &o)
void SetNodeDisplaySize(float s)
set/get node size (this is the result of GetDefaultNodeSize())
CRgbaColor m_NodeColor
Current node color.
bool m_EdgeColorGradient
Controls use of gradient coloring for edges - if false, edges will be a single color,...
bool m_Visible
True if node is visible.
void SetColoration(CPhyloTreeScheme::TPhyloTreeColors ct)
CPhyloTreeScheme::TPhyloTreeColors GetColoration() const
CPhyloTreeScheme::TPhyloTreeColors m_ColorType
float m_NodeSize
Scaled node size.
TDistance GetDistance() const
float GetDrawAngle(void) const
CBioTreeFeatureList m_Features
short GetLabelBgColorIdx()
void SetDisplayLabel(const string &t)
set/get label text
CVect2< float > m_NodePixelOffset
Pixel offset to apply the node.
bool Expanded() const
Return true if node is currently not collapsed.
int NumChildren() const
Return the number of immediate children of this node.
TNodeList_I SubNodeEndEx()
bool IsUnused() const
Return true the index 'idx' in the array is not currently part of the tree.
TNodeList_I SubNodeBeginEx()
Return the child nodes only if visible.
bool IsLeafEx() const
Return true if node is a leaf or is collapsed.
class CRgbaColor provides a simple abstraction for managing colors.
CRgbaGradColorTable Provides a storage for colors (to eliminate color creation overhead) and Function...
class CTreeGraphicsModel Model for rendering tree graphics data.
Base class for nodes in the tree.
TNodeList::iterator TNodeList_I
Include a standard set of the NCBI C++ Toolkit most basic headers.
static const char * str(char *buf, int n)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_GUIWIDGETS_PHYLO_TREE_EXPORT
static const char label[]
const GenericPointer< typename T::ValueType > T2 value
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.
The NCBI C++/STL use hints.
double r(size_t dimension_, const Int4 *score_, const double *prob_, double theta_)
vector< CRgbaColor > m_MarkerColors
CSubtreeBoundary * m_Boundary
SExtendedNodeParms & operator=(const SExtendedNodeParms &rhs)
vector< int > m_SelClusters
int g(Seg_Gsm *spe, Seq_Mtf *psm, Thd_Gsm *tdg)
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