Aggiunta finestra di controllo visibilità

This commit is contained in:
2026-06-23 12:52:19 +02:00
parent c48d0505fc
commit 5588ccee31
5 changed files with 41 additions and 13 deletions
@@ -22,9 +22,13 @@ class CollectionInterface{
transparency = alpha;
return true;
};
float getTransparency() {
virtual bool getVisibility(){
return isVisible;
}
virtual float getTransparency() {
return transparency;
}
virtual void setVisibility(bool c) {
isVisible = c;
}
-6
View File
@@ -63,13 +63,7 @@ void Gamba::setDirection(Direction dir){
float Gamba::getZ_Acc(){
float totZ_Acc = 0;
/*
for (auto i : sensori){
totZ_Acc += i->getZ_Acc();
}*/
totZ_Acc = sensori[0]->getZ_Acc() + sensori[1]->getZ_Acc();
//printf("TotAccGamba %f\n", totZ_Acc);
return totZ_Acc;
}