#include <ReadIDEAS.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... | |
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... | |
ReadIDEAS (Interface *impl=NULL) | |
Constructor. More... | |
virtual | ~ReadIDEAS () |
Destructor. More... | |
Public Member Functions inherited from moab::ReaderIface | |
virtual | ~ReaderIface () |
Static Public Member Functions | |
static ReaderIface * | factory (Interface *) |
Protected Member Functions | |
ErrorCode | skip_header () |
ErrorCode | create_vertices (EntityHandle &first_vertex, const Tag *file_id_tag) |
ErrorCode | create_elements (EntityHandle first_vertex, const Tag *file_id_tag) |
Private Attributes | |
std::ifstream | file |
RangeMap< int, EntityHandle > | nodeIdMap |
ReadUtilIface * | readMeshIface |
Interface * | MBI |
Static Private Attributes | |
static const unsigned | SINGLE_PRECISION_NODES = 15 |
static const unsigned | DOUBLE_PRECISION_NODES0 = 781 |
static const unsigned | DOUBLE_PRECISION_NODES1 = 2411 |
static const unsigned | ELEMENTS0 = 71 |
static const unsigned | ELEMENTS1 = 780 |
static const unsigned | ELEMENTS2 = 2412 |
static const int | ROD0 = 11 |
static const int | ROD1 = 171 |
static const int | TRI0 = 41 |
static const int | TRI1 = 91 |
static const int | QUAD0 = 44 |
static const int | QUAD1 = 94 |
static const int | TET = 111 |
static const int | WEDGE = 112 |
static const int | HEX = 115 |
Definition at line 24 of file ReadIDEAS.hpp.
moab::ReadIDEAS::ReadIDEAS | ( | Interface * | impl = NULL | ) |
Constructor.
Definition at line 25 of file ReadIDEAS.cpp.
References moab::Interface::query_interface(), and readMeshIface.
Referenced by factory().
|
inlinevirtual |
|
protected |
Definition at line 209 of file ReadIDEAS.cpp.
References moab::Interface::add_entities(), moab::Interface::create_element(), moab::Interface::create_meshset(), moab::Range::empty(), ErrorCode, file, moab::Range::front(), moab::Interface::get_entities_by_type_and_tag(), moab::Interface::globalId_tag(), HEX, MAT_PROP_TABLE_TAG, moab::CN::MAX_NODES_PER_ELEMENT, MB_ALREADY_ALLOCATED, MB_CHK_SET_ERR, MB_MULTIPLE_ENTITIES_FOUND, MB_NOT_IMPLEMENTED, MB_SUCCESS, MB_TAG_CREAT, MB_TAG_DENSE, MB_TYPE_INTEGER, MBENTITYSET, MBHEX, MBI, MBPRISM, MBQUAD, MBTET, MBTRI, MESHSET_SET, PHYS_PROP_TABLE_TAG, QUAD0, QUAD1, moab::Range::size(), moab::Interface::tag_get_handle(), moab::Interface::tag_set_data(), TET, TRI0, TRI1, moab::CN::VerticesPerEntity(), and WEDGE.
Referenced by load_file().
|
protected |
Definition at line 129 of file ReadIDEAS.cpp.
References moab::ReadUtilIface::assign_ids(), ErrorCode, file, moab::ReadUtilIface::get_node_coords(), moab::Interface::globalId_tag(), moab::Range::insert(), MB_CHK_SET_ERR, MB_SET_ERR, MB_SUCCESS, MBI, and readMeshIface.
Referenced by load_file().
|
static |
Definition at line 20 of file ReadIDEAS.cpp.
References iface, and ReadIDEAS().
Referenced by moab::ReaderWriterSet::ReaderWriterSet().
|
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 39 of file ReadIDEAS.cpp.
References create_elements(), create_vertices(), DOUBLE_PRECISION_NODES0, DOUBLE_PRECISION_NODES1, ELEMENTS0, ELEMENTS1, ELEMENTS2, ErrorCode, file, MB_CHK_SET_ERR, MB_FILE_DOES_NOT_EXIST, MB_SET_ERR, MB_SUCCESS, MB_UNSUPPORTED_OPERATION, and skip_header().
|
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 30 of file ReadIDEAS.cpp.
References MB_NOT_IMPLEMENTED.
|
protected |
Definition at line 101 of file ReadIDEAS.cpp.
References file, and MB_SUCCESS.
Referenced by load_file().
|
staticprivate |
Definition at line 82 of file ReadIDEAS.hpp.
Referenced by load_file().
|
staticprivate |
Definition at line 83 of file ReadIDEAS.hpp.
Referenced by load_file().
|
staticprivate |
Definition at line 91 of file ReadIDEAS.hpp.
Referenced by load_file().
|
staticprivate |
Definition at line 92 of file ReadIDEAS.hpp.
Referenced by load_file().
|
staticprivate |
Definition at line 93 of file ReadIDEAS.hpp.
Referenced by load_file().
|
private |
Definition at line 54 of file ReadIDEAS.hpp.
Referenced by create_elements(), create_vertices(), load_file(), and skip_header().
|
staticprivate |
Definition at line 107 of file ReadIDEAS.hpp.
Referenced by create_elements().
|
private |
Definition at line 61 of file ReadIDEAS.hpp.
Referenced by create_elements(), and create_vertices().
|
private |
Definition at line 55 of file ReadIDEAS.hpp.
|
staticprivate |
Definition at line 103 of file ReadIDEAS.hpp.
Referenced by create_elements().
|
staticprivate |
Definition at line 104 of file ReadIDEAS.hpp.
Referenced by create_elements().
|
private |
Definition at line 58 of file ReadIDEAS.hpp.
Referenced by create_vertices(), and ReadIDEAS().
|
staticprivate |
Definition at line 99 of file ReadIDEAS.hpp.
|
staticprivate |
Definition at line 100 of file ReadIDEAS.hpp.
|
staticprivate |
Definition at line 76 of file ReadIDEAS.hpp.
|
staticprivate |
Definition at line 105 of file ReadIDEAS.hpp.
Referenced by create_elements().
|
staticprivate |
Definition at line 101 of file ReadIDEAS.hpp.
Referenced by create_elements().
|
staticprivate |
Definition at line 102 of file ReadIDEAS.hpp.
Referenced by create_elements().
|
staticprivate |
Definition at line 106 of file ReadIDEAS.hpp.
Referenced by create_elements().