![]() |
TinkerCell Core 1.0
TinkerCell's Core library providing all basic functionalities
|
This class defines the family of a node. Inherits from ItemFamily. It contains a list of NodeGraphicsItems that is the default for this family of nodes. More...
#include <ItemFamily.h>
Public Member Functions | |
virtual ItemFamily * | parent () const |
get the parent for this family. If there are more than one parents, returns the first | |
virtual QList< ItemFamily * > | parents () const |
get all the parents for this family. | |
virtual QList< ItemFamily * > | children () const |
get all the families that make up this family. | |
virtual void | setParent (NodeFamily *) |
set parent family | |
virtual | ~NodeFamily () |
destructor. | |
NodeFamily (const QString &name=QString()) | |
constructor. | |
virtual bool | isA (const QString &) const |
indicates whether or not the given string is the name of this family or any of its parent families | |
virtual bool | isA (const ItemFamily *) const |
indicates whether or not the given family is the name of this family or any of its parent families | |
Static Public Member Functions | |
static NodeFamily * | cast (ItemFamily *) |
cast to node family | |
static QList< NodeFamily * > | cast (const QList< ItemFamily * > &) |
cast to node family | |
Protected Member Functions | |
virtual bool | isA (int) const |
indicates whether or not the given ID is this family or any of its parent families | |
Protected Attributes | |
QList< NodeFamily * > | parentFamilies |
all the parents | |
QList< NodeFamily * > | childFamilies |
all the families that are under this family | |
Friends | |
class | ConnectionFamily |
This class defines the family of a node. Inherits from ItemFamily. It contains a list of NodeGraphicsItems that is the default for this family of nodes.
Definition at line 150 of file ItemFamily.h.
Tinkercell::NodeFamily::~NodeFamily | ( | ) | [virtual] |
destructor.
Definition at line 210 of file ItemFamily.cpp.
Tinkercell::NodeFamily::NodeFamily | ( | const QString & | name = QString() | ) |
NodeFamily * Tinkercell::NodeFamily::cast | ( | ItemFamily * | item | ) | [static] |
cast to node family
Definition at line 186 of file ItemFamily.cpp.
QList< NodeFamily * > Tinkercell::NodeFamily::cast | ( | const QList< ItemFamily * > & | items | ) | [static] |
cast to node family
Definition at line 193 of file ItemFamily.cpp.
QList< ItemFamily * > Tinkercell::NodeFamily::children | ( | ) | const [virtual] |
get all the families that make up this family.
Reimplemented from Tinkercell::ItemFamily.
Definition at line 278 of file ItemFamily.cpp.
bool Tinkercell::NodeFamily::isA | ( | const ItemFamily * | family | ) | const [virtual] |
indicates whether or not the given family is the name of this family or any of its parent families
Reimplemented from Tinkercell::ItemFamily.
Definition at line 264 of file ItemFamily.cpp.
bool Tinkercell::NodeFamily::isA | ( | int | id | ) | const [protected, virtual] |
indicates whether or not the given ID is this family or any of its parent families
indicates whether or not the given string is the name of this family or any of its parent families
Reimplemented from Tinkercell::ItemFamily.
Definition at line 231 of file ItemFamily.cpp.
bool Tinkercell::NodeFamily::isA | ( | const QString & | name | ) | const [virtual] |
indicates whether or not the given string is the name of this family or any of its parent families
Reimplemented from Tinkercell::ItemFamily.
Definition at line 245 of file ItemFamily.cpp.
ItemFamily * Tinkercell::NodeFamily::parent | ( | ) | const [virtual] |
get the parent for this family. If there are more than one parents, returns the first
Reimplemented from Tinkercell::ItemFamily.
Definition at line 212 of file ItemFamily.cpp.
QList< ItemFamily * > Tinkercell::NodeFamily::parents | ( | ) | const [virtual] |
get all the parents for this family.
Reimplemented from Tinkercell::ItemFamily.
Definition at line 270 of file ItemFamily.cpp.
void Tinkercell::NodeFamily::setParent | ( | NodeFamily * | p | ) | [virtual] |
set parent family
Definition at line 286 of file ItemFamily.cpp.
friend class ConnectionFamily [friend] |
Reimplemented from Tinkercell::ItemFamily.
Definition at line 184 of file ItemFamily.h.
QList<NodeFamily*> Tinkercell::NodeFamily::childFamilies [protected] |
all the families that are under this family
Definition at line 182 of file ItemFamily.h.
QList<NodeFamily*> Tinkercell::NodeFamily::parentFamilies [protected] |
all the parents
Definition at line 180 of file ItemFamily.h.