TinkerCell Core 1.0
TinkerCell's Core library providing all basic functionalities
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends
Tinkercell::NodeFamily Class Reference

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>

Inheritance diagram for Tinkercell::NodeFamily:
Inheritance graph
[legend]
Collaboration diagram for Tinkercell::NodeFamily:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual ItemFamilyparent () 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 NodeFamilycast (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

Detailed Description

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.


Constructor & Destructor Documentation

Tinkercell::NodeFamily::~NodeFamily ( ) [virtual]

destructor.

Definition at line 210 of file ItemFamily.cpp.

Tinkercell::NodeFamily::NodeFamily ( const QString &  name = QString())

constructor.

Parameters:
QStringname

Definition at line 204 of file ItemFamily.cpp.


Member Function Documentation

NodeFamily * Tinkercell::NodeFamily::cast ( ItemFamily item) [static]

cast to node family

Definition at line 186 of file ItemFamily.cpp.

Here is the caller graph for this function:

QList< NodeFamily * > Tinkercell::NodeFamily::cast ( const QList< ItemFamily * > &  items) [static]

cast to node family

Definition at line 193 of file ItemFamily.cpp.

Here is the call graph for this function:

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.

Here is the call graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the call graph for this function:


Friends And Related Function Documentation

friend class ConnectionFamily [friend]

Reimplemented from Tinkercell::ItemFamily.

Definition at line 184 of file ItemFamily.h.


Member Data Documentation

all the families that are under this family

Definition at line 182 of file ItemFamily.h.

all the parents

Definition at line 180 of file ItemFamily.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines