MOAB: Mesh Oriented datABase  (version 5.2.1)
FBiGeom_MOAB.hpp File Reference
#include "FBiGeom.h"
#include "moab/Interface.hpp"
#include "moab/FBEngine.hpp"
#include "iMesh.h"
#include "MBiMesh.hpp"
+ Include dependency graph for FBiGeom_MOAB.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  MBiGeom

Defines

#define MBI   MBI_cast( instance )
#define GETGTT(a)   ( reinterpret_cast< MBiGeom* >( a )->FBItf()->get_gtt() )
#define IMESH_INSTANCE(i)   reinterpret_cast< iMesh_Instance >( reinterpret_cast< MBiGeom* >( i )->mbimesh() )
#define MBIM   reinterpret_cast< MBiGeom* >( instance )->mbimesh()
#define RETURN(CODE)
#define ERROR(CODE, MSG)
#define CHKERR(CODE, MSG)
#define FWDERR()
#define CHECK_SIZE(array, allocated, size, type, retval)

Functions

static moab::Interface * MBI_cast (FBiGeom_Instance i)
static moab::FBEngineFBE_cast (FBiGeom_Instance i)
static moab::EntityHandle MBH_cast (iBase_EntityHandle h)
static bool FBiGeom_isError (int code)
static bool FBiGeom_isError (moab::ErrorCode code)

Variables

const iBase_ErrorType iBase_ERROR_MAP [moab::MB_FAILURE+1]

Define Documentation

#define CHECK_SIZE (   array,
  allocated,
  size,
  type,
  retval 
)
Value:
do                                                                                                   \
    {                                                                                                    \
        if( 0 != allocated && NULL != array && allocated < ( size ) )                                    \
        {                                                                                                \
            ERROR( iBase_MEMORY_ALLOCATION_FAILED, "Allocated array not "                                \
                                                   "enough to hold returned contents." );                \
        }                                                                                                \
        if( ( size ) && ( ( allocated ) == 0 || NULL == ( array ) ) )                                    \
        {                                                                                                \
            array     = (type*)malloc( ( size ) * sizeof( type ) );                                      \
            allocated = ( size );                                                                        \
            if( NULL == array ) { ERROR( iBase_MEMORY_ALLOCATION_FAILED, "Couldn't allocate array." ); } \
        }                                                                                                \
    } while( false )

Definition at line 124 of file FBiGeom_MOAB.hpp.

Referenced by FBiGeom_getArrAdj(), FBiGeom_getArrBoundBox(), FBiGeom_getArrClosestPt(), FBiGeom_getArrNrmlPlXYZ(), FBiGeom_getArrNrmlXYZ(), FBiGeom_getArrType(), FBiGeom_getEnt2ndAdj(), FBiGeom_getEntAdj(), FBiGeom_getEntities(), FBiGeom_getEntSets(), FBiGeom_getPntRayIntsct(), FBiGeom_getVtxArrCoords(), FBiGeom_isArrAdj(), and FBiGeom_measure().

#define CHKERR (   CODE,
  MSG 
)
Value:
do                                                                \
    {                                                                 \
        if( FBiGeom_isError( ( CODE ) ) ) ERROR( ( CODE ), ( MSG ) ); \
    } while( false )

Definition at line 112 of file FBiGeom_MOAB.hpp.

#define ERROR (   CODE,
  MSG 
)
Value:
do                                                    \
    {                                                     \
        *err = MBIM->set_last_error( ( CODE ), ( MSG ) ); \
        return;                                           \
    } while( false )

Definition at line 105 of file FBiGeom_MOAB.hpp.

#define GETGTT (   a)    ( reinterpret_cast< MBiGeom* >( a )->FBItf()->get_gtt() )
#define IMESH_INSTANCE (   i)    reinterpret_cast< iMesh_Instance >( reinterpret_cast< MBiGeom* >( i )->mbimesh() )

Definition at line 92 of file FBiGeom_MOAB.hpp.

Referenced by FBiGeom_addEntArrToSet(), FBiGeom_addEntSet(), FBiGeom_addEntToSet(), FBiGeom_addPrntChld(), FBiGeom_createEntSet(), FBiGeom_createTag(), FBiGeom_getAllEntSetTags(), FBiGeom_getAllTags(), FBiGeom_getArrData(), FBiGeom_getChldn(), FBiGeom_getData(), FBiGeom_getDblArrData(), FBiGeom_getDblData(), FBiGeom_getDescription(), FBiGeom_getEHArrData(), FBiGeom_getEHData(), FBiGeom_getEntSetData(), FBiGeom_getEntSetDblData(), FBiGeom_getEntSetEHData(), FBiGeom_getEntSetESHData(), FBiGeom_getEntSetIntData(), FBiGeom_getErrorType(), FBiGeom_getESHArrData(), FBiGeom_getESHData(), FBiGeom_getIntArrData(), FBiGeom_getIntData(), FBiGeom_getNumChld(), FBiGeom_getNumPrnt(), FBiGeom_getPrnts(), FBiGeom_getTagHandle(), FBiGeom_getTagName(), FBiGeom_getTagSizeBytes(), FBiGeom_getTagSizeValues(), FBiGeom_getTagType(), FBiGeom_isChildOf(), FBiGeom_isEntArrContained(), FBiGeom_isEntContained(), FBiGeom_isEntSetContained(), FBiGeom_rmvArrTag(), FBiGeom_rmvEntArrFromSet(), FBiGeom_rmvEntFromSet(), FBiGeom_rmvEntSet(), FBiGeom_rmvEntSetTag(), FBiGeom_rmvPrntChld(), FBiGeom_rmvTag(), FBiGeom_save(), FBiGeom_setArrData(), FBiGeom_setData(), FBiGeom_setDblArrData(), FBiGeom_setDblData(), FBiGeom_setEHArrData(), FBiGeom_setEHData(), FBiGeom_setEntSetData(), FBiGeom_setEntSetDblData(), FBiGeom_setEntSetEHData(), FBiGeom_setEntSetESHData(), FBiGeom_setEntSetIntData(), FBiGeom_setESHArrData(), FBiGeom_setESHData(), FBiGeom_setIntArrData(), and FBiGeom_setIntData().

#define MBI   MBI_cast( instance )

Definition at line 67 of file FBiGeom_MOAB.hpp.

#define MBIM   reinterpret_cast< MBiGeom* >( instance )->mbimesh()

Definition at line 96 of file FBiGeom_MOAB.hpp.

#define RETURN (   CODE)
Value:
do                                               \
    {                                                \
        *err = MBIM->set_last_error( ( CODE ), "" ); \
        return;                                      \
    } while( false )

Definition at line 98 of file FBiGeom_MOAB.hpp.

Referenced by FBiGeom_copyEnt(), FBiGeom_createBrick(), FBiGeom_createCone(), FBiGeom_createCylinder(), FBiGeom_createPrism(), FBiGeom_createSphere(), FBiGeom_createTorus(), FBiGeom_deleteAll(), FBiGeom_deleteEnt(), FBiGeom_destroyEntSet(), FBiGeom_destroyTag(), FBiGeom_endEntArrIter(), FBiGeom_endEntIter(), FBiGeom_getArr1stDrvt(), FBiGeom_getArr2ndAdj(), FBiGeom_getArr2ndDrvt(), FBiGeom_getArrAdj(), FBiGeom_getArrBoundBox(), FBiGeom_getArrClosestPt(), FBiGeom_getArrEgEvalXYZ(), FBiGeom_getArrFcEvalXYZ(), FBiGeom_getArrNrmlPlXYZ(), FBiGeom_getArrNrmlSense(), FBiGeom_getArrNrmlUV(), FBiGeom_getArrNrmlXYZ(), FBiGeom_getArrTgntU(), FBiGeom_getArrTgntXYZ(), FBiGeom_getArrTolerance(), FBiGeom_getArrType(), FBiGeom_getArrURange(), FBiGeom_getArrUtoUV(), FBiGeom_getArrUtoXYZ(), FBiGeom_getArrUVRange(), FBiGeom_getArrUVtoXYZ(), FBiGeom_getArrXYZtoU(), FBiGeom_getArrXYZtoUV(), FBiGeom_getArrXYZtoUVHint(), FBiGeom_getBoundBox(), FBiGeom_getEgCvtrXYZ(), FBiGeom_getEgEvalXYZ(), FBiGeom_getEgFcArrSense(), FBiGeom_getEgFcSense(), FBiGeom_getEgVtxArrSense(), FBiGeom_getEgVtxSense(), FBiGeom_getEnt1stDrvt(), FBiGeom_getEnt2ndAdj(), FBiGeom_getEnt2ndDrvt(), FBiGeom_getEntAdj(), FBiGeom_getEntArrCvtrXYZ(), FBiGeom_getEntBoundBox(), FBiGeom_getEntClosestPt(), FBiGeom_getEntClosestPtTrimmed(), FBiGeom_getEntities(), FBiGeom_getEntNrmlPlXYZ(), FBiGeom_getEntNrmlSense(), FBiGeom_getEntNrmlUV(), FBiGeom_getEntNrmlXYZ(), FBiGeom_getEntSets(), FBiGeom_getEntTgntU(), FBiGeom_getEntTgntXYZ(), FBiGeom_getEntTolerance(), FBiGeom_getEntType(), FBiGeom_getEntURange(), FBiGeom_getEntUtoUV(), FBiGeom_getEntUtoXYZ(), FBiGeom_getEntUVRange(), FBiGeom_getEntUVtoXYZ(), FBiGeom_getEntXYZtoU(), FBiGeom_getEntXYZtoUV(), FBiGeom_getEntXYZtoUVHint(), FBiGeom_getFacets(), FBiGeom_getFaceType(), FBiGeom_getFcArrCvtrUV(), FBiGeom_getFcCvtrUV(), FBiGeom_getFcCvtrXYZ(), FBiGeom_getFcEvalXYZ(), FBiGeom_getNextEntArrIter(), FBiGeom_getNextEntIter(), FBiGeom_getNumEntSets(), FBiGeom_getNumOfType(), FBiGeom_getParametric(), FBiGeom_getPntArrClsf(), FBiGeom_getPntArrRayIntsct(), FBiGeom_getPntClsf(), FBiGeom_getPntRayIntsct(), FBiGeom_getRootSet(), FBiGeom_getTolerance(), FBiGeom_getVtxArrCoords(), FBiGeom_getVtxArrToU(), FBiGeom_getVtxArrToUV(), FBiGeom_getVtxCoord(), FBiGeom_getVtxToU(), FBiGeom_getVtxToUV(), FBiGeom_imprintEnts(), FBiGeom_initEntArrIter(), FBiGeom_initEntIter(), FBiGeom_intersect(), FBiGeom_intersectEnts(), FBiGeom_isArrAdj(), FBiGeom_isArrParametric(), FBiGeom_isArrPeriodic(), FBiGeom_isEntAdj(), FBiGeom_isEntParametric(), FBiGeom_isFcArrDegenerate(), FBiGeom_isFcDegenerate(), FBiGeom_isList(), FBiGeom_load(), FBiGeom_measure(), FBiGeom_mergeEnts(), FBiGeom_moveEnt(), FBiGeom_reflectEnt(), FBiGeom_resetEntArrIter(), FBiGeom_resetEntIter(), FBiGeom_rotateEnt(), FBiGeom_scaleEnt(), FBiGeom_sectionEnt(), FBiGeom_subtract(), FBiGeom_subtractEnts(), FBiGeom_sweepEntAboutAxis(), FBiGeom_unite(), FBiGeom_uniteEnts(), iMesh_addEntArrToSet(), iMesh_addEntSet(), iMesh_addPrntChld(), iMesh_connectIterate(), iMesh_coordsIterate(), iMesh_createEnt(), iMesh_createEntArr(), iMesh_createEntSet(), iMesh_createStructuredMesh(), iMesh_createTagWithOptions(), iMesh_createVtxArr(), iMesh_deleteEntArr(), iMesh_destroyEntSet(), iMesh_destroyTag(), iMesh_endEntArrIter(), iMesh_getAdjTable(), iMesh_getAllEntSetTags(), iMesh_getAllIfaceTags(), iMesh_getAllTags(), iMesh_getArrData(), iMesh_getChldn(), iMesh_getDfltStorage(), iMesh_getEntArr2ndAdj(), iMesh_getEntArrAdj(), iMesh_getEntArrTopo(), iMesh_getEntArrType(), iMesh_getEntitiesRec(), iMesh_getEntsByTagsRec(), iMesh_getEntSetData(), iMesh_getEntSets(), iMesh_getEntSetsByTagsRec(), iMesh_getEntTopo(), iMesh_getEntType(), iMesh_getGeometricDimension(), iMesh_getNextEntArrIter(), iMesh_getNumChld(), iMesh_getNumEntSets(), iMesh_getNumOfTopoRec(), iMesh_getNumOfTypeRec(), iMesh_getNumPrnt(), iMesh_getPrnts(), iMesh_getRootSet(), iMesh_getTagHandle(), iMesh_getTagName(), iMesh_getTagSizeBytes(), iMesh_getTagSizeValues(), iMesh_getTagType(), iMesh_getVtxArrCoords(), iMesh_initEntArrIterRec(), iMesh_intersect(), iMesh_isChildOf(), iMesh_isEntArrContained(), iMesh_isList(), iMesh_load(), iMesh_optimize(), iMesh_resetEntArrIter(), iMesh_rmvArrTag(), iMesh_rmvEntArrFromSet(), iMesh_rmvEntSet(), iMesh_rmvEntSetTag(), iMesh_rmvPrntChld(), iMesh_save(), iMesh_setAdjTable(), iMesh_setArrData(), iMesh_setEntSetData(), iMesh_setGeometricDimension(), iMesh_setVtxArrCoords(), iMesh_stepEntArrIter(), iMesh_subtract(), iMesh_tagIterate(), iMesh_unite(), iMeshP_addGhostOf(), iMeshP_assignGlobalIds(), iMeshP_createGhostEntsAll(), iMeshP_createPart(), iMeshP_createPartitionAll(), iMeshP_deleteGhostEntsAll(), iMeshP_destroyPart(), iMeshP_destroyPartitionAll(), iMeshP_exchEntArrToPartsAll(), iMeshP_getCommunicator(), iMeshP_getCopies(), iMeshP_getCopyOnPart(), iMeshP_getCopyParts(), iMeshP_getEntities(), iMeshP_getEntOwnerPartArr(), iMeshP_getEntStatusArr(), iMeshP_getLocalParts(), iMeshP_getNumCopies(), iMeshP_getNumGlobalParts(), iMeshP_getNumLocalParts(), iMeshP_getNumOfTopoAll(), iMeshP_getNumOfTypeAll(), iMeshP_getNumPartBdryEnts(), iMeshP_getNumPartitions(), iMeshP_getNumPartNborsArr(), iMeshP_getOwnerCopy(), iMeshP_getPartBdryEnts(), iMeshP_getPartHandlesFromPartsIdsArr(), iMeshP_getPartIdsFromPartHandlesArr(), iMeshP_getPartitionComm(), iMeshP_getPartitions(), iMeshP_getPartNborsArr(), iMeshP_getPartsArrOnRank(), iMeshP_getPartsOnRank(), iMeshP_getRankOfPartArr(), iMeshP_ghostEntInfo(), iMeshP_initEntArrIter(), iMeshP_initPartBdryEntArrIter(), iMeshP_iPushTags(), iMeshP_iPushTagsEnt(), iMeshP_isEntOwnerArr(), iMeshP_loadAll(), iMeshP_migrateEntity(), iMeshP_pollForRequests(), iMeshP_pushTags(), iMeshP_pushTagsEnt(), iMeshP_replaceOnPartBdry(), iMeshP_rmvGhostOf(), iMeshP_syncMeshAll(), iMeshP_syncPartitionAll(), iMeshP_testRequest(), iMeshP_updateVtxCoords(), iMeshP_waitForAllRequests(), iMeshP_waitForAnyRequest(), iMeshP_waitForRequestEnt(), iRel_createPair(), iRel_findPairs(), iRel_getEntArrEntArrRelation(), iRel_getEntArrSetArrRelation(), iRel_getEntArrSetIterArrRelation(), iRel_getPairInfo(), iRel_getSetArrEntArrRelation(), iRel_getSetArrSetArrRelation(), iRel_inferArrArrRelations(), iRel_setEntArrEntArrRelation(), iRel_setEntArrSetArrRelation(), iRel_setSetArrEntArrRelation(), iRel_setSetArrSetArrRelation(), and set_intersection_query().


Function Documentation

static bool FBiGeom_isError ( int  code) [inline, static]

Definition at line 82 of file FBiGeom_MOAB.hpp.

References iBase_SUCCESS.

{
    return ( iBase_SUCCESS != code );
}
static bool FBiGeom_isError ( moab::ErrorCode  code) [inline, static]

Definition at line 86 of file FBiGeom_MOAB.hpp.

References MB_SUCCESS.

{
    return ( moab::MB_SUCCESS != code );
}
static moab::Interface* MBI_cast ( FBiGeom_Instance  i) [inline, static]

Definition at line 62 of file FBiGeom_MOAB.hpp.

{
    return reinterpret_cast< MBiGeom* >( i )->moabItf();
}

Variable Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines