MeVisLab Scripting Reference
MLABNetworkModelItemGroup Class Reference
Inheritance diagram for MLABNetworkModelItemGroup:
MLABNetworkModelItem

Public Slots

Scripting methods


QString groupName () const
 
bool setGroupName (const QString &name)
 
QColor backgroundColor () const
 
void setBackgroundColor (const QColor &color)
 
void remove ()
 
void rename ()
 
QList< MLABModule * > modules ()
 
- Public Slots inherited from MLABNetworkModelItem
virtual void translateFrame (const QPoint &delta, bool notifyParent=true)
 
void translateChildrenFrames (const QPoint &delta, bool selectedOnly, bool notifyParent=true)
 
virtual void setFrame (const QRect &frame, bool notifyParent=true)
 
virtual QRect frame () const
 

Detailed Description

This class groups groupable network model items.

Member Function Documentation

◆ backgroundColor

QColor MLABNetworkModelItemGroup::backgroundColor ( ) const
inlineslot

Returns the group color.

◆ groupName

QString MLABNetworkModelItemGroup::groupName ( ) const
inlineslot

Returns the name of the group.

◆ modules

QList<MLABModule*> MLABNetworkModelItemGroup::modules ( )
slot

Returns the modules that are in this group.

◆ remove

void MLABNetworkModelItemGroup::remove ( )
slot

Removes the group (and put the modules/items to the main network).

◆ rename

void MLABNetworkModelItemGroup::rename ( )
slot

Renames the group with a dialog.

◆ setBackgroundColor

void MLABNetworkModelItemGroup::setBackgroundColor ( const QColor &  color)
inlineslot

Sets the group color.

◆ setGroupName

bool MLABNetworkModelItemGroup::setGroupName ( const QString &  name)
slot

Sets a new name for the group (returns false if the name is already used by another group and keeps the previous name).