ARB
Classes | Macros | Functions
ED4_text_terminals.cxx File Reference
#include <ed4_extern.hxx>
#include "ed4_class.hxx"
#include "ed4_awars.hxx"
#include "ed4_edit_string.hxx"
#include "ed4_block.hxx"
#include "ed4_nds.hxx"
#include "ed4_visualizeSAI.hxx"
#include "ed4_ProteinViewer.hxx"
#include "ed4_protein_2nd_structure.hxx"
#include "ed4_seq_colors.hxx"
#include <aw_preset.hxx>
#include <aw_awar.hxx>
#include <AW_helix.hxx>
#include <aw_msg.hxx>
#include <aw_root.hxx>
#include <st_window.hxx>
#include <arbdbt.h>
#include <iostream>
Include dependency graph for ED4_text_terminals.cxx:

Go to the source code of this file.

Classes

struct  ShowHelix_cd
 

Macros

#define MIN_MARK_BOX_SIZE   8
 

Functions

void ensure_buffer (char *&buffer, size_t &buffer_size, size_t needed)
 
static bool ED4_show_helix_on_device (AW_device *device, int gc, const char *helixBuffer, size_t helixStart, size_t helixLen, const AW::Position &pos, AW_CL cduser)
 
static bool ED4_show_protein_match_on_device (AW_device *device, int gc, const char *pfoldBuffer, size_t pfoldStart, size_t pfoldLen, const AW::Position &pos, AW_CL cl_protstruct)
 

Macro Definition Documentation

#define MIN_MARK_BOX_SIZE   8

Referenced by ED4_text_terminal::draw().

Function Documentation

void ensure_buffer ( char *&  buffer,
size_t buffer_size,
size_t  needed 
)
inline

Definition at line 35 of file ED4_text_terminals.cxx.

References buffer.

static bool ED4_show_helix_on_device ( AW_device device,
int  gc,
const char helixBuffer,
size_t  helixStart,
size_t  helixLen,
const AW::Position pos,
AW_CL  cduser 
)
static
static bool ED4_show_protein_match_on_device ( AW_device device,
int  gc,
const char pfoldBuffer,
size_t  pfoldStart,
size_t  pfoldLen,
const AW::Position pos,
AW_CL  cl_protstruct 
)
static

Calls ED4_pfold_calculate_secstruct_match() for the visible area in the editor to compute the protein secondary structure match and outputs the result to the device.

Parameters
[in]pfoldBufferThe protein structure (primary or secondary) that should be compared to cl_protstruct
[in]cl_protstructThe reference protein secondary structure SAI

Definition at line 141 of file ED4_text_terminals.cxx.

References aw_message(), ED4_root::aw_root, AW_root::awar(), buffer, ED4_pfold_calculate_secstruct_match(), ED4_ROOT, error(), GB_export_error(), GB_give_buffer(), NULp, PFOLD_AWAR_MATCH_METHOD, AW_awar::read_int(), ED4_root_group_manager::remap(), ED4_root::root_group_man, ED4_remap::screen_to_sequence(), and AW_device::text().