Show similarity

This commit is contained in:
2025-02-06 12:11:36 +01:00
parent 3c0211b3e5
commit 4c0aefc3b1
4 changed files with 49 additions and 17 deletions

View File

@@ -1,12 +1,15 @@
#include <vector>
#include <array>
#include "sql.hpp"
#include "values/DnaManager.hpp"
#include "values/Similarity.hpp"
#include "canvas/Canvas.hpp"
enum DrawingStage{
setup,
drawTree,
drawBig,
calSim,
done,
};
@@ -19,7 +22,8 @@ public:
void deinit();
private:
bool showSelection = false;
bool showSelection;
bool showStats;
sqlite3 *db;
sqlite3_stmt *get_gen_num;
std::vector<int64_t> ids;
@@ -27,17 +31,19 @@ private:
bool update_gen = false;
bool enableAll = true;
int64_t selected_id = -1;
int selected_gen = -1;
int32_t selected_id_index = -1;
int32_t selected_gen = -1;
DnaManagerData manager;
DrawingStage stageOfDrawing = DrawingStage::done;
Canvas canvas;
RenderTexture2D treeTexture;
int drawTreeIndex = -1;
int32_t drawTreeIndex = -1;
RenderTexture2D bigTexture;
int drawX = 0;
int drawY = 0;
void setUpManager();
std::array<float, 4> simil;
};