MOAB: Mesh Oriented datABase  (version 5.4.1)
OffsetHexCenterNodes Class Reference
+ Inheritance diagram for OffsetHexCenterNodes:
+ Collaboration diagram for OffsetHexCenterNodes:

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

InterfacegMB
double mCoords [3]
double mOffset [3]

Detailed Description

Definition at line 3114 of file MBTest.cpp.


Constructor & Destructor Documentation

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

Definition at line 3117 of file MBTest.cpp.

                                                                        : 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 3127 of file MBTest.cpp.

{}

Member Function Documentation

void OffsetHexCenterNodes::node_added ( EntityHandle  node,
EntityHandle  element 
) [inline, virtual]

node_added called when a node was added to an element's connectivity array note: connectivity array of element may be incomplete (corner nodes will exist always)

Parameters:
nodeNode being added
elementElement node is being added to

Implements moab::Interface::HONodeAddedRemoved.

Definition at line 3129 of file MBTest.cpp.

References moab::Interface::get_coords(), and moab::Interface::set_coords().

    {
        gMB->get_coords( &node, 1, mCoords );
        mCoords[0] += mOffset[0];
        mCoords[1] += mOffset[1];
        mCoords[2] += mOffset[2];
        gMB->set_coords( &node, 1, mCoords );
    }
void OffsetHexCenterNodes::node_removed ( EntityHandle  node) [inline, virtual]

node_added called when a node was added to an element's connectivity array note: connectivity array of element may be incomplete (corner nodes will exist always)

Parameters:
nodeNode being removed.

Implements moab::Interface::HONodeAddedRemoved.

Definition at line 3139 of file MBTest.cpp.

{}

Member Data Documentation

Definition at line 3142 of file MBTest.cpp.

double OffsetHexCenterNodes::mCoords[3] [private]

Definition at line 3143 of file MBTest.cpp.

double OffsetHexCenterNodes::mOffset[3] [private]

Definition at line 3144 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