NCBI C++ ToolKit
Classes | Macros | Functions | Variables
cdd_annot_dialog.cpp File Reference
#include <ncbi_pch.hpp>
#include <corelib/ncbistd.hpp>
#include <util/xregexp/regexp.hpp>
#include <objects/cdd/Align_annot.hpp>
#include <objects/seqloc/Seq_loc.hpp>
#include <objects/seqloc/Seq_interval.hpp>
#include <objects/seqloc/Packed_seqint.hpp>
#include <objects/pub/Pub.hpp>
#include <objects/biblio/PubMedId.hpp>
#include <objects/mmdb1/Biostruc_annot_set.hpp>
#include <objects/mmdb1/Biostruc_descr.hpp>
#include <objects/mmdb1/Biostruc_id.hpp>
#include <objects/mmdb1/Mmdb_id.hpp>
#include <objects/mmdb3/Biostruc_feature_set.hpp>
#include <objects/mmdb3/Biostruc_feature_set_descr.hpp>
#include <objects/mmdb3/Biostruc_feature.hpp>
#include <objects/mmdb3/Chem_graph_pntrs.hpp>
#include <objects/mmdb3/Residue_pntrs.hpp>
#include <objects/mmdb3/Residue_interval_pntr.hpp>
#include <objects/mmdb1/Molecule_id.hpp>
#include <objects/mmdb1/Residue_id.hpp>
#include <objects/cn3d/Cn3d_backbone_type.hpp>
#include <objects/cn3d/Cn3d_backbone_style.hpp>
#include <objects/cn3d/Cn3d_general_style.hpp>
#include <objects/cn3d/Cn3d_style_settings.hpp>
#include <algo/structure/cd_utils/cuStdAnnotTypes.hpp>
#include "remove_header_conflicts.hpp"
#include "cdd_annot_dialog.hpp"
#include "structure_set.hpp"
#include "messenger.hpp"
#include "alignment_manager.hpp"
#include "block_multiple_alignment.hpp"
#include "sequence_set.hpp"
#include "cn3d_tools.hpp"
#include "chemical_graph.hpp"
#include "molecule_identifier.hpp"
#include "opengl_renderer.hpp"
#include "show_hide_manager.hpp"
#include "pattern_dialog.hpp"
#include <wx/image.h>
#include <wx/statline.h>
#include <wx/spinbutt.h>
#include <wx/spinctrl.h>
#include <wx/splitter.h>
#include <wx/listctrl.h>
#include <wx/treectrl.h>
#include <wx/notebook.h>
+ Include dependency graph for cdd_annot_dialog.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

struct  ChainInfo
 

Macros

#define ID_L_ANNOT   10000
 
#define ID_B_NEW_ANNOT   10001
 
#define ID_B_HIGHLIGHT   10002
 
#define ID_B_DEFINE_MOTIF   10003
 
#define ID_B_ANNOT_UP   10004
 
#define ID_B_EDIT_ANNOT   10005
 
#define ID_B_DEL_ANNOT   10006
 
#define ID_B_DEL_MOTIF   10007
 
#define ID_B_HIGHLIGHT_MOTIF   10008
 
#define ID_B_ANNOT_DOWN   10009
 
#define ID_L_EVID   10010
 
#define ID_B_NEW_EVID   10011
 
#define ID_B_SHOW   10012
 
#define ID_B_EVID_UP   10013
 
#define ID_B_EDIT_EVID   10014
 
#define ID_B_DEL_EVID   10015
 
#define ID_B_EVID_DOWN   10016
 
#define ID_R_COMMENT   10017
 
#define ID_ST_COMMENT   10018
 
#define ID_T_COMMENT   10019
 
#define ID_LINE   10020
 
#define ID_R_PMID   10021
 
#define ID_ST_PMID   10022
 
#define ID_T_PMID   10023
 
#define ID_R_STRUCTURE   10024
 
#define ID_ST_STRUCTURE   10025
 
#define ID_T_STRUCTURE   10026
 
#define ID_B_RERANGE   10027
 
#define ID_B_EDIT_OK   10028
 
#define ID_B_EDIT_CANCEL   10029
 
#define ID_ST_TYPE   10030
 
#define ID_C_TYPE   10031
 
#define ID_CB_PUTATIVE   10032
 
#define ID_ST_DESCR2   10033
 
#define ID_CMB_DESCR   10034
 
#define ID_B_DESCR_OK   10035
 
#define ID_B_DESCR_CANCEL   10036
 
#define IS_STRUCTURE_EVIDENCE_BSANNOT(evidence)
 
#define DECLARE_AND_FIND_WINDOW_RETURN_ON_ERR(var, id, type)
 
#define DECLARE_AND_FIND_WINDOW_RETURN_FALSE_ON_ERR(var, id, type)
 

Functions

wxSizer * SetupCDDAnnotDialog (wxWindow *parent, bool call_fit=TRUE, bool set_sizer=TRUE)
 
wxSizer * SetupEvidenceDialog (wxWindow *parent, bool call_fit=TRUE, bool set_sizer=TRUE)
 
wxSizer * SetupTypedDescriptionDialog (wxWindow *parent, bool call_fit=TRUE, bool set_sizer=TRUE)
 
 USING_SCOPE (objects)
 
static bool IsFirstResidueOfABlock (const BlockMultipleAlignment::ConstBlockList &blocks, unsigned int masterIndex)
 
bool DoesPatternMatchHighlightedResidues (const Sequence &sequence, const Sequence::MoleculeHighlightMap &restrictTo, CRegexp &regexp, set< unsigned int > *highlightedSeqIndicesPtr)
 
unsigned int DoHighlightMotif (StructureSet *structureSet, const string &regexPattern, Messenger::MoleculeHighlightMap &restrictTo)
 
static const StructureObjectHighlightResidues (const StructureSet *set, const CBiostruc_annot_set &annot)
 

Variables

 USING_NCBI_SCOPE
 
static const string STD_ANNOT_TYPES_FILE = "cdd_annot_types.ini"
 
static const string STRUCTURE_EVIDENCE_COMMENT = "Used as Structure Evidence for CDD Annotation"
 

Macro Definition Documentation

◆ DECLARE_AND_FIND_WINDOW_RETURN_FALSE_ON_ERR

#define DECLARE_AND_FIND_WINDOW_RETURN_FALSE_ON_ERR (   var,
  id,
  type 
)
Value:
type *var; \
var = wxDynamicCast(FindWindow(id), type); \
if (!var) { \
ERRORMSG("Can't find window with id " << id); \
return false; \
}
Definition: type.c:6

Definition at line 174 of file cdd_annot_dialog.cpp.

◆ DECLARE_AND_FIND_WINDOW_RETURN_ON_ERR

#define DECLARE_AND_FIND_WINDOW_RETURN_ON_ERR (   var,
  id,
  type 
)
Value:
type *var; \
var = wxDynamicCast(FindWindow(id), type); \
if (!var) { \
ERRORMSG("Can't find window with id " << id); \
return; \
}

Definition at line 166 of file cdd_annot_dialog.cpp.

◆ ID_B_ANNOT_DOWN

#define ID_B_ANNOT_DOWN   10009

Definition at line 103 of file cdd_annot_dialog.cpp.

◆ ID_B_ANNOT_UP

#define ID_B_ANNOT_UP   10004

Definition at line 98 of file cdd_annot_dialog.cpp.

◆ ID_B_DEFINE_MOTIF

#define ID_B_DEFINE_MOTIF   10003

Definition at line 97 of file cdd_annot_dialog.cpp.

◆ ID_B_DEL_ANNOT

#define ID_B_DEL_ANNOT   10006

Definition at line 100 of file cdd_annot_dialog.cpp.

◆ ID_B_DEL_EVID

#define ID_B_DEL_EVID   10015

Definition at line 109 of file cdd_annot_dialog.cpp.

◆ ID_B_DEL_MOTIF

#define ID_B_DEL_MOTIF   10007

Definition at line 101 of file cdd_annot_dialog.cpp.

◆ ID_B_DESCR_CANCEL

#define ID_B_DESCR_CANCEL   10036

Definition at line 134 of file cdd_annot_dialog.cpp.

◆ ID_B_DESCR_OK

#define ID_B_DESCR_OK   10035

Definition at line 133 of file cdd_annot_dialog.cpp.

◆ ID_B_EDIT_ANNOT

#define ID_B_EDIT_ANNOT   10005

Definition at line 99 of file cdd_annot_dialog.cpp.

◆ ID_B_EDIT_CANCEL

#define ID_B_EDIT_CANCEL   10029

Definition at line 125 of file cdd_annot_dialog.cpp.

◆ ID_B_EDIT_EVID

#define ID_B_EDIT_EVID   10014

Definition at line 108 of file cdd_annot_dialog.cpp.

◆ ID_B_EDIT_OK

#define ID_B_EDIT_OK   10028

Definition at line 124 of file cdd_annot_dialog.cpp.

◆ ID_B_EVID_DOWN

#define ID_B_EVID_DOWN   10016

Definition at line 110 of file cdd_annot_dialog.cpp.

◆ ID_B_EVID_UP

#define ID_B_EVID_UP   10013

Definition at line 107 of file cdd_annot_dialog.cpp.

◆ ID_B_HIGHLIGHT

#define ID_B_HIGHLIGHT   10002

Definition at line 96 of file cdd_annot_dialog.cpp.

◆ ID_B_HIGHLIGHT_MOTIF

#define ID_B_HIGHLIGHT_MOTIF   10008

Definition at line 102 of file cdd_annot_dialog.cpp.

◆ ID_B_NEW_ANNOT

#define ID_B_NEW_ANNOT   10001

Definition at line 95 of file cdd_annot_dialog.cpp.

◆ ID_B_NEW_EVID

#define ID_B_NEW_EVID   10011

Definition at line 105 of file cdd_annot_dialog.cpp.

◆ ID_B_RERANGE

#define ID_B_RERANGE   10027

Definition at line 123 of file cdd_annot_dialog.cpp.

◆ ID_B_SHOW

#define ID_B_SHOW   10012

Definition at line 106 of file cdd_annot_dialog.cpp.

◆ ID_C_TYPE

#define ID_C_TYPE   10031

Definition at line 129 of file cdd_annot_dialog.cpp.

◆ ID_CB_PUTATIVE

#define ID_CB_PUTATIVE   10032

Definition at line 130 of file cdd_annot_dialog.cpp.

◆ ID_CMB_DESCR

#define ID_CMB_DESCR   10034

Definition at line 132 of file cdd_annot_dialog.cpp.

◆ ID_L_ANNOT

#define ID_L_ANNOT   10000

Definition at line 94 of file cdd_annot_dialog.cpp.

◆ ID_L_EVID

#define ID_L_EVID   10010

Definition at line 104 of file cdd_annot_dialog.cpp.

◆ ID_LINE

#define ID_LINE   10020

Definition at line 116 of file cdd_annot_dialog.cpp.

◆ ID_R_COMMENT

#define ID_R_COMMENT   10017

Definition at line 113 of file cdd_annot_dialog.cpp.

◆ ID_R_PMID

#define ID_R_PMID   10021

Definition at line 117 of file cdd_annot_dialog.cpp.

◆ ID_R_STRUCTURE

#define ID_R_STRUCTURE   10024

Definition at line 120 of file cdd_annot_dialog.cpp.

◆ ID_ST_COMMENT

#define ID_ST_COMMENT   10018

Definition at line 114 of file cdd_annot_dialog.cpp.

◆ ID_ST_DESCR2

#define ID_ST_DESCR2   10033

Definition at line 131 of file cdd_annot_dialog.cpp.

◆ ID_ST_PMID

#define ID_ST_PMID   10022

Definition at line 118 of file cdd_annot_dialog.cpp.

◆ ID_ST_STRUCTURE

#define ID_ST_STRUCTURE   10025

Definition at line 121 of file cdd_annot_dialog.cpp.

◆ ID_ST_TYPE

#define ID_ST_TYPE   10030

Definition at line 128 of file cdd_annot_dialog.cpp.

◆ ID_T_COMMENT

#define ID_T_COMMENT   10019

Definition at line 115 of file cdd_annot_dialog.cpp.

◆ ID_T_PMID

#define ID_T_PMID   10023

Definition at line 119 of file cdd_annot_dialog.cpp.

◆ ID_T_STRUCTURE

#define ID_T_STRUCTURE   10026

Definition at line 122 of file cdd_annot_dialog.cpp.

◆ IS_STRUCTURE_EVIDENCE_BSANNOT

#define IS_STRUCTURE_EVIDENCE_BSANNOT (   evidence)
Value:
((evidence).IsBsannot() && \
(evidence).GetBsannot().IsSetDescr() && \
(evidence).GetBsannot().GetDescr().size() > 0 && \
(evidence).GetBsannot().GetDescr().front()->IsOther_comment() && \
(evidence).GetBsannot().GetDescr().front()->GetOther_comment() == STRUCTURE_EVIDENCE_COMMENT && \
(evidence).GetBsannot().GetFeatures().size() > 0 && \
(evidence).GetBsannot().GetFeatures().front()->IsSetDescr() && \
(evidence).GetBsannot().GetFeatures().front()->GetDescr().size() > 0 && \
(evidence).GetBsannot().GetFeatures().front()->GetDescr().front()->IsName())
static const string STRUCTURE_EVIDENCE_COMMENT

Definition at line 154 of file cdd_annot_dialog.cpp.

Function Documentation

◆ DoesPatternMatchHighlightedResidues()

bool DoesPatternMatchHighlightedResidues ( const Sequence sequence,
const Sequence::MoleculeHighlightMap restrictTo,
CRegexp regexp,
set< unsigned int > *  highlightedSeqIndicesPtr 
)

◆ DoHighlightMotif()

unsigned int DoHighlightMotif ( StructureSet structureSet,
const string regexPattern,
Messenger::MoleculeHighlightMap restrictTo 
)

◆ HighlightResidues()

static const StructureObject* HighlightResidues ( const StructureSet set,
const CBiostruc_annot_set annot 
)
static

◆ IsFirstResidueOfABlock()

static bool IsFirstResidueOfABlock ( const BlockMultipleAlignment::ConstBlockList blocks,
unsigned int  masterIndex 
)
static

Definition at line 232 of file cdd_annot_dialog.cpp.

References b, and blocks.

Referenced by CDDAnnotateDialog::GetCurrentHighlightedIntervals().

◆ SetupCDDAnnotDialog()

wxSizer * SetupCDDAnnotDialog ( wxWindow *  parent,
bool  call_fit = TRUE,
bool  set_sizer = TRUE 
)

◆ SetupEvidenceDialog()

wxSizer * SetupEvidenceDialog ( wxWindow *  parent,
bool  call_fit = TRUE,
bool  set_sizer = TRUE 
)

◆ SetupTypedDescriptionDialog()

wxSizer * SetupTypedDescriptionDialog ( wxWindow *  parent,
bool  call_fit = TRUE,
bool  set_sizer = TRUE 
)

◆ USING_SCOPE()

USING_SCOPE ( objects  )

Variable Documentation

◆ STD_ANNOT_TYPES_FILE

const string STD_ANNOT_TYPES_FILE = "cdd_annot_types.ini"
static

◆ STRUCTURE_EVIDENCE_COMMENT

const string STRUCTURE_EVIDENCE_COMMENT = "Used as Structure Evidence for CDD Annotation"
static

Definition at line 153 of file cdd_annot_dialog.cpp.

Referenced by CDDEvidenceDialog::GetData().

◆ USING_NCBI_SCOPE

USING_NCBI_SCOPE

Definition at line 139 of file cdd_annot_dialog.cpp.

Modified on Wed May 22 11:34:37 2024 by modify_doxy.py rev. 669887