Maximum Acyclic Subgraph - Multiple Sequence Alignment
MaximumAcyclicSubgraph
FuncArrowShape.h
1 #ifndef FuncArrowShape_H_
2 #define FuncArrowShape_H_
3 
4 #include <SFML/Graphics.hpp>
5 #include <SFML/Window.hpp>
6 #include <SFML/Graphics/RectangleShape.hpp>
7 #include <vector>
8 #include <cmath>
9 #include "ArrowShape.h"
10 #include "../alignment/Edge.h"
11 
12 using namespace std;
13 
19 class FuncArrowShape : public ArrowShape {
20  protected:
21  sf::Color hovCol;
23  sf::Vector2i indexOfDrawNode;
24  public:
39  FuncArrowShape(sf::Vector2f s, sf::Vector2f e, int sizeConstant, sf::Color col);
50  FuncArrowShape(vector<DrawNode>& Nodes, int sizeConstant, sf::Color col, int start, int end, int ind2, float offset);
56  void setCoordsByPos(vector<DrawNode>& Nodes, int sizeConstant, float offset);
57  sf::Vector2i getIndexOfArrow();
58  int getIndex();
62  void hoverFunc();
66  void deHoverFunc();
67 };
68 
69 #endif //FuncArrowShape_H_
sf::Color hovCol
the color of a hovered edge (see GraphRenderer.h)
Definition: FuncArrowShape.h:21
This Class stores the methods to draw a Arrow with a start and end coordinate.
Definition: ArrowShape.h:25
int indexOfState
the index of the edge for the state vectors (see State.h)
Definition: FuncArrowShape.h:22
This Class stores the methods to draw an arrow for the game with some functionalities.
Definition: FuncArrowShape.h:19