Maximum Acyclic Subgraph - Multiple Sequence Alignment
MaximumAcyclicSubgraph
ArrowShape.h
1 
2 #ifndef ArrowShape_H_
3 #define ArrowShape_H_
4 
5 #include <SFML/Graphics.hpp>
6 #include <SFML/Window.hpp>
7 #include <SFML/Graphics/RectangleShape.hpp>
8 #include <vector>
9 #include <string>
10 #include <cmath>
11 #include "../alignment/DrawNode.h"
12 #include "../alignment/Edge.h"
13 
14 using namespace std;
15 
16 const double PI = 3.14159265359;
17 double norm(sf::Vector2f vec);
18 double innerPr(sf::Vector2f vec1, sf::Vector2f vec2);
19 
25 class ArrowShape {
26  protected:
27  sf::RectangleShape line;
28  sf::CircleShape tri;
29  public:
33  ArrowShape();
44  ArrowShape(sf::Vector2f s, sf::Vector2f e, int sizeConstant, sf::Color col);
53  void setCoords(sf::Vector2f start, sf::Vector2f end);
59  void setProps(int sizeConstant, sf::Color col);
60  void Draw(sf::RenderWindow& window);
66  sf::CircleShape getShape();
67 };
68 
69 #endif //ArrowShape_H_
70 
This Class stores the methods to draw a Arrow with a start and end coordinate.
Definition: ArrowShape.h:25
sf::RectangleShape line
the line of the arrow
Definition: ArrowShape.h:27
sf::CircleShape tri
the front of the arrow (triangle)
Definition: ArrowShape.h:28