MOAB: Mesh Oriented datABase
(version 5.5.0)
|
Functions | |
void | iMesh_createTag (iMesh_Instance instance, const char *tag_name, const int tag_size, const int tag_type, iBase_TagHandle *tag_handle, int *err, const int tag_name_len) |
Create a tag with specified name, size, and type. More... | |
void | iMesh_destroyTag (iMesh_Instance instance, iBase_TagHandle tag_handle, const int forced, int *err) |
Destroy a tag. More... | |
void | iMesh_getTagName (iMesh_Instance instance, const iBase_TagHandle tag_handle, char *name, int *err, int name_len) |
Get the name for a given tag handle. More... | |
void | iMesh_getTagSizeValues (iMesh_Instance instance, const iBase_TagHandle tag_handle, int *tag_size, int *err) |
Get size of a tag in units of numbers of tag data type. More... | |
void | iMesh_getTagSizeBytes (iMesh_Instance instance, const iBase_TagHandle tag_handle, int *tag_size, int *err) |
Get size of a tag in units of bytes. More... | |
void | iMesh_getTagHandle (iMesh_Instance instance, const char *tag_name, iBase_TagHandle *tag_handle, int *err, int tag_name_len) |
Get a the handle of an existing tag with the specified name. More... | |
void | iMesh_getTagType (iMesh_Instance instance, const iBase_TagHandle tag_handle, int *tag_type, int *err) |
Get the data type of the specified tag handle. More... | |
void | iMesh_getAllEntSetTags (iMesh_Instance instance, const iBase_EntitySetHandle entity_set_handle, iBase_TagHandle **tag_handles, int *tag_handles_allocated, int *tag_handles_size, int *err) |
Get all the tags associated with a specified entity set. More... | |
void | iMesh_rmvEntSetTag (iMesh_Instance instance, iBase_EntitySetHandle entity_set_handle, const iBase_TagHandle tag_handle, int *err) |
Remove a tag value from an entity set. More... | |
void | iMesh_rmvArrTag (iMesh_Instance instance, const iBase_EntityHandle *entity_handles, const int entity_handles_size, const iBase_TagHandle tag_handle, int *err) |
Remove a tag value from an array of entities. More... | |
void | iMesh_getAllTags (iMesh_Instance instance, const iBase_EntityHandle entity_handle, iBase_TagHandle **tag_handles, int *tag_handles_allocated, int *tag_handles_size, int *err) |
Get all the tags associated with a specified entity handle. More... | |
void | iMesh_rmvTag (iMesh_Instance instance, iBase_EntityHandle entity_handle, const iBase_TagHandle tag_handle, int *err) |
Remove a tag value from an entity. More... | |
void | iMesh_getAllIfaceTags (iMesh_Instance instance, iBase_TagHandle **tag_handles, int *tag_handles_allocated, int *tag_handles_size, int *err) |
Get all the tags associated with the entire interface. More... | |
void | iMesh_createTagWithOptions (iMesh_Instance instance, const char *tag_name, const char *tmp_tag_options, const int tag_size, const int tag_type, iBase_TagHandle *tag_handle, int *err, const int tag_name_len, const int tag_options_len) |
Create a tag with options. More... | |
void iMesh_createTag | ( | iMesh_Instance | instance, |
const char * | tag_name, | ||
const int | tag_size, | ||
const int | tag_type, | ||
iBase_TagHandle * | tag_handle, | ||
int * | err, | ||
const int | tag_name_len | ||
) |
Create a tag with specified name, size, and type.
Create a tag with specified name, size, and type. Tag size is in units of size of tag_type data types. Value input for tag type must be value in iBase_TagType enumeration.
[in] | instance | iMesh instance handle |
[in] | tag_name | Character string indicating tag name |
[in] | tag_size | Size of each tag value, in units of number of tag_type datums. |
[in] | tag_type | Data type for data stored in this tag |
[out] | tag_handle | Pointer to tag handle returned from function |
[out] | err | Returned Error status (see iBase_ErrorType) |
[in] | tag_name_len | Length of tag name string (String Length Arguments) |
Definition at line 1483 of file iMesh_MOAB.cpp.
References iMesh_createTagWithOptions().
void iMesh_createTagWithOptions | ( | iMesh_Instance | instance, |
const char * | tag_name, | ||
const char * | tmp_tag_options, | ||
const int | tag_size, | ||
const int | tag_type, | ||
iBase_TagHandle * | tag_handle, | ||
int * | err, | ||
const int | tag_name_len, | ||
const int | tag_options_len | ||
) |
Create a tag with options.
Create a tag with options; allows creation of Dense and Bit tags through iMesh Allowable options are: TAG_STORAGE_TYPE={DENSE | SPARSE | BIT | MESH} TAG_DEFAULT_VALUE=
(data type of value should match tag data type) [in] length of options string
[in] | instance | iMesh instance handle |
[in] | tag_name | tag name |
[in] | tmp_tag_options | options string |
[in] | tag_size | tag size, in number of values |
[in] | tag_type | tag data type (int, double, etc.) |
[out] | tag_handle | handle of new tag |
[out] | err | error |
[in] | tag_name_len | length of tag name string |
Definition at line 3042 of file iMesh_MOAB.cpp.
References CHKENUM, eatwhitespace(), ERROR, ErrorCode, filter_options(), moab::FileOptions::get_int_option(), moab::FileOptions::get_option(), moab::FileOptions::get_real_option(), iBase_BYTES, iBase_DOUBLE, iBase_ENTITY_HANDLE, iBase_ENTITY_SET_HANDLE, iBase_INTEGER, iBase_INVALID_ARGUMENT, iBase_SUCCESS, moab::FileOptions::match_option(), MB_ALREADY_ALLOCATED, mb_data_type_table, MB_SUCCESS, MB_TAG_BIT, MB_TAG_DENSE, MB_TAG_EXCL, MB_TAG_MESH, MB_TAG_SPARSE, MBIMESHI, MOABI, RETURN, and TagType.
Referenced by iMesh_createTag().
void iMesh_destroyTag | ( | iMesh_Instance | instance, |
iBase_TagHandle | tag_handle, | ||
const int | forced, | ||
int * | err | ||
) |
Destroy a tag.
Destroy a tag. If forced is non-zero and entities still have values set for this tag, tag is deleted anyway and those values disappear, otherwise tag is not deleted.
[in] | instance | iMesh instance handle |
[in] | tag_handle | Handle of tag to be deleted |
[in] | forced | If non-zero, delete the tag even if entities have values set for the tag. |
[out] | err | Returned Error status (see iBase_ErrorType) |
Definition at line 1494 of file iMesh_MOAB.cpp.
References CHKERR, moab::Range::empty(), ERROR, ErrorCode, iBase_ERROR_MAP, iBase_TAG_IN_USE, MB_SUCCESS, MB_TAG_NOT_FOUND, MBIMESHI, MBMAXTYPE, MBVERTEX, MOABI, RETURN, and TAG_HANDLE.
void iMesh_getAllEntSetTags | ( | iMesh_Instance | instance, |
const iBase_EntitySetHandle | entity_set_handle, | ||
iBase_TagHandle ** | tag_handles, | ||
int * | tag_handles_allocated, | ||
int * | tag_handles_size, | ||
int * | err | ||
) |
Get all the tags associated with a specified entity set.
Get all the tags associated with a specified entity set
[in] | instance | iMesh instance handle |
[in] | entity_set_handle | Entity being queried |
[in,out] | tag_handles | Pointer to array of tag_handles returned from Array pointer, allocated and occupied sizes argument trio) |
[in,out] | tag_handles_allocated | Pointer to allocated size of tag_handles |
[out] | tag_handles_size | Pointer to occupied size of tag_handles array |
[out] | err | Returned Error status (see iBase_ErrorType) |
Definition at line 1765 of file iMesh_MOAB.cpp.
References ALLOC_CHECK_ARRAY_NOFAIL, CHKERR, ENTITY_HANDLE, ErrorCode, iBase_SUCCESS, MOABI, remove_var_len_tags(), and RETURN.
void iMesh_getAllIfaceTags | ( | iMesh_Instance | instance, |
iBase_TagHandle ** | tag_handles, | ||
int * | tag_handles_allocated, | ||
int * | tag_handles_size, | ||
int * | err | ||
) |
Get all the tags associated with the entire interface.
Get all the tags associated with the entire interface
Definition at line 1617 of file iMesh_MOAB.cpp.
References ALLOC_CHECK_ARRAY_NOFAIL, CHKERR, ErrorCode, iBase_SUCCESS, MOABI, remove_var_len_tags(), and RETURN.
void iMesh_getAllTags | ( | iMesh_Instance | instance, |
const iBase_EntityHandle | entity_handle, | ||
iBase_TagHandle ** | tag_handles, | ||
int * | tag_handles_allocated, | ||
int * | tag_handles_size, | ||
int * | err | ||
) |
Get all the tags associated with a specified entity handle.
Get all the tags associated with a specified entity handle
[in] | instance | iMesh instance handle |
[in] | entity_handle | Entity being queried |
[in,out] | tag_handles | Pointer to array of tag_handles returned from Array pointer, allocated and occupied sizes argument trio) |
[in,out] | tag_handles_allocated | Pointer to allocated size of tag_handles |
[out] | tag_handles_size | Pointer to occupied size of tag_handles array |
[out] | err | Returned Error status (see iBase_ErrorType) |
Definition at line 2218 of file iMesh_MOAB.cpp.
References ALLOC_CHECK_ARRAY_NOFAIL, CHKERR, ENTITY_HANDLE, ErrorCode, iBase_SUCCESS, MOABI, remove_var_len_tags(), and RETURN.
void iMesh_getTagHandle | ( | iMesh_Instance | instance, |
const char * | tag_name, | ||
iBase_TagHandle * | tag_handle, | ||
int * | err, | ||
int | tag_name_len | ||
) |
Get a the handle of an existing tag with the specified name.
Get a the handle of an existing tag with the specified name
[in] | instance | iMesh instance handle |
[in] | tag_name | Name of tag being queried |
[out] | tag_handle | Pointer to tag handle returned from function |
[out] | err | Returned Error status (see iBase_ErrorType) |
[in] | tag_name_len | Length of tag name string (String Length Arguments) |
Definition at line 1591 of file iMesh_MOAB.cpp.
References eatwhitespace(), ERROR, ErrorCode, iBase_SUCCESS, iBase_TAG_NOT_FOUND, MB_SUCCESS, MB_TAG_ANY, MB_TYPE_OPAQUE, MOABI, RETURN, size, and TAG_HANDLE.
void iMesh_getTagName | ( | iMesh_Instance | instance, |
const iBase_TagHandle | tag_handle, | ||
char * | name, | ||
int * | err, | ||
int | name_len | ||
) |
Get the name for a given tag handle.
Get the name for a given tag handle
[in] | instance | iMesh instance handle |
[in] | tag_handle | Tag handle being queried |
[in,out] | name | Pointer to character string to store name returned from |
[out] | err | Returned Error status (see iBase_ErrorType) |
[in] | name_len | Length of character string input to function (String Length Arguments) |
Definition at line 1532 of file iMesh_MOAB.cpp.
References CHKERR, ErrorCode, iBase_SUCCESS, MOABI, RETURN, and TAG_HANDLE.
Referenced by iMesh_getArrData().
void iMesh_getTagSizeBytes | ( | iMesh_Instance | instance, |
const iBase_TagHandle | tag_handle, | ||
int * | tag_size, | ||
int * | err | ||
) |
Get size of a tag in units of bytes.
Get size of a tag in units of bytes
[in] | instance | iMesh instance handle |
[in] | tag_handle | Handle of tag being queried |
[out] | tag_size | Pointer to tag size returned from function |
[out] | err | Returned Error status (see iBase_ErrorType) |
Definition at line 1581 of file iMesh_MOAB.cpp.
References CHKERR, ErrorCode, iBase_SUCCESS, MOABI, RETURN, and TAG_HANDLE.
Referenced by iMesh_setArrData().
void iMesh_getTagSizeValues | ( | iMesh_Instance | instance, |
const iBase_TagHandle | tag_handle, | ||
int * | tag_size, | ||
int * | err | ||
) |
Get size of a tag in units of numbers of tag data type.
Get size of a tag in units of numbers of tag data type
[in] | instance | iMesh instance handle |
[in] | tag_handle | Handle of tag being queried |
[out] | tag_size | Pointer to tag size returned from function |
[out] | err | Returned Error status (see iBase_ErrorType) |
Definition at line 1571 of file iMesh_MOAB.cpp.
References CHKERR, ErrorCode, iBase_SUCCESS, MOABI, RETURN, and TAG_HANDLE.
void iMesh_getTagType | ( | iMesh_Instance | instance, |
const iBase_TagHandle | tag_handle, | ||
int * | tag_type, | ||
int * | err | ||
) |
Get the data type of the specified tag handle.
Get the data type of the specified tag handle. Tag type is a value in the iBase_TagType enumeration.
[in] | instance | iMesh instance handle |
[in] | tag_handle | Handle for the tag being queried |
[out] | tag_type | Pointer to tag type returned from function |
[out] | err | Returned Error status (see iBase_ErrorType) |
Definition at line 1545 of file iMesh_MOAB.cpp.
References check_handle_tag_type(), CHKERR, ErrorCode, iBase_ENTITY_HANDLE, iBase_ENTITY_SET_HANDLE, iBase_SUCCESS, MB_TYPE_HANDLE, MBIMESHI, MOABI, RETURN, TAG_HANDLE, and tstt_data_type_table.
void iMesh_rmvArrTag | ( | iMesh_Instance | instance, |
const iBase_EntityHandle * | entity_handles, | ||
const int | entity_handles_size, | ||
const iBase_TagHandle | tag_handle, | ||
int * | err | ||
) |
Remove a tag value from an array of entities.
Remove a tag value from an array of entities
[in] | instance | iMesh instance handle |
[in] | entity_handles | Entity from which tag is being removed |
[in] | entity_handles_size | Number of entities in entity array |
[in] | tag_handle | Tag handle of tag being removed |
[out] | err | Returned Error status (see iBase_ErrorType) |
Definition at line 2085 of file iMesh_MOAB.cpp.
References CHKNONEMPTY, CONST_HANDLE_ARRAY_PTR, ErrorCode, iBase_ERROR_MAP, iBase_SUCCESS, MB_TAG_NOT_FOUND, MOABI, RETURN, and TAG_HANDLE.
Referenced by iMesh_rmvTag().
void iMesh_rmvEntSetTag | ( | iMesh_Instance | instance, |
iBase_EntitySetHandle | entity_set_handle, | ||
const iBase_TagHandle | tag_handle, | ||
int * | err | ||
) |
Remove a tag value from an entity set.
Remove a tag value from an entity set
[in] | instance | iMesh instance handle |
[in] | entity_set_handle | Entity set from which tag is being removed |
[in] | tag_handle | Tag handle of tag being removed |
[out] | err | Returned Error status (see iBase_ErrorType) |
Definition at line 1787 of file iMesh_MOAB.cpp.
References ENTITY_HANDLE, ErrorCode, iBase_ERROR_MAP, iBase_SUCCESS, MB_TAG_NOT_FOUND, MOABI, RETURN, and TAG_HANDLE.
void iMesh_rmvTag | ( | iMesh_Instance | instance, |
iBase_EntityHandle | entity_handle, | ||
const iBase_TagHandle | tag_handle, | ||
int * | err | ||
) |
Remove a tag value from an entity.
Remove a tag value from an entity
[in] | instance | iMesh instance handle |
[in] | entity_handle | Entity from which tag is being removed |
[in] | tag_handle | Tag handle of tag being removed |
[out] | err | Returned Error status (see iBase_ErrorType) |
Definition at line 2239 of file iMesh_MOAB.cpp.
References iMesh_rmvArrTag().