COVISE Core
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
covise::coDoPolygons Class Reference

#include <coDoPolygons.h>

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

Public Member Functions

 ~coDoPolygons ()
 
 coDoPolygons (const coObjInfo &info)
 
 coDoPolygons (const coObjInfo &info, coShmArray *arr)
 
 coDoPolygons (const coObjInfo &info, int no_p, int no_v, int no_l)
 
 coDoPolygons (const coObjInfo &info, int no_p, float *x_c, float *y_c, float *z_c, int no_v, int *v_l, int no_pol, int *pol_l)
 
int getNumPolygons () const
 
int setNumPolygons (int num)
 
int getNumVertices () const
 
int setNumVertices (int num)
 
int getNumPoints () const
 
int setNumPoints (int num)
 
int getNeighbor (int element, int n1, int n2)
 
int getNeighbors (int element, int n1, int *neighbors)
 
void getNeighborList (int *n, int **l, int **li) const
 
void getAddresses (float **x_c, float **y_c, float **z_c, int **v_l, int **l_l) const
 
void computeNeighborList () const
 
int interpolateField (float *v_interp, float *point, int *cell, int no_arrays, int array_dim, float tolerance, const float *const *velo, int search_level) const
 
const coDoOctTreePGetOctTree (const coDistributedObject *reuseOctTree, const char *OctTreeSurname) 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
 
coDoPolygonscloneObject (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
 

Protected Attributes

coDoLineslines
 
- 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
 

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
 
float Distance (int cell, const float *point) const
 
void Project (float *point, int cell) const
 

Static Private Member Functions

static coDistributedObjectvirtualCtor (coShmArray *arr)
 

Private Attributes

int * lnl
 
int * lnli
 
int numneighbor
 
int numelem
 
int numconn
 
int numpoints
 
int * el
 
int * cl
 
float * x_c_
 
float * y_c_
 
float * z_c_
 
const coDistributedObjectoct_tree
 

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 *))
 

Constructor & Destructor Documentation

◆ ~coDoPolygons()

coDoPolygons::~coDoPolygons ( )

◆ coDoPolygons() [1/4]

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

◆ coDoPolygons() [2/4]

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

◆ coDoPolygons() [3/4]

coDoPolygons::coDoPolygons ( const coObjInfo info,
int  no_p,
int  no_v,
int  no_l 
)

◆ coDoPolygons() [4/4]

coDoPolygons::coDoPolygons ( const coObjInfo info,
int  no_p,
float *  x_c,
float *  y_c,
float *  z_c,
int  no_v,
int *  v_l,
int  no_pol,
int *  pol_l 
)

Member Function Documentation

◆ cloneObject()

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

◆ computeNeighborList()

void coDoPolygons::computeNeighborList ( ) const

◆ Distance()

float coDoPolygons::Distance ( int  cell,
const float *  point 
) const
private

◆ getAddresses()

void covise::coDoPolygons::getAddresses ( float **  x_c,
float **  y_c,
float **  z_c,
int **  v_l,
int **  l_l 
) const
inline

◆ getNeighbor()

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

◆ getNeighborList()

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

◆ getNeighbors()

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

◆ getNumPoints()

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

Implements covise::coDoGrid.

◆ getNumPolygons()

int covise::coDoPolygons::getNumPolygons ( ) const
inline

◆ getNumVertices()

int covise::coDoPolygons::getNumVertices ( ) const
inline

◆ getObjInfo()

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

Reimplemented from covise::coDistributedObject.

◆ GetOctTree()

const coDoOctTreeP * coDoPolygons::GetOctTree ( const coDistributedObject reuseOctTree,
const char *  OctTreeSurname 
) const

◆ interpolateField()

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

◆ MakeOctTree()

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

◆ Project()

void coDoPolygons::Project ( float *  point,
int  cell 
) const
private

◆ rebuildFromShm()

int coDoPolygons::rebuildFromShm ( )
protectedvirtual

◆ setNumPoints()

int covise::coDoPolygons::setNumPoints ( int  num)
inline

◆ setNumPolygons()

int covise::coDoPolygons::setNumPolygons ( int  num)
inline

◆ setNumVertices()

int covise::coDoPolygons::setNumVertices ( int  num)
inline

◆ testACell()

int coDoPolygons::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 * coDoPolygons::virtualCtor ( coShmArray arr)
staticprivate

Friends And Related Function Documentation

◆ coDoInitializer

friend class coDoInitializer
friend

Member Data Documentation

◆ cl

int * covise::coDoPolygons::cl
private

◆ el

int* covise::coDoPolygons::el
mutableprivate

◆ lines

coDoLines* covise::coDoPolygons::lines
protected

◆ lnl

int* covise::coDoPolygons::lnl
mutableprivate

◆ lnli

int* covise::coDoPolygons::lnli
mutableprivate

◆ numconn

int covise::coDoPolygons::numconn
mutableprivate

◆ numelem

int covise::coDoPolygons::numelem
mutableprivate

◆ numneighbor

int covise::coDoPolygons::numneighbor
mutableprivate

◆ numpoints

int covise::coDoPolygons::numpoints
private

◆ oct_tree

const coDistributedObject* covise::coDoPolygons::oct_tree
mutableprivate

◆ x_c_

float* covise::coDoPolygons::x_c_
private

◆ y_c_

float * covise::coDoPolygons::y_c_
private

◆ z_c_

float * covise::coDoPolygons::z_c_
private

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