![]() |
TinkerCell Core 1.0
TinkerCell's Core library providing all basic functionalities
|
Helper classes and functions that are used by the core classes. More...
Classes | |
class | Tinkercell::HistoryWindow |
This is a small class extending QUndoView that manages a stack of undo commands. More... | |
class | Tinkercell::ItemData |
This class is used to store information about nodes or connections. It contains a hashtable of data tables, which is used by different tools to store specific data. The versions queue can be used to keep previous versions of the data. More... | |
Functions | |
QPointF | Tinkercell::pointOnEdge (const QRectF &rect0, const QPointF &p1, qreal dist, bool straight) |
gets the point on the edge of the rect such that it is in the same line as the center of the rect and the point (arg) | |
QPointF | Tinkercell::pointOnEdge (const NodeGraphicsItem &node, const QPointF &pt, qreal dist, bool straight) |
gets the point on the edge of the shape such that it is in the same line as the center of the rect and the point (arg) | |
tc_matrix | Tinkercell::emptyMatrix () |
construct a tc_matrix with 0 rows and columns | |
ItemHandle * | Tinkercell::ConvertValue (long) |
convert void* to ItemHandle pointer | |
long | Tinkercell::ConvertValue (ItemHandle *) |
convert ItemHandle pointer to void * | |
QList< ItemHandle * > * | Tinkercell::ConvertValue (tc_items) |
convert tc_items to QList of ItemHandle pointers | |
tc_items | Tinkercell::ConvertValue (const QList< ItemHandle * > &) |
convert QList of ItemHandle pointers to tc_items | |
QString | Tinkercell::ConvertValue (const char *) |
convert char* to QString | |
const char * | Tinkercell::ConvertValue (const QString &) |
convert QString to null-terminated char* | |
DataTable< QString > * | Tinkercell::ConvertValue (tc_table) |
convert tc_table to DataTable of QString | |
tc_table | Tinkercell::ConvertValue (const DataTable< QString > &) |
convert DataTable of QStrings to tc_table | |
DataTable< qreal > * | Tinkercell::ConvertValue (tc_matrix) |
convert matrix to datatable<double> (see DataTable.h and TC_structs.h) | |
tc_matrix | Tinkercell::ConvertValue (const DataTable< qreal > &) |
convert Datatable<double> to tc_matrix (see DataTable.h and TC_structs.h) | |
QStringList | Tinkercell::ConvertValue (tc_strings) |
convert tc_strings to QStringList | |
tc_strings | Tinkercell::ConvertValue (const QStringList &) |
convert QStringList to tc_strings | |
QString | Tinkercell::RemoveDisallowedCharactersFromName (const QString &) |
This function replaces disallowed characters in a name string. |
Helper classes and functions that are used by the core classes.
TINKERCELLCOREEXPORT ItemHandle * Tinkercell::ConvertValue | ( | long | ) |
convert void* to ItemHandle pointer
Definition at line 38 of file ConvertValue.cpp.
TINKERCELLCOREEXPORT long Tinkercell::ConvertValue | ( | ItemHandle * | ) |
TINKERCELLCOREEXPORT tc_strings Tinkercell::ConvertValue | ( | const QStringList & | ) |
convert QStringList to tc_strings
Definition at line 228 of file ConvertValue.cpp.
TINKERCELLCOREEXPORT QStringList Tinkercell::ConvertValue | ( | tc_strings | ) |
convert tc_strings to QStringList
Definition at line 220 of file ConvertValue.cpp.
TINKERCELLCOREEXPORT tc_matrix Tinkercell::ConvertValue | ( | const DataTable< qreal > & | ) |
convert Datatable<double> to tc_matrix (see DataTable.h and TC_structs.h)
Definition at line 117 of file ConvertValue.cpp.
TINKERCELLCOREEXPORT QString Tinkercell::ConvertValue | ( | const char * | ) |
TINKERCELLCOREEXPORT tc_table Tinkercell::ConvertValue | ( | const DataTable< QString > & | ) |
convert DataTable of QStrings to tc_table
Definition at line 179 of file ConvertValue.cpp.
TINKERCELLCOREEXPORT const char * Tinkercell::ConvertValue | ( | const QString & | ) |
convert QString to null-terminated char*
Definition at line 88 of file ConvertValue.cpp.
TINKERCELLCOREEXPORT DataTable< QString > * Tinkercell::ConvertValue | ( | tc_table | ) |
convert tc_table to DataTable of QString
Definition at line 158 of file ConvertValue.cpp.
TINKERCELLCOREEXPORT QList< ItemHandle * > * Tinkercell::ConvertValue | ( | tc_items | ) |
convert tc_items to QList of ItemHandle pointers
Definition at line 52 of file ConvertValue.cpp.
TINKERCELLCOREEXPORT tc_items Tinkercell::ConvertValue | ( | const QList< ItemHandle * > & | ) |
convert QList of ItemHandle pointers to tc_items
Definition at line 65 of file ConvertValue.cpp.
TINKERCELLCOREEXPORT DataTable< qreal > * Tinkercell::ConvertValue | ( | tc_matrix | ) |
convert matrix to datatable<double> (see DataTable.h and TC_structs.h)
Definition at line 96 of file ConvertValue.cpp.
TINKERCELLCOREEXPORT tc_matrix Tinkercell::emptyMatrix | ( | ) |
construct a tc_matrix with 0 rows and columns
Definition at line 25 of file ConvertValue.cpp.
TINKERCELLCOREEXPORT QPointF Tinkercell::pointOnEdge | ( | const QRectF & | rect0, |
const QPointF & | p1, | ||
qreal | dist, | ||
bool | straight | ||
) |
gets the point on the edge of the rect such that it is in the same line as the center of the rect and the point (arg)
rectangle | |
point | outside rectangle |
QRectF | rectangle |
QPointF | point outside rectangle |
Definition at line 1815 of file ConnectionGraphicsItem.cpp.
TINKERCELLCOREEXPORT QPointF Tinkercell::pointOnEdge | ( | const NodeGraphicsItem & | node, |
const QPointF & | pt, | ||
qreal | dist, | ||
bool | straight | ||
) |
gets the point on the edge of the shape such that it is in the same line as the center of the rect and the point (arg)
gets the point on the edge of the shape such that it is in the same line as the center of the shape's bounding rect and the point (arg)
shape | |
point | outside rectangle |
QPainterPath | the shape |
QPointF | point outside shape |
Definition at line 1876 of file ConnectionGraphicsItem.cpp.
TINKERCELLCOREEXPORT QString Tinkercell::RemoveDisallowedCharactersFromName | ( | const QString & | ) |
This function replaces disallowed characters in a name string.
QString | original string |
Definition at line 29 of file ItemHandle.cpp.