|
vg
tools for working with variation graphs
|
#include <viz.hpp>
Public Member Functions | |
| Viz (void) | |
| ~Viz (void) | |
| Viz (PathHandleGraph *x, vector< Packer > *p, const vector< string > &n, const string &o, int w, int h, bool c, bool d, bool t) | |
| void | init (PathHandleGraph *x, vector< Packer > *p, const vector< string > &n, const string &o, int w, int h, bool c, bool d, bool t) |
| void | draw (void) |
| void | draw_graph (void) |
| void | close (void) |
Private Member Functions | |
| double | node_offset (id_t id) |
| double | nodes_before_offset (size_t pos) |
| uint64_t | id_to_rank (nid_t id) |
| void | set_hash_color (const string &str) |
| void | compute_borders_and_dimensions (void) |
| void | check_status (const cairo_status_t &status, const std::string &task="calling Cairo") |
Private Attributes | |
| unordered_map< nid_t, uint64_t > | id_rank_map |
| PathHandleGraph * | xgidx = nullptr |
| vector< Packer > * | packs = nullptr |
| vector< string > | pack_names |
| string | outfile |
| cairo_surface_t * | surface = nullptr |
| cairo_t * | cr = nullptr |
| bool | output_png = false |
| bool | output_svg = false |
| bool | show_cnv = true |
| bool | show_dna = true |
| bool | show_paths = true |
| int | image_width = 0 |
| int | image_height = 0 |
| int | left_border = 0 |
| int | top_border = 0 |
| size_t | seq_length = 0 |
|
inline |
|
inline |
| vg::Viz::Viz | ( | PathHandleGraph * | x, |
| vector< Packer > * | p, | ||
| const vector< string > & | n, | ||
| const string & | o, | ||
| int | w, | ||
| int | h, | ||
| bool | c, | ||
| bool | d, | ||
| bool | t ) |
|
private |
| void vg::Viz::close | ( | void | ) |
|
private |
| void vg::Viz::draw | ( | void | ) |
| void vg::Viz::draw_graph | ( | void | ) |
|
private |
| void vg::Viz::init | ( | PathHandleGraph * | x, |
| vector< Packer > * | p, | ||
| const vector< string > & | n, | ||
| const string & | o, | ||
| int | w, | ||
| int | h, | ||
| bool | c, | ||
| bool | d, | ||
| bool | t ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
1.17.0