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/template__methods_8cpp_source.html below:

NCBI C++ ToolKit: src/gui/widgets/aln_score/template_methods.cpp Source File

37 #include "wx/valgen.h" 39 #include <wx/scrolwin.h> 40 #include <wx/statbox.h> 41 #include <wx/checkbox.h> 42 #include <wx/textctrl.h> 86  bool

hasFGColors = ( hasTR || hasTRF );

94  if

(entry.size() != 1) {

95  ERR_POST

(

"CColorTableMethod::Load() - base must be a single character: \"" 98  char

cbase = entry[0];

112  if

(entry.size() != 1) {

113  ERR_POST

(

"CColorTableMethod::Load() - base must be a single character: \"" 116  char

cbase = entry[0];

130  if

(entry.size() != 1) {

131  ERR_POST

(

"CColorTableMethod::Load() - base must be a single character: \"" 134  char

cbase = entry[0];

214  ITERATE

(

string

, base_it, bases) {

215  char

cbase = *base_it;

237  for

(

size_t i

= 0;

i

<

buf

.size();

i

++) {

253  size_t i

= (size_t) score;

273

DECLARE_EVENT_TABLE()

288  const

wxPoint& pos = wxDefaultPosition,

289  const

wxSize&

size

= wxDefaultSize);

298  void OnChar

( wxKeyEvent& event );

302  void OnDelete

( wxHyperlinkEvent& event );

312

BEGIN_EVENT_TABLE(

CColorPanel

, wxScrolledWindow )

319

m_Data(

data

), m_NewID(kIdBase)

321

Create(parent,

id

, pos,

size

, wxScrolledWindowStyle|wxBORDER_SUNKEN|wxTAB_TRAVERSAL);

328  int key

=

event

.GetKeyCode();

329  if

(wxIsspace(

key

) || wxIsdigit(

key

))

337

wxTextCtrl* textCtrlBase = (wxTextCtrl*)event.GetEventObject();

338

wxString textBase = textCtrlBase->GetValue().Upper();

341

wxTextCtrl* textCtrl = (wxTextCtrl*)FindWindow(

i

);

342  if

(textCtrl == 0 || textCtrl == textCtrlBase)

345  bool

changed =

false

;

346

wxString

text

= textCtrl->GetValue().Upper();

349  size_t

pos =

text

.find_first_of(textBase);

350  if

(pos == wxString::npos)

357  if

(changed) textCtrl->ChangeValue(

text

);

360

textCtrlBase->ChangeValue(textBase);

361

textCtrlBase->SetInsertionPointEnd();

369

wxTextCtrl* textCtrl = (wxTextCtrl*)FindWindow(

i

);

370

wxColourPickerCtrl* pickerFG = (wxColourPickerCtrl*)FindWindow(

i

+ 1);

371

wxColourPickerCtrl* pickerBG = (wxColourPickerCtrl*)FindWindow(

i

+ 2);

372  if

(textCtrl != 0 && pickerFG != 0 && pickerBG != 0) {

384

wxFlexGridSizer* itemSizer =

new

wxFlexGridSizer(4, 0, 0);

385

this->SetSizer(itemSizer);

386

itemSizer->AddGrowableCol(0);

388

itemSizer->Add(

new

wxStaticText(

this

,

wxID_ANY

,

wxT

(

"Bases"

)),

389

1, wxALIGN_CENTER_HORIZONTAL|wxTOP|wxBOTTOM, 5);

390

itemSizer->Add(

new

wxStaticText(

this

,

wxID_ANY

,

wxT

(

"Text"

)),

391

0, wxALIGN_LEFT|wxTOP|wxBOTTOM, 5);

392

itemSizer->Add(

new

wxStaticText(

this

,

wxID_ANY

,

wxT

(

"Back"

)),

393

0, wxALIGN_LEFT|wxTOP|wxBOTTOM, 5);

394

itemSizer->Add(

new

wxStaticText(

this

,

wxID_ANY

,

wxT

(

""

)),

395

0, wxALIGN_LEFT|wxTOP|wxBOTTOM, 5);

397  for

(

size_t i

= 0;

i

<

m_Data

.size(); ++

i

)

414

wxColourPickerCtrl* pickerFG = (wxColourPickerCtrl*)FindWindow(

i

+ 1);

415

wxColourPickerCtrl* pickerBG = (wxColourPickerCtrl*)FindWindow(

i

+ 2);

416  if

(pickerFG != 0 && pickerBG != 0) {

417

wxColor

color

= pickerFG->GetColour();

418

pickerFG->SetColour(pickerBG->GetColour());

419

pickerBG->SetColour(

color

);

427

wxColourPickerCtrl* pickerFG = (wxColourPickerCtrl*)FindWindow(

i

+ 1);

428

wxColourPickerCtrl* pickerBG = (wxColourPickerCtrl*)FindWindow(

i

+ 2);

429  if

(pickerFG != 0 && pickerBG != 0) {

439

wxColourPickerCtrl* pickerFG = (wxColourPickerCtrl*)FindWindow(

i

+ 1);

440

wxColourPickerCtrl* pickerBG = (wxColourPickerCtrl*)FindWindow(

i

+ 2);

441  if

(pickerFG != 0 && pickerBG != 0) {

450

wxSizer* itemSizer = GetSizer();

452

wxTextCtrl* itemTextControl1 =

453  new

wxTextCtrl(

this

,

m_NewID

, wxEmptyString,

454

wxDefaultPosition, wxDLG_UNIT(

this

, wxSize(48, -1)), wxTE_LEFT);

460

itemSizer->Add(itemTextControl1, 1, wxGROW|wxALL, 2);

462

wxColourPickerCtrl* itemColorPicker1 =

new

wxColourPickerCtrl(

this

,

m_NewID

+ 1, fgColor);

463

itemSizer->Add(itemColorPicker1, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 2);

465

wxColourPickerCtrl* itemColorPicker2 =

new

wxColourPickerCtrl(

this

,

m_NewID

+ 2,

bgColor

);

466

itemSizer->Add(itemColorPicker2, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 2);

468

wxHyperlinkCtrl* itemHyperLink =

new CHyperlink

(

this

,

m_NewID

+ 3,

wxT

(

"Delete"

), wxEmptyString);

469

itemSizer->Add(itemHyperLink, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5);

475

wxWindow* window = FindWindow(

id

);

479

wxSizer* sizer = GetSizer();

481

wxSizerItemList::iterator node = sizer->GetChildren().begin();

482  for

( ; node != sizer->GetChildren().end(); ++node, ++index) {

483

wxSizerItem* item = *node;

484  if

(item->IsWindow()&& item->GetWindow() == window)

488  if

(node == sizer->GetChildren().end()) {

492

sizer->GetItem(index)->DeleteWindows();

493

sizer->GetItem(index-1)->DeleteWindows();

494

sizer->GetItem(index-2)->DeleteWindows();

495

sizer->GetItem(index-3)->DeleteWindows();

496

sizer->Remove(index);

497

sizer->Remove(index-1);

498

sizer->Remove(index-2);

499

sizer->Remove(index-3);

504  x_AddNewRow

(

""

, wxColor(255, 255, 255), wxColor(0, 0, 0));

507

GetClientSize(0, &h);

508

GetVirtualSize(0, &hv);

509  if

(hv > h) Scroll(-1, (hv - h + 5)/5);

520

DECLARE_EVENT_TABLE()

526  void OnApply

( wxCommandEvent& event );

530  void OnAddRow

( wxCommandEvent& event );

537 #define ID_ADD_ROW 10000 538 #define ID_SWAP_COLORS 10001 539 #define ID_CONTRAST_FG 10002 540 #define ID_CONTRAST_BG 10003 552

m_Method(method), m_ColorPanel()

562  ITERATE

(

string

, base_it, bases) {

565  bool

cat_found =

false

;

567  if

(cat_it->m_ForeColor == fc && cat_it->m_BackColor == bc) {

568

cat_it->m_Bases.append(1, *base_it);

578  m_Data

.push_back(new_cat);

585

wxBoxSizer* itemSizer1 =

new

wxBoxSizer(wxHORIZONTAL);

586

this->SetSizer(itemSizer1);

588

wxStaticBox* staticBox =

new

wxStaticBox(

this

,

wxID_ANY

,

wxT

(

"Bases Text and Background Colors"

));

589

wxStaticBoxSizer* staticSizer =

new

wxStaticBoxSizer(staticBox, wxVERTICAL);

591

wxSize clrPanelSize = wxDLG_UNIT(

this

, wxSize(150, 100));

593

wxDefaultPosition, clrPanelSize);

597

staticSizer->Add(

new

wxButton(

this

,

ID_ADD_ROW

,

wxT

(

"Add Row"

)),

598

0, wxALIGN_LEFT|wxALL, 2);

599

itemSizer1->Add(staticSizer, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

602

wxBoxSizer* itemSizer2 =

new

wxBoxSizer(wxVERTICAL);

604

0, wxALIGN_CENTER_HORIZONTAL|wxALL, 2);

606

0, wxALIGN_CENTER_HORIZONTAL|wxALL, 2);

608

0, wxALIGN_CENTER_HORIZONTAL|wxALL, 2);

609

itemSizer1->Add(itemSizer2, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

620  for

(

size_t i

= 0;

i

<

m_Data

.size(); ++

i

) {

665

m_MinColor(

"black"

),

666

m_MidColor(

"gray"

),

667

m_MaxColor(

"white"

),

668

m_UseConsensus(

false

),

705  string table

=

"Table"

;

722  table

=

"TableRows"

;

730  char

cbase = entry[0];

754  for

(

size_t i

= 0;

i

<

column

.size();

i

++) {

775

col_score /=

column

.size();

778  for

(

size_t i

= 0;

i

<

column

.size();

i

++) {

782

scores[

i

] = (c_score - col_score);

822  const float

fudge_factor = 0.75;

830

normal= ((score - mins) / (mids - mins))/2;

832

normal = ((score - mids) / (maxs - mids))/2 + 0.5f;

834  #if defined(_DEBUG) && 0 837  static TScore

maxnormal = 0.0, minnormal = 1.0;

838  if

(normal > maxnormal) {

840  LOG_POST

(

"CColumnScoringMethod::GetColorForScore - max normal: "

<< maxnormal);

842  if

(normal < minnormal) {

844  LOG_POST

(

"CColumnScoringMethod::GetColorForScore - min normal: "

<< minnormal);

848  int

index = (

int

) (normal *

size

);

849

index =

max

(0, index);

882

DECLARE_EVENT_TABLE()

888  void OnApply

( wxCommandEvent& event );

901

m_Method(method), m_GradPanel(), m_WindowSize(0)

915

wxBoxSizer* itemBoxSizer1 =

new

wxBoxSizer(wxVERTICAL);

916

this->SetSizer(itemBoxSizer1);

934

itemBoxSizer1->Add(

m_GradPanel

, 1, wxGROW|wxALL, 5);

936

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxHORIZONTAL);

937

itemBoxSizer1->Add(itemBoxSizer2, 0, wxALIGN_RIGHT|wxALL, 5);

939

itemBoxSizer2->Add(

new

wxStaticText(

this

, wxID_STATIC,

wxT

(

"Averaging Window Size:"

)),

940

0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

942

wxTextCtrl* itemTextControl1 =

943  new

wxTextCtrl(

this

,

wxID_ANY

, wxEmptyString,

944

wxDefaultPosition, wxDLG_UNIT(

this

, wxSize(26, -1)), wxTE_RIGHT);

945

itemTextControl1->SetMaxLength(4);

947

itemBoxSizer2->Add(itemTextControl1, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

949

wxCheckBox* itemCheckBox1 =

new

wxCheckBox(

this

,

wxID_ANY

,

wxT

(

"Use Consensus"

));

951

itemBoxSizer1->Add(itemCheckBox1, 0, wxALIGN_LEFT|wxALL, 5);

981

m_CalculateRange(

eNone

),

984

m_MinColor(

"black"

),

985

m_MidColor(

"gray"

),

986

m_MaxColor(

"white"

),

987

m_UndefColor(0.8f, 0.8f, 1.0f),

988

m_UseConsensus(

false

),

1009  if

(i < 0 || i > 25)

1051  string

section =

"Table"

;

1054  if

(!reg.

HasEntry

(section,

"ConsensusMinimumValue"

) || (!reg.

HasEntry

(section,

"ConsensusMaximumValue"

)))

1059  if

(!reg.

HasEntry

(section,

"NonConsensusMinimumValue"

) || (!reg.

HasEntry

(section,

"NonConsensusMaximumValue"

)))

1070  const string

kBuiltinKey(

"Builtin"

);

1072  if

(reg.

HasEntry

(section, kBuiltinKey)) {

1075  const string

& builtin_name = reg.

Get

(section, kBuiltinKey);

1091  if

(! builtin_matrix) {

1094  int

base_cnt = (

int

) strlen(builtin_matrix->

symbols

);

1095  for

(

int i

= 0;

i

< base_cnt; ++

i

) {

1097  for

(

int

j = 0; j < base_cnt; ++j) {

1115

list <string> row_names;

1116

section =

"TableRows"

;

1123  string

first_base =

columns

.front().substr(0,1);

1124

list<string> scores;

1126

triangular = scores.size() == 1;

1129  ITERATE

(list<string>, it, row_names) {

1134

list<string> scores;

1136

list<string>::iterator col_it =

columns

.begin();

1137  ITERATE

(list<string>, scores_it, scores) {

1169  for

(

size_t i

= 0;

i

<

column

.size();

i

++ ) {

1175

scores[

i

] = score;

1180

col_score = score_sum/num;

1189  for

(

size_t i

= 0;

i

<

column

.size();

i

++ ) {

1192  if

(col_scores[x] > -1) {

1193

score = scores[col_scores[x]];

1199  for

(

size_t

j = 0; j <

column

.size(); j++ ) {

1206

score = score_sum/(

column

.size() + 1);

1207

col_scores[x] = (

int

)

i

;

1209

scores[

i

] = score;

1214  for

(

size_t i

= 0;

i

<

column

.size();

i

++) {

1215

avg_score += scores[

i

];

1217

avg_score /=

column

.size();

1218  for

(

size_t i

= 0;

i

<

column

.size();

i

++) {

1219

scores[

i

] -= avg_score;

1261  int

index = (

int

) (normal *

size

);

1262

index =

max

(0, index);

1263

index =

min

(index,

size

- 1);

1324

DECLARE_EVENT_TABLE()

1330  void OnApply

( wxCommandEvent& event );

1343

m_Method(method), m_GradPanel(), m_WindowSize(0)

1346

Create(parent,

id

);

1357

wxBoxSizer* itemBoxSizer1 =

new

wxBoxSizer(wxVERTICAL);

1358

this->SetSizer(itemBoxSizer1);

1373

itemBoxSizer1->Add(

m_GradPanel

, 1, wxGROW|wxALL, 5);

1376

wxBoxSizer* itemBoxSizer3 =

new

wxBoxSizer(wxHORIZONTAL);

1377

itemBoxSizer3->Add(

new

wxStaticText(

this

, wxID_STATIC,

wxT

(

"Neutral (no master specified)"

)),

1378

0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

1380

wxColourPickerCtrl* itemColorPicker =

new

wxColourPickerCtrl(

this

,

wxID_ANY

);

1382

itemBoxSizer3->Add(itemColorPicker, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

1383

itemBoxSizer1->Add(itemBoxSizer3, 0, wxALIGN_RIGHT|wxALL, 0);

1386

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxHORIZONTAL);

1387

itemBoxSizer1->Add(itemBoxSizer2, 0, wxALIGN_RIGHT|wxALL, 0);

1389

itemBoxSizer2->Add(

new

wxStaticText(

this

, wxID_STATIC,

wxT

(

"Averaging Window Size:"

)),

1390

0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

1392

wxTextCtrl* itemTextControl1 =

1393  new

wxTextCtrl(

this

,

wxID_ANY

, wxEmptyString,

1394

wxDefaultPosition, wxDLG_UNIT(

this

, wxSize(26, -1)), wxTE_RIGHT);

1395

itemTextControl1->SetMaxLength(4);

1397

itemBoxSizer2->Add(itemTextControl1, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

1399

wxCheckBox* itemCheckBox1 =

new

wxCheckBox(

this

,

wxID_ANY

,

wxT

(

"Use Consensus"

), wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT);

1401

itemBoxSizer1->Add(itemCheckBox1, 0, wxALIGN_RIGHT | wxALL, 5);

static const char * bgColor

CColorPanel(vector< SData > &data, wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize)

void x_AddNewRow(const string &text, wxColor fgColor, wxColor bgColor)

void OnChar(wxKeyEvent &event)

void OnDelete(wxHyperlinkEvent &event)

void x_DeleteRow(wxWindowID id)

void OnTextCtrlUpdated(wxCommandEvent &event)

const string & GetSetBases() const

Which bases have colors specified?

virtual const CRgbaColor & GetColorForScore(TScore score, EColorType type) const

returns a color corresponding to a given score value.

virtual bool HasPropertiesPanel() const

returns true if the method supports properties dialog

virtual ~CColorTableMethod()

virtual int GetSupportedColorTypes() const

returns a combination of EColorType flags

virtual wxWindow * CreatePropertiesPanel(wxWindow *parent)

This a factory method that shall produce a CPropertiesPanel representing properties of the method; th...

string m_SetBases

> Foreground color when nothing specified for a base.

virtual const CMenuItem * GetMenu()

Returns a pointer to the submenu.

virtual IScoringMethod * Clone() const

CRgbaColor GetColor(char cbase, EColorType type) const

virtual void CalculateScores(IAlnExplorer::TNumrow row, const IScoringAlignment &aln_vec, TScoreColl &scores)

void AddSetBase(char cbase)

CRgbaColor m_DefaultForeColor

> Background color when nothing specified for a base.

virtual const CRgbaColor & GetColorForNoScore(EColorType type) const

Call for display colors when CanCalculateScores returns false.

CRgbaColor m_DefaultBackColor

> foreground or text colors

vector< CRgbaColor > m_Colors

virtual bool Load(CNcbiRegistry &reg)

vector< CRgbaColor > m_ForeColors

> background colors

bool Save(CNcbiRegistry &reg)

Opposite of Load().

virtual void SetColorForNoScore(IScoringMethod::EColorType type, const CRgbaColor &color)

void SetColor(char cbase, const CRgbaColor &color, EColorType type=fForeground)

CColorTableScoringPanel - Properties Panel for CColorTableMethod.

void OnSwapColors(wxCommandEvent &event)

void OnContrastBG(wxCommandEvent &event)

void OnApply(wxCommandEvent &event)

CColorTableMethod & m_Method

CColorTableScoringPanel(CColorTableMethod &method, wxWindow *parent, wxWindowID id=wxID_ANY)

CColorPanel * m_ColorPanel

void OnContrastFG(wxCommandEvent &event)

vector< CColorPanel::SData > m_Data

void OnAddRow(wxCommandEvent &event)

void SetColorForNoScore(EColorType type, const CRgbaColor &color)

vector< TScore > m_vScore

virtual const CRgbaColor & GetColorForScore(TScore score, EColorType type) const

returns a color corresponding to a given score value.

void x_CalculateNonConsensusScores(const string &column, TScore &col_score, TScoreVector &scores)

virtual bool Load(CNcbiRegistry &reg)

virtual ~CColumnScoringMethod()

virtual int GetSupportedColorTypes() const

returns a combination of EColorType flags

size_t m_WindowSize

relative, not absolute scores.

size_t GetWindowSize() const

void x_CalculateConsensusScores(char cons, const string &column, TScore &col_score, TScoreVector &scores)

virtual IScoringMethod * Clone() const

CRgbaGradColorTable m_ColorTable

TScore m_MinScore

weight matrix

bool CanCalculateScores(const IScoringAlignment &aln)

Do we have what it takes to calculate scores? e.g. a master row selected?

virtual wxWindow * CreatePropertiesPanel(wxWindow *parent)

This a factory method that shall produce a CPropertiesPanel representing properties of the method; th...

TScore m_MaxScore

possible range of scores.

virtual const CMenuItem * GetMenu()

Returns a pointer to the submenu.

virtual void CalculateScores(char cons, const string &column, TScore &col_score, TScoreVector &scores)

CColumnScoringMethod()

CColumnScoringMethod.

const CRgbaColor & GetColorForNoScore(EColorType type) const

Call for display colors when CanCalculateScores returns false.

virtual void CreateColorTable(int size)

friend class CColumnScoringPanel

virtual bool HasPropertiesPanel() const

returns true if the method supports properties dialog

CColumnScoringPanel(CColumnScoringMethod &method, wxWindow *parent, wxWindowID id=wxID_ANY)

void OnApply(wxCommandEvent &event)

CGradientColorPanel * m_GradPanel

CColumnScoringMethod & m_Method

void GetParams(stParams &params) const

CHyperlink is wrapper class for wxHyperlinkCtrl On OSX platform it posts URL click instead of sending...

virtual wxWindow * CreatePropertiesPanel(wxWindow *parent)

This a factory method that shall produce a CPropertiesPanel representing properties of the method; th...

virtual const CRgbaColor & GetColorForScore(TScore score, EColorType type) const

returns a color corresponding to a given score value.

virtual void CalculateScores(char cons, const string &column, TScore &col_score, TScoreVector &scores)

virtual ~CMatrixScoringMethod()

void x_CalculateNonConsensusRange()

TScore m_NonConsensusMaxScore

const CRgbaColor & GetColorForNoScore(EColorType type) const

Call for display colors when CanCalculateScores returns false.

virtual bool HasPropertiesPanel() const

returns true if the method supports properties dialog

TScore m_NonConsensusMinScore

static int x_BaseToIndex(char c)

virtual int GetSupportedColorTypes() const

returns a combination of EColorType flags

virtual IScoringMethod * Clone() const

virtual bool Load(CNcbiRegistry &reg)

virtual const CMenuItem * GetMenu()

Returns a pointer to the submenu.

unsigned char m_CalculateRange

void x_CalculateConsensusRange()

void SetColorForNoScore(EColorType type, const CRgbaColor &color)

bool CanCalculateScores(const IScoringAlignment &aln)

Do we have what it takes to calculate scores? e.g. a master row selected?

CNcbiMatrix< TScore > m_vScore

TScore m_ConsensusMinScore

TScore m_ConsensusMaxScore

size_t GetWindowSize() const

virtual void CreateColorTable(int size)

friend class CMatrixScoringPanel

CRgbaGradColorTable m_ColorTable

CGradientColorPanel * m_GradPanel

CMatrixScoringMethod & m_Method

CMatrixScoringPanel(CMatrixScoringMethod &method, wxWindow *parent, wxWindowID id=wxID_ANY)

void OnApply(wxCommandEvent &event)

void Resize(size_t i, size_t j, T val=T())

resize this matrix, filling the empty cells with a known value

size_t GetRows() const

get the number of rows in this matrix

size_t GetCols() const

get the number of columns in this matrix

class CRgbaColor provides a simple abstraction for managing colors.

virtual bool SaveInfo(CNcbiRegistry &reg)

saves only descriptive information

EColorGradType m_ColorGradType

CRgbaColor x_GetColor(CNcbiRegistry &reg, const string &key, const string def_value)

virtual bool LoadInfo(CNcbiRegistry &reg)

loads only descriptive information

virtual TSeqPos GetAlnStart() const =0

virtual TSeqPos GetBaseWidth(IAlnExplorer::TNumrow) const =0

virtual TSeqPos GetAlnStop() const =0

virtual string & GetAlnSeqString(IAlnExplorer::TNumrow row, string &buffer, const IAlnExplorer::TSignedRange &aln_range) const =0

IScoringMethod represents an abstract algorithm for calculating alignment scores and assigning colors...

vector< TScore > TScoreVector

static const int sm_DefGradientSize

default number of colors in gradient

CRgbaColor & GetColor(CSeqFeatData::ESubtype subtype)

static const char * str(char *buf, int n)

static const char * column

static const column_t columns[]

unsigned int TSeqPos

Type for sequence locations and lengths.

#define ITERATE(Type, Var, Cont)

ITERATE macro to sequence through container elements.

#define NON_CONST_ITERATE(Type, Var, Cont)

Non constant version of ITERATE macro.

#define ERR_POST(message)

Error posting with file, line number information but without error codes.

#define LOG_POST(message)

This macro is deprecated and it's strongly recomended to move in all projects (except tests) to macro...

void SetSize(size_t size)

void FillGradient(const CRgbaColor &start_c, const CRgbaColor &end_c)

initialize the whole table with gradient colors in [start_c, end_c] range

void SetFrom(TSeqPos start)

string ToString(bool printAlpha=true, bool uchars=true) const

Return a string representation of the current color.

static CRgbaColor GetColor(const string &color_type)

return a color based on a string.

void push_back(const attr_type &attr)

virtual bool GetBool(const string &section, const string &name, bool default_value, TFlags flags=0, EErrAction err_action=eThrow) const

Get boolean value of specified parameter name.

virtual const string & Get(const string &section, const string &name, TFlags flags=0) const

Get the parameter value.

virtual double GetDouble(const string &section, const string &name, double default_value, TFlags flags=0, EErrAction err_action=eThrow) const

Get double value of specified parameter name.

virtual bool HasEntry(const string &section, const string &name=kEmptyStr, TFlags flags=0) const

virtual void EnumerateEntries(const string &section, list< string > *entries, TFlags flags=fAllLayers) const

Enumerate parameter names for a specified section.

virtual string GetString(const string &section, const string &name, const string &default_value, TFlags flags=0) const

Get the parameter string value.

bool Set(const string &section, const string &name, const string &value, TFlags flags=0, const string &comment=kEmptyStr)

Set the configuration parameter value.

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

static string DoubleToString(double value, int precision=-1, TNumToStringFlags flags=0)

Convert double to string.

static int CompareNocase(const CTempString s1, SIZE_TYPE pos, SIZE_TYPE n, const char *s2)

Case-insensitive compare of a substring with another string.

static list< string > & Split(const CTempString str, const CTempString delim, list< string > &arr, TSplitFlags flags=0, vector< SIZE_TYPE > *token_pos=NULL)

Split a string using specified delimiters.

static double StringToDouble(const CTempStringEx str, TStringToNumFlags flags=0)

Convert string to double.

static string TruncateSpaces(const string &str, ETrunc where=eTrunc_Both)

Truncate whitespace in a string.

@ fSplit_Tokenize

All delimiters are merged and trimmed, to get non-empty tokens only.

TFrom GetFrom(void) const

Get the From member data.

unsigned int

A callback function used to compare two keys in a database.

<!DOCTYPE HTML >< html > n< header > n< title > PubSeq Gateway Help Page</title > n< style > n table

static void text(MDB_val *v)

const struct ncbi::grid::netcache::search::fields::SIZE size

const struct ncbi::grid::netcache::search::fields::KEY key

Process information in the NCBI Registry, including working with configuration files.

const SNCBIPackedScoreMatrix NCBISM_Pam30

const SNCBIPackedScoreMatrix NCBISM_Blosum62

const SNCBIPackedScoreMatrix NCBISM_Pam250

const SNCBIPackedScoreMatrix NCBISM_Blosum80

const SNCBIPackedScoreMatrix NCBISM_Pam70

const SNCBIPackedScoreMatrix NCBISM_Blosum45

The standard matrices.

#define row(bind, expected)

const TNCBIScore * scores

strlen(symbols) x strlen(symbols)

const char * symbols

order of residues

static const string kTablerowB

static const string kTablerowF

static const string kTablerow

const unsigned int kMatrixSize

CMatrixScoringMethod.

static const string kDefaultColorStr

CColorTableMethod.

static wxAcceleratorEntry entries[3]

wxColour ConvertColor(const CRgbaColor &color)

wxString ToWxString(const string &s)

string ToStdString(const wxString &s)


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