refactoring
wireframe display worked on 3d-model display
This commit is contained in:
@@ -46,7 +46,7 @@ public:
|
||||
|
||||
/** get the number of parameters */
|
||||
int getNumParams() const override {
|
||||
return 3;
|
||||
return 4;
|
||||
}
|
||||
|
||||
/** get the description of the idx-th parameter */
|
||||
@@ -55,6 +55,7 @@ public:
|
||||
case 0: return Param("width", ParamType::FLOAT, true);
|
||||
case 1: return Param("height", ParamType::FLOAT);
|
||||
case 2: return Param("swap", ParamType::BOOL);
|
||||
case 3: return Param("type", ParamType::ENUM, {"unknown", "swing", "double swing", "slide", "double slide", "revolving"});
|
||||
default: throw Exception("out of bounds");
|
||||
}
|
||||
}
|
||||
@@ -65,6 +66,7 @@ public:
|
||||
case 0: return fo->getSize();
|
||||
case 1: return fo->height;
|
||||
case 2: return fo->swap;
|
||||
case 3: return (int) fo->type;
|
||||
default: throw Exception("out of bounds");
|
||||
}
|
||||
}
|
||||
@@ -75,6 +77,7 @@ public:
|
||||
case 0: break;
|
||||
case 1: fo->height = val.toFloat(); break;
|
||||
case 2: fo->swap = val.toBool(); break;
|
||||
case 3: fo->type = (Floorplan::DoorType) val.toInt(); break;
|
||||
default: throw Exception("out of bounds");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user