A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/phylo__tree__node_8hpp_source.html below:

NCBI C++ ToolKit: include/gui/widgets/phylo_tree/phylo_tree_node.hpp Source File

1 #ifndef GUI_WIDGETS_PHY_TREE___PHYLO_TREE_NODE__HPP 2 #define GUI_WIDGETS_PHY_TREE___PHYLO_TREE_NODE__HPP 84  typedef

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  int

GetPrimaryCluster()

const

;

173  size_t

GetNumClusters()

const

;

182  void

SetId(TID x_id);

206  float

&

X

() {

return

m_XY.X(); }

207  float

&

Y

() {

return

m_XY.Y(); }

210  float X

()

const

{

return

m_XY.X(); }

211  float Y

()

const

{

return

m_XY.Y(); }

225

TBoundingState GetBoundedDisplay()

const

;

248  bool

HasSelClusters()

const

;

249

TSelClusterIDs& GetSelClusters();

250  void

SetSelClusters(

const

TSelClusterIDs& sc);

252  void

SetMarkerColors(

const string

&

str

);

253  string

GetMarkerColorsAsString();

254  bool

HasNodeMarker()

const

;

255

vector<CRgbaColor>& GetMarkerColors();

256  float

GetMarkerSize()

const

;

257  void

SetMarkerSize(

float f

);

261  void

DeleteSubtreeBoundary();

277  const string

& name,

const string

&

value

);

285  float

GetScaledAngle(

const CVect3<float>

& scale,

float a

,

bool

for_label =

true

)

const

;

292  float

size_scaler = 1.0f)

const

;

295  void

Render(

const CGlPane

& pane,

299  bool

truncate_labels,

304  void

RenderRotated(

const CGlPane

& pane,

309  bool

truncate_labels);

315  bool

truncate_labels,

322  bool

rotated=

false

);

327  bool

rotated=

false

);

337  bool

rotated=

false

);

341  float

& angle,

float

orig_angle = 0.0f)

const

;

345  float

& angle)

const

;

366  void

SetVisible(

bool b

);

394  string

x_GetParameter(

const string

& features,

const string

& parm);

496  CPhyloTreeNode

(

int

x_id,

double

x_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