DataGeometry.h
1 //##################################################################################################
2 //
3 // Ceetron Desktop Components
4 // Component: UnstructGrid
5 //
6 // --------------------------------------------------------------------------------------------
7 // Copyright (C) 2011, 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 #include "CeeUnstructGrid/Base.h"
16 #include "CeeUnstructGrid/DataPart.h"
17 
18 namespace cee {
19 namespace ug {
20 
21 
22 
23 //==================================================================================================
24 //
25 //
26 //
27 //==================================================================================================
28 class CEE_UG_EXPORT DataGeometry : public RefCountedObject
29 {
30 public:
31  DataGeometry();
32  virtual ~DataGeometry();
33 
34  int id() const;
35 
36  size_t partCount() const;
37  const DataPart* part(size_t partIndex) const;
38  DataPart* part(size_t partIndex);
39  size_t partIndex(int partId) const;
40  void addPart(DataPart* part);
41  void removeAllParts();
42  void removeEmptyParts();
43 
44 private:
45  CEE_PRIVATE_F(DataState);
46  CEE_PRIVATE_IMPL(DataGeometry);
47  CEE_DISALLOW_COPY_AND_ASSIGN(DataGeometry);
48 };
49 
50 
51 } // namespace ug
52 } // namespace cee
A part in the geometry. Consists of a collection of node coordinates and a collection element connect...
Definition: DataPart.h:28
Namespace cee contains all functionality and structures under the Core component. ...
Definition: AppComponent.cpp:26
Base class for all reference counted objects with built-in support for intrusive reference counting...
Definition: RefCountedObject.h:34
A state contains all data available for one time step, load case or frequency.
Definition: DataState.h:28
The geometry of the model for a certain state.
Definition: DataGeometry.h:28