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 *
get all text Modeling with the given name for the given items
- Parameters:
-
tc_items | a list of items |
tc_strings | a 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:
-
- 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:
-
int | item in the model, e.g. something returned from tc_find |
string | name 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:
-
double | x |
double | y |
const | char * |
TCAPIEXPORT int tc_isA |
( |
long |
item, |
|
|
const char * |
family |
|
) |
| |
check is an item belongs in a family (or in a sub-family)
- Parameters:
-
int | address of the item |
string | name 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:
-
TCAPIEXPORT void tc_setTextAttribute |
( |
long |
item, |
|
|
const char * |
attribute, |
|
|
const char * |
value |
|
) |
| |
set text attribute for the given item
- Parameters:
-
int | item in model |
string | name of text attribute |
TCAPIEXPORT void tc_setTextAttributeByName |
( |
const char * |
attribute, |
|
|
const char * |
value |
|
) |
| |
set text attribute
- Parameters:
-
string | full name of text attribute, e.g. A.sequence or A_sequence |
string | value |
TCAPIEXPORT void tc_setTextAttributes |
( |
tc_table |
| ) |
|
set text attributes for multiple items
- Parameters:
-
tc_table | table with rownames as the attribute full names |