DataElementSetBuilder.h
1 //##################################################################################################
2 //
3 // Ceetron Desktop Components
4 // Component: UnstructGrid
5 //
6 // --------------------------------------------------------------------------------------------
7 // Copyright (C) 2021, Ceetron AS
8 // This is UNPUBLISHED PROPRIETARY SOURCE CODE of Ceetron AS. The contents of this file may
9 // not be disclosed to third parties, copied or duplicated in any form, in whole or in part,
10 // without the prior written permission of Ceetron AS.
11 //##################################################################################################
12 
13 #pragma once
14 
15 
16 #include "CeeUnstructGrid/Base.h"
17 #include "CeeUnstructGrid/DataElementSetItem.h"
18 #include "CeeUnstructGrid/DataElementSet.h"
19 
20 #include "CeeCore/PtrRef.h"
21 
22 
23 namespace cee {
24 namespace ug {
25 
26 
27 //==================================================================================================
28 //
29 //
30 //
31 //==================================================================================================
32 class CEE_UG_EXPORT DataElementSetBuilder
33 {
34 public:
35  DataElementSetBuilder(int setId);
36  virtual ~DataElementSetBuilder();
37 
38  void addItem(const DataElementSetItem& item);
39  void addItems(int geometryId, int partId, const std::vector<size_t>& elementIndices);
40  void addUniqueItem(const DataElementSetItem& item);
41  void addUniqueItems(int geometryId, int partId, const std::vector<size_t>& elementIndices);
42 
43  PtrRef<DataElementSet> createSet();
44 
45 private:
46  CEE_PRIVATE_IMPL(DataElementSetBuilder);
47  CEE_DISALLOW_COPY_AND_ASSIGN(DataElementSetBuilder);
48 };
49 
50 
51 } // namespace ug
52 } // namespace cee
Namespace cee contains all functionality and structures under the Core component. ...
Definition: AppComponent.cpp:26
Helper class for building element sets in an efficient matter.
Definition: DataElementSetBuilder.h:32
Smart pointer class used for handling reference counted objects (that derive from Object)...
Definition: PtrRef.h:26
This class identifies an element within an UnstructGrid model and is used as an item in a DataElement...
Definition: DataElementSetItem.h:25