Envision
A visual programming IDE for object-oriented languages
|
Public Types | |
using | ItemGetter1Item = std::function< QList< Item * >()> |
using | ItemGetter2Items = std::function< QList< QPair< Item *, Item * > >()> |
using | OverlayConstructor1Arg = std::function< OverlayAccessor *(Item *item)> |
using | OverlayConstructor2Args = std::function< OverlayAccessor *(Item *item1, Item *item2)> |
using | PostUpdateFunction = std::function< void(OverlayGroup &group)> |
Public Member Functions | |
~OverlayGroup () | |
void | addOverlay (OverlayAccessor *overlay) |
void | addOverlayFor (Item *item) |
void | addOverlayFor (Item *item1, Item *item2) |
void | clear () |
void | hide () |
bool | isVisible () const |
const QString & | name () const |
const QList< OverlayAccessor * > & | overlays () const |
QList< OverlayAccessor * > | overlaysForItem (const Item *item) const |
bool | removeOverlay (Item *overlay) |
bool | removeOverlay (OverlayAccessor *overlay) |
bool | removeOverlayOf (Item *itemWithOverlay) |
Scene * | scene () const |
void | setDynamic1Item (ItemGetter1Item getter) |
void | setDynamic2Items (ItemGetter2Items getter) |
void | setOverlayConstructor1Arg (OverlayConstructor1Arg constructor) |
void | setOverlayConstructor2Args (OverlayConstructor2Args constructor) |
void | setPostUpdateFunction (PostUpdateFunction function) |
void | show () |
void | toggle () |
Private Member Functions | |
OverlayGroup (Scene *scene, QString name) | |
bool | removeOverlay (QList< OverlayAccessor * >::iterator it) |
void | update () |
Called by scene to update all Overlay items. More... | |
Private Attributes | |
OverlayConstructor1Arg | constructorFunction1_ |
OverlayConstructor2Args | constructorFunction2_ |
bool | hidden_ {} |
ItemGetter1Item | itemGetterFunction1_ |
ItemGetter2Items | itemGetterFunction2_ |
QString | name_ |
QList< OverlayAccessor * > | overlays_ |
PostUpdateFunction | postUpdateFunction_ |
Scene * | scene_ {} |
Friends | |
class | Scene |
using Visualization::OverlayGroup::ItemGetter1Item = std::function<QList<Item*>()> |
using Visualization::OverlayGroup::ItemGetter2Items = std::function<QList<QPair<Item*, Item*> >()> |
using Visualization::OverlayGroup::OverlayConstructor1Arg = std::function<OverlayAccessor* (Item* item)> |
using Visualization::OverlayGroup::OverlayConstructor2Args = std::function<OverlayAccessor* (Item* item1, Item* item2)> |
using Visualization::OverlayGroup::PostUpdateFunction = std::function<void (OverlayGroup& group)> |
Visualization::OverlayGroup::~OverlayGroup | ( | ) |
|
private |
void Visualization::OverlayGroup::addOverlay | ( | OverlayAccessor * | overlay | ) |
void Visualization::OverlayGroup::addOverlayFor | ( | Item * | item | ) |
void Visualization::OverlayGroup::clear | ( | ) |
void Visualization::OverlayGroup::hide | ( | ) |
|
inline |
|
inline |
|
inline |
QList< OverlayAccessor * > Visualization::OverlayGroup::overlaysForItem | ( | const Item * | item | ) | const |
bool Visualization::OverlayGroup::removeOverlay | ( | Item * | overlay | ) |
bool Visualization::OverlayGroup::removeOverlay | ( | OverlayAccessor * | overlay | ) |
|
private |
bool Visualization::OverlayGroup::removeOverlayOf | ( | Item * | itemWithOverlay | ) |
|
inline |
void Visualization::OverlayGroup::setDynamic1Item | ( | ItemGetter1Item | getter | ) |
void Visualization::OverlayGroup::setDynamic2Items | ( | ItemGetter2Items | getter | ) |
void Visualization::OverlayGroup::setOverlayConstructor1Arg | ( | OverlayConstructor1Arg | constructor | ) |
void Visualization::OverlayGroup::setOverlayConstructor2Args | ( | OverlayConstructor2Args | constructor | ) |
void Visualization::OverlayGroup::setPostUpdateFunction | ( | PostUpdateFunction | function | ) |
void Visualization::OverlayGroup::show | ( | ) |
void Visualization::OverlayGroup::toggle | ( | ) |
|
private |
Called by scene to update all Overlay items.
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |