OpenStructure
Public Member Functions | Static Protected Attributes
SequenceViewObject Class Reference

#include <sequence_view_object.hh>

Inherits BaseViewObject.

Inherited by AlignmentViewObject.

Public Member Functions

 SequenceViewObject (seq::SequenceList &sequences, const QList< QString > &names, QObject *parent=0)
 
 SequenceViewObject (seq::SequenceHandle &sequence, const QString &name, QObject *parent=0)
 
 SequenceViewObject (mol::ChainView &chain, const QString &name, QObject *parent=0)
 
 SequenceViewObject (const gfx::EntityP &entity, QObject *parent=0)
 
 SequenceViewObject (QObject *parent=0)
 
void Init ()
 
void AddSequence (seq::ConstSequenceHandle sequence, const QString &name=QString())
 
void AddChain (mol::ChainView &chain, const QString &name=QString())
 
void AttachGfxObject (gfx::EntityP &ent)
 
gfx::EntityPGetGfxObject ()
 
virtual void SetDisplayMode (const QString &mode)
 
QMap< int, QList< int > > GetIndexesForView (const mol::EntityView &view)
 
QMap< int, QList< int > > GetIndexesForSubject (const QString &subject, const QString &sequence_name=QString())
 
- Public Member Functions inherited from BaseViewObject
 BaseViewObject (QObject *parent=0)
 
void InsertRow (int pos, BaseRow *row)
 
void RemoveRow (BaseRow *row)
 
BaseRowGetRow (int pos)
 
int GetRowCount ()
 
int GetMaxColumnCount () const
 
virtual void SetSelection (int row, const QSet< int > &added, const QSet< int > &removed)
 
virtual QVariant GetData (int row, int column, int role)
 
virtual bool SetData (int row, int column, const QVariant &value, int role)
 
virtual Qt::ItemFlags Flags (int row, int column) const
 
virtual const QStringList & GetDisplayModes ()
 
virtual const QString & GetCurrentDisplayMode ()
 
void DoubleClicked (int row, int column)
 
void ZoomIn ()
 
void ZoomOut ()
 

Static Protected Attributes

static const QString properties_mode
 
static const QString secondary_structure_mode
 
static AlignPropertiesPainteralign_properties_painter
 
static ConservationPainterconservation_painter
 
static BackgroundPainterbackground_painter
 
static SeqSecStrPainterseq_secondary_structure_painter
 
static SeqSelectionPainterseq_selection_painter
 
static SeqTextPainterseq_text_painter
 

Additional Inherited Members

- Protected Member Functions inherited from BaseViewObject
virtual void AddDisplayMode (const QString &mode)
 
- Protected Attributes inherited from BaseViewObject
QList< BaseRow * > rows_
 
QString current_display_mode_
 
QStringList display_modes_
 

Detailed Description

Definition at line 46 of file sequence_view_object.hh.

Constructor & Destructor Documentation

◆ SequenceViewObject() [1/5]

SequenceViewObject ( seq::SequenceList sequences,
const QList< QString > &  names,
QObject *  parent = 0 
)

◆ SequenceViewObject() [2/5]

SequenceViewObject ( seq::SequenceHandle sequence,
const QString &  name,
QObject *  parent = 0 
)

◆ SequenceViewObject() [3/5]

SequenceViewObject ( mol::ChainView chain,
const QString &  name,
QObject *  parent = 0 
)

◆ SequenceViewObject() [4/5]

SequenceViewObject ( const gfx::EntityP entity,
QObject *  parent = 0 
)

◆ SequenceViewObject() [5/5]

SequenceViewObject ( QObject *  parent = 0)

Member Function Documentation

◆ AddChain()

void AddChain ( mol::ChainView chain,
const QString &  name = QString() 
)

◆ AddSequence()

void AddSequence ( seq::ConstSequenceHandle  sequence,
const QString &  name = QString() 
)

◆ AttachGfxObject()

void AttachGfxObject ( gfx::EntityP ent)

◆ GetGfxObject()

gfx::EntityP& GetGfxObject ( )

◆ GetIndexesForSubject()

QMap<int, QList<int> > GetIndexesForSubject ( const QString &  subject,
const QString &  sequence_name = QString() 
)

◆ GetIndexesForView()

QMap<int, QList<int> > GetIndexesForView ( const mol::EntityView view)

◆ Init()

void Init ( )

◆ SetDisplayMode()

virtual void SetDisplayMode ( const QString &  mode)
virtual

Reimplemented from BaseViewObject.

Reimplemented in AlignmentViewObject.

Field Documentation

◆ align_properties_painter

AlignPropertiesPainter* align_properties_painter
staticprotected

Definition at line 74 of file sequence_view_object.hh.

◆ background_painter

BackgroundPainter* background_painter
staticprotected

Definition at line 76 of file sequence_view_object.hh.

◆ conservation_painter

ConservationPainter* conservation_painter
staticprotected

Definition at line 75 of file sequence_view_object.hh.

◆ properties_mode

const QString properties_mode
staticprotected

Definition at line 71 of file sequence_view_object.hh.

◆ secondary_structure_mode

const QString secondary_structure_mode
staticprotected

Definition at line 72 of file sequence_view_object.hh.

◆ seq_secondary_structure_painter

SeqSecStrPainter* seq_secondary_structure_painter
staticprotected

Definition at line 77 of file sequence_view_object.hh.

◆ seq_selection_painter

SeqSelectionPainter* seq_selection_painter
staticprotected

Definition at line 78 of file sequence_view_object.hh.

◆ seq_text_painter

SeqTextPainter* seq_text_painter
staticprotected

Definition at line 79 of file sequence_view_object.hh.


The documentation for this class was generated from the following file: