COVISE Core
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)
 
virtual int getNumPoints () const =0
 
- 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 *, covise::DataHandle &idata)
 
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)
 
virtual int rebuildFromShm ()=0
 
virtual int getObjInfo (int, coDoInfo **) const
 
bool checkObj (int shmSegNo, shmSizeType shmOffs, bool &printed) const
 Check object in shared memory. More...
 
virtual coDistributedObjectcloneObject (const coObjInfo &newinfo) const =0
 

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 = nullptr
 
coDoHeaderheader = nullptr
 
char type_name [7]
 
int type_no = 0
 
char * name = nullptr
 
int loc_version = -1
 
bool new_ok
 
int size = 0
 
char * attribs = nullptr
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
SHM_OBJ 

Constructor & Destructor Documentation

◆ coDoUnstructuredGrid() [1/6]

covise::coDoUnstructuredGrid::coDoUnstructuredGrid ( const coObjInfo info)
inline

◆ coDoUnstructuredGrid() [2/6]

coDoUnstructuredGrid::coDoUnstructuredGrid ( const coObjInfo info,
coShmArray arr 
)

◆ coDoUnstructuredGrid() [3/6]

coDoUnstructuredGrid::coDoUnstructuredGrid ( const coObjInfo info,
int  nelem,
int  nconn,
int  ncoord,
int  ht 
)

◆ coDoUnstructuredGrid() [4/6]

covise::coDoUnstructuredGrid::coDoUnstructuredGrid ( const coObjInfo info,
int  nelem,
int  nconn,
int  ncoord,
int  ht,
int  nneighbor 
)

◆ coDoUnstructuredGrid() [5/6]

coDoUnstructuredGrid::coDoUnstructuredGrid ( const coObjInfo info,
int  nelem,
int  nconn,
int  ncoord,
int *  el,
int *  cl,
float *  xc,
float *  yc,
float *  zc 
)

◆ coDoUnstructuredGrid() [6/6]

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::~coDoUnstructuredGrid ( )
virtual

Member Function Documentation

◆ cloneObject()

coDoUnstructuredGrid * coDoUnstructuredGrid::cloneObject ( const coObjInfo newinfo) const
protectedvirtual

◆ compressConnectivity()

void coDoUnstructuredGrid::compressConnectivity ( )

◆ computeNeighborList()

void coDoUnstructuredGrid::computeNeighborList ( ) const

◆ freeNeighborList()

void covise::coDoUnstructuredGrid::freeNeighborList ( ) const
inline

◆ getAddresses()

void covise::coDoUnstructuredGrid::getAddresses ( int **  elem,
int **  conn,
float **  x_c,
float **  y_c,
float **  z_c 
) const
inline

◆ getCell()

int coDoUnstructuredGrid::getCell ( const float *  point,
float  tolerance 
)

◆ getGridSize()

void covise::coDoUnstructuredGrid::getGridSize ( int *  e,
int *  c,
int *  p 
) const
inline

◆ getNeighbor() [1/4]

int coDoUnstructuredGrid::getNeighbor ( int  element,
int  n1,
int  n2 
)

◆ getNeighbor() [2/4]

int coDoUnstructuredGrid::getNeighbor ( int  element,
int  n1,
int  n2,
int  n3 
)

◆ getNeighbor() [3/4]

int coDoUnstructuredGrid::getNeighbor ( int  element,
int  n1,
int  n2,
int  n3,
int  n4 
)

◆ getNeighbor() [4/4]

int covise::coDoUnstructuredGrid::getNeighbor ( int  element,
std::vector< int >  face_nodes_list 
)

◆ getNeighborList()

void covise::coDoUnstructuredGrid::getNeighborList ( int *  n,
int **  l,
int **  li 
) const
inline

◆ getNeighbors() [1/2]

int coDoUnstructuredGrid::getNeighbors ( int  element,
int  n1,
int *  neighbors 
)

◆ getNeighbors() [2/2]

int coDoUnstructuredGrid::getNeighbors ( int  element,
int  n1,
int  n2,
int *  neighbors 
)

◆ getNumConnOfElement()

int coDoUnstructuredGrid::getNumConnOfElement ( int  elem) const

◆ getNumPoints()

int covise::coDoUnstructuredGrid::getNumPoints ( ) const
inlinevirtual

Implements covise::coDoGrid.

◆ getObjInfo()

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

Reimplemented from covise::coDistributedObject.

◆ GetOctTree()

const coDoOctTree * coDoUnstructuredGrid::GetOctTree ( const coDistributedObject reuseOctTree,
const char *  OctTreeSurname 
) const

◆ getTypeList()

void covise::coDoUnstructuredGrid::getTypeList ( int **  l) const
inline

◆ hasNeighborList()

int covise::coDoUnstructuredGrid::hasNeighborList ( ) const
inline

◆ hasTypeList()

int covise::coDoUnstructuredGrid::hasTypeList ( ) const
inline

◆ interpolateField()

int coDoUnstructuredGrid::interpolateField ( float *  v_interp,
const float *  point,
int *  cell,
int  no_arrays,
int  array_dim,
float  tolerance,
const float *const *  velo 
) const

◆ MakeOctTree()

void coDoUnstructuredGrid::MakeOctTree ( const char *  octSurname) const
private

◆ mapInCell()

void coDoUnstructuredGrid::mapInCell ( float *  v_interp,
const float *  point,
int  cell,
int  no_arrays,
int  array_dim,
const float *const *  velo 
)

◆ mapScalarField()

int coDoUnstructuredGrid::mapScalarField ( float *  v_interp,
const float *  point,
int *  cell,
int  no_arrays,
int  array_dim,
const float *const *  velo 
)

◆ rebuildFromShm()

int coDoUnstructuredGrid::rebuildFromShm ( )
protectedvirtual

◆ setSizes()

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

◆ testACell()

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

◆ virtualCtor()

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

◆ coDoInitializer

friend class coDoInitializer
friend

Member Data Documentation

◆ cl

int * covise::coDoUnstructuredGrid::cl
private

◆ connections

coIntShmArray covise::coDoUnstructuredGrid::connections
private

◆ el

int* covise::coDoUnstructuredGrid::el
mutableprivate

◆ elements

coIntShmArray covise::coDoUnstructuredGrid::elements
private

◆ elementtypes

coIntShmArray covise::coDoUnstructuredGrid::elementtypes
private

◆ hasneighbors

int covise::coDoUnstructuredGrid::hasneighbors
private

◆ hastypes

int covise::coDoUnstructuredGrid::hastypes
private

◆ lnl

int* covise::coDoUnstructuredGrid::lnl
mutableprivate

◆ lnli

int* covise::coDoUnstructuredGrid::lnli
mutableprivate

◆ neighborindex

coIntShmArray covise::coDoUnstructuredGrid::neighborindex
private

◆ neighborlist

coIntShmArray covise::coDoUnstructuredGrid::neighborlist
private

◆ numconn

coIntShm covise::coDoUnstructuredGrid::numconn
private

◆ numcoord

coIntShm covise::coDoUnstructuredGrid::numcoord
private

◆ numelem

coIntShm covise::coDoUnstructuredGrid::numelem
private

◆ numneighbor

coIntShm covise::coDoUnstructuredGrid::numneighbor
private

◆ oct_tree

const coDistributedObject* covise::coDoUnstructuredGrid::oct_tree
mutableprivate

◆ tl

int * covise::coDoUnstructuredGrid::tl
private

◆ x_coord

coFloatShmArray covise::coDoUnstructuredGrid::x_coord
private

◆ y_coord

coFloatShmArray covise::coDoUnstructuredGrid::y_coord
private

◆ z_coord

coFloatShmArray covise::coDoUnstructuredGrid::z_coord
private

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