00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef OST_SEQUENCE_VIEWER_SEQUENCE_VIEW_OBJECT
00020 #define OST_SEQUENCE_VIEWER_SEQUENCE_VIEW_OBJECT
00021
00022
00023
00024
00025
00026
00027 #include <ost/mol/entity_handle.hh>
00028
00029 #include <ost/gfx/entity.hh>
00030
00031 #include <ost/seq/sequence_list.hh>
00032
00033 #include "align_properties_painter.hh"
00034 #include "conservation_painter.hh"
00035 #include "background_painter.hh"
00036 #include "seq_secstr_painter.hh"
00037 #include "seq_selection_painter.hh"
00038 #include "seq_text_painter.hh"
00039
00040 #include "base_view_object.hh"
00041
00042
00043 namespace ost { namespace gui {
00044
00045 class SequenceViewObject : public BaseViewObject
00046 {
00047 Q_OBJECT
00048
00049 public:
00050 SequenceViewObject(seq::SequenceList& sequences, const QList<QString>& names, QObject* parent = 0);
00051 SequenceViewObject(seq::SequenceHandle& sequence, const QString& name, QObject* parent = 0);
00052 SequenceViewObject(mol::ChainView& chain, const QString& name, QObject* parent = 0);
00053 SequenceViewObject(const gfx::EntityP& entity, QObject* parent = 0);
00054 SequenceViewObject(QObject* parent = 0);
00055
00056 void Init();
00057
00058 void AddSequence(seq::SequenceHandle& sequence, const QString& name=QString());
00059 void AddChain(mol::ChainView& chain, const QString& name=QString());
00060
00061 void AttachGfxObject(gfx::EntityP& ent);
00062 gfx::EntityP& GetGfxObject();
00063
00064 virtual void SetDisplayMode(const QString& mode);
00065
00066 QMap<int, QList<int> > GetIndexesForView(const mol::EntityView& view);
00067 QMap<int, QList<int> > GetIndexesForSubject(const QString& subject, const QString& sequence_name=QString());
00068
00069 protected:
00070 static const QString properties_mode;
00071 static const QString secondary_structure_mode;
00072
00073 static AlignPropertiesPainter* align_properties_painter;
00074 static ConservationPainter* conservation_painter;
00075 static BackgroundPainter* background_painter;
00076 static SeqSecStrPainter* seq_secondary_structure_painter;
00077 static SeqSelectionPainter* seq_selection_painter;
00078 static SeqTextPainter* seq_text_painter;
00079
00080 private:
00081 gfx::EntityP entity_;
00082
00083
00084 };
00085
00086
00087 }}
00088
00089 #endif