MOAB: Mesh Oriented datABase
(version 5.4.1)
|
Specify a division of the Mesh into working patches. More...
#include <PatchSet.hpp>
Public Types | |
typedef void * | PatchHandle |
Public Member Functions | |
PatchSet () | |
virtual | ~PatchSet () |
Declare destructor virtual. | |
void | set_mesh (Mesh *mesh) |
Specify the working Mesh. | |
virtual void | get_patch_handles (std::vector< PatchHandle > &patch_handles_out, MsqError &err)=0 |
Get a list of handles, one for each patch. | |
virtual void | get_patch (PatchHandle patch_handle, std::vector< Mesh::ElementHandle > &elem_handles_out, std::vector< Mesh::VertexHandle > &free_vertices_out, MsqError &err)=0 |
Get the mesh entities in a patch. | |
Mesh * | get_mesh () const |
get the Mesh object passed to set_mesh() | |
Private Member Functions | |
PatchSet (const PatchSet &) | |
disallow copying | |
PatchSet & | operator= (const PatchSet &) |
disallow assignment | |
Private Attributes | |
Mesh * | myMesh |
Specify a division of the Mesh into working patches.
This class provides an interface for specifying how Mesquite will divide the active mesh into working patches.
Definition at line 50 of file PatchSet.hpp.
typedef void* MBMesquite::PatchSet::PatchHandle |
Definition at line 53 of file PatchSet.hpp.
MBMesquite::PatchSet::PatchSet | ( | ) | [inline] |
Definition at line 55 of file PatchSet.hpp.
{}
MBMesquite::PatchSet::~PatchSet | ( | ) | [virtual] |
MBMesquite::PatchSet::PatchSet | ( | const PatchSet & | ) | [private] |
disallow copying
Mesh* MBMesquite::PatchSet::get_mesh | ( | ) | const [inline] |
get the Mesh object passed to set_mesh()
Definition at line 86 of file PatchSet.hpp.
Referenced by MBMesquite::PatchIterator::get_next_patch(), MBMesquite::GlobalPatch::get_patch(), MBMesquite::VertexPatches::get_patch(), MBMesquite::ElementPatches::get_patch_handles(), and MBMesquite::VertexPatches::get_patch_handles().
{ return myMesh; }
virtual void MBMesquite::PatchSet::get_patch | ( | PatchHandle | patch_handle, |
std::vector< Mesh::ElementHandle > & | elem_handles_out, | ||
std::vector< Mesh::VertexHandle > & | free_vertices_out, | ||
MsqError & | err | ||
) | [pure virtual] |
Get the mesh entities in a patch.
Given one of the handles returned by get_patch_handles(), return the mesh entities in the corresponding patch.
patch_handle | one of the handles returned by get_patch_handles() |
elem_handles_out | the list of elements in the mesh |
free_vertices_out | The list of vertices interior to the patch If this list is empty, it is assumed that all vertices in the closure of the elements are free. |
Implemented in MBMesquite::VertexPatches, MBMesquite::ElementPatches, and MBMesquite::GlobalPatch.
Referenced by MBMesquite::PatchIterator::get_next_patch(), MBMesquite::VertexMover::loop_over_mesh(), PatchSetTest::test_bad_handle(), and PatchSetTest::test_fail_entities().
virtual void MBMesquite::PatchSet::get_patch_handles | ( | std::vector< PatchHandle > & | patch_handles_out, |
MsqError & | err | ||
) | [pure virtual] |
Get a list of handles, one for each patch.
Implemented in MBMesquite::VertexPatches, MBMesquite::ElementPatches, and MBMesquite::GlobalPatch.
Referenced by MBMesquite::PatchIterator::get_next_patch(), MBMesquite::VertexMover::loop_over_mesh(), PatchSetTest::test_bad_handle(), PatchSetTest::test_fail_entities(), and PatchSetTest::test_fail_handles().
void MBMesquite::PatchSet::set_mesh | ( | Mesh * | mesh | ) | [inline] |
Specify the working Mesh.
Definition at line 61 of file PatchSet.hpp.
References mesh.
Referenced by MBMesquite::PatchData::fill_global_patch(), MBMesquite::PatchIterator::get_next_patch(), MBMesquite::TargetWriter::loop_over_mesh(), MBMesquite::VertexMover::loop_over_mesh(), MBMesquite::QualityAssessor::loop_over_mesh_internal(), PatchSetTest::test_bad_handle(), VtkTest::test_elements(), PatchSetTest::test_fail_entities(), PatchSetTest::test_fail_handles(), PatchSetTest::test_global_patch(), and PatchSetTest::test_vertex_patches().
Mesh* MBMesquite::PatchSet::myMesh [private] |
Definition at line 97 of file PatchSet.hpp.