#include <ScdVertexData.hpp>
Public Member Functions | |
ScdVertexData (const EntityHandle start_vertex, const int imin, const int jmin, const int kmin, const int imax, const int jmax, const int kmax) | |
constructor More... | |
virtual | ~ScdVertexData () |
EntityHandle | get_vertex (const int i, const int j, const int k) const |
get handle of vertex at i, j, k More... | |
EntityHandle | get_vertex (const HomCoord &coords) const |
get handle of vertex at homogeneous coordinates More... | |
ErrorCode | get_params (const EntityHandle vhandle, int &i, int &j, int &k) const |
get the parameters of a given handle; return MB_FAILURE if vhandle not in this sequence More... | |
void | min_params (int &i, int &j, int &k) const |
get min params for this vertex More... | |
void | max_params (int &i, int &j, int &k) const |
get max params for this vertex More... | |
const HomCoord & | min_params () const |
get the min params More... | |
const HomCoord & | max_params () const |
get the max params More... | |
void | param_extents (int &di, int &dj, int &dk) const |
get the number of vertices in each direction, inclusive 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 | contains (const HomCoord &coords) const |
return whether this vseq's parameter space contains these parameters More... | |
bool | contains (const int i, const int j, const int k) const |
SequenceData * | subset (EntityHandle start, EntityHandle end, const int *sequence_data_sizes, const int *tag_data_sizes) 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... | |
Private Attributes | |
HomCoord | vertexParams [3] |
parameter min/max, in homogeneous coords ijkh (extra row for stride eventually) 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. # VERTEXS in each parametric direction) 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 33 of file ScdVertexData.hpp.
moab::ScdVertexData::ScdVertexData | ( | const EntityHandle | start_vertex, |
const int | imin, | ||
const int | jmin, | ||
const int | kmin, | ||
const int | imax, | ||
const int | jmax, | ||
const int | kmax | ||
) |
constructor
Definition at line 23 of file ScdVertexData.cpp.
References moab::SequenceData::create_sequence_data(), dIJK, dIJKm1, and vertexParams.
|
inlinevirtual |
Definition at line 58 of file ScdVertexData.hpp.
|
inline |
return whether this vseq's parameter space contains these parameters
Definition at line 185 of file ScdVertexData.hpp.
References vertexParams.
Referenced by contains().
|
inline |
Definition at line 190 of file ScdVertexData.hpp.
References contains().
|
inline |
get the parameters of a given handle; return MB_FAILURE if vhandle not in this sequence
Definition at line 131 of file ScdVertexData.hpp.
References dIJK, moab::HomCoord::i(), i_max(), i_min(), moab::HomCoord::j(), j_max(), j_min(), moab::HomCoord::k(), k_max(), k_min(), MB_SUCCESS, MBVERTEX, moab::SequenceData::start_handle(), moab::TYPE_FROM_HANDLE(), and vertexParams.
Referenced by moab::ScdBox::get_params().
|
inline |
get handle of vertex at homogeneous coordinates
Definition at line 126 of file ScdVertexData.hpp.
References get_vertex(), and moab::HomCoord::hom_coord().
|
inline |
get handle of vertex at i, j, k
Definition at line 121 of file ScdVertexData.hpp.
References dIJK, i_min(), j_min(), k_min(), and moab::SequenceData::start_handle().
Referenced by get_vertex().
|
inline |
Definition at line 98 of file ScdVertexData.hpp.
References moab::HomCoord::hom_coord(), and vertexParams.
Referenced by get_params(), and max_params().
|
inline |
convenience functions for parameter extents
Definition at line 86 of file ScdVertexData.hpp.
References moab::HomCoord::hom_coord(), and vertexParams.
Referenced by get_params(), get_vertex(), and min_params().
|
inline |
Definition at line 102 of file ScdVertexData.hpp.
References moab::HomCoord::hom_coord(), and vertexParams.
Referenced by get_params(), and max_params().
|
inline |
Definition at line 90 of file ScdVertexData.hpp.
References moab::HomCoord::hom_coord(), and vertexParams.
Referenced by get_params(), get_vertex(), and min_params().
|
inline |
Definition at line 106 of file ScdVertexData.hpp.
References moab::HomCoord::hom_coord(), and vertexParams.
Referenced by get_params(), and max_params().
|
inline |
Definition at line 94 of file ScdVertexData.hpp.
References moab::HomCoord::hom_coord(), and vertexParams.
Referenced by get_params(), get_vertex(), and min_params().
|
inline |
|
inline |
get max params for this vertex
Definition at line 160 of file ScdVertexData.hpp.
References i_max(), j_max(), and k_max().
Referenced by moab::ScdElementData::add_vsequence(), and moab::ScdBox::ScdBox().
|
inline |
|
inline |
get min params for this vertex
Definition at line 152 of file ScdVertexData.hpp.
References i_min(), j_min(), and k_min().
Referenced by moab::ScdElementData::add_vsequence(), and moab::ScdBox::ScdBox().
|
inline |
SequenceData * moab::ScdVertexData::subset | ( | EntityHandle | start, |
EntityHandle | end, | ||
const int * | sequence_data_sizes, | ||
const int * | tag_data_sizes | ||
) | const |
Definition at line 53 of file ScdVertexData.cpp.
|
private |
difference between max and min params plus one (i.e. # VERTICES in each parametric direction)
Definition at line 42 of file ScdVertexData.hpp.
Referenced by get_params(), get_vertex(), param_extents(), and ScdVertexData().
|
private |
difference between max and min params (i.e. # VERTEXS in each parametric direction)
Definition at line 46 of file ScdVertexData.hpp.
Referenced by ScdVertexData().
|
private |
parameter min/max, in homogeneous coords ijkh (extra row for stride eventually)
Definition at line 38 of file ScdVertexData.hpp.
Referenced by contains(), get_params(), i_max(), i_min(), j_max(), j_min(), k_max(), k_min(), max_params(), min_params(), and ScdVertexData().