NCBI C++ ToolKit
|
Search Toolkit Book for SequenceViewer
#include "sequence_viewer.hpp"
(Private to src/app/cn3d
.)
Public Types | |
enum | eExportType { asFASTA , asFASTAa2m , asText , asHTML , asPSSM } |
typedef std::list< const Sequence * > | SequenceList |
Public Types inherited from ViewerBase | |
typedef std::list< BlockMultipleAlignment * > | AlignmentList |
Private Member Functions | |
void | CreateSequenceWindow (bool showNow) |
Private Attributes | |
SequenceViewerWindow * | sequenceWindow |
Friends | |
class | SequenceViewerWindow |
class | SequenceDisplay |
class | AlignmentManager |
Additional Inherited Members | |
Protected Member Functions inherited from ViewerBase | |
ViewerBase (ViewerWindowBase **window, AlignmentManager *alnMgr) | |
virtual | ~ViewerBase (void) |
const AlignmentList & | GetCurrentAlignments (void) const |
AlignmentList & | GetCurrentAlignments (void) |
SequenceDisplay * | GetCurrentDisplay (void) |
Protected Attributes inherited from ViewerBase | |
AlignmentManager * | alignmentManager |
ViewerWindowBase **const | viewerWindow |
Definition at line 52 of file sequence_viewer.hpp.
typedef std::list< const Sequence * > SequenceViewer::SequenceList |
Definition at line 64 of file sequence_viewer.hpp.
Enumerator | |
---|---|
asFASTA | |
asFASTAa2m | |
asText | |
asHTML | |
asPSSM |
Definition at line 78 of file sequence_viewer.hpp.
SequenceViewer::SequenceViewer | ( | AlignmentManager * | alnMgr | ) |
Definition at line 63 of file sequence_viewer.cpp.
SequenceViewer::~SequenceViewer | ( | void | ) |
Definition at line 70 of file sequence_viewer.cpp.
|
private |
Definition at line 74 of file sequence_viewer.cpp.
References ViewerBase::GetCurrentDisplay(), SequenceDisplay::GetStartingColumn(), GlobalMessenger(), ViewerWindowBase::NewDisplay(), Messenger::PostRedrawSequenceViewer(), ViewerWindowBase::ScrollToColumn(), SequenceViewerWindow, sequenceWindow, and Messenger::UnPostRedrawSequenceViewer().
Referenced by DisplayAlignment(), DisplaySequences(), AlignmentManager::ShowSequenceViewer(), and TurnOnEditor().
void SequenceViewer::DisplayAlignment | ( | BlockMultipleAlignment * | multipleAlignment | ) |
Definition at line 116 of file sequence_viewer.cpp.
References SequenceDisplay::AddRowFromAlignment(), CreateSequenceWindow(), BlockMultipleAlignment::GetFirstAlignedBlockPosition(), ViewerBase::InitData(), IsWindowedMode(), BlockMultipleAlignment::NRows(), row, SequenceDisplay, sequenceWindow, SequenceDisplay::SetStartingColumn(), ViewerWindowBase::UpdateDisplay(), and ViewerBase::viewerWindow.
Referenced by AlignmentManager::MergeUpdates(), and AlignmentManager::NewMultipleWithRows().
void SequenceViewer::DisplaySequences | ( | const SequenceList * | sequenceList | ) |
Definition at line 162 of file sequence_viewer.cpp.
References SequenceDisplay::AddRowFromSequence(), SequenceDisplay::AddRowFromString(), CreateSequenceWindow(), ViewerBase::InitData(), IsWindowedMode(), SequenceDisplay::NRows(), NULL, SequenceDisplay, sequenceWindow, ViewerWindowBase::UpdateDisplay(), and ViewerBase::viewerWindow.
Referenced by AlignmentManager::NewAlignments().
void SequenceViewer::ExportAlignment | ( | eExportType | type | ) |
Definition at line 513 of file sequence_viewer.cpp.
Referenced by SequenceViewerWindow::OnExport().
bool SequenceViewer::ReplaceAlignment | ( | const BlockMultipleAlignment * | origAln, |
BlockMultipleAlignment * | newAln | ||
) |
Definition at line 134 of file sequence_viewer.cpp.
References SequenceDisplay::AddBlockBoundaryRow(), SequenceDisplay::AddRowFromAlignment(), DELETE_ALL_AND_CLEAR, ViewerWindowBase::EditorIsOn(), SequenceDisplay::Empty(), ERRORMSG, ViewerBase::GetCurrentAlignments(), ViewerBase::GetCurrentDisplay(), BlockMultipleAlignment::GetFirstAlignedBlockPosition(), BlockMultipleAlignment::NRows(), row, ViewerBase::Save(), sequenceWindow, SequenceDisplay::SetStartingColumn(), and ViewerWindowBase::UpdateDisplay().
void SequenceViewer::SaveAlignment | ( | void | ) |
Definition at line 101 of file sequence_viewer.cpp.
References ViewerBase::alignmentManager, ViewerBase::GetCurrentAlignments(), ViewerBase::GetCurrentDisplay(), i, ViewerBase::KeepCurrent(), DisplayRowFromAlignment::row, SequenceDisplay::rows, and AlignmentManager::SavePairwiseFromMultiple().
Referenced by SequenceViewerWindow::SaveDialog().
void SequenceViewer::TurnOnEditor | ( | void | ) |
Definition at line 187 of file sequence_viewer.cpp.
References CreateSequenceWindow(), sequenceWindow, and SequenceViewerWindow::TurnOnEditor().
Referenced by BlockAligner::CreateNewPairwiseAlignmentsByBlockAlignment(), AlignmentManager::MergeUpdates(), AlignmentManager::PurgeSequence(), and Threader::Realign().
|
friend |
Definition at line 56 of file sequence_viewer.hpp.
|
friend |
Definition at line 55 of file sequence_viewer.hpp.
Referenced by DisplayAlignment(), and DisplaySequences().
|
friend |
Definition at line 54 of file sequence_viewer.hpp.
Referenced by CreateSequenceWindow().
|
private |
Definition at line 89 of file sequence_viewer.hpp.
Referenced by CreateSequenceWindow(), DisplayAlignment(), DisplaySequences(), ReplaceAlignment(), and TurnOnEditor().