refactoring
wireframe display worked on 3d-model display
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user