// extract alignment data for a given mate // note that the mates can be different for the cigar, since mate 1 is always the anchor mate for cigars AlignmentData CPUOutputBatch::get_mate(uint32 read_id, AlignmentMate mate, AlignmentMate cigar_mate) { return AlignmentData(&best_alignments[read_id].best[mate], &best_alignments[read_id].second_best[mate], read_id, read_data[mate], &cigar[cigar_mate], &mds[cigar_mate]); }
void VertexButton::updatePosition() { _border[0].position = sf::Vector2f(_bound.left, _bound.top); _border[1].position = sf::Vector2f(_bound.left + _bound.width, _bound.top); _border[2].position = sf::Vector2f(_bound.left + _bound.width, _bound.top + _bound.height); _border[3].position = sf::Vector2f(_bound.left, _bound.top + _bound.height); _border[4].position = sf::Vector2f(_bound.left, _bound.top); _background[0].position = sf::Vector2f(_bound.left, _bound.top); _background[1].position = sf::Vector2f(_bound.left + _bound.width, _bound.top); _background[2].position = sf::Vector2f(_bound.left + _bound.width, _bound.top + _bound.height); _background[3].position = sf::Vector2f(_bound.left, _bound.top + _bound.height); zf::alignText(_text, _bound, AlignmentData()); }
void VertexButton::setString(std::string str) { _text.setString(str); zf::alignText(_text, _bound, AlignmentData()); }