refactoring

wireframe display
worked on 3d-model display
This commit is contained in:
2018-02-08 21:38:51 +01:00
parent bce771d6d6
commit 839401edb7
16 changed files with 395 additions and 236 deletions

View File

@@ -15,6 +15,7 @@ enum class ParamType {
FILE,
POINT2,
POINT3,
ENUM,
};
class ParamValue {
@@ -85,13 +86,22 @@ struct Param {
/** read-only parameter? */
bool readOnly;
std::vector<std::string> enumValues;
/** ctor */
Param(const std::string& name, const ParamType type, const bool readOnly = false) : name(name), type(type), readOnly(readOnly) {;}
/** ctor */
Param(const std::string& name, const ParamType type, const std::vector<std::string>& enumValues) : name(name), type(type), readOnly(false), enumValues(enumValues) {;}
/** special parameter */
static Param getNA() { return Param("", ParamType::NOT_AVAILABLE); }
/** get all supported enum values */
const std::vector<std::string>& getEnumValues() const {return enumValues;}
};
/** free parameters */