TinkeCell API  1.0.0
C/Python/Octave/Ruby API
Functions
Appearance

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:
intaddress of item in model, e.g. obtained from tc_find
doubleintensity 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:
intaddress of connection, e.g. obtained using tc_find
stringfile 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:
intaddress of item, e.g. obtained using tc_find
stringfile name of the new graphics file
TCAPIEXPORT const char* tc_getColor ( long  item)

get the color of the item

Parameters:
intaddress 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:
intaddress of item, e.g. obtained using tc_find
Returns:
double height
TCAPIEXPORT double tc_getWidth ( long  item)

get the width of an item

Parameters:
intaddress 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:
intaddress of item, e.g. obtained using tc_find
doubleangle in degrees
TCAPIEXPORT void tc_setAllStraight ( int  straight)

switch between beziers and lines for drawing ALL connectors

Parameters:
int0 (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:
intaddress of item, e.g. obtained using tc_find
stringHex code for color
int0(temporary) or 1 (permenent color change)
TCAPIEXPORT void tc_setSize ( long  item,
double  width,
double  height 
)

Change the size of an item.

Parameters:
intaddress of item, e.g. obtained using tc_find
doublewidth
doubleheight
TCAPIEXPORT void tc_setStraight ( long  item,
int  straight 
)

switch between beziers and lines for drawing the connector, where 1 = line, 0 = bezier

Parameters:
intaddress of a connection, e.g. obtained using tc_find
int0 (Bezier) or 1 (straight lines)
 All Data Structures