NCBI C++ ToolKit
|
Search Toolkit Book for IBISAnnotateDialog
#include "cdd_ibis_annot_dialog.hpp"
(Private to src/app/cn3d
.)
Classes | |
struct | AlignAnnotInfo |
Public Member Functions | |
IBISAnnotateDialog (wxWindow *parent, IBISAnnotateDialog **handle, StructureSet *set) | |
~IBISAnnotateDialog (void) | |
bool | HasInteractionData (void) const |
bool | HasInteractionData (IBISInteraction::eIbisInteractionType type) const |
Private Types | |
enum | { eDontRemakeControls = 0x00 , eRemakeListCtrl = 0x01 , eRemakeListBox = 0x02 } |
typedef std::list< ncbi::CRef< ncbi::objects::CSeq_interval > > | IntervalList |
typedef std::map< unsigned long, AlignAnnotInfo > | AnnotIbisOverlapMap |
Private Member Functions | |
void | GetAnnotIbisOverlaps (AnnotIbisOverlapMap &aioMap) const |
void | GetAnnotIbisOverlaps (const IBISInteraction &interaction, const ncbi::objects::CAlign_annot &annot, SeqPosSet &overlaps) const |
void | GetAnnotIbisNonOverlaps (const IBISInteraction &interaction, const ncbi::objects::CAlign_annot &annot, SeqPosSet &nonOverlaps, bool onAnnotation) const |
void | DeleteAnnotation (void) |
void | HighlightInteraction (void) |
void | HighlightAnnotation (int eventId) |
void | LaunchIbisWebPage (void) |
void | MakeAnnotationFromInteraction (void) |
void | OnButton (wxCommandEvent &event) |
void | OnChoice (wxCommandEvent &event) |
void | OnListCtrlSelection (wxListEvent &event) |
void | OnListBoxSelection (wxCommandEvent &event) |
void | OnCloseWindow (wxCloseEvent &event) |
void | PopulateInteractionData (void) |
unsigned int | GetIntervalsForSet (const SeqPosSet &positions, IntervalList &intervals) |
bool | HighlightInterval (const ncbi::objects::CSeq_interval &interval) |
void | SetupGUIControls (int selectInteraction, int selectAnnot, unsigned int updateFlags=eRemakeListCtrl|eRemakeListBox) |
Private Attributes | |
IBISAnnotateDialog ** | dialogHandle |
StructureSet * | structureSet |
ncbi::CRef< ncbi::objects::CAlign_annot_set > | annotSet |
std::vector< ncbi::CRef< IBISInteraction > > | vecIbisInteractions |
wxImageList * | m_images |
Definition at line 193 of file cdd_ibis_annot_dialog.hpp.
|
private |
Definition at line 218 of file cdd_ibis_annot_dialog.hpp.
|
private |
Definition at line 212 of file cdd_ibis_annot_dialog.hpp.
|
private |
Enumerator | |
---|---|
eDontRemakeControls | |
eRemakeListCtrl | |
eRemakeListBox |
Definition at line 257 of file cdd_ibis_annot_dialog.hpp.
IBISAnnotateDialog::IBISAnnotateDialog | ( | wxWindow * | parent, |
IBISAnnotateDialog ** | handle, | ||
StructureSet * | set | ||
) |
Definition at line 594 of file cdd_ibis_annot_dialog.cpp.
References buf, DECLARE_AND_FIND_WINDOW_RETURN_ON_ERR, IBISInteraction::eIbisProteinChemical, IBISInteraction::eIbisProteinCombo_DNA_RNA, IBISInteraction::eIbisProteinDNA, IBISInteraction::eIbisProteinIon, IBISInteraction::eIbisProteinPeptide, IBISInteraction::eIbisProteinProtein, IBISInteraction::eIbisProteinRNA, IBISInteraction::GetQueryMolecule(), ibisIntStaticBoxSizer, ID_C_TYPE, ID_LC_INT, SetupIbisAnnotationDialog(), ToString(), and wxT.
IBISAnnotateDialog::~IBISAnnotateDialog | ( | void | ) |
Definition at line 730 of file cdd_ibis_annot_dialog.cpp.
References dialogHandle, m_images, NULL, IBISInteraction::SetQuerySequence(), and TRACEMSG.
|
private |
Definition at line 1616 of file cdd_ibis_annot_dialog.cpp.
References a, annotSet, DECLARE_AND_FIND_WINDOW_RETURN_ON_ERR, eRemakeListBox, ERRORMSG, StructureSet::eUserAnnotationData, GetFirstSelectedListCtrlItemId(), ID_LB_ANNOT, ID_LC_INT, int, StructureSet::SetDataChanged(), SetupGUIControls(), and structureSet.
Referenced by OnButton().
|
private |
Definition at line 1212 of file cdd_ibis_annot_dialog.cpp.
References IBISInteraction::GetPositions(), GetPositionsForAlignAnnot(), and GetSetIntersection().
Referenced by HighlightAnnotation().
|
private |
Definition at line 1169 of file cdd_ibis_annot_dialog.cpp.
References a, annotSet, GetPositionsForAlignAnnot(), GetSetIntersection(), i, IBISAnnotateDialog::AlignAnnotInfo::nRes, IBISAnnotateDialog::AlignAnnotInfo::overlaps, IBISAnnotateDialog::AlignAnnotInfo::ptr, and vecIbisInteractions.
Referenced by HighlightAnnotation(), and SetupGUIControls().
|
private |
|
private |
Definition at line 948 of file cdd_ibis_annot_dialog.cpp.
References StructureSet::alignmentManager, Sequence::FillOutSeqId(), first(), AlignmentManager::GetCurrentMultipleAlignment(), BlockMultipleAlignment::GetMaster(), last(), CSeq_interval_Base::SetFrom(), CSeq_interval_Base::SetId(), CSeq_interval_Base::SetTo(), and structureSet.
Referenced by HighlightAnnotation().
bool IBISAnnotateDialog::HasInteractionData | ( | IBISInteraction::eIbisInteractionType | type | ) | const |
Definition at line 936 of file cdd_ibis_annot_dialog.cpp.
References i, result, and vecIbisInteractions.
bool IBISAnnotateDialog::HasInteractionData | ( | void | ) | const |
Definition at line 931 of file cdd_ibis_annot_dialog.cpp.
References vecIbisInteractions.
|
private |
Definition at line 1670 of file cdd_ibis_annot_dialog.cpp.
References DECLARE_AND_FIND_WINDOW_RETURN_ON_ERR, ERRORMSG, GetAnnotIbisNonOverlaps(), GetAnnotIbisOverlaps(), GetFirstSelectedListCtrlItemId(), CSeq_loc_Base::GetInt(), GetIntervalsForSet(), CAlign_annot_Base::GetLocation(), GlobalMessenger(), HighlightInterval(), ID_B_HIGHLIGHT_ANNOT, ID_B_HIGHLIGHT_NONOLAP_ANNOT, ID_B_HIGHLIGHT_NONOLAP_INTN, ID_B_HIGHLIGHT_OLAP, ID_LB_ANNOT, ID_LC_INT, CSeq_loc_Base::IsInt(), CSeq_loc_Base::IsPacked_int(), Messenger::RemoveAllHighlights(), CAlign_annot_Base::SetLocation(), and vecIbisInteractions.
Referenced by OnButton(), and OnListBoxSelection().
|
private |
Definition at line 1513 of file cdd_ibis_annot_dialog.cpp.
References DECLARE_AND_FIND_WINDOW_RETURN_ON_ERR, ERRORMSG, GetFirstSelectedListCtrlItemId(), GlobalMessenger(), HighlightInterval(), ID_LC_INT, location, Messenger::RemoveAllHighlights(), and vecIbisInteractions.
Referenced by OnButton(), OnChoice(), and OnListCtrlSelection().
Definition at line 1652 of file cdd_ibis_annot_dialog.cpp.
References StructureSet::alignmentManager, AlignmentManager::GetCurrentMultipleAlignment(), BlockMultipleAlignment::GetMaster(), BlockMultipleAlignment::HighlightAlignedColumnsOfMasterRange(), Sequence::identifier, MoleculeIdentifier::MatchesSeqId(), structureSet, and WARNINGMSG.
Referenced by HighlightAnnotation(), and HighlightInteraction().
|
private |
Definition at line 1460 of file cdd_ibis_annot_dialog.cpp.
References DECLARE_AND_FIND_WINDOW_RETURN_ON_ERR, IBISInteraction::eIbisNoTypeAssigned, IBISInteraction::eIbisOther, ERRORMSG, GetFirstSelectedListCtrlItemId(), IBISInteraction::GetQueryMolecule(), ID_LC_INT, LaunchWebPage(), IBISInteraction::NOT_ASSIGNED, CRef< C, Locker >::NotEmpty(), MoleculeIdentifier::pdbChain, IBISInteraction::QueryMoleculeHasChain(), and vecIbisInteractions.
Referenced by OnButton().
|
private |
Definition at line 1566 of file cdd_ibis_annot_dialog.cpp.
References annotSet, DECLARE_AND_FIND_WINDOW_RETURN_ON_ERR, eRemakeListBox, StructureSet::eUserAnnotationData, GetFirstSelectedListCtrlItemId(), ID_LB_ANNOT, ID_LC_INT, StructureSet::SetDataChanged(), SetupGUIControls(), structureSet, vecIbisInteractions, and WX_TO_STD.
Referenced by OnButton().
|
private |
Definition at line 981 of file cdd_ibis_annot_dialog.cpp.
References DeleteAnnotation(), HighlightAnnotation(), HighlightInteraction(), ID_B_ADD_INT, ID_B_DELETE_ANNOT, ID_B_HIGHLIGHT_ANNOT, ID_B_HIGHLIGHT_INT, ID_B_HIGHLIGHT_NONOLAP_ANNOT, ID_B_HIGHLIGHT_NONOLAP_INTN, ID_B_HIGHLIGHT_OLAP, ID_B_LAUNCH_INT, LaunchIbisWebPage(), and MakeAnnotationFromInteraction().
|
private |
Definition at line 1012 of file cdd_ibis_annot_dialog.cpp.
References DECLARE_AND_FIND_WINDOW_RETURN_ON_ERR, GetFirstSelectedListCtrlItemId(), HighlightInteraction(), ID_LB_ANNOT, ID_LC_INT, and SetupGUIControls().
|
private |
Definition at line 742 of file cdd_ibis_annot_dialog.cpp.
|
private |
Definition at line 1035 of file cdd_ibis_annot_dialog.cpp.
References DECLARE_AND_FIND_WINDOW_RETURN_ON_ERR, eDontRemakeControls, GetFirstSelectedListCtrlItemId(), HighlightAnnotation(), ID_B_HIGHLIGHT_ANNOT, ID_LB_ANNOT, ID_LC_INT, and SetupGUIControls().
|
private |
Definition at line 1023 of file cdd_ibis_annot_dialog.cpp.
References DECLARE_AND_FIND_WINDOW_RETURN_ON_ERR, eRemakeListBox, HighlightInteraction(), ID_LB_ANNOT, ID_LC_INT, and SetupGUIControls().
|
private |
Definition at line 871 of file cdd_ibis_annot_dialog.cpp.
References StructureSet::alignmentManager, ERRORMSG, AlignmentManager::GetCurrentMultipleAlignment(), GetInteractionDataFromIbis(), BlockMultipleAlignment::GetMaster(), MoleculeIdentifier::HasStructure(), Sequence::identifier, BlockMultipleAlignment::IsAligned(), kEmptyStr, Sequence::Length(), MoleculeIdentifier::mmdbID, MoleculeIdentifier::moleculeID, MoleculeIdentifier::pdbChain, MoleculeIdentifier::pdbID, query, IBISInteraction::QueryMoleculeHasChain(), IBISInteraction::SetQuerySequence(), structureSet, U, and vecIbisInteractions.
|
private |
Definition at line 1235 of file cdd_ibis_annot_dialog.cpp.
References DECLARE_AND_FIND_WINDOW_RETURN_ON_ERR, DoesInteractionMatchChoice(), set< Key, Compare >::end(), eRemakeListBox, eRemakeListCtrl, set< Key, Compare >::find(), GetAnnotIbisOverlaps(), CAlign_annot_Base::GetDescription(), i, ID_B_ADD_INT, ID_B_DELETE_ANNOT, ID_B_HIGHLIGHT_ANNOT, ID_B_HIGHLIGHT_INT, ID_B_HIGHLIGHT_NONOLAP_ANNOT, ID_B_HIGHLIGHT_NONOLAP_INTN, ID_B_HIGHLIGHT_OLAP, ID_B_LAUNCH_INT, ID_C_TYPE, ID_LB_ANNOT, ID_LC_INT, set< Key, Compare >::insert(), InsertItemInListView(), InsertItemInReportView(), int, CAlign_annot_Base::IsSetDescription(), CAlign_annot_Base::IsSetType(), NULL, REG_ADVANCED_SECTION, REG_CDD_ANNOT_READONLY, RegistryGetBoolean(), ncbi::grid::netcache::search::fields::size, and vecIbisInteractions.
Referenced by DeleteAnnotation(), MakeAnnotationFromInteraction(), OnChoice(), OnListBoxSelection(), and OnListCtrlSelection().
|
private |
Definition at line 207 of file cdd_ibis_annot_dialog.hpp.
Referenced by DeleteAnnotation(), GetAnnotIbisOverlaps(), and MakeAnnotationFromInteraction().
|
private |
Definition at line 205 of file cdd_ibis_annot_dialog.hpp.
Referenced by ~IBISAnnotateDialog().
|
private |
Definition at line 210 of file cdd_ibis_annot_dialog.hpp.
Referenced by ~IBISAnnotateDialog().
|
private |
Definition at line 206 of file cdd_ibis_annot_dialog.hpp.
Referenced by DeleteAnnotation(), GetIntervalsForSet(), HighlightInterval(), MakeAnnotationFromInteraction(), and PopulateInteractionData().
|
private |
Definition at line 208 of file cdd_ibis_annot_dialog.hpp.
Referenced by GetAnnotIbisOverlaps(), HasInteractionData(), HighlightAnnotation(), HighlightInteraction(), LaunchIbisWebPage(), MakeAnnotationFromInteraction(), PopulateInteractionData(), and SetupGUIControls().