Pointwise Plugin SDK
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
CaeUnsElementGroup.h
Go to the documentation of this file.
1 /****************************************************************************
2  *
3  * CaeUnsElementGroup class
4  *
5  * (C) 2021 Cadence Design Systems, Inc. All rights reserved worldwide.
6  *
7  ***************************************************************************/
8 
9 #if !defined(PWGM_HIDE_UNSTRUCTURED_API)
10 
11 #ifndef _CAEUNSELEMENTGROUP_H_
12 #define _CAEUNSELEMENTGROUP_H_
13 
14 
15 #include "apiGridModel.h"
16 #include "apiPWP.h"
17 
18 
45 public:
46 
49  {
50  }
51 
53 
59  PWP_UINT32 elementCount(PWGM_ELEMCOUNTS *pDetails = 0) const {
60  return this->elementCountImpl(pDetails);
61  }
62 
64 
71  return this->enumElementsImpl(ndx);
72  }
73 
75 
82  return this->enumElementsImpl(0);
83  }
84 
85 protected:
86 
88 
96  virtual PWP_UINT32 elementCountImpl(PWGM_ELEMCOUNTS *pDetails) const = 0;
97 
99 
107  virtual PWGM_HELEMENT enumElementsImpl(PWP_UINT32 ndx) const = 0;
108 };
109 
110 #endif // _CAEUNSELEMENTGROUP_H_
111 
112 #endif // PWGM_HIDE_UNSTRUCTURED_API
The unstructured element group class.
Grid element handle declaration.
Definition: apiGridModel.h:427
unsigned int PWP_UINT32
32-bit unsigned integer
Definition: apiPWP.h:210
virtual ~CaeUnsElementGroup()
Destructor.
Pointwise Plugin API (PWP-API)
Pointwise Grid Model API Specification (PWGM-API)
virtual PWP_UINT32 elementCountImpl(PWGM_ELEMCOUNTS *pDetails) const =0
Get the number of elements in the group.
PWGM_HELEMENT enumElements(PWP_UINT32 ndx) const
Get an element in the group.
Element count information.
Definition: apiGridModel.h:757
PWGM_HELEMENT firstElement() const
Get the first element in the group.
PWP_UINT32 elementCount(PWGM_ELEMCOUNTS *pDetails=0) const
Get the number of elements in the group.
virtual PWGM_HELEMENT enumElementsImpl(PWP_UINT32 ndx) const =0
Get an element in the group.