#include <SweptElementData.hpp>
Classes | |
class | VertexDataRef |
structure to hold references to bounding vertex blocks More... | |
Public Member Functions | |
SweptElementData (EntityHandle start_handle, const int imin, const int jmin, const int kmin, const int imax, const int jmax, const int kmax, const int *Cq) | |
constructor More... | |
virtual | ~SweptElementData () |
EntityHandle | get_vertex (const HomCoord &coords) const |
get handle of vertex at homogeneous coords More... | |
EntityHandle | get_vertex (int i, int j, int k) const |
EntityHandle | get_element (const int i, const int j, const int k) const |
get handle of element at i, j, k More... | |
const HomCoord & | min_params () const |
get min params for this element More... | |
const HomCoord & | max_params () const |
get max params for this element More... | |
void | param_extents (int &di, int &dj, int &dk) const |
get the number of vertices in each direction, inclusive More... | |
ErrorCode | get_params (const EntityHandle ehandle, int &i, int &j, int &k) const |
given a handle, get the corresponding parameters More... | |
int | i_min () const |
convenience functions for parameter extents More... | |
int | j_min () const |
int | k_min () const |
int | i_max () const |
int | j_max () const |
int | k_max () const |
bool | boundary_complete () const |
test the bounding vertex sequences and determine whether they fully define the vertices covering this element block's parameter space More... | |
bool | contains (const HomCoord &coords) const |
test whether this sequence contains these parameters More... | |
ErrorCode | get_params_connectivity (const int i, const int j, const int k, std::vector< EntityHandle > &connectivity) const |
get connectivity of an entity given entity's parameters More... | |
ErrorCode | add_vsequence (SweptVertexData *vseq, const HomCoord &p1, const HomCoord &q1, const HomCoord &p2, const HomCoord &q2, const HomCoord &p3, const HomCoord &q3, bool bb_input=false, const HomCoord &bb_min=HomCoord::unitv[0], const HomCoord &bb_max=HomCoord::unitv[0]) |
add a vertex seq ref to this element sequence; if bb_input is true, bounding box (in eseq-local coords) of vseq being added is input in bb_min and bb_max (allows partial sharing of vseq rather than the whole vseq); if it's false, the whole vseq is referenced and the eseq-local coordinates is computed from the transformed bounding box of the vseq More... | |
SequenceData * | subset (EntityHandle start, EntityHandle end, const int *sequence_data_sizes, const int *tag_data_sizes) const |
unsigned long | get_memory_use () const |
Public Member Functions inherited from moab::SequenceData | |
SequenceData (int num_sequence_arrays, EntityHandle start, EntityHandle end) | |
virtual | ~SequenceData () |
EntityHandle | start_handle () const |
EntityHandle | end_handle () const |
EntityID | size () const |
void * | get_sequence_data (int array_num) |
void const * | get_sequence_data (int array_num) const |
AdjacencyDataType * | get_adjacency_data () |
AdjacencyDataType const * | get_adjacency_data () const |
void * | get_tag_data (unsigned tag_num) |
void const * | get_tag_data (unsigned tag_num) const |
void * | create_sequence_data (int array_num, int bytes_per_ent, const void *initial_val=0) |
Allocate array of sequence-specific data. More... | |
void * | create_custom_data (int array_num, size_t total_bytes) |
Allocate array of sequence-specific data. More... | |
AdjacencyDataType * | allocate_adjacency_data () |
Allocate array for storing adjacency data. More... | |
void * | allocate_tag_array (int index, int bytes_per_ent, const void *default_value=0) |
Allocate array of dense tag data. More... | |
SequenceData * | subset (EntityHandle start, EntityHandle end, const int *sequence_data_sizes) const |
Create new SequenceData that is a copy of a subset of this one. More... | |
void | move_tag_data (SequenceData *destination, const int *tag_sizes, int num_tag_sizes) |
Move tag data for a subset of this sequences to specified sequence. More... | |
void | release_tag_data (const int *tag_sizes, int num_tag_sizes) |
Free all tag data arrays. More... | |
void | release_tag_data (int index, int tag_size) |
Free specified tag data array. More... | |
Static Public Member Functions | |
static EntityID | calc_num_entities (EntityHandle start_handle, int irange, int jrange, int krange) |
Private Member Functions | |
SweptElementData () | |
bare constructor, so compiler doesn't create one for me More... | |
Private Attributes | |
HomCoord | elementParams [3] |
parameter min/max/stride, in homogeneous coords ijkh More... | |
int | dIJK [3] |
difference between max and min params plus one (i.e. # VERTICES in each parametric direction) More... | |
int | dIJKm1 [3] |
difference between max and min params (i.e. # ELEMENTS in each parametric direction) More... | |
std::vector< VertexDataRef > | vertexSeqRefs |
list of bounding vertex blocks More... | |
Additional Inherited Members | |
Public Types inherited from moab::SequenceData | |
typedef std::vector< EntityHandle > * | AdjacencyDataType |
Public Attributes inherited from moab::SequenceData | |
TypeSequenceManager::SequenceDataPtr | seqManData |
SequenceManager data. More... | |
Protected Member Functions inherited from moab::SequenceData | |
SequenceData (const SequenceData *subset_from, EntityHandle start, EntityHandle end, const int *sequence_data_sizes) | |
Definition at line 43 of file SweptElementData.hpp.
|
private |
bare constructor, so compiler doesn't create one for me
moab::SweptElementData::SweptElementData | ( | EntityHandle | start_handle, |
const int | imin, | ||
const int | jmin, | ||
const int | kmin, | ||
const int | imax, | ||
const int | jmax, | ||
const int | kmax, | ||
const int * | Cq | ||
) |
constructor
Definition at line 50 of file SweptElementData.cpp.
References dIJK, dIJKm1, and elementParams.
|
virtual |
Definition at line 76 of file SweptElementData.cpp.
|
inline |
add a vertex seq ref to this element sequence; if bb_input is true, bounding box (in eseq-local coords) of vseq being added is input in bb_min and bb_max (allows partial sharing of vseq rather than the whole vseq); if it's false, the whole vseq is referenced and the eseq-local coordinates is computed from the transformed bounding box of the vseq
Definition at line 266 of file SweptElementData.hpp.
References moab::SweptVertexData::max_params(), MB_SUCCESS, moab::SweptVertexData::min_params(), moab::HomXform::three_pt_xform(), and vertexSeqRefs.
bool moab::SweptElementData::boundary_complete | ( | ) | const |
test the bounding vertex sequences and determine whether they fully define the vertices covering this element block's parameter space
Definition at line 78 of file SweptElementData.cpp.
References elementParams, moab::HomCoord::unitv, and vertexSeqRefs.
Referenced by get_vertex().
|
static |
Definition at line 27 of file SweptElementData.cpp.
References dim, moab::CN::Dimension(), moab::SequenceData::start_handle(), and moab::TYPE_FROM_HANDLE().
|
inline |
test whether this sequence contains these parameters
Definition at line 225 of file SweptElementData.hpp.
References elementParams.
Referenced by get_params_connectivity().
|
inline |
get handle of element at i, j, k
Definition at line 180 of file SweptElementData.hpp.
References dIJKm1, i_min(), j_min(), k_min(), and moab::SequenceData::start_handle().
unsigned long moab::SweptElementData::get_memory_use | ( | ) | const |
Definition at line 160 of file SweptElementData.cpp.
References vertexSeqRefs.
|
inline |
given a handle, get the corresponding parameters
Definition at line 203 of file SweptElementData.hpp.
References dIJKm1, elementParams, moab::HomCoord::i(), i_max(), i_min(), moab::HomCoord::j(), j_max(), j_min(), moab::HomCoord::k(), k_max(), k_min(), MB_SUCCESS, moab::SequenceData::size(), moab::SequenceData::start_handle(), and moab::TYPE_FROM_HANDLE().
|
inline |
get connectivity of an entity given entity's parameters
Definition at line 316 of file SweptElementData.hpp.
References contains(), moab::CN::Dimension(), get_vertex(), MB_SUCCESS, moab::SequenceData::start_handle(), and moab::TYPE_FROM_HANDLE().
|
inline |
get handle of vertex at homogeneous coords
Definition at line 247 of file SweptElementData.hpp.
References boundary_complete(), and vertexSeqRefs.
Referenced by get_params_connectivity(), and get_vertex().
|
inline |
Definition at line 95 of file SweptElementData.hpp.
References get_vertex().
|
inline |
Definition at line 128 of file SweptElementData.hpp.
References elementParams.
Referenced by get_params().
|
inline |
convenience functions for parameter extents
Definition at line 116 of file SweptElementData.hpp.
References elementParams.
Referenced by get_element(), and get_params().
|
inline |
Definition at line 132 of file SweptElementData.hpp.
References elementParams.
Referenced by get_params().
|
inline |
Definition at line 120 of file SweptElementData.hpp.
References elementParams.
Referenced by get_element(), and get_params().
|
inline |
Definition at line 136 of file SweptElementData.hpp.
References elementParams.
Referenced by get_params().
|
inline |
Definition at line 124 of file SweptElementData.hpp.
References elementParams.
Referenced by get_element(), and get_params().
|
inline |
get max params for this element
Definition at line 190 of file SweptElementData.hpp.
References elementParams.
|
inline |
get min params for this element
Definition at line 185 of file SweptElementData.hpp.
References elementParams.
|
inline |
SequenceData * moab::SweptElementData::subset | ( | EntityHandle | start, |
EntityHandle | end, | ||
const int * | sequence_data_sizes, | ||
const int * | tag_data_sizes | ||
) | const |
Definition at line 152 of file SweptElementData.cpp.
|
private |
difference between max and min params plus one (i.e. # VERTICES in each parametric direction)
Definition at line 68 of file SweptElementData.hpp.
Referenced by param_extents(), and SweptElementData().
|
private |
difference between max and min params (i.e. # ELEMENTS in each parametric direction)
Definition at line 72 of file SweptElementData.hpp.
Referenced by get_element(), get_params(), and SweptElementData().
|
private |
parameter min/max/stride, in homogeneous coords ijkh
Definition at line 64 of file SweptElementData.hpp.
Referenced by boundary_complete(), contains(), get_params(), i_max(), i_min(), j_max(), j_min(), k_max(), k_min(), max_params(), min_params(), and SweptElementData().
|
private |
list of bounding vertex blocks
Definition at line 78 of file SweptElementData.hpp.
Referenced by add_vsequence(), boundary_complete(), get_memory_use(), and get_vertex().