DataState.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/DataGeometry.h"
17 #include "CeeUnstructGrid/DataResultGroup.h"
18 
19 namespace cee {
20 namespace ug {
21 
22 
23 //==================================================================================================
24 //
25 //
26 //
27 //==================================================================================================
28 class CEE_UG_EXPORT DataState : public RefCountedObject
29 {
30 public:
31  DataState(int id, size_t geometryCount);
32  virtual ~DataState();
33 
34  int id() const;
35 
36  size_t geometryCount() const;
37  const DataGeometry* geometry(size_t globalGeometryIndex) const;
38  DataGeometry* geometry(size_t globalGeometryIndex);
39  const DataGeometry* firstGeometry() const;
40  DataGeometry* firstGeometry();
41  void setGeometry(size_t globalGeometryIndex, DataGeometry* geometry);
42 
43  const DataResultGroup* results(const DataGeometry* geometry) const;
44  DataResultGroup* results(const DataGeometry* geometry);
45  const DataResultGroup* resultsFirstGeometry() const;
46  DataResultGroup* resultsFirstGeometry();
47 
48  const DataPart* findPart(size_t globalGeometryIndex, int partId) const;
49  DataPart* findPart(size_t globalGeometryIndex, int partId);
50 
51 private:
52  CEE_PRIVATE_F(DataSource);
53  CEE_PRIVATE_IMPL(DataState);
54  CEE_DISALLOW_COPY_AND_ASSIGN(DataState);
55 };
56 
57 
58 } // namespace ug
59 } // namespace cee
The data source of the model. For instance a file interface or custom built by the user...
Definition: DataSource.h:35
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
Result group binding a geometry and results (scalar, vector, displacement and/or transformation) ...
Definition: DataResultGroup.h:33
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