ARB
Macros | Enumerations | Functions | Variables
ED4_visualizeSAI.cxx File Reference
#include <ed4_extern.hxx>
#include "ed4_class.hxx"
#include <awt_canvas.hxx>
#include <awt_sel_boxes.hxx>
#include <awt_prompt.hxx>
#include <aw_awars.hxx>
#include <aw_preset.hxx>
#include <aw_msg.hxx>
#include <aw_root.hxx>
#include <aw_question.hxx>
#include <aw_select.hxx>
#include <arbdbt.h>
#include <ad_cb.h>
#include <arb_strbuf.h>
#include <iostream>
Include dependency graph for ED4_visualizeSAI.cxx:

Go to the source code of this file.

Macros

#define AWAR_SAI_CLR_TAB   "saicolors/"
 
#define AWAR_SAI_VISUALIZED   AWAR_SAI_CLR_TAB "current"
 
#define AWAR_SAI_CLR_DEF   AWAR_SAI_CLR_TAB "clr_trans_tab/"
 
#define AWAR_SAI_ENABLE   AWAR_SAI_CLR_TAB "enable"
 
#define AWAR_SAI_ALL_SPECIES   AWAR_SAI_CLR_TAB "all_species"
 
#define AWAR_SAI_AUTO_SELECT   AWAR_SAI_CLR_TAB "auto_select"
 
#define AWAR_SAI_CLR_TRANS_TABLE   AWAR_SAI_CLR_TAB "clr_trans_table"
 
#define AWAR_SAI_CLR_TRANS_TAB_NAMES   AWAR_SAI_CLR_TAB "clr_trans_tab_names"
 
#define AWAR_SAI_CLR_TRANS_TAB_REL   AWAR_SAI_CLR_TAB "sai_relation/"
 
#define AWAR_SAI_CLR   "tmp/sai/color_0"
 
#define AWAR_SAI_CLR_COUNT   10
 
#define BUFSIZE   100
 

Enumerations

enum  CreationMode { ED4_VIS_CREATE, ED4_VIS_COPY }
 

Functions

static const chargetAwarName (int awarNo)
 
static const chargetClrDefAwar (const char *awarName)
 
static void setVisualizeSAI_cb (AW_root *awr)
 
static void setVisualizeSAI_options_cb (AW_root *awr)
 
static bool colorTransTable_exists (AW_root *awr, const char *name)
 
static void colorDefChanged_callback (AW_root *awr, int awarNo)
 
static AW_awarsai_transtab_awar (AW_root *awr, const char *saiName)
 
static void colorDefTabNameChanged_callback (AW_root *awr)
 
static void refresh_display_cb (GB_CB_TYPE cb_type)
 
static void saiChanged_callback (AW_root *awr)
 
static void update_ClrTransTabNamesList_cb (AW_root *awr, AW_selection_list *colorTransList)
 
static void autoselect_cb (AW_root *aw_root)
 
static void set_autoselect_cb (AW_root *aw_root)
 
static void addOrUpdateTransTable (AW_root *aw_root, const char *newClrTransTabName, const char *defaultDefinition, bool autoselect)
 
static void addDefaultTransTable (AW_root *aw_root, const char *newClrTransTabName, const char *defaultDefinition)
 
void ED4_createVisualizeSAI_Awars (AW_root *aw_root, AW_default aw_def)
 
static GB_ERROR createCopy_table_handler (const char *dest_table_input, CreationMode mode)
 
static void createCopy_ClrTransTab_cb (AW_window *aww, CreationMode mode)
 
static void deleteColorTranslationTable (AW_window *aws)
 
static AW_selection_listbuildClrTransTabNamesList (AW_window *aws)
 
const charED4_getSaiColorString (AW_root *awr, int start, int end)
 
static void reverseColorTranslationTable (AW_window *aww)
 
static AW_windowcreate_editColorTranslationTable_window (AW_root *aw_root)
 
AW_windowED4_createVisualizeSAI_window (AW_root *aw_root)
 

Variables

static bool clrDefinitionsChanged = false
 
static bool inCallback = false
 
static bool in_colorDefChanged_callback = false
 

Macro Definition Documentation

#define AWAR_SAI_CLR_TAB   "saicolors/"

Definition at line 36 of file ED4_visualizeSAI.cxx.

#define AWAR_SAI_VISUALIZED   AWAR_SAI_CLR_TAB "current"
#define AWAR_SAI_CLR_DEF   AWAR_SAI_CLR_TAB "clr_trans_tab/"

Definition at line 38 of file ED4_visualizeSAI.cxx.

Referenced by getClrDefAwar().

#define AWAR_SAI_ENABLE   AWAR_SAI_CLR_TAB "enable"
#define AWAR_SAI_ALL_SPECIES   AWAR_SAI_CLR_TAB "all_species"
#define AWAR_SAI_AUTO_SELECT   AWAR_SAI_CLR_TAB "auto_select"
#define AWAR_SAI_CLR_TRANS_TABLE   AWAR_SAI_CLR_TAB "clr_trans_table"
#define AWAR_SAI_CLR_TRANS_TAB_NAMES   AWAR_SAI_CLR_TAB "clr_trans_tab_names"
#define AWAR_SAI_CLR_TRANS_TAB_REL   AWAR_SAI_CLR_TAB "sai_relation/"

Definition at line 44 of file ED4_visualizeSAI.cxx.

Referenced by sai_transtab_awar().

#define AWAR_SAI_CLR   "tmp/sai/color_0"

Definition at line 46 of file ED4_visualizeSAI.cxx.

Referenced by getAwarName().

#define AWAR_SAI_CLR_COUNT   10
#define BUFSIZE   100

Definition at line 57 of file ED4_visualizeSAI.cxx.

Referenced by getAwarName(), and getClrDefAwar().

Enumeration Type Documentation

Enumerator
ED4_VIS_CREATE 
ED4_VIS_COPY 

Definition at line 405 of file ED4_visualizeSAI.cxx.

Function Documentation

static const char* getAwarName ( int  awarNo)
static
static const char* getClrDefAwar ( const char awarName)
static
static void setVisualizeSAI_cb ( AW_root awr)
static
static void setVisualizeSAI_options_cb ( AW_root awr)
static
static bool colorTransTable_exists ( AW_root awr,
const char name 
)
static
static void colorDefChanged_callback ( AW_root awr,
int  awarNo 
)
static
static AW_awar* sai_transtab_awar ( AW_root awr,
const char saiName 
)
static
static void colorDefTabNameChanged_callback ( AW_root awr)
static
static void refresh_display_cb ( GB_CB_TYPE  cb_type)
static
static void saiChanged_callback ( AW_root awr)
static
static void update_ClrTransTabNamesList_cb ( AW_root awr,
AW_selection_list colorTransList 
)
static
static void autoselect_cb ( AW_root aw_root)
static
static void set_autoselect_cb ( AW_root aw_root)
static
static void addOrUpdateTransTable ( AW_root aw_root,
const char newClrTransTabName,
const char defaultDefinition,
bool  autoselect 
)
static
static void addDefaultTransTable ( AW_root aw_root,
const char newClrTransTabName,
const char defaultDefinition 
)
static

Definition at line 364 of file ED4_visualizeSAI.cxx.

References addOrUpdateTransTable().

Referenced by ED4_createVisualizeSAI_Awars().

void ED4_createVisualizeSAI_Awars ( AW_root aw_root,
AW_default  aw_def 
)
static GB_ERROR createCopy_table_handler ( const char dest_table_input,
CreationMode  mode 
)
static
static void createCopy_ClrTransTab_cb ( AW_window aww,
CreationMode  mode 
)
static
static void deleteColorTranslationTable ( AW_window aws)
static
static AW_selection_list* buildClrTransTabNamesList ( AW_window aws)
static
const char* ED4_getSaiColorString ( AW_root awr,
int  start,
int  end 
)
static void reverseColorTranslationTable ( AW_window aww)
static
static AW_window* create_editColorTranslationTable_window ( AW_root aw_root)
static
AW_window* ED4_createVisualizeSAI_window ( AW_root aw_root)

Variable Documentation

bool clrDefinitionsChanged = false
static
bool inCallback = false
static
bool in_colorDefChanged_callback = false
static