CGRA-ME
Functions
Visual.h File Reference
#include <string>
#include <memory>
#include <unordered_map>
#include <CGRA/CGRA.h>
#include <CGRA/Mapping.h>

Go to the source code of this file.

Functions

void genCGRAVisual (std::string exe_path, std::shared_ptr< CGRA > cgra, int II)
 
void genMappingVisual (std::string exe_path, const MRRG &mrrg, const Mapping &mapping, const MappingGraph &mg, const CreateMappingGraphResult::ToMRRG &toMRRG)
 
std::pair< double, double > getScaledPosition (const std::pair< double, double > pos)
 

Function Documentation

◆ genCGRAVisual()

void genCGRAVisual ( std::string  exe_path,
std::shared_ptr< CGRA cgra,
int  II 
)

Definition at line 29 of file Visual.cpp.

◆ genMappingVisual()

void genMappingVisual ( std::string  exe_path,
const MRRG mrrg,
const Mapping mapping,
const MappingGraph mg,
const CreateMappingGraphResult::ToMRRG toMRRG 
)

Definition at line 170 of file Visual.cpp.

◆ getScaledPosition()

std::pair<double, double> getScaledPosition ( const std::pair< double, double >  pos)

Scales decimal position that is a ratio of the screen, to pixels

Definition at line 491 of file Visual.cpp.