COVISE Core
|
#include <coDoUnstructuredGrid.h>
Public Member Functions | |
coDoUnstructuredGrid (const coObjInfo &info) | |
coDoUnstructuredGrid (const coObjInfo &info, coShmArray *arr) | |
coDoUnstructuredGrid (const coObjInfo &info, int nelem, int nconn, int ncoord, int ht) | |
coDoUnstructuredGrid (const coObjInfo &info, int nelem, int nconn, int ncoord, int ht, int nneighbor) | |
coDoUnstructuredGrid (const coObjInfo &info, int nelem, int nconn, int ncoord, int *el, int *cl, float *xc, float *yc, float *zc) | |
coDoUnstructuredGrid (const coObjInfo &info, int nelem, int nconn, int ncoord, int *el, int *cl, float *xc, float *yc, float *zc, int *tl) | |
virtual | ~coDoUnstructuredGrid () |
void | computeNeighborList () const |
void | freeNeighborList () const |
void | getAddresses (int **elem, int **conn, float **x_c, float **y_c, float **z_c) const |
void | getGridSize (int *e, int *c, int *p) const |
int | getNumPoints () const |
int | getNeighbor (int element, std::vector< int > face_nodes_list) |
int | getNeighbor (int element, int n1, int n2, int n3, int n4) |
int | getNeighbor (int element, int n1, int n2, int n3) |
int | getNeighbor (int element, int n1, int n2) |
int | getNeighbors (int element, int n1, int n2, int *neighbors) |
int | getNeighbors (int element, int n1, int *neighbors) |
void | getNeighborList (int *n, int **l, int **li) const |
void | getTypeList (int **l) const |
int | hasNeighborList () const |
int | hasTypeList () const |
int | setSizes (int numElem, int numConn, int numCoord) |
int | interpolateField (float *v_interp, const float *point, int *cell, int no_arrays, int array_dim, float tolerance, const float *const *velo) const |
int | mapScalarField (float *v_interp, const float *point, int *cell, int no_arrays, int array_dim, const float *const *velo) |
void | mapInCell (float *v_interp, const float *point, int cell, int no_arrays, int array_dim, const float *const *velo) |
int | getCell (const float *point, float tolerance) |
const coDoOctTree * | GetOctTree (const coDistributedObject *reuseOctTree, const char *OctTreeSurname) const |
void | compressConnectivity () |
int | getNumConnOfElement (int elem) const |
Public Member Functions inherited from covise::coDoGrid | |
coDoGrid (const coObjInfo &info) | |
coDoGrid (const coObjInfo &info, const char *t) | |
Public Member Functions inherited from covise::coDistributedObject | |
void | getShmLocation (int &shmSegNo, shmSizeType &offset) const |
Get my location in shared memory. More... | |
void | addAttribute (const char *, const char *) |
Attach an attribute to an object. More... | |
void | addAttributes (int, const char *const *, const char *const *) |
Attach multiple attributes to an object. More... | |
const char * | getAttribute (const char *) const |
get one attribute More... | |
int | getNumAttributes () const |
get number of attributes More... | |
int | getAllAttributes (const char ***name, const char ***content) const |
get all attributes More... | |
void | copyAllAttributes (const coDistributedObject *src) |
copy all attributes from src to this object More... | |
char * | getName () const |
get the object's name More... | |
const char * | getType () const |
get the object's type More... | |
int | isType (const char *reqType) const |
check whether this is a certain type More... | |
bool | objectOk () const |
check whether object was created or received ok More... | |
coDistributedObject () | |
coDistributedObject (const coObjInfo &info) | |
coDistributedObject (const coObjInfo &info, const char *t) | |
coDistributedObject (const coObjInfo &info, int shmSeg, shmSizeType offs, char *t) | |
virtual | ~coDistributedObject () |
coDistributedObject * | clone (const coObjInfo &newinfo) const |
void | copyObjInfo (coObjInfo *info) const |
const coDistributedObject * | createUnknown () const |
int * | store_header (int, int, int, int *, data_type *, long *, int **) |
int | restore_header (int **, int, int *, int *, shmSizeType *) |
void | init_header (int *, int *, int, data_type **, long **) |
int | update_shared_dl (int count, covise_data_list *dl) |
int | store_shared_dl (int count, covise_data_list *dl) |
int | restore_shared_dl (int count, covise_data_list *dl) |
void | setType (const char *, const char *) |
int | getObjectInfo (coDoInfo **) const |
int | get_type_no () const |
int | access (access_type) |
int | destroy () |
char * | object_on_hosts () const |
int | incRefCount () const |
int | decRefCount () const |
int | getRefCount () const |
void | print () const |
void | getObjectFromShm () |
Common function for all read-Constructors: More... | |
bool | checkObject () const |
Check object: return true if valid, false if not. More... | |
Protected Member Functions | |
int | rebuildFromShm () |
int | getObjInfo (int, coDoInfo **) const |
coDoUnstructuredGrid * | cloneObject (const coObjInfo &newinfo) const |
Protected Member Functions inherited from covise::coDistributedObject | |
int | getShmArray () const |
int | createFromShm (coShmArray *arr) |
bool | checkObj (int shmSegNo, shmSizeType shmOffs, bool &printed) const |
Check object in shared memory. More... | |
Private Types | |
enum | { SHM_OBJ = 12 } |
Private Member Functions | |
int | testACell (float *v_interp, const float *point, int cell, int no_arrays, int array_dim, float tolerance, const float *const *velo) const |
void | MakeOctTree (const char *octSurname) const |
Static Private Member Functions | |
static coDistributedObject * | virtualCtor (coShmArray *arr) |
Private Attributes | |
coIntShm | numelem |
coIntShm | numconn |
coIntShm | numcoord |
coIntShm | numneighbor |
coFloatShmArray | x_coord |
coFloatShmArray | y_coord |
coFloatShmArray | z_coord |
coIntShmArray | connections |
coIntShmArray | elements |
coIntShmArray | elementtypes |
coIntShmArray | neighborlist |
coIntShmArray | neighborindex |
const coDistributedObject * | oct_tree |
int | hastypes |
int | hasneighbors |
int * | lnl |
int * | lnli |
int * | el |
int * | cl |
int * | tl |
Friends | |
class | coDoInitializer |
Additional Inherited Members | |
Static Public Member Functions inherited from covise::coDistributedObject | |
static const coDistributedObject * | createFromShm (const coObjInfo &newinfo) |
static const coDistributedObject * | createUnknown (coShmArray *) |
static const coDistributedObject * | createUnknown (int seg, shmSizeType offs) |
static int | calcType (const char *) |
static char * | calcTypeString (int) |
static int | set_vconstr (const char *, coDistributedObject *(*)(coShmArray *)) |
Protected Attributes inherited from covise::coDistributedObject | |
coIntShm | version |
coIntShm | refcount |
coShmArray * | shmarr |
coStringShmArray * | attributes |
coDoHeader * | header |
char | type_name [7] |
int | type_no |
char * | name |
int | loc_version |
bool | new_ok |
int | size |
char * | attribs |
|
inline |
coDoUnstructuredGrid::coDoUnstructuredGrid | ( | const coObjInfo & | info, |
coShmArray * | arr | ||
) |
coDoUnstructuredGrid::coDoUnstructuredGrid | ( | const coObjInfo & | info, |
int | nelem, | ||
int | nconn, | ||
int | ncoord, | ||
int | ht | ||
) |
covise::coDoUnstructuredGrid::coDoUnstructuredGrid | ( | const coObjInfo & | info, |
int | nelem, | ||
int | nconn, | ||
int | ncoord, | ||
int | ht, | ||
int | nneighbor | ||
) |
coDoUnstructuredGrid::coDoUnstructuredGrid | ( | const coObjInfo & | info, |
int | nelem, | ||
int | nconn, | ||
int | ncoord, | ||
int * | el, | ||
int * | cl, | ||
float * | xc, | ||
float * | yc, | ||
float * | zc | ||
) |
coDoUnstructuredGrid::coDoUnstructuredGrid | ( | const coObjInfo & | info, |
int | nelem, | ||
int | nconn, | ||
int | ncoord, | ||
int * | el, | ||
int * | cl, | ||
float * | xc, | ||
float * | yc, | ||
float * | zc, | ||
int * | tl | ||
) |
|
virtual |
|
protectedvirtual |
Implements covise::coDistributedObject.
void coDoUnstructuredGrid::compressConnectivity | ( | ) |
void coDoUnstructuredGrid::computeNeighborList | ( | ) | const |
|
inline |
|
inline |
int coDoUnstructuredGrid::getCell | ( | const float * | point, |
float | tolerance | ||
) |
|
inline |
int covise::coDoUnstructuredGrid::getNeighbor | ( | int | element, |
std::vector< int > | face_nodes_list | ||
) |
int coDoUnstructuredGrid::getNeighbor | ( | int | element, |
int | n1, | ||
int | n2, | ||
int | n3, | ||
int | n4 | ||
) |
int coDoUnstructuredGrid::getNeighbor | ( | int | element, |
int | n1, | ||
int | n2, | ||
int | n3 | ||
) |
int coDoUnstructuredGrid::getNeighbor | ( | int | element, |
int | n1, | ||
int | n2 | ||
) |
|
inline |
int coDoUnstructuredGrid::getNeighbors | ( | int | element, |
int | n1, | ||
int | n2, | ||
int * | neighbors | ||
) |
int coDoUnstructuredGrid::getNeighbors | ( | int | element, |
int | n1, | ||
int * | neighbors | ||
) |
int coDoUnstructuredGrid::getNumConnOfElement | ( | int | elem | ) | const |
|
inlinevirtual |
Implements covise::coDoGrid.
|
protectedvirtual |
Reimplemented from covise::coDistributedObject.
const coDoOctTree * coDoUnstructuredGrid::GetOctTree | ( | const coDistributedObject * | reuseOctTree, |
const char * | OctTreeSurname | ||
) | const |
|
inline |
|
inline |
|
inline |
int coDoUnstructuredGrid::interpolateField | ( | float * | v_interp, |
const float * | point, | ||
int * | cell, | ||
int | no_arrays, | ||
int | array_dim, | ||
float | tolerance, | ||
const float *const * | velo | ||
) | const |
|
private |
void coDoUnstructuredGrid::mapInCell | ( | float * | v_interp, |
const float * | point, | ||
int | cell, | ||
int | no_arrays, | ||
int | array_dim, | ||
const float *const * | velo | ||
) |
int coDoUnstructuredGrid::mapScalarField | ( | float * | v_interp, |
const float * | point, | ||
int * | cell, | ||
int | no_arrays, | ||
int | array_dim, | ||
const float *const * | velo | ||
) |
|
protectedvirtual |
Implements covise::coDistributedObject.
int coDoUnstructuredGrid::setSizes | ( | int | numElem, |
int | numConn, | ||
int | numCoord | ||
) |
set new values for sizes: only DECREASING is allowed
numElem | New size of element list |
numConn | New size of connectivity list |
numCoord | New size of coordinale list |
|
private |
|
staticprivate |
removed from header:
coDoUnstructuredGrid(const char *n, int nelem, int nconn, int ncoord, int *el, int *cl, float *xc, float *yc, float *zc, int *tl, int nneighbor, int *nl, int *nli); coDoUnstructuredGrid(const char *n, int nelem, int nconn, int ncoord, int *el, int *cl, float *xc, float *yc, float *zc, int nneighbor, int *nl, int *nli);
|
friend |
|
mutableprivate |
|
private |
|
mutableprivate |
|
private |
|
private |
|
private |
|
private |
|
mutableprivate |
|
mutableprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
mutableprivate |
|
mutableprivate |
|
private |
|
private |
|
private |