Maximum Acyclic Subgraph - Multiple Sequence Alignment
MaximumAcyclicSubgraph
|
This Class stores the methods to draw an arrow for the game with some functionalities. More...
#include <FuncArrowShape.h>
Public Member Functions | |
FuncArrowShape () | |
FuncArrowShape (sf::Vector2f s, sf::Vector2f e, int sizeConstant, sf::Color col) | |
FuncArrowShape (vector< DrawNode > &Nodes, int sizeConstant, sf::Color col, int start, int end, int ind2, float offset) | |
void | setCoordsByPos (vector< DrawNode > &Nodes, int sizeConstant, float offset) |
sf::Vector2i | getIndexOfArrow () |
int | getIndex () |
void | hoverFunc () |
void | deHoverFunc () |
Public Member Functions inherited from ArrowShape | |
ArrowShape () | |
ArrowShape (sf::Vector2f s, sf::Vector2f e, int sizeConstant, sf::Color col) | |
void | setCoords (sf::Vector2f start, sf::Vector2f end) |
void | setProps (int sizeConstant, sf::Color col) |
void | Draw (sf::RenderWindow &window) |
sf::CircleShape | getShape () |
Protected Attributes | |
sf::Color | hovCol |
the color of a hovered edge (see GraphRenderer.h) | |
int | indexOfState |
the index of the edge for the state vectors (see State.h) | |
sf::Vector2i | indexOfDrawNode |
Protected Attributes inherited from ArrowShape | |
sf::RectangleShape | line |
the line of the arrow | |
sf::CircleShape | tri |
the front of the arrow (triangle) | |
This Class stores the methods to draw an arrow for the game with some functionalities.
FuncArrowShape::FuncArrowShape | ( | ) |
The standard constructor. This does nothing.
FuncArrowShape::FuncArrowShape | ( | sf::Vector2f | s, |
sf::Vector2f | e, | ||
int | sizeConstant, | ||
sf::Color | col | ||
) |
The half-complete constructor, which initialize a arrow by start and end coords, with a specified color and in terms of the sizeConstant we know out of GraphRenderer.h
s | the start coords point of the arrow |
e | the end coords point of the arrow |
sizeConstant | an integer which scales the arrow |
col | the color of the arrow |
FuncArrowShape::FuncArrowShape | ( | vector< DrawNode > & | Nodes, |
int | sizeConstant, | ||
sf::Color | col, | ||
int | start, | ||
int | end, | ||
int | ind2, | ||
float | offset | ||
) |
The complete constructor, which initialize a arrow by an edge, with a specified color, the index of the state vector it corresponds to and in terms of the sizeConstant we know out of GraphRenderer.h
Arr | the edge which get made to an Funcarrowshape |
ind | an integer which is the index of the corresponded edge Vector in state |
sizeConstant | an integer which scales the arrow |
col | the color of the arrow |
void FuncArrowShape::deHoverFunc | ( | ) |
A function which remove all manipulations of the FuncArrowShape
void FuncArrowShape::hoverFunc | ( | ) |
A function which manipulate the FuncArrowShape
void FuncArrowShape::setCoordsByPos | ( | vector< DrawNode > & | Nodes, |
int | sizeConstant, | ||
float | offset | ||
) |
a function to get the protected index