TinkerCell Core 1.0
TinkerCell's Core library providing all basic functionalities
Classes | Functions
Helper functions and classes

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.

Detailed Description

Helper classes and functions that are used by the core classes.


Function Documentation

TINKERCELLCOREEXPORT ItemHandle * Tinkercell::ConvertValue ( long  )

convert void* to ItemHandle pointer

Returns:
ItemHandle*

Definition at line 38 of file ConvertValue.cpp.

Here is the call graph for this function:

TINKERCELLCOREEXPORT long Tinkercell::ConvertValue ( ItemHandle *  )

convert ItemHandle pointer to void *

Returns:
void*

Definition at line 46 of file ConvertValue.cpp.

TINKERCELLCOREEXPORT tc_strings Tinkercell::ConvertValue ( const QStringList &  )

convert QStringList to tc_strings

Returns:
tc_strings

Definition at line 228 of file ConvertValue.cpp.

Here is the call graph for this function:

TINKERCELLCOREEXPORT QStringList Tinkercell::ConvertValue ( tc_strings  )

convert tc_strings to QStringList

Returns:
QStringList

Definition at line 220 of file ConvertValue.cpp.

Here is the call graph for this function:

TINKERCELLCOREEXPORT tc_matrix Tinkercell::ConvertValue ( const DataTable< qreal > &  )

convert Datatable<double> to tc_matrix (see DataTable.h and TC_structs.h)

Returns:
tc_matrix

Definition at line 117 of file ConvertValue.cpp.

Here is the call graph for this function:

TINKERCELLCOREEXPORT QString Tinkercell::ConvertValue ( const char *  )

convert char* to QString

Returns:
QString

Definition at line 83 of file ConvertValue.cpp.

TINKERCELLCOREEXPORT tc_table Tinkercell::ConvertValue ( const DataTable< QString > &  )

convert DataTable of QStrings to tc_table

Returns:
tc_table

Definition at line 179 of file ConvertValue.cpp.

Here is the call graph for this function:

TINKERCELLCOREEXPORT const char * Tinkercell::ConvertValue ( const QString &  )

convert QString to null-terminated char*

Returns:
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

Returns:
QStringList

Definition at line 158 of file ConvertValue.cpp.

Here is the call graph for this function:

TINKERCELLCOREEXPORT QList< ItemHandle * > * Tinkercell::ConvertValue ( tc_items  )

convert tc_items to QList of ItemHandle pointers

Returns:
QList<ItemHandle*>

Definition at line 52 of file ConvertValue.cpp.

Here is the call graph for this function:

TINKERCELLCOREEXPORT tc_items Tinkercell::ConvertValue ( const QList< ItemHandle * > &  )

convert QList of ItemHandle pointers to tc_items

Returns:
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)

Returns:
DataTable of qreals

Definition at line 96 of file ConvertValue.cpp.

Here is the call graph for this function:

TINKERCELLCOREEXPORT tc_matrix Tinkercell::emptyMatrix ( )

construct a tc_matrix with 0 rows and columns

Returns:
tc_matrix

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)

Parameters:
rectangle
pointoutside rectangle
Returns:
the point on the edge of the rectangle
Parameters:
QRectFrectangle
QPointFpoint outside rectangle
Returns:
QPointF the point on the edge of the rectangle

Definition at line 1815 of file ConnectionGraphicsItem.cpp.

Here is the caller graph for this function:

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)

Parameters:
shape
pointoutside rectangle
Returns:
the point on the edge of the shape
Parameters:
QPainterPaththe shape
QPointFpoint outside shape
Returns:
QPointF the point on the edge of the shape

Definition at line 1876 of file ConnectionGraphicsItem.cpp.

Here is the call graph for this function:

TINKERCELLCOREEXPORT QString Tinkercell::RemoveDisallowedCharactersFromName ( const QString &  )

This function replaces disallowed characters in a name string.

Parameters:
QStringoriginal string

Definition at line 29 of file ItemHandle.cpp.

Here is the caller graph for this function:

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines