#include <ReadNASTRAN.hpp>
Public Member Functions | |
ErrorCode | load_file (const char *file_name, const EntityHandle *file_set, const FileOptions &opts, const SubsetList *subset_list=0, const Tag *file_id_tag=0) |
Load mesh from a file. More... | |
ReadNASTRAN (Interface *impl=NULL) | |
virtual | ~ReadNASTRAN () |
ErrorCode | read_tag_values (const char *file_name, const char *tag_name, const FileOptions &opts, std::vector< int > &tag_values_out, const SubsetList *subset_list=0) |
Read tag values from a file. More... | |
Public Member Functions inherited from moab::ReaderIface | |
virtual | ~ReaderIface () |
Static Public Member Functions | |
static ReaderIface * | factory (Interface *) |
Private Types | |
enum | line_format { SMALL_FIELD , LARGE_FIELD , FREE_FIELD } |
Private Member Functions | |
ErrorCode | determine_line_format (const std::string &line, line_format &format) |
ErrorCode | tokenize_line (const std::string &line, const line_format format, std::vector< std::string > &tokens) |
ErrorCode | determine_entity_type (const std::string &token, EntityType &type) |
ErrorCode | get_real (const std::string &, double &real) |
ErrorCode | read_node (const std::vector< std::string > &tokens, const bool debug, double *coord_arrays[3], int &node_id) |
ErrorCode | read_element (const std::vector< std::string > &tokens, std::vector< Range > &materials, const EntityType element_type, const bool debug) |
ErrorCode | create_materials (const std::vector< Range > &materials) |
ErrorCode | assign_ids (const Tag *file_id_tag) |
Private Attributes | |
ReadUtilIface * | readMeshIface |
Interface * | MBI |
RangeMap< int, EntityHandle > | nodeIdMap |
RangeMap< int, EntityHandle > | elemIdMap |
Definition at line 49 of file ReadNASTRAN.hpp.
|
private |
Enumerator | |
---|---|
SMALL_FIELD | |
LARGE_FIELD | |
FREE_FIELD |
Definition at line 83 of file ReadNASTRAN.hpp.
moab::ReadNASTRAN::ReadNASTRAN | ( | Interface * | impl = NULL | ) |
Definition at line 44 of file ReadNASTRAN.cpp.
References MBI, moab::Interface::query_interface(), and readMeshIface.
Referenced by factory().
|
virtual |
Definition at line 52 of file ReadNASTRAN.cpp.
References MBI, readMeshIface, and moab::Interface::release_interface().
Definition at line 460 of file ReadNASTRAN.cpp.
References moab::ReadUtilIface::assign_ids(), moab::RangeMap< KeyType, ValType, NullVal >::begin(), elemIdMap, moab::RangeMap< KeyType, ValType, NullVal >::end(), ErrorCode, moab::Interface::globalId_tag(), MB_SUCCESS, MBI, nodeIdMap, and readMeshIface.
Referenced by load_file().
Definition at line 428 of file ReadNASTRAN.cpp.
References moab::Interface::add_entities(), moab::Interface::create_meshset(), ErrorCode, MATERIAL_SET_TAG_NAME, MB_SUCCESS, MB_TAG_CREAT, MB_TAG_SPARSE, MB_TYPE_INTEGER, MBI, MESHSET_SET, moab::Interface::tag_get_handle(), and moab::Interface::tag_set_data().
Referenced by load_file().
|
private |
Definition at line 252 of file ReadNASTRAN.cpp.
References MB_NOT_IMPLEMENTED, MB_SUCCESS, MBHEX, MBPRISM, MBTET, and MBVERTEX.
Referenced by load_file().
|
private |
Definition at line 198 of file ReadNASTRAN.cpp.
References FREE_FIELD, LARGE_FIELD, MB_SUCCESS, and SMALL_FIELD.
Referenced by load_file().
|
static |
Definition at line 38 of file ReadNASTRAN.cpp.
References iface, and ReadNASTRAN().
Referenced by moab::ReaderWriterSet::ReaderWriterSet().
|
private |
|
virtual |
Load mesh from a file.
Method all readers must provide to import a mesh.
file_name | The file to read. |
file_set | Optional pointer to entity set representing file. If this is not NULL, reader may optionally tag the pointed-to set with format-specific meta-data. |
subset_list | An optional struct pointer specifying the tags identifying entity sets to be read. |
file_id_tag | If specified, reader should store for each entity it reads, a unique integer ID for this tag. |
Implements moab::ReaderIface.
Definition at line 71 of file ReadNASTRAN.cpp.
References assign_ids(), moab::RangeMap< KeyType, ValType, NullVal >::clear(), create_materials(), moab::debug, determine_entity_type(), determine_line_format(), elemIdMap, ErrorCode, moab::ReadUtilIface::get_node_coords(), moab::RangeMap< KeyType, ValType, NullVal >::insert(), MB_FILE_DOES_NOT_EXIST, MB_SET_ERR, MB_START_ID, MB_SUCCESS, MB_UNSUPPORTED_OPERATION, MBMAXTYPE, MBVERTEX, nodeIdMap, read_element(), read_node(), readMeshIface, and tokenize_line().
|
private |
Definition at line 379 of file ReadNASTRAN.cpp.
References moab::Interface::create_element(), elemIdMap, ErrorCode, moab::RangeMap< KeyType, ValType, NullVal >::find(), moab::RangeMap< KeyType, ValType, NullVal >::insert(), MB_SUCCESS, MBI, nodeIdMap, and moab::CN::VerticesPerEntity().
Referenced by load_file().
|
private |
Definition at line 347 of file ReadNASTRAN.cpp.
References moab::debug, ErrorCode, get_real(), MB_NOT_IMPLEMENTED, and MB_SUCCESS.
Referenced by load_file().
|
virtual |
Read tag values from a file.
Read the list if all integer tag values from the file for a tag that is a single integer value per entity.
file_name | The file to read. |
tag_name | The tag for which to read values |
tag_values_out | Output: The list of tag values. |
subset_list | An array of tag name and value sets specifying the subset of the file to read. If multiple tags are specified, the sets that match all tags (intersection) should be read. |
subset_list_length | The length of the 'subset_list' array. |
Implements moab::ReaderIface.
Definition at line 61 of file ReadNASTRAN.cpp.
References MB_NOT_IMPLEMENTED.
|
private |
Definition at line 223 of file ReadNASTRAN.cpp.
References FREE_FIELD, LARGE_FIELD, MB_NOT_IMPLEMENTED, MB_SUCCESS, and SMALL_FIELD.
Referenced by load_file().
|
private |
Definition at line 81 of file ReadNASTRAN.hpp.
Referenced by assign_ids(), load_file(), and read_element().
|
private |
Definition at line 79 of file ReadNASTRAN.hpp.
Referenced by assign_ids(), create_materials(), read_element(), ReadNASTRAN(), and ~ReadNASTRAN().
|
private |
Definition at line 81 of file ReadNASTRAN.hpp.
Referenced by assign_ids(), load_file(), and read_element().
|
private |
Definition at line 76 of file ReadNASTRAN.hpp.
Referenced by assign_ids(), load_file(), ReadNASTRAN(), and ~ReadNASTRAN().