rocs/RocsCore
#include <Data.h>
Definition at line 40 of file Data.h.
Default destructor.
DO NOT CALL IT, let the shared pointer take care for deletion.
Definition at line 138 of file Data.cpp.
| Data::Data |
( |
DataStructurePtr |
dataStructure, |
|
|
int |
uniqueIdentifer, |
|
|
int |
dataType |
|
) |
| |
|
protected |
Protected constructor.
Definition at line 132 of file Data.cpp.
| void Data::add_property |
( |
const QString & |
name, |
|
|
const QString & |
value |
|
) |
| |
|
slot |
| void Data::addDynamicProperty |
( |
const QString & |
property, |
|
|
const QVariant & |
value |
|
) |
| |
|
slot |
Add new dynamic property with identifier property to this data element and sets it to value.
- Parameters
-
| property | is the identifier for the new property |
| value | is the value of this new property |
Definition at line 434 of file Data.cpp.
Register an created pointer to this data element.
By the pointer direction it is decided whether it is an out-/in-pointer. Calling this method more than once with the same pointer is safe (the pointer is added still only once.)
- Parameters
-
| pointer | is pointer to be added |
Definition at line 231 of file Data.cpp.
| QScriptValue Data::adj_data |
( |
| ) |
|
|
slot |
| QScriptValue Data::adj_pointers |
( |
| ) |
|
|
slot |
| QScriptValue Data::adj_pointers |
( |
int |
pointerType | ) |
|
|
slot |
| DataList Data::adjacentDataList |
( |
| ) |
const |
- Returns
- list of adjacent data elements
Definition at line 197 of file Data.cpp.
| QVariant Data::color |
( |
| ) |
const |
- Returns
- color of data element
| void Data::colorChanged |
( |
const QColor & |
c | ) |
|
|
signal |
| QScriptValue Data::connected_pointers |
( |
Data * |
n | ) |
|
|
slot |
Create data element objects.
- Parameters
-
| dataStructure | is data structure to that the new data element belongs |
| uniqueIdentifier | is unique identifier of the data element, it must be unique within the document |
| dataType | is the type of the created data element, it must be existing and registered |
- Returns
- the created data element
Definition at line 92 of file Data.cpp.
Factory method to create a data element of type T.
Definition at line 264 of file Data.h.
Create new pointer to to.
By using this method, the pointer gets registered at both of its end-points. Use this method to create new pointers.
- Parameters
-
| to | is the target of the new pointer |
- Returns
- the created pointer
Definition at line 257 of file Data.cpp.
- Returns
- data structure to that this data element belongs
Definition at line 150 of file Data.cpp.
| int Data::dataType |
( |
| ) |
const |
- Returns
- data type of this data element
Definition at line 387 of file Data.cpp.
| void Data::dataTypeChanged |
( |
int |
dataType | ) |
|
|
signal |
| QScriptEngine * Data::engine |
( |
| ) |
const |
- Returns
- script engine
Definition at line 482 of file Data.cpp.
| bool Data::eventFilter |
( |
QObject * |
obj, |
|
|
QEvent * |
event |
|
) |
| |
|
protected |
- Returns
- shared pointer to this data element
Definition at line 125 of file Data.cpp.
| QString Data::icon |
( |
| ) |
const |
- Returns
- icon of data element
Definition at line 362 of file Data.cpp.
| int Data::identifier |
( |
| ) |
const |
- Returns
- unique identifier of this data element
Definition at line 382 of file Data.cpp.
- Returns
- list of in-pointers of this data element
Definition at line 372 of file Data.cpp.
| QScriptValue Data::input_pointers |
( |
| ) |
|
|
slot |
| QScriptValue Data::input_pointers |
( |
int |
pointerType | ) |
|
|
slot |
| bool Data::isVisible |
( |
| ) |
const |
- Returns
- true if data element is visible, otherwise false
Definition at line 155 of file Data.cpp.
- Returns
- list of out-pointers of this data element
Definition at line 377 of file Data.cpp.
| QScriptValue Data::output_pointers |
( |
| ) |
|
|
slot |
| QScriptValue Data::output_pointers |
( |
int |
pointerType | ) |
|
|
slot |
- Returns
- list of all pointers connected to this data element (in and out pointers)
Definition at line 218 of file Data.cpp.
- Returns
- all pointers that connect this data element with
to
Definition at line 308 of file Data.cpp.
| void Data::pointerListChanged |
( |
| ) |
|
|
signal |
| void Data::posChanged |
( |
const QPointF & |
p | ) |
|
|
signal |
| QList< QString > Data::properties |
( |
| ) |
const |
| void Data::propertyAdded |
( |
const QString & |
name | ) |
|
|
signal |
| void Data::propertyChanged |
( |
const QString & |
name | ) |
|
|
signal |
| void Data::propertyRemoved |
( |
const QString & |
name | ) |
|
|
signal |
Remove pointer from pointer list.
- Parameters
-
| e | is pointer to be removed |
Definition at line 262 of file Data.cpp.
| void Data::remove_property |
( |
const QString & |
name | ) |
|
|
slot |
| void Data::removeDynamicProperty |
( |
const QString & |
property | ) |
|
|
slot |
Remove dynamic property with identifier property from data element.
- Parameters
-
| property | is identifier of the property |
Definition at line 444 of file Data.cpp.
| void Data::renameDynamicProperty |
( |
const QString & |
oldName, |
|
|
const QString & |
newName |
|
) |
| |
|
slot |
| QScriptValue Data::scriptValue |
( |
| ) |
const |
- Returns
- script value representation of this data element
Definition at line 471 of file Data.cpp.
| void Data::self_remove |
( |
| ) |
|
|
slot |
| QScriptValue Data::set_type |
( |
int |
type | ) |
|
|
slot |
| void Data::setColor |
( |
const QVariant & |
s | ) |
|
|
slot |
| void Data::setDataType |
( |
int |
dataType | ) |
|
|
slot |
| void Data::setEngine |
( |
QScriptEngine * |
_engine | ) |
|
|
virtual |
Set script engine.
The engine must be set to access the script value.
Reimplemented in GraphNode.
Definition at line 476 of file Data.cpp.
| void Data::setPos |
( |
qreal |
x, |
|
|
qreal |
y |
|
) |
| |
|
slot |
| void Data::setVisible |
( |
bool |
visible | ) |
|
|
slot |
| void Data::setWidth |
( |
double |
w | ) |
|
|
slot |
| QScriptValue Data::type |
( |
| ) |
|
|
slot |
| void Data::updateDynamicProperty |
( |
const QString & |
property | ) |
|
|
slot |
| void Data::updatePointerList |
( |
| ) |
|
|
slot |
FIXME proof of concept implementation: since each Pointer emits a changed direction signal, there are unnecessary many updates.
Update pointer e in inPointerList and outPointerList, depending on how the direction changed This method is a condidate for optimizations, but it happens only seldom.
Definition at line 277 of file Data.cpp.
| void Data::useColorChanged |
( |
bool |
b | ) |
|
|
signal |
| void Data::visibilityChanged |
( |
bool |
visible | ) |
|
|
signal |
| qreal Data::width |
( |
| ) |
const |
| void Data::widthChanged |
( |
double |
w | ) |
|
|
signal |
- Returns
- x-position of data element
- Returns
- y-position of data element
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:26 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.