MeshKit
1.0
|
C++ interface to ITAPS iMesh interface. More...
#include <iMesh.hpp>
Classes | |
class | EntArrIter |
Class for iterating over iMesh entity arrays. More... | |
class | EntIter |
Class for iterating over iMesh entities. More... | |
Public Types | |
typedef iMesh_EntityTopology | EntityTopology |
typedef iBase_AdjacencyCost | AdjacencyCost |
typedef AdjacencyCost(* | AdjTableType )[4] |
Public Member Functions | |
iRel::IfaceType | iface_type () const |
iMesh (const char *options=0) | |
iMesh (iMesh_Instance imesh) | |
~iMesh () | |
Error | load (EntitySetHandle set, const char *file_name, const char *options=0) |
Error | save (EntitySetHandle set, const char *file_name, const char *options=0) |
int | getGeometricDimension () const |
Error | setGeometricDimension (int dim) |
StorageOrder | getDfltStorage () const |
AdjTableType | getAdjTable () |
Error | setAdjTable (int *adj_table, int table_size) |
Error | getNumOfType (EntitySetHandle set, EntityType type, int &count_out) const |
Error | getNumOfTopo (EntitySetHandle set, EntityTopology topo, int &count_out) const |
bool | optimize () |
Error | getEntities (EntitySetHandle set, EntityType type, EntityTopology topo, std::vector< EntityHandle > &entities_out) const |
Error | getVtxCoord (EntityHandle vertex, double &x, double &y, double &z) const |
Error | setVtxCoord (EntityHandle vertex, double x, double y, double z) |
Error | getVtxArrCoords (const EntityHandle *vertex_handles, int vertex_handles_size, StorageOrder storage_order, double *coords_out) const |
Error | setVtxArrCoords (const EntityHandle *vertex_handles, int vertex_handles_size, StorageOrder storage_order, const double *new_coords) |
Error | createVtx (double x, double y, double z, EntityHandle &vertex_out) |
Error | createVtxArr (int num_verts, StorageOrder storage_order, const double *new_coords, EntityHandle *new_vertex_handles_out) |
Error | createEnt (EntityTopology topology, const EntityHandle *lower_order_entity_handles, int lower_order_entity_handles_size, EntityHandle &new_entity_handle_out) |
Error | createEntArr (EntityTopology new_entity_topology, const EntityHandle *lower_order_entity_handles, int lower_order_entity_handles_size, EntityHandle *new_entity_handles_out) |
Error | deleteEnt (EntityHandle handle) |
Error | deleteEntArr (const EntityHandle *entity_handles, int num_handles) |
Error | getAdjEntities (EntitySetHandle set, EntityType type_requestor, EntityTopology topo_requestor, EntityType type_requested, std::vector< EntityHandle > &adj_entity_handles, std::vector< int > &offset) const |
Error | initEntIter (EntitySetHandle set, EntityType requested_type, EntityTopology requested_topo, int resilient, EntIter &iter) |
Error | initEntArrIter (EntitySetHandle set, EntityType requested_type, EntityTopology requested_topo, int requested_array_size, int resilient, EntArrIter &iter) |
Error | getEntTopo (EntityHandle handle, EntityTopology &topo_out) const |
Error | getEntArrTopo (const EntityHandle *entity_handles, int entity_handles_Size, EntityTopology *topos_out) const |
Error | getEntType (EntityHandle handle, EntityType &type_out) const |
Error | getEntArrType (const EntityHandle *entity_handles, int entity_handles_Size, EntityType *types_out) const |
Error | getEntAdj (EntityHandle handle, EntityType type_requested, std::vector< EntityHandle > &adj_entities_out) const |
Error | getEntArrAdj (const EntityHandle *entity_handles, int entity_handles_size, EntityType type_requested, std::vector< EntityHandle > &adjacent_entity_handles_out, int *offsets_out) const |
Error | getEnt2ndAdj (EntityHandle handle, EntityType bridge_entity_type, EntityType type_requested, std::vector< EntityHandle > &adj_entities_out) const |
Error | getEntArr2ndAdj (const EntityHandle *entity_handles, int entity_handles_size, EntityType order_key, EntityType type_requested, std::vector< EntityHandle > &adjacent_entity_handles_out, int *offsets_out) const |
Error | getAdjEntIndices (EntitySetHandle set, EntityType requestor_type, EntityTopology requestor_topo, EntityType type_requested, std::vector< EntityHandle > &entity_handles_out, std::vector< EntityHandle > &adj_entity_handles_out, std::vector< int > &adj_entity_indices_out, std::vector< int > &offsets_out) const |
Static Public Attributes | |
static const moab::EntityType | mb_topology_table [iMesh_ALL_TOPOLOGIES+1] |
Private Member Functions | |
void | cacheAdjTable () |
iMesh (const iMesh &) | |
void | operator= (const iMesh &) |
Private Attributes | |
bool | iMeshInstanceOwner |
AdjacencyCost | adjTable [4][4] |
Error | adjTableErr |
C++ interface to ITAPS iMesh interface.
This class is a simple wrapper for the ITAPS iGeom interface. The primary benefit to using this class instead of iMesh directly is that lists of handles are passed as std::vectors instead of pointers to handle arrays. This file includes both declaration and definition of all iGeom class functions, i.e. all functions are inlined. The class can be constructed and destructed in the standard C++ way; the implementation of those functions call into the standard iMesh C functions newMesh and dtor.
For complete documentation of these functions, see http://www.itaps.org/software/iMesh_html/index.html.
typedef iBase_AdjacencyCost AdjacencyCost |
typedef AdjacencyCost(* AdjTableType)[4] |
typedef iMesh_EntityTopology EntityTopology |
void cacheAdjTable | ( | ) | [inline, private] |
iMesh::Error createEnt | ( | EntityTopology | topology, |
const EntityHandle * | lower_order_entity_handles, | ||
int | lower_order_entity_handles_size, | ||
EntityHandle & | new_entity_handle_out | ||
) | [inline] |
iMesh::Error createEntArr | ( | EntityTopology | new_entity_topology, |
const EntityHandle * | lower_order_entity_handles, | ||
int | lower_order_entity_handles_size, | ||
EntityHandle * | new_entity_handles_out | ||
) | [inline] |
iMesh::Error createVtx | ( | double | x, |
double | y, | ||
double | z, | ||
EntityHandle & | vertex_out | ||
) | [inline] |
iMesh::Error createVtxArr | ( | int | num_verts, |
StorageOrder | storage_order, | ||
const double * | new_coords, | ||
EntityHandle * | new_vertex_handles_out | ||
) | [inline] |
iMesh::Error deleteEntArr | ( | const EntityHandle * | entity_handles, |
int | num_handles | ||
) | [inline] |
iMesh::Error getAdjEntIndices | ( | EntitySetHandle | set, |
EntityType | requestor_type, | ||
EntityTopology | requestor_topo, | ||
EntityType | type_requested, | ||
std::vector< EntityHandle > & | entity_handles_out, | ||
std::vector< EntityHandle > & | adj_entity_handles_out, | ||
std::vector< int > & | adj_entity_indices_out, | ||
std::vector< int > & | offsets_out | ||
) | const [inline] |
iMesh::Error getAdjEntities | ( | EntitySetHandle | set, |
EntityType | type_requestor, | ||
EntityTopology | topo_requestor, | ||
EntityType | type_requested, | ||
std::vector< EntityHandle > & | adj_entity_handles, | ||
std::vector< int > & | offset | ||
) | const [inline] |
iMesh::AdjTableType getAdjTable | ( | ) | [inline] |
iMesh::StorageOrder getDfltStorage | ( | ) | const [inline] |
iMesh::Error getEnt2ndAdj | ( | EntityHandle | handle, |
EntityType | bridge_entity_type, | ||
EntityType | type_requested, | ||
std::vector< EntityHandle > & | adj_entities_out | ||
) | const [inline] |
iMesh::Error getEntAdj | ( | EntityHandle | handle, |
EntityType | type_requested, | ||
std::vector< EntityHandle > & | adj_entities_out | ||
) | const [inline] |
iMesh::Error getEntArr2ndAdj | ( | const EntityHandle * | entity_handles, |
int | entity_handles_size, | ||
EntityType | order_key, | ||
EntityType | type_requested, | ||
std::vector< EntityHandle > & | adjacent_entity_handles_out, | ||
int * | offsets_out | ||
) | const [inline] |
iMesh::Error getEntArrAdj | ( | const EntityHandle * | entity_handles, |
int | entity_handles_size, | ||
EntityType | type_requested, | ||
std::vector< EntityHandle > & | adjacent_entity_handles_out, | ||
int * | offsets_out | ||
) | const [inline] |
iMesh::Error getEntArrTopo | ( | const EntityHandle * | entity_handles, |
int | entity_handles_Size, | ||
EntityTopology * | topos_out | ||
) | const [inline] |
iMesh::Error getEntArrType | ( | const EntityHandle * | entity_handles, |
int | entity_handles_Size, | ||
EntityType * | types_out | ||
) | const [inline] |
iMesh::Error getEntities | ( | EntitySetHandle | set, |
EntityType | type, | ||
EntityTopology | topo, | ||
std::vector< EntityHandle > & | entities_out | ||
) | const [inline] |
iMesh::Error getEntTopo | ( | EntityHandle | handle, |
EntityTopology & | topo_out | ||
) | const [inline] |
iMesh::Error getEntType | ( | EntityHandle | handle, |
EntityType & | type_out | ||
) | const [inline] |
int getGeometricDimension | ( | ) | const [inline] |
iMesh::Error getNumOfTopo | ( | EntitySetHandle | set, |
EntityTopology | topo, | ||
int & | count_out | ||
) | const [inline] |
iMesh::Error getNumOfType | ( | EntitySetHandle | set, |
EntityType | type, | ||
int & | count_out | ||
) | const [inline] |
iMesh::Error getVtxArrCoords | ( | const EntityHandle * | vertex_handles, |
int | vertex_handles_size, | ||
StorageOrder | storage_order, | ||
double * | coords_out | ||
) | const [inline] |
iMesh::Error getVtxCoord | ( | EntityHandle | vertex, |
double & | x, | ||
double & | y, | ||
double & | z | ||
) | const [inline] |
iRel::IfaceType iface_type | ( | ) | const [inline] |
iMesh::Error initEntArrIter | ( | EntitySetHandle | set, |
EntityType | requested_type, | ||
EntityTopology | requested_topo, | ||
int | requested_array_size, | ||
int | resilient, | ||
iMesh::EntArrIter & | iter | ||
) | [inline] |
iMesh::Error initEntIter | ( | EntitySetHandle | set, |
EntityType | requested_type, | ||
EntityTopology | requested_topo, | ||
int | resilient, | ||
iMesh::EntIter & | iter | ||
) | [inline] |
iMesh::Error load | ( | EntitySetHandle | set, |
const char * | file_name, | ||
const char * | options = 0 |
||
) | [inline] |
iMesh::Error save | ( | EntitySetHandle | set, |
const char * | file_name, | ||
const char * | options = 0 |
||
) | [inline] |
iMesh::Error setAdjTable | ( | int * | adj_table, |
int | table_size | ||
) | [inline] |
iMesh::Error setGeometricDimension | ( | int | dim | ) | [inline] |
iMesh::Error setVtxArrCoords | ( | const EntityHandle * | vertex_handles, |
int | vertex_handles_size, | ||
StorageOrder | storage_order, | ||
const double * | new_coords | ||
) | [inline] |
iMesh::Error setVtxCoord | ( | EntityHandle | vertex, |
double | x, | ||
double | y, | ||
double | z | ||
) | [inline] |
AdjacencyCost adjTable[4][4] [private] |
Error adjTableErr [private] |
bool iMeshInstanceOwner [private] |
const moab::EntityType mb_topology_table [static] |