Controllo posizione con gui completa

This commit is contained in:
2026-06-06 11:27:21 +02:00
parent 52b2a95032
commit ba5e071c6f
7 changed files with 20 additions and 44 deletions
+3 -6
View File
@@ -14,12 +14,9 @@ class Sensore : public PieceInterface{
std::vector<std::vector<float>> gData;
std::vector<std::vector<float>> rotData;
std::vector<float> timeData;
rb::Vector3 stPos;
//in che punto sto controllando il segnale
unsigned int dataPos;
std::vector<int> dataIntvl;
unsigned int curTime;
unsigned int* dataPos;
//funzioni ausiliarie
void calcRotWithG(unsigned int index);
@@ -27,10 +24,10 @@ class Sensore : public PieceInterface{
public:
Sensore(rb::Vector3 coords, _Float16 mass);
Sensore(rb::Vector3 coords, _Float16 mass, unsigned int st, int min, int max, std::vector<std::vector<float>> data);
Sensore(rb::Vector3 coords, _Float16 mass, unsigned int* st, std::vector<std::vector<float>> data);
~Sensore();
void update(unsigned int pos) override;
void update(sf::Clock cl) override;
sf::Shape* draw(ReferencePlane plane) override;
//funzioni specifiche