mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-08 04:20:14 -05:00
Increase the compilation speed (#3545)
- Remove toStringConversion function and move json_helper include out of numericalproperty.inl - Optimizing some header files - Remove duplicate Lua functions from properties. - Move List,Option,Selection,String, and TriggerProperty into misc folder - Move lua_helper include out of inline file - Add lua_helper to the precompiled header - Declare property functions as final. No longer have OptionProperty derive from IntProperty - Remove Dictionary header from properties
This commit is contained in:
@@ -39,10 +39,16 @@ public:
|
||||
glm::dvec2 maxValue = glm::dvec2(std::numeric_limits<double>::max()),
|
||||
glm::dvec2 stepValue = glm::dvec2(0.01));
|
||||
|
||||
std::string_view className() const override;
|
||||
ghoul::lua::LuaTypes typeLua() const override;
|
||||
std::string_view className() const override final;
|
||||
ghoul::lua::LuaTypes typeLua() const override final;
|
||||
|
||||
void getLuaValue(lua_State* state) const override final;
|
||||
|
||||
std::string stringValue() const override final;
|
||||
using TemplateProperty<glm::dvec2>::operator=;
|
||||
|
||||
private:
|
||||
glm::dvec2 toValue(lua_State* state) const override final;
|
||||
};
|
||||
|
||||
} // namespace openspace::properties
|
||||
|
||||
@@ -39,10 +39,16 @@ public:
|
||||
glm::dvec3 maxValue = glm::dvec3(std::numeric_limits<double>::max()),
|
||||
glm::dvec3 stepValue = glm::dvec3(0.01));
|
||||
|
||||
std::string_view className() const override;
|
||||
ghoul::lua::LuaTypes typeLua() const override;
|
||||
std::string_view className() const override final;
|
||||
ghoul::lua::LuaTypes typeLua() const override final;
|
||||
|
||||
void getLuaValue(lua_State* state) const override final;
|
||||
|
||||
std::string stringValue() const override final;
|
||||
using TemplateProperty<glm::dvec3>::operator=;
|
||||
|
||||
private:
|
||||
glm::dvec3 toValue(lua_State* state) const override final;
|
||||
};
|
||||
|
||||
} // namespace openspace::properties
|
||||
|
||||
@@ -39,10 +39,16 @@ public:
|
||||
glm::dvec4 maxValue = glm::dvec4(std::numeric_limits<double>::max()),
|
||||
glm::dvec4 stepValue = glm::dvec4(0.01));
|
||||
|
||||
std::string_view className() const override;
|
||||
ghoul::lua::LuaTypes typeLua() const override;
|
||||
std::string_view className() const override final;
|
||||
ghoul::lua::LuaTypes typeLua() const override final;
|
||||
|
||||
void getLuaValue(lua_State* state) const override final;
|
||||
|
||||
std::string stringValue() const override final;
|
||||
using TemplateProperty<glm::dvec4>::operator=;
|
||||
|
||||
private:
|
||||
glm::dvec4 toValue(lua_State* state) const override final;
|
||||
};
|
||||
|
||||
} // namespace openspace::properties
|
||||
|
||||
@@ -39,10 +39,16 @@ public:
|
||||
glm::ivec2 maxValue = glm::ivec2(std::numeric_limits<int>::max()),
|
||||
glm::ivec2 stepValue = glm::ivec2(1));
|
||||
|
||||
std::string_view className() const override;
|
||||
ghoul::lua::LuaTypes typeLua() const override;
|
||||
std::string_view className() const override final;
|
||||
ghoul::lua::LuaTypes typeLua() const override final;
|
||||
|
||||
void getLuaValue(lua_State* state) const override final;
|
||||
|
||||
std::string stringValue() const override final;
|
||||
using TemplateProperty<glm::ivec2>::operator=;
|
||||
|
||||
private:
|
||||
glm::ivec2 toValue(lua_State* state) const override final;
|
||||
};
|
||||
|
||||
} // namespace openspace::properties
|
||||
|
||||
@@ -39,10 +39,16 @@ public:
|
||||
glm::ivec3 maxValue = glm::ivec3(std::numeric_limits<int>::max()),
|
||||
glm::ivec3 stepValue = glm::ivec3(1));
|
||||
|
||||
std::string_view className() const override;
|
||||
ghoul::lua::LuaTypes typeLua() const override;
|
||||
std::string_view className() const override final;
|
||||
ghoul::lua::LuaTypes typeLua() const override final;
|
||||
|
||||
void getLuaValue(lua_State* state) const override final;
|
||||
|
||||
std::string stringValue() const override final;
|
||||
using TemplateProperty<glm::ivec3>::operator=;
|
||||
|
||||
private:
|
||||
glm::ivec3 toValue(lua_State* state) const override final;
|
||||
};
|
||||
|
||||
} // namespace openspace::properties
|
||||
|
||||
@@ -39,10 +39,16 @@ public:
|
||||
glm::ivec4 maxValue = glm::ivec4(std::numeric_limits<int>::max()),
|
||||
glm::ivec4 stepValue = glm::ivec4(1));
|
||||
|
||||
std::string_view className() const override;
|
||||
ghoul::lua::LuaTypes typeLua() const override;
|
||||
std::string_view className() const override final;
|
||||
ghoul::lua::LuaTypes typeLua() const override final;
|
||||
|
||||
void getLuaValue(lua_State* state) const override final;
|
||||
|
||||
std::string stringValue() const override final;
|
||||
using TemplateProperty<glm::ivec4>::operator=;
|
||||
|
||||
private:
|
||||
glm::ivec4 toValue(lua_State* state) const override final;
|
||||
};
|
||||
|
||||
} // namespace openspace::properties
|
||||
|
||||
@@ -39,10 +39,16 @@ public:
|
||||
glm::uvec2 maxValue = glm::uvec2(std::numeric_limits<unsigned int>::max()),
|
||||
glm::uvec2 stepValue = glm::uvec2(1));
|
||||
|
||||
std::string_view className() const override;
|
||||
ghoul::lua::LuaTypes typeLua() const override;
|
||||
std::string_view className() const override final;
|
||||
ghoul::lua::LuaTypes typeLua() const override final;
|
||||
|
||||
void getLuaValue(lua_State* state) const override final;
|
||||
|
||||
std::string stringValue() const override final;
|
||||
using TemplateProperty<glm::uvec2>::operator=;
|
||||
|
||||
private:
|
||||
glm::uvec2 toValue(lua_State* state) const override final;
|
||||
};
|
||||
|
||||
} // namespace openspace::properties
|
||||
|
||||
@@ -39,10 +39,16 @@ public:
|
||||
glm::uvec3 maxValue = glm::uvec3(std::numeric_limits<unsigned int>::max()),
|
||||
glm::uvec3 stepValue = glm::uvec3(1));
|
||||
|
||||
std::string_view className() const override;
|
||||
ghoul::lua::LuaTypes typeLua() const override;
|
||||
std::string_view className() const override final;
|
||||
ghoul::lua::LuaTypes typeLua() const override final;
|
||||
|
||||
void getLuaValue(lua_State* state) const override final;
|
||||
|
||||
std::string stringValue() const override final;
|
||||
using TemplateProperty<glm::uvec3>::operator=;
|
||||
|
||||
private:
|
||||
glm::uvec3 toValue(lua_State* state) const override final;
|
||||
};
|
||||
|
||||
} // namespace openspace::properties
|
||||
|
||||
@@ -39,10 +39,16 @@ public:
|
||||
glm::uvec4 maxValue = glm::uvec4(std::numeric_limits<unsigned int>::max()),
|
||||
glm::uvec4 stepValue = glm::uvec4(1));
|
||||
|
||||
std::string_view className() const override;
|
||||
ghoul::lua::LuaTypes typeLua() const override;
|
||||
std::string_view className() const override final;
|
||||
ghoul::lua::LuaTypes typeLua() const override final;
|
||||
|
||||
void getLuaValue(lua_State* state) const override final;
|
||||
|
||||
std::string stringValue() const override final;
|
||||
using TemplateProperty<glm::uvec4>::operator=;
|
||||
|
||||
private:
|
||||
glm::uvec4 toValue(lua_State* state) const override final;
|
||||
};
|
||||
|
||||
} // namespace openspace::properties
|
||||
|
||||
@@ -39,10 +39,16 @@ public:
|
||||
glm::vec2 maxValue = glm::vec2(std::numeric_limits<float>::max()),
|
||||
glm::vec2 stepValue = glm::vec2(0.01f));
|
||||
|
||||
std::string_view className() const override;
|
||||
ghoul::lua::LuaTypes typeLua() const override;
|
||||
std::string_view className() const override final;
|
||||
ghoul::lua::LuaTypes typeLua() const override final;
|
||||
|
||||
void getLuaValue(lua_State* state) const override final;
|
||||
|
||||
std::string stringValue() const override final;
|
||||
using TemplateProperty<glm::vec2>::operator=;
|
||||
|
||||
private:
|
||||
glm::vec2 toValue(lua_State* state) const override final;
|
||||
};
|
||||
|
||||
} // namespace openspace::properties
|
||||
|
||||
@@ -39,10 +39,16 @@ public:
|
||||
glm::vec3 maxValue = glm::vec3(std::numeric_limits<float>::max()),
|
||||
glm::vec3 stepValue = glm::vec3(0.01f));
|
||||
|
||||
std::string_view className() const override;
|
||||
ghoul::lua::LuaTypes typeLua() const override;
|
||||
std::string_view className() const override final;
|
||||
ghoul::lua::LuaTypes typeLua() const override final;
|
||||
|
||||
void getLuaValue(lua_State* state) const override final;
|
||||
|
||||
std::string stringValue() const override final;
|
||||
using TemplateProperty<glm::vec3>::operator=;
|
||||
|
||||
private:
|
||||
glm::vec3 toValue(lua_State* state) const override final;
|
||||
};
|
||||
|
||||
} // namespace openspace::properties
|
||||
|
||||
@@ -39,10 +39,17 @@ public:
|
||||
glm::vec4 maxValue = glm::vec4(std::numeric_limits<float>::max()),
|
||||
glm::vec4 stepValue = glm::vec4(0.01f));
|
||||
|
||||
std::string_view className() const override;
|
||||
ghoul::lua::LuaTypes typeLua() const override;
|
||||
std::string_view className() const override final;
|
||||
ghoul::lua::LuaTypes typeLua() const override final;
|
||||
|
||||
void getLuaValue(lua_State* state) const override final;
|
||||
|
||||
std::string stringValue() const override final;
|
||||
|
||||
using TemplateProperty<glm::vec4>::operator=;
|
||||
|
||||
private:
|
||||
glm::vec4 toValue(lua_State* state) const override final;
|
||||
};
|
||||
|
||||
} // namespace openspace::properties
|
||||
|
||||
Reference in New Issue
Block a user