COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
covise::coDoUnstructuredGrid Class Reference

#include <coDoUnstructuredGrid.h>

Inheritance diagram for covise::coDoUnstructuredGrid:
Inheritance graph
[legend]
Collaboration diagram for covise::coDoUnstructuredGrid:
Collaboration graph
[legend]

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 coDoOctTreeGetOctTree (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 ()
 
coDistributedObjectclone (const coObjInfo &newinfo) const
 
void copyObjInfo (coObjInfo *info) const
 
const coDistributedObjectcreateUnknown () 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
 
coDoUnstructuredGridcloneObject (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 coDistributedObjectvirtualCtor (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 coDistributedObjectoct_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 coDistributedObjectcreateFromShm (const coObjInfo &newinfo)
 
static const coDistributedObjectcreateUnknown (coShmArray *)
 
static const coDistributedObjectcreateUnknown (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
 
coShmArrayshmarr
 
coStringShmArrayattributes
 
coDoHeaderheader
 
char type_name [7]
 
int type_no
 
char * name
 
int loc_version
 
bool new_ok
 
int size
 
char * attribs
 

Member Enumeration Documentation

anonymous enum
private
Enumerator
SHM_OBJ 

Constructor & Destructor Documentation

covise::coDoUnstructuredGrid::coDoUnstructuredGrid ( const coObjInfo info)
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 
)
coDoUnstructuredGrid::~coDoUnstructuredGrid ( )
virtual

Member Function Documentation

coDoUnstructuredGrid * coDoUnstructuredGrid::cloneObject ( const coObjInfo newinfo) const
protectedvirtual
void coDoUnstructuredGrid::compressConnectivity ( )
void coDoUnstructuredGrid::computeNeighborList ( ) const
void covise::coDoUnstructuredGrid::freeNeighborList ( ) const
inline
void covise::coDoUnstructuredGrid::getAddresses ( int **  elem,
int **  conn,
float **  x_c,
float **  y_c,
float **  z_c 
) const
inline
int coDoUnstructuredGrid::getCell ( const float *  point,
float  tolerance 
)
void covise::coDoUnstructuredGrid::getGridSize ( int *  e,
int *  c,
int *  p 
) const
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 
)
void covise::coDoUnstructuredGrid::getNeighborList ( int *  n,
int **  l,
int **  li 
) const
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
int covise::coDoUnstructuredGrid::getNumPoints ( ) const
inlinevirtual

Implements covise::coDoGrid.

int coDoUnstructuredGrid::getObjInfo ( int  no,
coDoInfo **  il 
) const
protectedvirtual

Reimplemented from covise::coDistributedObject.

const coDoOctTree * coDoUnstructuredGrid::GetOctTree ( const coDistributedObject reuseOctTree,
const char *  OctTreeSurname 
) const
void covise::coDoUnstructuredGrid::getTypeList ( int **  l) const
inline
int covise::coDoUnstructuredGrid::hasNeighborList ( ) const
inline
int covise::coDoUnstructuredGrid::hasTypeList ( ) const
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
void coDoUnstructuredGrid::MakeOctTree ( const char *  octSurname) 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 
)
int coDoUnstructuredGrid::rebuildFromShm ( )
protectedvirtual
int coDoUnstructuredGrid::setSizes ( int  numElem,
int  numConn,
int  numCoord 
)

set new values for sizes: only DECREASING is allowed

Returns
0 if ok, -1 on error
Parameters
numElemNew size of element list
numConnNew size of connectivity list
numCoordNew size of coordinale list
int coDoUnstructuredGrid::testACell ( float *  v_interp,
const float *  point,
int  cell,
int  no_arrays,
int  array_dim,
float  tolerance,
const float *const *  velo 
) const
private
coDistributedObject * coDoUnstructuredGrid::virtualCtor ( coShmArray arr)
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);

Friends And Related Function Documentation

friend class coDoInitializer
friend

Member Data Documentation

int * covise::coDoUnstructuredGrid::cl
mutableprivate
coIntShmArray covise::coDoUnstructuredGrid::connections
private
int* covise::coDoUnstructuredGrid::el
mutableprivate
coIntShmArray covise::coDoUnstructuredGrid::elements
private
coIntShmArray covise::coDoUnstructuredGrid::elementtypes
private
int covise::coDoUnstructuredGrid::hasneighbors
private
int covise::coDoUnstructuredGrid::hastypes
private
int* covise::coDoUnstructuredGrid::lnl
mutableprivate
int* covise::coDoUnstructuredGrid::lnli
mutableprivate
coIntShmArray covise::coDoUnstructuredGrid::neighborindex
private
coIntShmArray covise::coDoUnstructuredGrid::neighborlist
private
coIntShm covise::coDoUnstructuredGrid::numconn
private
coIntShm covise::coDoUnstructuredGrid::numcoord
private
coIntShm covise::coDoUnstructuredGrid::numelem
private
coIntShm covise::coDoUnstructuredGrid::numneighbor
private
const coDistributedObject* covise::coDoUnstructuredGrid::oct_tree
mutableprivate
int * covise::coDoUnstructuredGrid::tl
mutableprivate
coFloatShmArray covise::coDoUnstructuredGrid::x_coord
private
coFloatShmArray covise::coDoUnstructuredGrid::y_coord
private
coFloatShmArray covise::coDoUnstructuredGrid::z_coord
private

The documentation for this class was generated from the following files: