MOAB: Mesh Oriented datABase  (version 5.4.1)
MBMesquite::PatchSetUser Class Reference

Utility class for handling variable patch types. More...

#include <PatchSetUser.hpp>

+ Inheritance diagram for MBMesquite::PatchSetUser:
+ Collaboration diagram for MBMesquite::PatchSetUser:

Public Member Functions

 PatchSetUser (bool defaultGlobal)
 PatchSetUser (PatchSet *my_patch_set)
virtual ~PatchSetUser ()
void use_global_patch ()
 Use a single patch representing the entire mesh.
bool using_global_patch () const
 Using a single patch representing the entire mesh.
void use_element_on_vertex_patch (unsigned num_layers=1)
 Construct a patch for each free vertex in the mesh.
bool using_element_on_vertex_patch () const
 True if a patch will be constructed for each free vertex.
unsigned num_element_on_vertex_layers () const
 Get the number of layers of elements that will be included in an element-on-vertex patch.
virtual PatchSetget_patch_set ()
void use_patch_set (PatchSet *patch_set)

Private Attributes

VertexPatches myVertexPatches
GlobalPatch myGlobalPatch
PatchSetactivePatchSet

Detailed Description

Utility class for handling variable patch types.

Common implementation for classes supporting variable patch types.

Definition at line 41 of file PatchSetUser.hpp.


Constructor & Destructor Documentation

MBMesquite::PatchSetUser::PatchSetUser ( bool  defaultGlobal) [inline]

Definition at line 44 of file PatchSetUser.hpp.

References activePatchSet, myGlobalPatch, and myVertexPatches.

                                       : myVertexPatches( 1, true )
    {
        if( defaultGlobal )
            activePatchSet = &myGlobalPatch;
        else
            activePatchSet = &myVertexPatches;
    }
MBMesquite::PatchSetUser::PatchSetUser ( PatchSet my_patch_set) [inline]

Definition at line 52 of file PatchSetUser.hpp.

: myVertexPatches( 1, true ), activePatchSet( my_patch_set ) {}

Definition at line 37 of file PatchSetUser.cpp.

{}

Member Function Documentation

Get the number of layers of elements that will be included in an element-on-vertex patch.

Definition at line 87 of file PatchSetUser.hpp.

References MBMesquite::VertexPatches::get_num_layers(), and myVertexPatches.

void MBMesquite::PatchSetUser::use_patch_set ( PatchSet patch_set) [inline]

Definition at line 97 of file PatchSetUser.hpp.

References activePatchSet.

    {
        activePatchSet = patch_set;
    }

True if a patch will be constructed for each free vertex.

Definition at line 79 of file PatchSetUser.hpp.

References activePatchSet, and myVertexPatches.

Using a single patch representing the entire mesh.

Definition at line 63 of file PatchSetUser.hpp.

References activePatchSet, and myGlobalPatch.

    {
        return activePatchSet == &myGlobalPatch;
    }

Member Data Documentation

List of all members.


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