forked from jfnavarro/st_viewer
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathGene.h
More file actions
executable file
·49 lines (35 loc) · 1008 Bytes
/
Gene.h
File metadata and controls
executable file
·49 lines (35 loc) · 1008 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
Copyright (C) 2012 Spatial Transcriptomics AB,
read LICENSE for licensing terms.
Contact : Jose Fernandez Navarro <jose.fernandez.navarro@scilifelab.se>
*/
#ifndef GENE_H
#define GENE_H
#include <QString>
#include <QColor>
#include "utils/Utils.h"
// Data model class to store gene data.
class Gene
{
public:
Gene();
explicit Gene(const Gene& other);
explicit Gene(const QString& name, bool selected = false,
QColor m_color = Globals::DEFAULT_COLOR_GENE);
~Gene();
Gene& operator= (const Gene& other);
bool operator== (const Gene& other) const;
const QString name() const;
bool selected() const;
const QColor color() const;
void name(const QString& name);
void selected(bool selected);
void color(const QColor& color);
//NOTE ambiguous property shouldn't be stored as part of the name
bool isAmbiguous() const;
private:
QString m_name;
QColor m_color;
bool m_selected;
};
#endif // GENE_H //