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

#include <File16.h>

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

Classes

struct  CoupledCells22
 
struct  CoupledCells23
 
struct  CoupledCells30
 
struct  CycCoup
 
struct  Header1
 
struct  Header2
 
struct  LSRecord
 
struct  PropInfo
 
struct  TitleRead
 

Public Types

enum  {
  HEXAGON = 7, PRISM = 6, PYRAMID = 5, TETRAHEDRON = 4,
  QUAD = 3, TRIANGLE = 2, BAR = 1, SAMM = 12
}
 
enum  { MAX_CP = 128 }
 

Public Member Functions

 File16 (int fd, void(*dumpFunct)(const char *)=NULL)
 
 ~File16 ()
 
int isValid ()
 
void getMeshSize (int &numCells, int &numConn, int &numVert)
 
void getMesh (int *elPtr, int *clPtr, int *tlPtr, float *xPtr, float *yPtr, float *zPtr, int *typPtr)
 
void getReducedMesh (int *el, int *cl, int *tl, int *starToCov, float *vx, float *vy, float *vz, int *eLenPtr, int *cLenPtr, int *vLenPtr, int *typPtr)
 
void getRegionPatchSize (int region, int &numPoly, int &numConn, int &numVert)
 
void getRegionPatch (int region, int *elPtr, int *clPtr, float *xPtr, float *yPtr, float *zPtr)
 
int getMaxProstarIdx ()
 
void createMap (int calcSolids)
 
float getScale ()
 
int getVersion ()
 
int getNumMat ()
 
int getNumScal ()
 
const char * getScalName (int i)
 
int isFile (const char *filename)
 check whether this is the file we read More...
 
const int * getCovToStar ()
 
const int * getCovToPro ()
 
void setDumper (void(*newDumper)(const char *))
 
int getNumSAMM ()
 
void getCPsizes (int &numVert, int &numConn, int &numPoly)
 Get allocation size of Coupling Polygons. More...
 
void getface (int cellNo, int faceNo, int &shape, int vert[4])
 
int findNewCell (int oldCell)
 finde new (SAMM-corrected) celltab entry for given one More...
 
void getCPPoly (float *xVert, float *yVert, float *zVert, float *xPoly, float *yPoly, float *zPoly, int *polyTab, int *connTab)
 Build CP match polygons. More...
 
void getMovedRegionPatch (int reqRegion, float *xv, float *yv, float *zv, int *polyPtr, int *connPtr, float *x, float *y, float *z)
 

Public Attributes

int maxn
 
int maxe
 
int is [3]
 
int jvers
 
int numw
 
int ni
 
int nj
 
int nk
 
int nf
 
int maxb
 
int ibfill
 
int novice
 
int maxr
 
int nline
 
int maxcy
 
int lsctype
 
int rmsize
 
int inpech
 
int isver
 
int maxs
 
int mxbl
 
int istop
 
int ncydmf
 
int ncpdmf
 
struct covise::File16::TitleRead title
 
struct CellTabEntry * cellTab
 
struct SammTabEntry * sammTab
 
struct BounTabEntry * bounTab
 
int * regionType
 
struct VertexTabEntry * vertexTab
 
struct covise::File16::LSRecord LSrec
 
struct covise::File16::PropInfo propInfo
 
int nbnd [6]
 
int mxtb
 
int lturbi
 
int lturbp
 
int setadd
 
int nsens
 
int npart
 
float scale8
 
int maxcp
 
int loc180
 
int mver
 
int maxscl
 
int istype
 
int mxstb
 
int numcp
 
int ioptbc
 
int lturbf
 
int lturbt
 
int maxcrs
 
int pbtol
 
float keysd [6]
 
struct CellTypeEntry * cellType
 
struct
covise::File16::CoupledCells22
cp22
 
struct
covise::File16::CoupledCells23
cp23
 
struct
covise::File16::CoupledCells30
cp30
 
int numRealCP
 
struct RegionSizeregionSize
 
char ** scalName
 
int calcSolids
 
int numCovCells
 
int numCovConn
 
int numOrigStarCells
 
int * cellShapeArr
 
int * cells_used
 
int numMaterials
 

Static Public Attributes

static const int numVert [8] = { 0, 0, 0, 0, 4, 5, 6, 8 }
 

Private Member Functions

 File16 (const File16 &)
 
File16operator= (const File16 &)
 
void unblank (char *str, int length)
 

Static Private Member Functions

static void printStderr (const char *text)
 

Private Attributes

ino_t d_inode
 
dev_t d_device
 
int * oldOfNewCell
 
int * covToStar
 
int * covToPro
 
void(* dumper )(const char *)
 

Member Enumeration Documentation

anonymous enum
Enumerator
HEXAGON 
PRISM 
PYRAMID 
TETRAHEDRON 
QUAD 
TRIANGLE 
BAR 
SAMM 
anonymous enum
Enumerator
MAX_CP 

Constructor & Destructor Documentation

covise::File16::File16 ( const File16 )
private
File16::File16 ( int  fd,
void(*)(const char *)  dumpFunct = NULL 
)

read 1st word to determine byte order

SAMM

File16::~File16 ( )

Member Function Documentation

void File16::createMap ( int  calcSolids)

Now calculate some things we need to know

int File16::findNewCell ( int  oldCell)

finde new (SAMM-corrected) celltab entry for given one

const int* covise::File16::getCovToPro ( )
inline
const int* covise::File16::getCovToStar ( )
inline
void File16::getCPPoly ( float *  xVert,
float *  yVert,
float *  zVert,
float *  xPoly,
float *  yPoly,
float *  zPoly,
int *  polyTab,
int *  connTab 
)

Build CP match polygons.

void File16::getCPsizes ( int &  numVert,
int &  numConn,
int &  numPoly 
)

Get allocation size of Coupling Polygons.

void File16::getface ( int  cellNo,
int  faceNo,
int &  shape,
int  vert[4] 
)
int File16::getMaxProstarIdx ( )
void File16::getMesh ( int *  elPtr,
int *  clPtr,
int *  tlPtr,
float *  xPtr,
float *  yPtr,
float *  zPtr,
int *  typPtr 
)

read type info

void File16::getMeshSize ( int &  numCells,
int &  numConn,
int &  numVert 
)
void File16::getMovedRegionPatch ( int  reqRegion,
float *  xv,
float *  yv,
float *  zv,
int *  polyPtr,
int *  connPtr,
float *  x,
float *  y,
float *  z 
)
int covise::File16::getNumMat ( )
inline
int covise::File16::getNumSAMM ( )
inline
int covise::File16::getNumScal ( )
inline
void File16::getReducedMesh ( int *  el,
int *  cl,
int *  tl,
int *  starToCov,
float *  vx,
float *  vy,
float *  vz,
int *  eLenPtr,
int *  cLenPtr,
int *  vLenPtr,
int *  typPtr 
)

read type info

void File16::getRegionPatch ( int  region,
int *  elPtr,
int *  clPtr,
float *  xPtr,
float *  yPtr,
float *  zPtr 
)
void File16::getRegionPatchSize ( int  region,
int &  numPoly,
int &  numConn,
int &  numVert 
)
float covise::File16::getScale ( )
inline
const char * File16::getScalName ( int  i)
int covise::File16::getVersion ( )
inline
int File16::isFile ( const char *  filename)

check whether this is the file we read

int File16::isValid ( )
File16& covise::File16::operator= ( const File16 )
private
void File16::printStderr ( const char *  text)
staticprivate
void File16::setDumper ( void(*)(const char *)  newDumper)
void covise::File16::unblank ( char *  str,
int  length 
)
private

Member Data Documentation

struct BounTabEntry* covise::File16::bounTab
int covise::File16::calcSolids
int* covise::File16::cells_used
int* covise::File16::cellShapeArr
struct CellTabEntry* covise::File16::cellTab
struct CellTypeEntry* covise::File16::cellType
int* covise::File16::covToPro
private
int* covise::File16::covToStar
private
struct covise::File16::CoupledCells22 * covise::File16::cp22
struct covise::File16::CoupledCells23 * covise::File16::cp23
struct covise::File16::CoupledCells30 * covise::File16::cp30
dev_t covise::File16::d_device
private
ino_t covise::File16::d_inode
private
void(* covise::File16::dumper)(const char *)
private
int covise::File16::ibfill
int covise::File16::inpech
int covise::File16::ioptbc
int covise::File16::is[3]
int covise::File16::istop
int covise::File16::istype
int covise::File16::isver
int covise::File16::jvers
float covise::File16::keysd[6]
int covise::File16::loc180
int covise::File16::lsctype
struct covise::File16::LSRecord covise::File16::LSrec
int covise::File16::lturbf
int covise::File16::lturbi
int covise::File16::lturbp
int covise::File16::lturbt
int covise::File16::maxb
int covise::File16::maxcp
int covise::File16::maxcrs
int covise::File16::maxcy
int covise::File16::maxe
int covise::File16::maxn
int covise::File16::maxr
int covise::File16::maxs
int covise::File16::maxscl
int covise::File16::mver
int covise::File16::mxbl
int covise::File16::mxstb
int covise::File16::mxtb
int covise::File16::nbnd[6]
int covise::File16::ncpdmf
int covise::File16::ncydmf
int covise::File16::nf
int covise::File16::ni
int covise::File16::nj
int covise::File16::nk
int covise::File16::nline
int covise::File16::novice
int covise::File16::npart
int covise::File16::nsens
int covise::File16::numCovCells
int covise::File16::numCovConn
int covise::File16::numcp
int covise::File16::numMaterials
int covise::File16::numOrigStarCells
int covise::File16::numRealCP
const int covise::File16::numVert = { 0, 0, 0, 0, 4, 5, 6, 8 }
static
int covise::File16::numw
int* covise::File16::oldOfNewCell
private
int covise::File16::pbtol
struct covise::File16::PropInfo covise::File16::propInfo
struct RegionSize* covise::File16::regionSize
int* covise::File16::regionType
int covise::File16::rmsize
struct SammTabEntry* covise::File16::sammTab
float covise::File16::scale8
char** covise::File16::scalName
int covise::File16::setadd
struct covise::File16::TitleRead covise::File16::title
struct VertexTabEntry* covise::File16::vertexTab

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