DataResultScalar.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/DataPartScalar.h"
17 
18 namespace cee {
19 namespace ug {
20 
21 class DataGeometry;
22 
23 //==================================================================================================
24 //
25 //
26 //
27 //==================================================================================================
28 class CEE_UG_EXPORT DataResultScalar : public RefCountedObject
29 {
30 public:
31  DataResultScalar(int resultId, ResultMapping mappingType);
32  virtual ~DataResultScalar();
33 
34  int resultId() const;
35 
36  size_t partCount() const;
37  const DataPartScalar* part(size_t partIndex) const;
38  DataPartScalar* part(size_t partIndex);
39  ResultMapping resultMapping() const;
40  void addPart(DataPartScalar* part);
41  void removeAllParts();
42 
43  void computeNodeAverage(const DataGeometry* geometry);
44 
45 private:
46  CEE_PRIVATE_F(DataResultGroup);
47  CEE_PRIVATE_IMPL(DataResultScalar);
48  CEE_DISALLOW_COPY_AND_ASSIGN(DataResultScalar);
49 };
50 
51 
52 } // namespace ug
53 } // namespace cee
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
Scalar result for all parts in the geometry.
Definition: DataResultScalar.h:28
Scalar result values for a part.
Definition: DataPartScalar.h:31
Base class for all reference counted objects with built-in support for intrusive reference counting...
Definition: RefCountedObject.h:34
ResultMapping
Available scalar and vector result mappings.
Definition: Base.h:47
The geometry of the model for a certain state.
Definition: DataGeometry.h:28