Pointwise Plugin SDK
Functions
apiGridModel.cxx File Reference
#include <cctype>
#include <climits>
#include <cerrno>
#include <sstream>
#include <string>
#include "apiGridModel.h"
#include "apiPWPUtils.h"
+ Include dependency graph for apiGridModel.cxx:

Go to the source code of this file.

Functions

PWP_BOOL PwAsmFinalize (PWGM_HBLOCKASSEMBLER blkAsm)
 Stitches together all the faces added to the assembler into cells and blocks. More...
 
PWGM_HVERTEXLIST PwAsmGetVertexList (PWGM_HBLOCKASSEMBLER blkAsm)
 Get the vertex list associated with an unstructured block assembler. More...
 
PWP_BOOL PwAsmPushElementFace (PWGM_HBLOCKASSEMBLER blkAsm, const PWGM_ASSEMBLER_DATA *face)
 Adds a face to an unstructured block face assembler. More...
 
PWP_UINT32 PwBlkBoundaryCount (PWGM_HBLOCK block)
 Get the number of boundaries in the block. More...
 
PWP_BOOL PwBlkCondition (PWGM_HBLOCK block, PWGM_CONDDATA *pCondData)
 Get the block condition data. More...
 
PWP_UINT32 PwBlkConnectionCount (PWGM_HBLOCK block)
 Get the number of connections in the block. More...
 
PWP_UINT32 PwBlkElementCount (PWGM_HBLOCK block, PWGM_ELEMCOUNTS *pCounts)
 Get the number of block elements. More...
 
PWGM_HBNDRY PwBlkEnumBoundaries (PWGM_HBLOCK block, PWP_UINT32 ndx)
 Sequentially enumerate the block's boundaries. More...
 
PWGM_HCNXN PwBlkEnumConnections (PWGM_HBLOCK block, PWP_UINT32 ndx)
 Sequentially enumerate the block's connections. More...
 
PWGM_HELEMENT PwBlkEnumElements (PWGM_HBLOCK block, PWP_UINT32 ndx)
 Sequentially enumerate the block elements. More...
 
PWGM_HVERTEXLIST PwBlkGetVertexList (PWGM_HBLOCK block)
 Get the vertex list associated with an unstructured or structured block. More...
 
PWP_BOOL PwBlkNdxBoundary (PWGM_HBLOCK block, PWP_UINT32 ndx, PWGM_BNDRYDATA *pBndryData)
 Get the data for the block's nth structured boundary. More...
 
PWP_BOOL PwBlkNdxBoundaryAndCondition (PWGM_HBLOCK block, PWP_UINT32 ndx, PWGM_BNDRYDATA *pBndryData, PWGM_CONDDATA *pCondData)
 Get the PWGM_BNDRYDATA and PWGM_CONDDATA for the block's nth structured boundary. More...
 
PWP_BOOL PwBlkNdxConnection (PWGM_HBLOCK block, PWP_UINT32 ndx, PWGM_CNXNDATA *pCnxnData)
 Get the data for the block's nth connection. More...
 
PWP_BOOL PwBlkNdxVertData (PWGM_HBLOCK block, PWGM_INDEX3 ndx3, PWGM_VERTDATA *pVertData)
 Get the block's vertex data at the given index location. More...
 
PWP_BOOL PwBlkSetName (PWGM_HBLOCK block, const char *name)
 Set a block's name. More...
 
PWP_BOOL PwBlkSize (PWGM_HBLOCK block, PWGM_STR_SIZE *pSize)
 Get the block's vertex-size. More...
 
PWP_BOOL PwBlock (PWGM_HBLOCK block, PWGM_BLOCKDATA *pBlockData)
 Get the block data. More...
 
PWP_BOOL PwBndryCondition (PWGM_HBNDRY boundary, PWGM_CONDDATA *pCondData)
 Get the boundary's condition data. More...
 
PWP_BOOL PwBoundary (PWGM_HBNDRY boundary, PWGM_BNDRYDATA *pBndryData)
 Get the boundary data. More...
 
PWGM_HVERTEXLIST PwConGetVertexList (PWGM_HCONNECTOR connector)
 Get the vertex list associated with a connector. More...
 
PWP_BOOL PwConnection (PWGM_HCNXN connection, PWGM_CNXNDATA *pCnxnData)
 Get the connection data. More...
 
PWP_BOOL PwConSetName (PWGM_HCONNECTOR connector, const char *name)
 Set a connector's name. More...
 
PWP_BOOL PwDomCondition (PWGM_HDOMAIN domain, PWGM_CONDDATA *pCondData)
 Get the domain condition data. More...
 
PWP_UINT32 PwDomElementCount (PWGM_HDOMAIN domain, PWGM_ELEMCOUNTS *pCounts)
 Get the number of domain elements. More...
 
PWGM_HELEMENT PwDomEnumElements (PWGM_HDOMAIN domain, PWP_UINT32 ndx)
 Sequentially enumerate the domain elements. More...
 
PWGM_HVERTEXLIST PwDomGetVertexList (PWGM_HDOMAIN domain)
 Get the vertex list associated with an unstructured or structured domain. More...
 
PWP_BOOL PwDomSetName (PWGM_HDOMAIN domain, const char *name)
 Set a domain's name. More...
 
PWP_BOOL PwElemDataMod (PWGM_HELEMENT element, PWGM_ELEMDATA *pElemData)
 Get the element data relative to the model's index space. More...
 
PWP_BOOL PwElemDataModEnum (PWGM_HELEMENT element, PWGM_ENUMELEMDATA *pEnumElemData)
 Get the enumerated element data relative to the model's index space. More...
 
const char * PwElemTypeToText (PWGM_ENUM_ELEMTYPE type)
 Maps a PWGM_ENUM_ELEMTYPE value to a human readable string. More...
 
const char * PwFaceOrderToText (PWGM_ENUM_FACEORDER faceOrder)
 Maps a PWGM_ENUM_FACEORDER value to a human readable string. More...
 
PWP_BOOL PwInRange (PWGM_INDEX3 ijk, const PWGM_STR_RANGE *pRange)
 Determines if an PWGM_INDEX3 is within a PWGM_STR_RANGE. More...
 
PWP_BOOL PwModAppendEnumElementOrder (PWGM_HGRIDMODEL model, PWGM_ENUM_ELEMORDER order)
 Append an element order to the enumElements() ordering sequence. More...
 
PWP_UINT32 PwModBlockCount (PWGM_HGRIDMODEL model)
 Get the number of block elements in the model. More...
 
PWP_UINT32 PwModBoundaryCount (PWGM_HGRIDMODEL model)
 Get the number of structured grid boundaries in the model. More...
 
PWP_UINT32 PwModConnectionCount (PWGM_HGRIDMODEL model)
 Get the number of structured grid connections in the model. More...
 
PWGM_HCONNECTOR PwModCreateCon (PWGM_HGRIDMODEL model, PWP_UINT size)
 Creates a connector in a model. More...
 
PWGM_HBLOCK PwModCreateStrBlock (PWGM_HGRIDMODEL model, const PWGM_STR_SIZE blkSize)
 Creates a structured block in a model. More...
 
PWGM_HDOMAIN PwModCreateStrDomain (PWGM_HGRIDMODEL model, const PWGM_STR_SIZE domSize)
 Creates a structured domain in a model. More...
 
PWGM_HVERTEXLIST PwModCreateUnsVertexList (PWGM_HGRIDMODEL model)
 Creates an empty, unstructured vertex list in a model. More...
 
PWP_VOID PwModDefaultEnumElementOrder (PWGM_HGRIDMODEL model)
 Reset the enumElements() ordering sequence to the default (none). More...
 
PWP_UINT32 PwModDomainCount (PWGM_HGRIDMODEL model)
 Get the number of domain elements in the model. More...
 
PWGM_HBLOCK PwModEnumBlocks (PWGM_HGRIDMODEL model, PWP_UINT32 ndx)
 Sequentially enumerate the model block elements. More...
 
PWGM_HBNDRY PwModEnumBoundaries (PWGM_HGRIDMODEL model, PWP_UINT32 ndx)
 Sequentially enumerate the model's boundaries. More...
 
PWGM_HCNXN PwModEnumConnections (PWGM_HGRIDMODEL model, PWP_UINT32 ndx)
 Sequentially enumerate the model's connections. More...
 
PWGM_HDOMAIN PwModEnumDomains (PWGM_HGRIDMODEL model, PWP_UINT32 ndx)
 Sequentially enumerate the model domain elements. More...
 
PWP_UINT32 PwModEnumElementCount (PWGM_HGRIDMODEL model, PWGM_ELEMCOUNTS *pCounts)
 Get the number of enumerated model block elements. More...
 
PWGM_HELEMENT PwModEnumElements (PWGM_HGRIDMODEL model, PWP_UINT32 ndx)
 Sequentially enumerate the model's block elements. More...
 
PWGM_HVERTEX PwModEnumVertices (PWGM_HGRIDMODEL model, PWP_UINT32 ndx)
 Sequentially enumerate the model vertex elements. More...
 
PWP_BOOL PwModGetAttributeBOOL (PWGM_HGRIDMODEL model, const char *name, PWP_BOOL *val)
 
PWP_BOOL PwModGetAttributeEnum (PWGM_HGRIDMODEL model, const char *name, const char **val)
 
PWP_BOOL PwModGetAttributeFLOAT (PWGM_HGRIDMODEL model, const char *name, PWP_FLOAT *val)
 
PWP_BOOL PwModGetAttributeINT (PWGM_HGRIDMODEL model, const char *name, PWP_INT *val)
 
PWP_BOOL PwModGetAttributeINT32 (PWGM_HGRIDMODEL model, const char *name, PWP_INT32 *val)
 
PWP_BOOL PwModGetAttributeREAL (PWGM_HGRIDMODEL model, const char *name, PWP_REAL *val)
 
PWP_BOOL PwModGetAttributeString (PWGM_HGRIDMODEL model, const char *name, const char **val)
 Get an attribute value as a specific type. More...
 
PWP_BOOL PwModGetAttributeUINT (PWGM_HGRIDMODEL model, const char *name, PWP_UINT *val)
 
PWP_BOOL PwModGetAttributeUINT32 (PWGM_HGRIDMODEL model, const char *name, PWP_UINT32 *val)
 
PWP_BOOL PwModGetAttributeValue (PWGM_HGRIDMODEL model, const char *name, PWP_ENUM_VALTYPE bufType, void *buf, PWP_UINT count)
 Get an attribute's value. More...
 
PWP_BOOL PwModNdxBoundary (PWGM_HGRIDMODEL model, PWP_UINT32 ndx, PWGM_BNDRYDATA *pBndryData)
 Get the data for the model's nth structured boundary. More...
 
PWP_BOOL PwModNdxBoundaryAndCondition (PWGM_HGRIDMODEL model, PWP_UINT32 ndx, PWGM_BNDRYDATA *pBndryData, PWGM_CONDDATA *pCondData)
 Get the PWGM_BNDRYDATA and PWGM_CONDDATA for the model's nth structured boundary. More...
 
PWP_BOOL PwModNdxConnection (PWGM_HGRIDMODEL model, PWP_UINT32 ndx, PWGM_CNXNDATA *pCnxnData)
 Get the data for the model's nth connection. More...
 
PWP_BOOL PwModStreamFaces (PWGM_HGRIDMODEL model, PWGM_ENUM_FACEORDER order, PWGM_BEGINSTREAMCB beginCB, PWGM_FACESTREAMCB faceCB, PWGM_ENDSTREAMCB endCB, void *userData)
 Stream the grid model's faces to a callback function in the specified order. More...
 
PWP_UINT32 PwModVertexCount (PWGM_HGRIDMODEL model)
 Get the number of model vertex elements. More...
 
PWP_BOOL PwUnsBlkAllocateElementCounts (PWGM_HBLOCK block, const PWGM_ELEMCOUNTS &counts)
 Allocates element storage in an unstructured block. More...
 
PWP_BOOL PwUnsBlkAllocateElements (PWGM_HBLOCK block, const PWGM_ENUM_ELEMTYPE cellType, const PWP_UINT count)
 Allocates element storage in an unstructured block. More...
 
PWP_BOOL PwUnsBlkSetElement (PWGM_HBLOCK block, const PWP_UINT ndx, const PWGM_ELEMDATA *eData)
 Sets the connectivity for an unstructured block element. More...
 
PWP_BOOL PwUnsDomAllocateElementCounts (PWGM_HDOMAIN domain, const PWGM_ELEMCOUNTS &counts)
 Allocates element storage in an unstructured domain. More...
 
PWP_BOOL PwUnsDomAllocateElements (PWGM_HDOMAIN domain, const PWGM_ENUM_ELEMTYPE cellType, const PWP_UINT n)
 Allocates element storage in an unstructured domain. More...
 
PWP_BOOL PwUnsDomSetElement (PWGM_HDOMAIN domain, const PWP_UINT ndx, const PWGM_ELEMDATA *eData)
 Sets the connectivity for an unstructured domain element. More...
 
PWP_BOOL PwVertDataMod (PWGM_HVERTEX vertex, PWGM_VERTDATA *pVertData)
 Get the vertex data relative to the model's index space. More...
 
PWP_BOOL PwVertIndexMod (PWGM_HVERTEX vertex, PWP_UINT32 *pIndex)
 Get the vertex index relative to the model's index space. More...
 
PWP_BOOL PwVertXyzVal (PWGM_HVERTEX vertex, PWGM_ENUM_XYZ which, PWGM_XYZVAL *pVal)
 Get a vertex's x, y, or z component value. More...
 
PWP_BOOL PwVlstAllocate (PWGM_HVERTEXLIST vertlist, const PWP_UINT n)
 Allocates storage in an unstructured vertex list. More...
 
PWGM_HBLOCKASSEMBLER PwVlstCreateBlockAssembler (PWGM_HVERTEXLIST vertlist)
 Creates an unstructured block face assembler that uses vertices from an unstructured vertex list. More...
 
PWGM_HBLOCK PwVlstCreateUnsBlock (PWGM_HVERTEXLIST vertlist)
 Creates an unstructured block that uses vertices from an unstructured vertex list. More...
 
PWGM_HDOMAIN PwVlstCreateUnsDomain (PWGM_HVERTEXLIST vertlist)
 Creates an unstructured domain that uses vertices from an unstructured vertex list. More...
 
PWP_UINT PwVlstGetDimensionality (PWGM_HVERTEXLIST vertlist)
 Get the dimensionality of a vertex list. More...
 
PWP_BOOL PwVlstIsStructured (PWGM_HVERTEXLIST vertlist)
 Check the type of a vertex list. More...
 
PWP_BOOL PwVlstIsUnstructured (PWGM_HVERTEXLIST vertlist)
 Check the type of a vertex list. More...
 
PWP_BOOL PwVlstReadFile (PWGM_HVERTEXLIST vertlist, FILE *file, const PWGM_XYZ_CLUSTERING fileClustering, const PWP_ENDIANNESS fileByteOrder, const PWP_ENUM_PRECISION filePrecision)
 
PWP_BOOL PwVlstSetXYZ (PWGM_HVERTEXLIST vertlist, const PWP_UINT ndx, const PWGM_XYZVAL x, const PWGM_XYZVAL y, const PWGM_XYZVAL z)
 Set the XYZ of a point in a 1D vertex list. More...
 
PWP_BOOL PwVlstSetXYZ2 (PWGM_HVERTEXLIST vertlist, const PWGM_INDEX2 ndx2, const PWGM_XYZVAL x, const PWGM_XYZVAL y, const PWGM_XYZVAL z)
 Set the XYZ of a point in a 2D structured vertex list. More...
 
PWP_BOOL PwVlstSetXYZ2Data (PWGM_HVERTEXLIST vertlist, const PWGM_INDEX2 ndx2, const PWGM_VERTDATA &v)
 Set the XYZ of a point in a 2D structured vertex list using a PWGM_VERTDATA value. More...
 
PWP_BOOL PwVlstSetXYZ3 (PWGM_HVERTEXLIST vertlist, const PWGM_INDEX3 ndx3, const PWGM_XYZVAL x, const PWGM_XYZVAL y, const PWGM_XYZVAL z)
 Set the XYZ of a point in a 3D structured vertex list. More...
 
PWP_BOOL PwVlstSetXYZ3 (PWGM_HVERTEXLIST vertlist, const PWGM_INDEX3 ndx3, const PWGM_VERTDATA &v)
 
PWP_BOOL PwVlstSetXYZData (PWGM_HVERTEXLIST vertlist, const PWP_UINT ndx, const PWGM_VERTDATA &v)
 Set the XYZ of a point in a 1D vertex list using a PWGM_VERTDATA value. More...
 
PWP_BOOL PwVlstSetXYZVal (PWGM_HVERTEXLIST vertlist, const PWP_UINT ndx, const PWGM_ENUM_XYZ which, const PWGM_XYZVAL val)
 Set an XYZ component of a point in a 1D vertex list. More...
 
PWP_BOOL PwVlstSetXYZVal2 (PWGM_HVERTEXLIST vertlist, const PWGM_INDEX2 ndx2, const PWGM_ENUM_XYZ which, const PWGM_XYZVAL val)
 Set an XYZ component of a point in a 2D structured vertex list. More...
 
PWP_BOOL PwVlstSetXYZVal3 (PWGM_HVERTEXLIST vertlist, const PWGM_INDEX3 ndx3, const PWGM_ENUM_XYZ which, const PWGM_XYZVAL val)
 Set an XYZ component of a point in a 3D structured vertex list. More...
 
PWGM_INDEX3 PwXform2Apply (const PWGM_INDEX_XFORM2 *pX2, PWGM_INDEX3 ijk)
 Apply a PWGM_INDEX_XFORM2 transform to a PWGM_INDEX3 value. More...
 
PWGM_ENUM_IJK PwXform2Follows (const PWGM_INDEX_XFORM2 *pX2, PWGM_ENUM_IJK localAxis, PWP_BOOL *pFlipped)
 For a given localAxis, determine the corresponding axis in the transformed system. More...
 
PWP_BOOL PwXform2to3 (const PWGM_INDEX_XFORM2 *pX2, PWGM_INDEX_XFORM *pX3)
 Convert a 2D transform matrix to it's 3D equivalent. More...
 
PWP_BOOL PwXform3to2 (const PWGM_INDEX_XFORM *pX3, PWGM_INDEX_XFORM2 *pX2)
 Convert a 3D transform matrix to it's 2D equivalent. More...
 
PWGM_INDEX3 PwXformApply (const PWGM_INDEX_XFORM *pX3, PWGM_INDEX3 ijk)
 Apply a PWGM_INDEX_XFORM transform to a PWGM_INDEX3 value. More...
 
PWGM_ENUM_IJK PwXformFollows (const PWGM_INDEX_XFORM *pX3, PWGM_ENUM_IJK localAxis, PWP_BOOL *pFlipped)
 For a given localAxis, determine the corresponding axis in the transformed system. More...
 

Function Documentation

◆ PwVlstReadFile()

PWP_BOOL PwVlstReadFile ( PWGM_HVERTEXLIST  vertlist,
FILE *  file,
const PWGM_XYZ_CLUSTERING  fileClustering,
const PWP_ENDIANNESS  fileByteOrder,
const PWP_ENUM_PRECISION  filePrecision 
)

Definition at line 905 of file apiGridModel.cxx.

References PWP_FALSE.

◆ PwVlstSetXYZ3()

PWP_BOOL PwVlstSetXYZ3 ( PWGM_HVERTEXLIST  vertlist,
const PWGM_INDEX3  ndx3,
const PWGM_VERTDATA v 
)

Definition at line 895 of file apiGridModel.cxx.

References PWP_FALSE, PWGM_VERTDATA::x, PWGM_VERTDATA::y, and PWGM_VERTDATA::z.