Go to the documentation of this file.
9 #if !defined(PWGM_HIDE_UNSTRUCTURED_API)
11 #ifndef _CAEUNSVERTEX_H_
12 #define _CAEUNSVERTEX_H_
67 PWGM_HVERTEX_SET_INVALID(
h_);
303 const char *
toString(
char *buf = 0,
const char *delimiter = 0,
304 const char *prefix = 0,
const char *suffix = 0)
const {
307 return toString(data, buf, delimiter, prefix, suffix);
331 const char *delimiter = 0,
const char *prefix = 0,
332 const char *suffix = 0) {
335 static char singleUseBuf[512];
338 if (0 == delimiter) {
347 sprintf(buf,
"%s%g%s%g%s%g%s", prefix, data.
x, delimiter, data.
y,
348 delimiter, data.
z, suffix);
357 #endif // _CAEUNSVERTEX_H_
358 #endif // PWGM_HIDE_UNSTRUCTURED_API
PWGM_HVERTEX PwModEnumVertices(PWGM_HGRIDMODEL model, PWP_UINT32 ndx)
Sequentially enumerate the model vertex elements.
PWP_BOOL PwVertIndexMod(PWGM_HVERTEX vertex, PWP_UINT32 *pIndex)
Get the vertex index relative to the model's index space.
CaeUnsVertex operator--(int)
Postfix decrement to the previous vertex in a model.
CaeUnsVertex & moveNext()
Rebinds an instance to the next vertex in a model.
PWGM_XYZVAL x() const
Get the vertex's x component.
#define PWGM_HVERTEX_H(h)
gets the element's parent PWGM_HGRIDMODEL handle
PWGM_HVERTEX h_
The bound PWGM_HVERTEX.
The unstructured grid model class.
#define PWGM_HVERTEX_ID(h)
gets the vertex's guid from the handle
CaeUnsVertex & movePrev()
Rebinds an instance to the previous vertex in a model.
~CaeUnsVertex()
Destructor.
CaeUnsVertex & moveFirst(const CaeUnsGridModel &model)
Rebinds an instance to the first vertex in a model.
bool dataMod(PWGM_VERTDATA &data) const
Get the vertex data relative to the model's index space.
Pointwise Grid Model API Specification (PWGM-API)
bool xyzVal(PWGM_ENUM_XYZ which, PWGM_XYZVAL &val) const
Get one of the vertex's x, y, or z components.
CaeUnsVertex & operator=(const CaeUnsVertex &rhs)
Assignment operator.
#define PWGM_HVERTEX_ISVALID(h)
returns non-zero value if handle is valid
PWP_UINT32 index() const
Get the vertex's index.
bool isValid() const
Determines a vertex's validity.
The unstructured vertex class.
CaeUnsVertex & operator=(PWGM_HVERTEX vertex)
Assignment operator.
Vertex descriptor data type.
@ PWGM_XYZ_Y
Y-component id.
@ PWGM_XYZ_Z
Z-component id.
bool indexMod(PWP_UINT32 &ndx) const
Get the vertex index relative to the model's index space.
PWP_BOOL PwVertXyzVal(PWGM_HVERTEX vertex, PWGM_ENUM_XYZ which, PWGM_XYZVAL *pVal)
Get a vertex's x, y, or z component value.
PWGM_XYZVAL y() const
Get the vertex's y component.
PWP_BOOL PwVertDataMod(PWGM_HVERTEX vertex, PWGM_VERTDATA *pVertData)
Get the vertex data relative to the model's index space.
CaeUnsGridModel model() const
Gets the unstructured grid model of which this vertex is a member.
PWGM_XYZVAL z() const
Get the vertex's z component.
CaeUnsVertex(const CaeUnsVertex &src)
Copy constructor.
PWP_REAL PWGM_XYZVAL
XYZ component data type.
CaeUnsVertex operator++(int)
Postfix increment to the next vertex in a model.
CaeUnsVertex & moveTo(const CaeUnsGridModel &model, PWP_UINT32 ndx)
Rebinds an instance to a specific model vertex.
An opaque handle to a grid vertex element.
const char * toString(char *buf=0, const char *delimiter=0, const char *prefix=0, const char *suffix=0) const
Get a string representation of the vertex.
Pointwise Plugin API (PWP-API)
CaeUnsVertex(const CaeUnsGridModel &model, PWP_UINT32 ndx=0)
Model and vertex index constructor.
static const char * toString(const PWGM_VERTDATA &data, char *buf=0, const char *delimiter=0, const char *prefix=0, const char *suffix=0)
Get a string representation of the vertex data.
CaeUnsVertex & operator++()
Prefix increment to the next vertex in a model.
PWGM_ENUM_XYZ
XYZ component type ids.
CaeUnsVertex()
Default constructor.
CaeUnsVertex(PWGM_HVERTEX vertex)
Vertex handle constructor.
CaeUnsVertex & operator--()
Prefix decrement to the previous vertex in a model.
@ PWGM_XYZ_X
X-component id.