rocs/RocsCore
DataStructure.cpp
Go to the documentation of this file.
397 if (d->_readOnly) { // If the data structure is in read only mode, no new stuff should be added.
400 if (!from || !to) { // If one of the two required data elements is 0, then do not add a pointer.
404 if (from->dataStructure() != to->dataStructure()) { // the user is trying to connect data elements from different graphs.
470 GroupPtr group = Group::create(getDataStructure(), generateUniqueIdentifier(), document()->groupType());
virtual void setPluginProperty(const QString &, const QString &)
Set plugin specific properties of data structure.
Definition: DataStructure.cpp:585
void pointerCreated(PointerPtr e)
void updatePointer(PointerPtr pointer)
Updates registration of pointer in internal reference list.
Definition: DataStructure.cpp:256
void dataCreated(DataPtr n)
iterator insert(const Key &key, const T &value)
PointerList pointerListAll() const
Gives list all pointers of all existing types.
Definition: DataStructure.cpp:179
const PointerList pointers(int pointerType) const
Gives list of pointers of specified type if type exists.
Definition: DataStructure.cpp:169
const T & at(int i) const
const DataList dataList(int dataType) const
Gives list of data elements of specified type if type exists.
Definition: DataStructure.cpp:149
virtual DataStructurePtr getDataStructure() const
Definition: DataStructure.cpp:103
virtual void importStructure(DataStructurePtr other)
overwrites the current DataStructure with all values (Data and Pointer) from the given datastructure ...
Definition: DataStructure.cpp:116
static DataStructurePtr create(Document *parent=0)
Definition: DataStructure.cpp:68
void renameDynamicProperty(const QString &oldName, const QString &newName)
Definition: DataStructure.cpp:495
void changed()
static GroupPtr create(DataStructurePtr dataStructure, int uniqueIdentifier, int groupType)
Definition: Group.cpp:40
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
DataList dataListAll() const
Gives list of all data elements of all existing types.
Definition: DataStructure.cpp:159
int size() const
void dataPositionChanged(const QPointF)
void remove_property(const QString &name)
remove the string named name from this data structure.
Definition: DataStructure.cpp:510
virtual QMap< QString, QString > pluginProperties() const
Gives a map with plugin specific properties of the data structure.
Definition: DataStructure.cpp:546
virtual void setEngine(QScriptEngine *engine)
Definition: DataStructure.cpp:515
qreal x() const
qreal y() const
void append(const T &value)
QVariant property(const char *name) const
void add_property(const QString &name, const QVariant &value)
add the property named name to this Data structure.
Definition: DataStructure.cpp:505
virtual DataList addDataList(DataList dataList)
Definition: DataStructure.cpp:348
virtual GroupPtr addGroup(const QString &name)
Definition: DataStructure.cpp:468
void updateData(DataPtr data)
Updates registration of data in internal reference list.
Definition: DataStructure.cpp:247
T & first()
virtual DataPtr createData(const QString &name, int dataType)
Definition: DataStructure.cpp:300
const T value(const Key &key) const
static PointerPtr create(DataStructurePtr dataStructure, DataPtr from, DataPtr to, int pointerType)
Create pointer objects.
Definition: Pointer.cpp:53
virtual PointerPtr createPointer(DataPtr from, DataPtr to, int pointerType)
Creates new pointer from data element "from" to data element "to" of given type "pointerType".
Definition: DataStructure.cpp:393
Definition: Document.h:41
int generateUniqueIdentifier()
Definition: DataStructure.cpp:295
virtual void cleanUpBeforeConvert()
clear data that only is useful for a type of data structure and that cannot be converted to others ...
Definition: DataStructure.cpp:580
void remove()
if this datastructure shall be deleted, call ONLY this function
Definition: DataStructure.cpp:271
QByteArray toLatin1() const
void removeDynamicProperty(const QString &property)
Definition: DataStructure.cpp:490
bool setProperty(const char *name, const QVariant &value)
const_iterator constEnd() const
const_iterator constBegin() const
static bool isValidIdentifier(const QString &identifier)
Evaluates given string and returns true if identifier is valid, otherwise returns false...
Definition: Document.cpp:232
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void nameChanged(const QString &name)
QObject * parent() const
DataPtr getData(int uniqueIdentifier)
Access data element by its unique identifier.
Definition: DataStructure.cpp:411
QByteArray toAscii() const
QString name() const
static DataPtr create(DataStructurePtr dataStructure, int uniqueIdentifier, int dataType)
Create data element objects.
Definition: Data.cpp:92
void addDynamicProperty(const QString &property, const QVariant &value=QVariant(0))
Definition: DataStructure.cpp:481
This file is part of the KDE documentation.
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
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.