get/set position, color, size, etc
More...
Functions |
TCAPIEXPORT const char * | tc_getColor (long item) |
| get the color of the item
|
TCAPIEXPORT void | tc_setColor (long item, const char *name, int permanent) |
| set the rgb color of the item and indicate whether or not the color is permanenet
|
TCAPIEXPORT void | tc_changeNodeImage (long item, const char *filename) |
| change the graphics file for drawing one of the nodes
|
TCAPIEXPORT void | tc_changeArrowHead (long connection, const char *filename) |
| change the graphics file for drawing the arrowheads for the given connection
|
TCAPIEXPORT void | tc_setSize (long item, double width, double height) |
| Change the size of an item.
|
TCAPIEXPORT double | tc_getWidth (long item) |
| get the width of an item
|
TCAPIEXPORT double | tc_getHeight (long item) |
| get the width of an item
|
TCAPIEXPORT void | tc_rotate (long item, double t) |
| rotate and item by the given number of degrees
|
TCAPIEXPORT void | tc_setStraight (long item, int straight) |
| switch between beziers and lines for drawing the connector, where 1 = line, 0 = bezier
|
TCAPIEXPORT void | tc_setAllStraight (int straight) |
| switch between beziers and lines for drawing ALL connectors
|
TCAPIEXPORT void | tc_burn (long item, double intensity) |
| shows a fire icon next to the item
|
Detailed Description
get/set position, color, size, etc
Function Documentation
TCAPIEXPORT void tc_burn |
( |
long |
item, |
|
|
double |
intensity |
|
) |
| |
shows a fire icon next to the item
- Parameters:
-
int | address of item in model, e.g. obtained from tc_find |
double | intensity of the fire (0-1) |
TCAPIEXPORT void tc_changeArrowHead |
( |
long |
connection, |
|
|
const char * |
filename |
|
) |
| |
change the graphics file for drawing the arrowheads for the given connection
- Parameters:
-
int | address of connection, e.g. obtained using tc_find |
string | file name of the new graphics file |
TCAPIEXPORT void tc_changeNodeImage |
( |
long |
item, |
|
|
const char * |
filename |
|
) |
| |
change the graphics file for drawing one of the nodes
- Parameters:
-
int | address of item, e.g. obtained using tc_find |
string | file name of the new graphics file |
TCAPIEXPORT const char* tc_getColor |
( |
long |
item | ) |
|
get the color of the item
- Parameters:
-
int | address of item, e.g. obtained using tc_find |
- Returns:
- string Hex code for color
TCAPIEXPORT double tc_getHeight |
( |
long |
item | ) |
|
get the width of an item
- Parameters:
-
int | address of item, e.g. obtained using tc_find |
- Returns:
- double height
TCAPIEXPORT double tc_getWidth |
( |
long |
item | ) |
|
get the width of an item
- Parameters:
-
int | address of item, e.g. obtained using tc_find |
- Returns:
- double width
TCAPIEXPORT void tc_rotate |
( |
long |
item, |
|
|
double |
t |
|
) |
| |
rotate and item by the given number of degrees
- Parameters:
-
int | address of item, e.g. obtained using tc_find |
double | angle in degrees |
TCAPIEXPORT void tc_setAllStraight |
( |
int |
straight | ) |
|
switch between beziers and lines for drawing ALL connectors
- Parameters:
-
int | 0 (Bezier) or 1 (straight lines) |
TCAPIEXPORT void tc_setColor |
( |
long |
item, |
|
|
const char * |
name, |
|
|
int |
permanent |
|
) |
| |
set the rgb color of the item and indicate whether or not the color is permanenet
- Parameters:
-
int | address of item, e.g. obtained using tc_find |
string | Hex code for color |
int | 0(temporary) or 1 (permenent color change) |
TCAPIEXPORT void tc_setSize |
( |
long |
item, |
|
|
double |
width, |
|
|
double |
height |
|
) |
| |
Change the size of an item.
- Parameters:
-
int | address of item, e.g. obtained using tc_find |
double | width |
double | height |
TCAPIEXPORT void tc_setStraight |
( |
long |
item, |
|
|
int |
straight |
|
) |
| |
switch between beziers and lines for drawing the connector, where 1 = line, 0 = bezier
- Parameters:
-
int | address of a connection, e.g. obtained using tc_find |
int | 0 (Bezier) or 1 (straight lines) |