|
NCBI C++ ToolKit
|
Search Toolkit Book for Messenger
#include <messenger.hpp>
Collaboration diagram for Messenger:Definition at line 64 of file messenger.hpp.
| typedef std::map< const MoleculeIdentifier *, std::vector < bool > > Messenger::MoleculeHighlightMap |
Definition at line 99 of file messenger.hpp.
typedef std::map< const Molecule *, bool > Messenger::RedrawMoleculeList [private] |
Definition at line 148 of file messenger.hpp.
typedef std::map< ViewerBase *, bool > Messenger::RedrawSequenceViewerList [private] |
Definition at line 150 of file messenger.hpp.
typedef std::list< ViewerBase * > Messenger::SequenceViewerList [private] |
Definition at line 142 of file messenger.hpp.
| Messenger::Messenger | ( | void | ) | [inline] |
Definition at line 166 of file messenger.hpp.
| void Messenger::AddHighlights | ( | const Sequence * | sequence, |
| unsigned int | seqIndexFrom, | ||
| unsigned int | seqIndexTo | ||
| ) |
Definition at line 248 of file messenger.cpp.
References ERRORMSG, highlights, Sequence::identifier, Sequence::Length(), StructureBase::parentSet, PostRedrawAllSequenceViewers(), and RedrawMoleculesWithIdentifier().
Referenced by CommandProcessor::DoCommand_Highlight(), DoHighlightMotif(), GetAlignmentByBestNeighbor(), BlockMultipleAlignment::HighlightAlignedColumnsOfMasterRange(), HighlightAndShowSequence(), Sequence::HighlightPattern(), HighlightResidues(), SequenceViewerWindow::OnHighlight(), StructureWindow::OnSelect(), SequenceDisplay::ProximitySort(), DisplayRowFromSequence::SelectedRange(), and BlockMultipleAlignment::SelectedRange().
| void Messenger::AddHighlights | ( | const Molecule * | molecule, |
| int | residueIDFrom, | ||
| int | residueIDTo, | ||
| bool | scrollViewersTo = false |
||
| ) |
Definition at line 355 of file messenger.cpp.
References ERRORMSG, highlights, Molecule::identifier, if(), Molecule::NResidues(), and sequenceViewers.
| void Messenger::AddSequenceViewer | ( | ViewerBase * | sequenceViewer | ) | [inline] |
Definition at line 182 of file messenger.hpp.
Referenced by AlignmentManager::Init().
| void Messenger::AddStructureWindow | ( | StructureWindow * | window | ) | [inline] |
Definition at line 185 of file messenger.hpp.
Referenced by StructureWindow::StructureWindow().
| void Messenger::CacheHighlights | ( | void | ) |
Definition at line 412 of file messenger.cpp.
References highlightCache, and highlights.
Referenced by CommandProcessor::DoCommand_Highlight(), StructureWindow::LoadData(), and ViewerWindowBase::OnCacheHighlights().
| CBiostruc_annot_set * Messenger::CreateBiostrucAnnotSetForHighlightsOnSingleObject | ( | void | ) | const |
Definition at line 467 of file messenger.cpp.
References ERRORMSG, highlights, if(), IsAnythingHighlighted(), CRef< C, Locker >::Release(), CResidue_pntrs_Base::SetInterval(), CChem_graph_pntrs_Base::SetResidues(), and MoleculeIdentifier::VALUE_NOT_SET.
Referenced by CDDEvidenceDialog::GetData().
| void Messenger::FileMessengerSend | ( | const std::string & | toApp, |
| const std::string & | command, | ||
| const std::string & | data | ||
| ) |
Definition at line 599 of file messenger.cpp.
References StructureWindow::SendCommand(), and structureWindow.
| bool Messenger::GetHighlightedResiduesWithStructure | ( | MoleculeHighlightMap * | residues | ) | const |
Definition at line 453 of file messenger.cpp.
References highlights, and IsAnythingHighlighted().
Referenced by AnnotateDialog::AnnotateDialog().
| void Messenger::GetHighlights | ( | MoleculeHighlightMap * | copyHighlights | ) |
Definition at line 424 of file messenger.cpp.
References highlights.
Referenced by CDDAnnotateDialog::HighlightMotif(), CDDAnnotateDialog::NewOrEditMotif(), and ViewerWindowBase::OnFindPattern().
| bool Messenger::GetHighlightsForSelectionMessage | ( | std::string * | data | ) | const |
Definition at line 536 of file messenger.cpp.
References highlights, IsAnythingHighlighted(), SeqIdToIdentifier(), and WARNINGMSG.
| void Messenger::HighlightAndShowSequence | ( | const Sequence * | sequence | ) |
Definition at line 267 of file messenger.cpp.
References AddHighlights(), Sequence::identifier, Sequence::Length(), RemoveAllHighlights(), and sequenceViewers.
Referenced by TaxonomyWindow::OnActivate().
| bool Messenger::IsAnythingHighlighted | ( | void | ) | const [inline] |
Definition at line 168 of file messenger.hpp.
Referenced by CreateBiostrucAnnotSetForHighlightsOnSingleObject(), GetHighlightedResiduesWithStructure(), GetHighlightsForSelectionMessage(), SequenceViewerWindow::OnHighlight(), and SuspendHighlighting().
| bool Messenger::IsFileMessengerActive | ( | void | ) | const |
Definition at line 594 of file messenger.cpp.
References StructureWindow::IsFileMessengerActive(), and structureWindow.
Definition at line 216 of file messenger.cpp.
References Molecule::identifier.
Referenced by Residue::Draw(), StyleManager::GetAtomStyle(), StyleManager::GetBondStyle(), BlockMultipleAlignment::GetCharacterTraitsAt(), CDDAnnotateDialog::GetCurrentHighlightedIntervals(), IsHighlighted(), IsHighlightedAnywhere(), StructureSet::SelectByDistance(), StructureObject::SelectByDistance(), ShowHideManager::ShowDomainsWithHighlights(), and ShowHideManager::ShowSelectedResidues().
Definition at line 221 of file messenger.cpp.
References Sequence::identifier, and IsHighlighted().
| bool Messenger::IsHighlighted | ( | const MoleculeIdentifier * | identifier, |
| int | index | ||
| ) | const [private] |
Definition at line 200 of file messenger.cpp.
References ERRORMSG, highlightingSuspended, and highlights.
| bool Messenger::IsHighlightedAnywhere | ( | const MoleculeIdentifier * | identifier | ) | const |
Definition at line 226 of file messenger.cpp.
References IsHighlighted().
Referenced by CompareRowsFloatHighlights(), SequenceViewerWindow::OnRealign(), and CDDAnnotateDialog::ShowEvidence().
Definition at line 231 of file messenger.cpp.
References Molecule::identifier, and IsHighlighted().
| void Messenger::KeepHighlightsOnlyOnSequence | ( | const Sequence * | sequence | ) |
Definition at line 277 of file messenger.cpp.
References ERRORMSG, highlights, Sequence::identifier, PostRedrawAllSequenceViewers(), and PostRedrawAllStructures().
Referenced by SequenceDisplay::MouseDown().
| void Messenger::NewSequenceViewerFont | ( | void | ) |
Definition at line 190 of file messenger.cpp.
References sequenceViewers.
Referenced by StructureWindow::OnSetFont().
| void Messenger::PostRedrawAllSequenceViewers | ( | void | ) |
Definition at line 90 of file messenger.cpp.
References redrawAllSequenceViewers, and redrawSequenceViewers.
Referenced by AddHighlights(), StyleManager::DisplayUserAnnotation(), SequenceDisplay::DraggedCell(), AnnotateDialog::EditAnnotation(), KeepHighlightsOnlyOnSequence(), AnnotateDialog::MoveAnnotation(), StyleManager::MoveUserAnnotation(), ViewerWindowBase::NewDisplay(), StyleDialog::OnButton(), StyleDialog::OnChange(), StyleDialog::OnCloseWindow(), StructureWindow::OnSetStyle(), PostRedrawEntity(), RemoveAllHighlights(), RemoveHighlights(), StyleManager::RemoveUserAnnotation(), RestoreCachedHighlights(), StyleManager::SetGlobalStyle(), SetHighlights(), ShowHideManager::ShowHideCallbackFunction(), SuspendHighlighting(), ToggleHighlights(), and ViewerWindowBase::UpdateDisplay().
| void Messenger::PostRedrawAllStructures | ( | void | ) |
Definition at line 79 of file messenger.cpp.
References redrawAllStructures, and redrawMolecules.
Referenced by StyleManager::DisplayUserAnnotation(), AnnotateDialog::EditAnnotation(), ExportPNG(), KeepHighlightsOnlyOnSequence(), AlignmentManager::MergeUpdates(), AnnotateDialog::MoveAnnotation(), StyleManager::MoveUserAnnotation(), StyleDialog::OnButton(), StyleDialog::OnChange(), PreferencesDialog::OnCloseWindow(), StyleDialog::OnCloseWindow(), StructureWindow::OnSetFont(), StructureWindow::OnSetStyle(), StyleManager::RemoveUserAnnotation(), RestoreCachedHighlights(), StyleManager::SetGlobalStyle(), and SuspendHighlighting().
| void Messenger::PostRedrawMolecule | ( | const Molecule * | molecule | ) |
Definition at line 85 of file messenger.cpp.
References redrawAllStructures, and redrawMolecules.
Referenced by SequenceDisplay::MouseDown(), PostRedrawEntity(), SequenceDisplay::RedrawAlignedMolecules(), RedrawMoleculesWithIdentifier(), and ShowHideManager::ShowHideCallbackFunction().
| void Messenger::PostRedrawSequenceViewer | ( | ViewerBase * | viewer | ) |
Definition at line 95 of file messenger.cpp.
References redrawAllSequenceViewers, and redrawSequenceViewers.
Referenced by SequenceViewer::CreateSequenceWindow(), UpdateViewer::CreateUpdateWindow(), SequenceDisplay::MouseDown(), ViewerWindowBase::OnJustification(), SequenceViewerWindow::OnMarkBlock(), ViewerWindowBase::OnShowGeomVltns(), and SequenceDisplay::UpdateBlockBoundaryRow().
| void Messenger::ProcessRedraws | ( | void | ) |
Definition at line 123 of file messenger.cpp.
References OpenGLRenderer::Construct(), map_checker< std::map< Key, T, Compare > >::end(), map_checker< std::map< Key, T, Compare > >::find(), StructureWindow::glCanvas, StructureObject::graph, OpenGLRenderer::NewView(), redrawAllSequenceViewers, redrawAllStructures, ChemicalGraph::RedrawMolecule(), redrawMolecules, redrawSequenceViewers, Cn3DGLCanvas::renderer, sequenceViewers, and structureWindow.
Referenced by Cn3DApp::OnIdle(), and CDDAnnotateDialog::ShowEvidence().
| void Messenger::RedrawMoleculesWithIdentifier | ( | const MoleculeIdentifier * | identifier, |
| const StructureSet * | set | ||
| ) | [private] |
Definition at line 236 of file messenger.cpp.
References set< Key, Compare >::begin(), and PostRedrawMolecule().
Referenced by AddHighlights(), RemoveAllHighlights(), RemoveHighlights(), SetHighlights(), and ToggleHighlights().
Definition at line 393 of file messenger.cpp.
References StructureWindow::glCanvas, highlights, PostRedrawAllSequenceViewers(), RedrawMoleculesWithIdentifier(), Cn3DGLCanvas::structureSet, and structureWindow.
Referenced by CommandProcessor::DoCommand_Highlight(), GetAlignmentByBestNeighbor(), HighlightAndShowSequence(), CDDAnnotateDialog::HighlightAnnotation(), IBISAnnotateDialog::HighlightAnnotation(), IBISAnnotateDialog::HighlightInteraction(), CDDAnnotateDialog::HighlightMotif(), HighlightResidues(), StructureWindow::LoadData(), SequenceDisplay::MouseDown(), CDDAnnotateDialog::NewOrEditMotif(), ViewerWindowBase::OnFindPattern(), SequenceViewerWindow::OnHighlight(), StructureWindow::OnSelect(), SequenceDisplay::ProximitySort(), SequenceDisplay::SelectedRectangle(), SetHighlights(), and StructureSet::~StructureSet().
| void Messenger::RemoveHighlights | ( | const Sequence * | sequence, |
| unsigned int | seqIndexFrom, | ||
| unsigned int | seqIndexTo | ||
| ) |
Definition at line 300 of file messenger.cpp.
References ERRORMSG, highlights, Sequence::identifier, Sequence::Length(), StructureBase::parentSet, PostRedrawAllSequenceViewers(), and RedrawMoleculesWithIdentifier().
| void Messenger::RemoveSequenceViewer | ( | const ViewerBase * | sequenceViewer | ) |
Definition at line 174 of file messenger.cpp.
References sequenceViewers.
Referenced by AlignmentManager::~AlignmentManager().
| void Messenger::RemoveStructureWindow | ( | const StructureWindow * | structureWindow | ) |
Definition at line 167 of file messenger.cpp.
References ERRORMSG, and structureWindow.
Referenced by StructureWindow::OnExit().
| void Messenger::RestoreCachedHighlights | ( | void | ) |
Definition at line 417 of file messenger.cpp.
References highlightCache, highlights, PostRedrawAllSequenceViewers(), and PostRedrawAllStructures().
Referenced by ViewerWindowBase::OnCacheHighlights().
| void Messenger::SequenceWindowsSave | ( | bool | prompt | ) |
Definition at line 183 of file messenger.cpp.
References sequenceViewers.
Referenced by CommandProcessor::DoCommand_LoadFile(), StructureWindow::OnExit(), StructureWindow::OnOpen(), StructureWindow::OnSave(), and StructureSet::SaveASNData().
| void Messenger::SetAllWindowTitles | ( | void | ) | const |
Definition at line 586 of file messenger.cpp.
References sequenceViewers, StructureWindow::SetWindowTitle(), and structureWindow.
Referenced by StructureWindow::LoadData(), StructureWindow::OnCDD(), and StructureWindow::OnSave().
| void Messenger::SetHighlights | ( | const MoleculeHighlightMap & | newHighlights | ) |
Definition at line 429 of file messenger.cpp.
References StructureWindow::glCanvas, highlights, PostRedrawAllSequenceViewers(), RedrawMoleculesWithIdentifier(), RemoveAllHighlights(), Cn3DGLCanvas::structureSet, and structureWindow.
Referenced by AnnotateDialog::OnButton().
| void Messenger::SuspendHighlighting | ( | bool | suspend | ) |
Definition at line 442 of file messenger.cpp.
References highlightingSuspended, IsAnythingHighlighted(), PostRedrawAllSequenceViewers(), and PostRedrawAllStructures().
Referenced by AnnotateDialog::NewAnnotation().
| void Messenger::ToggleHighlight | ( | const Molecule * | molecule, |
| int | residueID, | ||
| bool | scrollViewersTo = false |
||
| ) |
Definition at line 380 of file messenger.cpp.
References Molecule::identifier, StructureBase::parentSet, sequenceViewers, and ToggleHighlights().
Referenced by StructureWindow::OnSelect(), StructureSet::SelectByDistance(), and StructureSet::SelectedAtom().
| void Messenger::ToggleHighlights | ( | const Sequence * | sequence, |
| unsigned int | seqIndexFrom, | ||
| unsigned int | seqIndexTo | ||
| ) |
Definition at line 350 of file messenger.cpp.
References Sequence::identifier, and StructureBase::parentSet.
Referenced by DisplayRowFromSequence::SelectedRange(), BlockMultipleAlignment::SelectedRange(), and ToggleHighlight().
| void Messenger::ToggleHighlights | ( | const MoleculeIdentifier * | identifier, |
| unsigned int | indexFrom, | ||
| unsigned int | indexTo, | ||
| const StructureSet * | set | ||
| ) | [private] |
Definition at line 323 of file messenger.cpp.
References ERRORMSG, highlights, MoleculeIdentifier::nResidues, PostRedrawAllSequenceViewers(), and RedrawMoleculesWithIdentifier().
| void Messenger::UnPostRedrawAllSequenceViewers | ( | void | ) |
Definition at line 100 of file messenger.cpp.
References redrawAllSequenceViewers, and redrawSequenceViewers.
| void Messenger::UnPostRedrawSequenceViewer | ( | ViewerBase * | viewer | ) |
Definition at line 106 of file messenger.cpp.
References f(), redrawAllSequenceViewers, redrawSequenceViewers, and sequenceViewers.
Referenced by SequenceViewer::CreateSequenceWindow(), UpdateViewer::CreateUpdateWindow(), UpdateViewerWindow::OnCloseWindow(), SequenceViewerWindow::OnCloseWindow(), and ShowHideManager::ShowHideCallbackFunction().
| void Messenger::UnPostStructureRedraws | ( | void | ) |
Definition at line 117 of file messenger.cpp.
References redrawAllStructures, and redrawMolecules.
Referenced by OpenGLRenderer::Construct().
Definition at line 157 of file messenger.hpp.
Referenced by CacheHighlights(), and RestoreCachedHighlights().
bool Messenger::highlightingSuspended [private] |
Definition at line 154 of file messenger.hpp.
Referenced by IsHighlighted(), and SuspendHighlighting().
MoleculeHighlightMap Messenger::highlights [private] |
Definition at line 157 of file messenger.hpp.
Referenced by AddHighlights(), CacheHighlights(), CreateBiostrucAnnotSetForHighlightsOnSingleObject(), GetHighlightedResiduesWithStructure(), GetHighlights(), GetHighlightsForSelectionMessage(), IsHighlighted(), KeepHighlightsOnlyOnSequence(), RemoveAllHighlights(), RemoveHighlights(), RestoreCachedHighlights(), SetHighlights(), and ToggleHighlights().
bool Messenger::redrawAllSequenceViewers [private] |
Definition at line 153 of file messenger.hpp.
Referenced by PostRedrawAllSequenceViewers(), PostRedrawSequenceViewer(), ProcessRedraws(), UnPostRedrawAllSequenceViewers(), and UnPostRedrawSequenceViewer().
bool Messenger::redrawAllStructures [private] |
Definition at line 152 of file messenger.hpp.
Referenced by PostRedrawAllStructures(), PostRedrawMolecule(), ProcessRedraws(), and UnPostStructureRedraws().
RedrawMoleculeList Messenger::redrawMolecules [private] |
Definition at line 149 of file messenger.hpp.
Referenced by PostRedrawAllStructures(), PostRedrawMolecule(), ProcessRedraws(), and UnPostStructureRedraws().
Definition at line 151 of file messenger.hpp.
Referenced by PostRedrawAllSequenceViewers(), PostRedrawSequenceViewer(), ProcessRedraws(), UnPostRedrawAllSequenceViewers(), and UnPostRedrawSequenceViewer().
SequenceViewerList Messenger::sequenceViewers [private] |
Definition at line 143 of file messenger.hpp.
Referenced by AddHighlights(), HighlightAndShowSequence(), NewSequenceViewerFont(), ProcessRedraws(), RemoveSequenceViewer(), SequenceWindowsSave(), SetAllWindowTitles(), ToggleHighlight(), and UnPostRedrawSequenceViewer().
StructureWindow* Messenger::structureWindow [private] |
Definition at line 145 of file messenger.hpp.
Referenced by FileMessengerSend(), IsFileMessengerActive(), ProcessRedraws(), RemoveAllHighlights(), RemoveStructureWindow(), SetAllWindowTitles(), and SetHighlights().
1.7.5.1
Modified on Wed May 23 12:51:37 2012 by modify_doxy.py rev. 337098