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

get annotation information about items More...

Functions

TCAPIEXPORT void tc_setSequence (long o, const char *)
 Align the given DNA parts in the order given.
TCAPIEXPORT const char * tc_getTextAttribute (long item, const char *attribute)
 get the text attribute with the given name for the given item
TCAPIEXPORT tc_strings tc_getAllTextNamed (tc_items a, tc_strings attributes)
 get all text Modeling with the given name for the given items
TCAPIEXPORT void tc_setTextAttribute (long item, const char *attribute, const char *value)
 set text attribute for the given item
TCAPIEXPORT void tc_setTextAttributeByName (const char *attribute, const char *value)
 set text attribute
TCAPIEXPORT void tc_setTextAttributes (tc_table)
 set text attributes for multiple items
TCAPIEXPORT const char * tc_getFamily (long item)
 get the family name of an item
TCAPIEXPORT int tc_isA (long item, const char *family)
 check is an item belongs in a family (or in a sub-family)
TCAPIEXPORT const char * tc_annotations ()
 get text displayed on the canvas
TCAPIEXPORT void tc_insertAnnotations (const char *, double, double)
 show text displayed on the canvas at the given position

Detailed Description

get annotation information about items


Function Documentation

TCAPIEXPORT const char* tc_annotations ( )

get text displayed on the canvas

Returns:
const char *
TCAPIEXPORT tc_strings tc_getAllTextNamed ( tc_items  a,
tc_strings  attributes 
)

get all text Modeling with the given name for the given items

Parameters:
tc_itemsa list of items
tc_stringsa list of text attribute name that exists in each of the given items
Returns:
tc_strings the set of all text attribute values, one for each item in the input
TCAPIEXPORT const char* tc_getFamily ( long  item)

get the family name of an item

Parameters:
intaddress of the item
Returns:
string type of the item
TCAPIEXPORT const char* tc_getTextAttribute ( long  item,
const char *  attribute 
)

get the text attribute with the given name for the given item

Parameters:
intitem in the model, e.g. something returned from tc_find
stringname of the attribute
Returns:
string attribute
TCAPIEXPORT void tc_insertAnnotations ( const char *  ,
double  ,
double   
)

show text displayed on the canvas at the given position

Parameters:
doublex
doubley
constchar *
TCAPIEXPORT int tc_isA ( long  item,
const char *  family 
)

check is an item belongs in a family (or in a sub-family)

Parameters:
intaddress of the item
stringname of the family type
Returns:
int 0(no) or 1(yes)
TCAPIEXPORT void tc_setSequence ( long  o,
const char *   
)

Align the given DNA parts in the order given.

Parameters:
tc_itemsa list of items
TCAPIEXPORT void tc_setTextAttribute ( long  item,
const char *  attribute,
const char *  value 
)

set text attribute for the given item

Parameters:
intitem in model
stringname of text attribute
TCAPIEXPORT void tc_setTextAttributeByName ( const char *  attribute,
const char *  value 
)

set text attribute

Parameters:
stringfull name of text attribute, e.g. A.sequence or A_sequence
stringvalue
TCAPIEXPORT void tc_setTextAttributes ( tc_table  )

set text attributes for multiple items

Parameters:
tc_tabletable with rownames as the attribute full names
 All Data Structures