NCBI C++ ToolKit
Public Member Functions | Public Attributes | List of all members
DisplayRowFromSequence Class Reference

Search Toolkit Book for DisplayRowFromSequence

#include "sequence_display.hpp"
(Private to src/app/cn3d.)

+ Inheritance diagram for DisplayRowFromSequence:
+ Collaboration diagram for DisplayRowFromSequence:

Public Member Functions

 DisplayRowFromSequence (const Sequence *s, unsigned int from, unsigned int to)
 
virtual ~DisplayRowFromSequence (void)
 
unsigned int Width (void) const
 
DisplayRowClone (const Old2NewAlignmentMap &newAlignments) const
 
bool GetCharacterTraitsAt (unsigned int column, BlockMultipleAlignment::eUnalignedJustification justification, char *character, Vector *color, bool *drawBackground, Vector *cellBackgroundColor) const
 
bool GetSequenceAndIndexAt (unsigned int column, BlockMultipleAlignment::eUnalignedJustification justification, const Sequence **sequenceHandle, int *index) const
 
const SequenceGetSequence (void) const
 
void SelectedRange (unsigned int from, unsigned int to, BlockMultipleAlignment::eUnalignedJustification justification, bool toggle) const
 
- Public Member Functions inherited from DisplayRow
virtual ~DisplayRow (void)
 

Public Attributes

const Sequence *const sequence
 
const unsigned int fromIndex
 
const unsigned int toIndex
 

Detailed Description

Definition at line 110 of file sequence_display.hpp.

Constructor & Destructor Documentation

◆ DisplayRowFromSequence()

DisplayRowFromSequence::DisplayRowFromSequence ( const Sequence s,
unsigned int  from,
unsigned int  to 
)

Definition at line 111 of file sequence_display.cpp.

References ERRORMSG, Sequence::Length(), and sequence.

Referenced by Clone().

◆ ~DisplayRowFromSequence()

virtual DisplayRowFromSequence::~DisplayRowFromSequence ( void  )
inlinevirtual

Definition at line 117 of file sequence_display.hpp.

Member Function Documentation

◆ Clone()

DisplayRow* DisplayRowFromSequence::Clone ( const Old2NewAlignmentMap newAlignments) const
inlinevirtual

Implements DisplayRow.

Definition at line 121 of file sequence_display.hpp.

References DisplayRowFromSequence(), fromIndex, sequence, and toIndex.

◆ GetCharacterTraitsAt()

bool DisplayRowFromSequence::GetCharacterTraitsAt ( unsigned int  column,
BlockMultipleAlignment::eUnalignedJustification  justification,
char *  character,
Vector color,
bool drawBackground,
Vector cellBackgroundColor 
) const
virtual

◆ GetSequence()

const Sequence* DisplayRowFromSequence::GetSequence ( void  ) const
inlinevirtual

Implements DisplayRow.

Definition at line 130 of file sequence_display.hpp.

References sequence.

◆ GetSequenceAndIndexAt()

bool DisplayRowFromSequence::GetSequenceAndIndexAt ( unsigned int  column,
BlockMultipleAlignment::eUnalignedJustification  justification,
const Sequence **  sequenceHandle,
int index 
) const
virtual

Implements DisplayRow.

Definition at line 141 of file sequence_display.cpp.

References column, fromIndex, sequence, and toIndex.

◆ SelectedRange()

void DisplayRowFromSequence::SelectedRange ( unsigned int  from,
unsigned int  to,
BlockMultipleAlignment::eUnalignedJustification  justification,
bool  toggle 
) const
virtual

◆ Width()

unsigned int DisplayRowFromSequence::Width ( void  ) const
inlinevirtual

Implements DisplayRow.

Definition at line 119 of file sequence_display.hpp.

References fromIndex, and toIndex.

Member Data Documentation

◆ fromIndex

const unsigned int DisplayRowFromSequence::fromIndex

◆ sequence

const Sequence* const DisplayRowFromSequence::sequence

◆ toIndex

const unsigned int DisplayRowFromSequence::toIndex

The documentation for this class was generated from the following files:
Modified on Fri Sep 20 14:57:10 2024 by modify_doxy.py rev. 669887