GeometryItem Class Reference
|
MathVizAnimator
0.0.1
|
GeometryItem Class Reference
Inheritance diagram for GeometryItem:
Collaboration diagram for GeometryItem:
Signals | |
| void | filledColorChanged () |
| void | filledOpacityChanged () |
| void | borderColorChanged () |
| void | borderOpacityChanged () |
| void | borderWidthChanged () |
Signals inherited from AbstractItem | |
| void | nameChanged (const QString &new_name) |
Public Member Functions | |
| GeometryItem (const QString &qml_file, BasicItem *parent=nullptr) | |
| QColor | filledColor () const |
| void | setFilledColor (const QColor &new_filled_color) |
| qreal | filledOpacity () const |
| void | setFilledOpacity (const qreal &new_filled_opacity) |
| QColor | borderColor () const |
| void | setBorderColor (const QColor &new_border_color) |
| qreal | borderOpacity () const |
| void | setBorderOpacity (const qreal &new_border_opacity) |
| qreal | borderWidth () const |
| void | setBorderWidth (const qreal &new_border_width) |
| QStringList | editableProperties () const override |
| Returns the properties which can be edited by the user in a QStringList. More... | |
Public Member Functions inherited from AbstractItem | |
| AbstractItem (const QString &qml_file, BasicItem *parent=nullptr) | |
| Constructor for MyClass. TODO. More... | |
| QString | name () const |
| void | setName (const QString &name) |
| virtual QJsonObject | toJson () const |
| virtual QStringList | editablePropertiesParent () const |
| Returns the parents properties which can be edited by the user in a QStringList. More... | |
| PropertyMap | allItemProperties () const |
| PropertyMap | itemProperties () const |
| PropertyMap | parentItemProperties () const |
| void | paintItem (QPainter *painter) |
| Short explanation. More... | |
Protected Member Functions | |
| void | preparePainterForBorder (QPainter *painter) |
| void | preparePainterForFill (QPainter *painter) |
Properties | |
| QColor | filledColor |
| qreal | filledOpacity |
| QColor | borderColor |
| qreal | borderOpacity |
| qreal | borderWidth |
Properties inherited from AbstractItem | |
| QString | name |
| QString | file |
Member Function Documentation
◆ editableProperties()
|
overridevirtual |
Returns the properties which can be edited by the user in a QStringList.
When you derive an item from AbstractItem (directly or via multiple inheritance) and your item has a property which should be editable by the user, you have to override this function and return your own properties. Don't forget to add the properties of your base class. Take a look at the GeometryItem::editableProperties() source code for an example.
- Returns
- Returns the editable properties as QStrings
Reimplemented from AbstractItem.
The documentation for this class was generated from the following files:
- /home/docs/checkouts/readthedocs.org/user_builds/mathvizanimator/checkouts/latest/libs/mva_gui/include/items/geometry_item.h
- /home/docs/checkouts/readthedocs.org/user_builds/mathvizanimator/checkouts/latest/libs/mva_gui/src/items/geometry_item.cpp
Generated by
Signals inherited from