rocs/RocsCore
#include <GraphNode.h>
Signals | |
void | scriptError (const QString &message) |
Signals inherited from Data | |
void | colorChanged (const QColor &c) |
void | dataTypeChanged (int dataType) |
void | pointerListChanged () |
void | posChanged (const QPointF &p) |
void | propertyAdded (const QString &name) |
void | propertyChanged (const QString &name) |
void | propertyRemoved (const QString &name) |
void | removed () |
void | useColorChanged (bool b) |
void | visibilityChanged (bool visible) |
void | widthChanged (double w) |
Public Member Functions | |
GraphNode (DataStructurePtr parent, int uniqueIdentifier, int dataType) | |
virtual | ~GraphNode () |
Q_INVOKABLE QScriptValue | edges () |
Q_INVOKABLE QScriptValue | edges (int type) |
Q_INVOKABLE QScriptValue | edgesTo (Data *node) |
Q_INVOKABLE QScriptValue | inEdges () |
Q_INVOKABLE QScriptValue | inEdges (int type) |
Q_INVOKABLE QScriptValue | neighbors () |
Q_INVOKABLE QScriptValue | outEdges () |
Q_INVOKABLE QScriptValue | outEdges (int type) |
virtual void | setEngine (QScriptEngine *_engine) |
Public Member Functions inherited from Data | |
virtual | ~Data () |
void | addPointer (PointerPtr pointer) |
DataList | adjacentDataList () const |
QVariant | color () const |
PointerPtr | createPointer (DataPtr to) |
DataStructurePtr | dataStructure () const |
int | dataType () const |
QScriptEngine * | engine () const |
virtual DataPtr | getData () const |
QString | icon () const |
int | identifier () const |
PointerList & | inPointerList () const |
bool | isVisible () const |
PointerList & | outPointerList () const |
PointerList | pointerList () const |
PointerList | pointerList (DataPtr to) const |
QList< QString > | properties () const |
void | remove (PointerPtr e) |
QScriptValue | scriptValue () const |
qreal | width () const |
qreal | x () const |
qreal | y () const |
Public Member Functions inherited from QObject | |
QObject (QObject *parent) | |
QObject (QObject *parent, const char *name) | |
virtual | ~QObject () |
bool | blockSignals (bool block) |
QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
const QObjectList & | children () const |
const char * | className () const |
bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const QObject *receiver, const char *method) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
void | dumpObjectInfo () |
void | dumpObjectTree () |
QList< QByteArray > | dynamicPropertyNames () const |
virtual bool | event (QEvent *e) |
T | findChild (const QString &name) const |
QList< T > | findChildren (const QRegExp ®Exp) const |
QList< T > | findChildren (const QString &name) const |
bool | inherits (const char *className) const |
void | insertChild (QObject *object) |
void | installEventFilter (QObject *filterObj) |
bool | isA (const char *className) const |
bool | isWidgetType () const |
void | killTimer (int id) |
virtual const QMetaObject * | metaObject () const |
void | moveToThread (QThread *targetThread) |
const char * | name () const |
const char * | name (const char *defaultName) const |
QString | objectName () const |
QObject * | parent () const |
QVariant | property (const char *name) const |
void | removeChild (QObject *object) |
void | removeEventFilter (QObject *obj) |
void | setName (const char *name) |
void | setObjectName (const QString &name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | signalsBlocked () const |
int | startTimer (int interval) |
QThread * | thread () const |
Static Public Member Functions | |
static DataPtr | create (DataStructurePtr parent, int uniqueIdentifier, int dataType) |
Static Public Member Functions inherited from Data | |
static DataPtr | create (DataStructurePtr dataStructure, int uniqueIdentifier, int dataType) |
Static Public Member Functions inherited from QObject | |
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Additional Inherited Members | |
Protected Member Functions inherited from Data | |
Data (DataStructurePtr dataStructure, int uniqueIdentifer, int dataType) | |
bool | eventFilter (QObject *obj, QEvent *event) |
Protected Member Functions inherited from QObject | |
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const char *signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const char *signal) |
int | receivers (const char *signal) const |
QObject * | sender () const |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *event) |
Static Protected Member Functions inherited from Data | |
template<typename T > | |
static DataPtr | create (DataStructurePtr parent, int uniqueIdentifier, int dataType) |
Static Protected Member Functions inherited from QObject | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
Properties inherited from Data | |
QVariant | color |
int | id |
qreal | width |
qreal | x |
qreal | y |
Properties inherited from QObject | |
objectName | |
Detailed Description
Definition at line 24 of file GraphNode.h.
Constructor & Destructor Documentation
GraphNode::GraphNode | ( | DataStructurePtr | parent, |
int | uniqueIdentifier, | ||
int | dataType | ||
) |
Definition at line 31 of file GraphNode.cpp.
|
virtual |
Definition at line 41 of file GraphNode.cpp.
Member Function Documentation
|
slot |
Definition at line 97 of file GraphNode.cpp.
|
slot |
Definition at line 89 of file GraphNode.cpp.
|
slot |
Definition at line 105 of file GraphNode.cpp.
|
static |
Definition at line 26 of file GraphNode.cpp.
QScriptValue GraphNode::edges | ( | ) |
Definition at line 45 of file GraphNode.cpp.
QScriptValue GraphNode::edges | ( | int | type | ) |
Definition at line 50 of file GraphNode.cpp.
QScriptValue GraphNode::edgesTo | ( | Data * | node | ) |
Definition at line 81 of file GraphNode.cpp.
QScriptValue GraphNode::inEdges | ( | ) |
Definition at line 55 of file GraphNode.cpp.
QScriptValue GraphNode::inEdges | ( | int | type | ) |
Definition at line 70 of file GraphNode.cpp.
|
slot |
Definition at line 116 of file GraphNode.cpp.
QScriptValue GraphNode::neighbors | ( | ) |
Definition at line 75 of file GraphNode.cpp.
QScriptValue GraphNode::outEdges | ( | ) |
Definition at line 60 of file GraphNode.cpp.
QScriptValue GraphNode::outEdges | ( | int | type | ) |
Definition at line 65 of file GraphNode.cpp.
|
slot |
Definition at line 124 of file GraphNode.cpp.
|
slot |
Gives array of edges at specified overlay if present.
Otherwise if overlay does not exist returns empty array. Function respects type of graph, i.e., returns either output edges or output plus input edges if graph is directed or undirected, respectively.
- Parameters
-
overlay is identifier for overlay.
Definition at line 132 of file GraphNode.cpp.
|
signal |
|
virtual |
Set script engine.
The engine must be set to access the script value.
Reimplemented from Data.
Definition at line 36 of file GraphNode.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.