worked on windows
This commit is contained in:
@@ -53,11 +53,16 @@ public:
|
||||
return wall->doors[idx];
|
||||
}
|
||||
|
||||
Floorplan::FloorObstacleWallWindow* getCurWindow() const {
|
||||
const int idx = mv2d.getSelectedNode()-2000;
|
||||
return wall->windows[idx];
|
||||
}
|
||||
|
||||
int getNumParams() const override {
|
||||
switch(getType()) {
|
||||
case 0: return 3;
|
||||
case 1: return 4;
|
||||
case 2: return 0;
|
||||
case 2: return 4;
|
||||
}
|
||||
throw 1;
|
||||
}
|
||||
@@ -75,6 +80,12 @@ public:
|
||||
case 2: return Param("left/right", ParamType::BOOL);
|
||||
case 3: return Param("in/out", ParamType::BOOL);
|
||||
}
|
||||
case 2: switch(idx) {
|
||||
case 0: return Param("above ground (m)", ParamType::FLOAT);
|
||||
case 1: return Param("width (m)", ParamType::FLOAT);
|
||||
case 2: return Param("height (m)", ParamType::FLOAT);
|
||||
case 3: return Param("in/out", ParamType::BOOL);
|
||||
}
|
||||
}
|
||||
throw 1;
|
||||
}
|
||||
@@ -92,6 +103,12 @@ public:
|
||||
case 2: return getCurDoor()->leftRight;
|
||||
case 3: return getCurDoor()->inOut;
|
||||
}
|
||||
case 2 : switch(idx) {
|
||||
case 0: return getCurWindow()->startsAtHeight;
|
||||
case 1: return getCurWindow()->width;
|
||||
case 2: return getCurWindow()->height;
|
||||
case 3: return getCurWindow()->inOut;
|
||||
}
|
||||
}
|
||||
throw 1;
|
||||
}
|
||||
@@ -109,6 +126,12 @@ public:
|
||||
case 2: getCurDoor()->leftRight = val.toBool(); return;
|
||||
case 3: getCurDoor()->inOut = val.toBool(); return;
|
||||
}
|
||||
case 2: switch(idx) {
|
||||
case 0: getCurWindow()->startsAtHeight = val.toFloat(); return;
|
||||
case 1: getCurWindow()->width = val.toFloat(); return;
|
||||
case 2: getCurWindow()->height = val.toFloat(); return;
|
||||
case 3: getCurWindow()->inOut = val.toBool(); return;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user