MOAB: Mesh Oriented datABase  (version 5.2.1)
OffsetHexCenterNodes Class Reference

Public Member Functions

 OffsetHexCenterNodes (Interface *mb, double x, double y, double z)
 ~OffsetHexCenterNodes ()
void node_added (EntityHandle node, EntityHandle)
void node_removed (EntityHandle)

Private Attributes

Interface * gMB
double mCoords [3]
double mOffset [3]

Detailed Description

Definition at line 3099 of file MBTest.cpp.


Constructor & Destructor Documentation

OffsetHexCenterNodes::OffsetHexCenterNodes ( Interface *  mb,
double  x,
double  y,
double  z 
) [inline]

Definition at line 3102 of file MBTest.cpp.

References z.

                                                                        : gMB( mb )
    {
        mCoords[0] = 0.0;
        mCoords[1] = 0.0;
        mCoords[2] = 0.0;
        mOffset[0] = x;
        mOffset[1] = y;
        mOffset[2] = z;
    }

Definition at line 3112 of file MBTest.cpp.

{}

Member Function Documentation

Definition at line 3114 of file MBTest.cpp.

    {
        gMB->get_coords( &node, 1, mCoords );
        mCoords[0] += mOffset[0];
        mCoords[1] += mOffset[1];
        mCoords[2] += mOffset[2];
        gMB->set_coords( &node, 1, mCoords );
    }

Definition at line 3124 of file MBTest.cpp.

{}

Member Data Documentation

Interface* OffsetHexCenterNodes::gMB [private]

Definition at line 3127 of file MBTest.cpp.

double OffsetHexCenterNodes::mCoords[3] [private]

Definition at line 3128 of file MBTest.cpp.

double OffsetHexCenterNodes::mOffset[3] [private]

Definition at line 3129 of file MBTest.cpp.

List of all members.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines