Maximum Acyclic Subgraph - Multiple Sequence Alignment
MaximumAcyclicSubgraph
Public Member Functions | Protected Attributes | List of all members
FuncArrowShape Class Reference

This Class stores the methods to draw an arrow for the game with some functionalities. More...

#include <FuncArrowShape.h>

Inheritance diagram for FuncArrowShape:
Inheritance graph
[legend]
Collaboration diagram for FuncArrowShape:
Collaboration graph
[legend]

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)
 

Detailed Description

This Class stores the methods to draw an arrow for the game with some functionalities.

Constructor & Destructor Documentation

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

Parameters
sthe start coords point of the arrow
ethe end coords point of the arrow
sizeConstantan integer which scales the arrow
colthe 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

Parameters
Arrthe edge which get made to an Funcarrowshape
indan integer which is the index of the corresponded edge Vector in state
sizeConstantan integer which scales the arrow
colthe color of the arrow

Member Function Documentation

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

Returns
an integer which is the index in the corresponded edge vector in state

The documentation for this class was generated from the following files: