ARB
Macros | Functions | Variables
SaiProbeVisualization.cxx File Reference
#include "SaiProbeVisualization.hxx"
#include "probe_match_parser.hxx"
#include <nds.h>
#include <items.h>
#include <awt_sel_boxes.hxx>
#include <awt_config_manager.hxx>
#include <aw_awars.hxx>
#include <aw_root.hxx>
#include <aw_preset.hxx>
#include <aw_msg.hxx>
#include <arbdbt.h>
#include <iostream>
#include <arb_global_defs.h>
#include <item_sel_list.h>
#include <gb_aci.h>
Include dependency graph for SaiProbeVisualization.cxx:

Go to the source code of this file.

Macros

#define PROBE_PREFIX_LENGTH   9
 
#define PROBE_SUFFIX_LENGTH   9
 
#define BUFSIZE   100
 

Functions

static const chargetAwarName (int awarNo)
 
static void colorDefChanged_callback (AW_root *awr, int awarNo)
 
static void refreshCanvas (AW_root *, AWT_canvas *scr)
 
static void createSaiProbeAwars (AW_root *aw_root)
 
static void addCallBacks (AW_root *awr, AWT_canvas *scr)
 
static const chartranslateSAItoColors (AW_root *awr, GBDATA *gb_main, int start, int end, int speciesNo)
 
static int calculateEndPosition (GBDATA *gb_main, int startPos, int speciesNo, int mode, int probeLen, GB_ERROR *err)
 
static void paintBackgroundAndSAI (AW_device *device, size_t probeRegionLen, AW_pos pbRgX1, AW_pos pbY, AW_pos pbMaxWidth, AW_pos pbMaxHeight, const char *saiCols, int dispSai)
 
static void paintProbeInfo (AW_device *device, const char *probe_info, AW_pos x, AW_pos y, AW_pos xoff, AW_pos yoff, AW_pos maxDescent, int textCOLOR)
 
static charGetDisplayInfo (AW_root *root, GBDATA *gb_main, const char *speciesName, size_t displayWidth, const char *default_tree_name)
 
void transferProbeData (saiProbeData *spd)
 
static void setup_saiColorDefs_config (AWT_config_definition &cdef)
 
static AW_windowcreate_colorTranslationTable_window (AW_root *aw_root)
 
static AW_windowcreateDisplayField_window (AW_root *aw_root, GBDATA *gb_main)
 
static AW_windowcreateSaiColorWindow (AW_root *aw_root, AW_gc_manager *gc_manager)
 
AW_windowcreateSaiProbeMatchWindow (AW_root *awr, GBDATA *gb_main)
 

Variables

static saiProbeDatag_pbdata = NULp
 
static charsaiValues = NULp
 
static bool in_colorDefChanged_callback = false
 
static AWT_predefined_config predefined_saiColorDefinitions []
 

Macro Definition Documentation

#define PROBE_PREFIX_LENGTH   9

Definition at line 32 of file SaiProbeVisualization.cxx.

Referenced by SAI_graphic::paint().

#define PROBE_SUFFIX_LENGTH   9

Definition at line 33 of file SaiProbeVisualization.cxx.

Referenced by calculateEndPosition().

#define BUFSIZE   100

Definition at line 40 of file SaiProbeVisualization.cxx.

Referenced by getAwarName().

Function Documentation

static const char* getAwarName ( int  awarNo)
static
static void colorDefChanged_callback ( AW_root awr,
int  awarNo 
)
static
static void refreshCanvas ( AW_root ,
AWT_canvas scr 
)
static

Definition at line 141 of file SaiProbeVisualization.cxx.

References AWT_canvas::request_refresh().

Referenced by addCallBacks().

static void createSaiProbeAwars ( AW_root aw_root)
static
static void addCallBacks ( AW_root awr,
AWT_canvas scr 
)
static
static const char* translateSAItoColors ( AW_root awr,
GBDATA gb_main,
int  start,
int  end,
int  speciesNo 
)
static
static int calculateEndPosition ( GBDATA gb_main,
int  startPos,
int  speciesNo,
int  mode,
int  probeLen,
GB_ERROR err 
)
static
static void paintBackgroundAndSAI ( AW_device device,
size_t  probeRegionLen,
AW_pos  pbRgX1,
AW_pos  pbY,
AW_pos  pbMaxWidth,
AW_pos  pbMaxHeight,
const char saiCols,
int  dispSai 
)
static
static void paintProbeInfo ( AW_device device,
const char probe_info,
AW_pos  x,
AW_pos  y,
AW_pos  xoff,
AW_pos  yoff,
AW_pos  maxDescent,
int  textCOLOR 
)
static
static char* GetDisplayInfo ( AW_root root,
GBDATA gb_main,
const char speciesName,
size_t  displayWidth,
const char default_tree_name 
)
static
void transferProbeData ( saiProbeData spd)

Definition at line 605 of file SaiProbeVisualization.cxx.

Referenced by popupSaiProbeMatchWindow(), and probe_match_event().

static void setup_saiColorDefs_config ( AWT_config_definition cdef)
static
static AW_window* create_colorTranslationTable_window ( AW_root aw_root)
static
static AW_window* createDisplayField_window ( AW_root aw_root,
GBDATA gb_main 
)
static
static AW_window* createSaiColorWindow ( AW_root aw_root,
AW_gc_manager gc_manager 
)
static

Definition at line 715 of file SaiProbeVisualization.cxx.

References AW_create_gc_window_named().

Referenced by createSaiProbeMatchWindow().

AW_window* createSaiProbeMatchWindow ( AW_root awr,
GBDATA gb_main 
)

Variable Documentation

saiProbeData* g_pbdata = NULp
static

Definition at line 35 of file SaiProbeVisualization.cxx.

char* saiValues = NULp
static

Definition at line 36 of file SaiProbeVisualization.cxx.

bool in_colorDefChanged_callback = false
static

Definition at line 38 of file SaiProbeVisualization.cxx.

Referenced by colorDefChanged_callback().

AWT_predefined_config predefined_saiColorDefinitions[]
static
Initial value:
= {
{
"*binary",
"Use with SAIs containing binary columns\ne.g. \'markerline\'",
"0='-.0=';1='';2='';3='';4='';5='';6='';7='';8='';9='1x'"
},
{
"*column_weights_09",
"Use with SAIs containing column weights (0-9)\ne.g. MAX_FREQUENCY",
"0='0';1='1';2='2';3='3';4='4';5='5';6='6';7='7';8='8';9='9'"
},
{
"*column_weights_0Z_posvar",
"Use with SAIs containing column weights (0-9,A-Z)\ne.g. POS_VAR_BY_PARSIMONY",
"0='012';1='345';2='678';3='9AB';4='CDE';5='FGH';6='IJK';7='LMN';8='OPQ';9='RST'"
},
{
"*sequence_data",
"Use with SAIs containing nucleotide sequence data",
"0='-.';1='';2='';3='A';4='';5='C';6='';7='G';8='';9='TU'"
},
{
"*helix",
"Use with SAI:HELIX",
"0='';1='';2='';3='<[';4='';5='';6='>]';7='';8='';9=''"
},
{ NULp, NULp, NULp }
}
#define NULp
Definition: cxxforward.h:97

Definition at line 613 of file SaiProbeVisualization.cxx.