MDA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups
mda_pdf_out.hpp
1 /*
2  * mda_pdf_out.hpp
3  *
4  * Created on: 22 Sep 2013
5  * Author: ck
6  */
7 
8 #ifndef MDA_PDF_OUT_HPP_
9 #define MDA_PDF_OUT_HPP_
10 
11 // C++ header
12 #include <string>
13 #include <vector>
14 #include <cmath>
15 #include <random>
16 
17 // Cairo headers
18 #include <cairo/cairo.h>
19 #include <cairo/cairo-pdf.h>
20 
21 // Boost header
22 #include <boost/lexical_cast.hpp> // needed because to_string is not supported in Cygwin
23 
24 // MDAT
25 
26 #include "../../lib/Sequence/ProteinSequenceSet.hpp"
27 #include "../../lib/utils/Matrix.hpp"
28 
29 
34 {
35 public:
36  Opt_graphic():graphic_f(""), show_sim_mat(false), show_sequence_names(false), color_by_similarity(false)
37  {}
38 
39  Opt_graphic(const Opt_graphic&)=delete;
40  Opt_graphic(Opt_graphic&&)=delete;
41 
42  std::string graphic_f;
43  bool show_sim_mat;
44  bool show_sequence_names;
45  bool color_by_similarity;
46 };
47 
48 
49 /*
50 void
51 draw_domain(cairo_t *ctx, const MDAT::Domain &dom);
52 */
53 
62 void
63 write_mda_as_pdf(const MDAT::ProteinSequenceSet<MDAT::Default> &seqSet, const MDAT::Matrix<short> &dom_mat, const Opt_graphic &graphic_opts);
64 
65 
66 
67 #endif /* MDA_PDF_OUT_HPP_ */