Pointwise Plugin SDK
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
PWGM_HELEMENT
Grid element handle declaration.
Definition: apiGridModel.h:427
CaeUnsElementGroup::elementCount
PWP_UINT32 elementCount(PWGM_ELEMCOUNTS *pDetails=0) const
Get the number of elements in the group.
Definition: CaeUnsElementGroup.h:59
PWP_UINT32
unsigned int PWP_UINT32
32-bit unsigned integer
Definition: apiPWP.h:210
apiGridModel.h
Pointwise Grid Model API Specification (PWGM-API)
CaeUnsElementGroup
The unstructured element group class.
Definition: CaeUnsElementGroup.h:44
CaeUnsElementGroup::enumElementsImpl
virtual PWGM_HELEMENT enumElementsImpl(PWP_UINT32 ndx) const =0
Get an element in the group.
PWGM_ELEMCOUNTS
Element count information.
Definition: apiGridModel.h:774
CaeUnsElementGroup::enumElements
PWGM_HELEMENT enumElements(PWP_UINT32 ndx) const
Get an element in the group.
Definition: CaeUnsElementGroup.h:70
apiPWP.h
Pointwise Plugin API (PWP-API)
CaeUnsElementGroup::elementCountImpl
virtual PWP_UINT32 elementCountImpl(PWGM_ELEMCOUNTS *pDetails) const =0
Get the number of elements in the group.
CaeUnsElementGroup::firstElement
PWGM_HELEMENT firstElement() const
Get the first element in the group.
Definition: CaeUnsElementGroup.h:81
CaeUnsElementGroup::~CaeUnsElementGroup
virtual ~CaeUnsElementGroup()
Destructor.
Definition: CaeUnsElementGroup.h:48