载入中...
搜索中...
未找到
eve::editor::EditorInspector类 参考
Property sheet descriptors + values (host renders via ui).
更多...
#include <EditorInspector.h>
Public 成员函数 | |
| void | clear () |
| Clears . | |
| void | addFloat (const std::string &id, const std::string &label, float value, float minV, float maxV, float step) |
| Adds float. | |
| void | addFloat3 (const std::string &id, const std::string &label, float x, float y, float z) |
| Adds float 3. | |
| void | addBool (const std::string &id, const std::string &label, bool value) |
| Adds bool. | |
| void | addString (const std::string &id, const std::string &label, const std::string &value) |
| Adds string. | |
| void | addChoice (const std::string &id, const std::string &label, const std::string &choicesCsv, const std::string &selected) |
| Adds choice. | |
| int | getFieldCount () const |
| Returns the field count. | |
| std::string | getFieldKind (int index) const |
| Returns the field kind. | |
| std::string | getFieldId (int index) const |
| Returns the field id. | |
| std::string | getFieldLabel (int index) const |
| Returns the field label. | |
| float | getFloat (const std::string &id) const |
| Returns the float. | |
| void | setFloat (const std::string &id, float value) |
| Sets the float. | |
| float | getFloatMin (const std::string &id) const |
| Returns the float min. | |
| float | getFloatMax (const std::string &id) const |
| Returns the float max. | |
| float | getFloatStep (const std::string &id) const |
| Returns the float step. | |
| float | getFloat3X (const std::string &id) const |
| Returns the float 3 x. | |
| float | getFloat3Y (const std::string &id) const |
| Returns the float 3 y. | |
| float | getFloat3Z (const std::string &id) const |
| Returns the float 3 z. | |
| void | setFloat3 (const std::string &id, float x, float y, float z) |
| Sets the float 3. | |
| bool | getBool (const std::string &id) const |
| Returns the bool. | |
| void | setBool (const std::string &id, bool value) |
| Sets the bool. | |
| std::string | getString (const std::string &id) const |
| Returns the string. | |
| void | setString (const std::string &id, const std::string &value) |
| Sets the string. | |
| std::string | getChoice (const std::string &id) const |
| Returns the choice. | |
| void | setChoice (const std::string &id, const std::string &value) |
| Sets the choice. | |
| std::string | getChoicesCsv (const std::string &id) const |
| Returns the choices csv. | |
| bool | isDirty (const std::string &id) const |
| True when dirty. | |
| void | clearDirty (const std::string &id) |
| Clears dirty. | |
| void | clearAllDirty () |
| Clears all dirty. | |
| std::string | pollChangedId () |
| Returns next dirty field id, or "" if none. | |
详细描述
Property sheet descriptors + values (host renders via ui).
在文件 EditorInspector.h 第 11 行定义.
成员函数说明
◆ addBool()
| void eve::editor::EditorInspector::addBool | ( | const std::string & | id, |
| const std::string & | label, | ||
| bool | value | ||
| ) |
◆ addChoice()
| void eve::editor::EditorInspector::addChoice | ( | const std::string & | id, |
| const std::string & | label, | ||
| const std::string & | choicesCsv, | ||
| const std::string & | selected | ||
| ) |
◆ addFloat()
| void eve::editor::EditorInspector::addFloat | ( | const std::string & | id, |
| const std::string & | label, | ||
| float | value, | ||
| float | minV, | ||
| float | maxV, | ||
| float | step | ||
| ) |
◆ addFloat3()
| void eve::editor::EditorInspector::addFloat3 | ( | const std::string & | id, |
| const std::string & | label, | ||
| float | x, | ||
| float | y, | ||
| float | z | ||
| ) |
◆ addString()
| void eve::editor::EditorInspector::addString | ( | const std::string & | id, |
| const std::string & | label, | ||
| const std::string & | value | ||
| ) |
◆ clear()
| void eve::editor::EditorInspector::clear | ( | ) |
Clears .
在文件 EditorInspector.cpp 第 7 行定义.
◆ clearAllDirty()
| void eve::editor::EditorInspector::clearAllDirty | ( | ) |
◆ clearDirty()
| void eve::editor::EditorInspector::clearDirty | ( | const std::string & | id | ) |
◆ getBool()
| bool eve::editor::EditorInspector::getBool | ( | const std::string & | id | ) | const |
◆ getChoice()
| std::string eve::editor::EditorInspector::getChoice | ( | const std::string & | id | ) | const |
◆ getChoicesCsv()
| std::string eve::editor::EditorInspector::getChoicesCsv | ( | const std::string & | id | ) | const |
◆ getFieldCount()
|
inline |
Returns the field count.
在文件 EditorInspector.h 第 30 行定义.
◆ getFieldId()
| std::string eve::editor::EditorInspector::getFieldId | ( | int | index | ) | const |
◆ getFieldKind()
| std::string eve::editor::EditorInspector::getFieldKind | ( | int | index | ) | const |
◆ getFieldLabel()
| std::string eve::editor::EditorInspector::getFieldLabel | ( | int | index | ) | const |
◆ getFloat()
| float eve::editor::EditorInspector::getFloat | ( | const std::string & | id | ) | const |
◆ getFloat3X()
| float eve::editor::EditorInspector::getFloat3X | ( | const std::string & | id | ) | const |
◆ getFloat3Y()
| float eve::editor::EditorInspector::getFloat3Y | ( | const std::string & | id | ) | const |
◆ getFloat3Z()
| float eve::editor::EditorInspector::getFloat3Z | ( | const std::string & | id | ) | const |
◆ getFloatMax()
| float eve::editor::EditorInspector::getFloatMax | ( | const std::string & | id | ) | const |
◆ getFloatMin()
| float eve::editor::EditorInspector::getFloatMin | ( | const std::string & | id | ) | const |
◆ getFloatStep()
| float eve::editor::EditorInspector::getFloatStep | ( | const std::string & | id | ) | const |
◆ getString()
| std::string eve::editor::EditorInspector::getString | ( | const std::string & | id | ) | const |
◆ isDirty()
| bool eve::editor::EditorInspector::isDirty | ( | const std::string & | id | ) | const |
◆ pollChangedId()
| std::string eve::editor::EditorInspector::pollChangedId | ( | ) |
◆ setBool()
| void eve::editor::EditorInspector::setBool | ( | const std::string & | id, |
| bool | value | ||
| ) |
◆ setChoice()
| void eve::editor::EditorInspector::setChoice | ( | const std::string & | id, |
| const std::string & | value | ||
| ) |
◆ setFloat()
| void eve::editor::EditorInspector::setFloat | ( | const std::string & | id, |
| float | value | ||
| ) |
◆ setFloat3()
| void eve::editor::EditorInspector::setFloat3 | ( | const std::string & | id, |
| float | x, | ||
| float | y, | ||
| float | z | ||
| ) |
◆ setString()
| void eve::editor::EditorInspector::setString | ( | const std::string & | id, |
| const std::string & | value | ||
| ) |
该类的文档由以下文件生成:
- src/modules/editor/EditorInspector.h
- src/modules/editor/EditorInspector.cpp