DataResultVector.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/DataPartVector.h"
17 
18 namespace cee {
19 namespace ug {
20 
21 class DataResultScalar;
22 class DataGeometry;
23 
24 //==================================================================================================
25 //
26 //
27 //
28 //==================================================================================================
29 class CEE_UG_EXPORT DataResultVector : public RefCountedObject
30 {
31 public:
32  DataResultVector(int resultId, ResultMapping mappingType);
33  virtual ~DataResultVector();
34 
35  int resultId() const;
36 
37  size_t partCount() const;
38  const DataPartVector* part(size_t partIndex) const;
39  DataPartVector* part(size_t partIndex);
40  ResultMapping resultMapping() const;
41  void addPart(DataPartVector* part);
42  void removeAllParts();
43 
44  bool deriveScalar(DeriveOperation deriveOperation, DataResultScalar* derivedScalar) const;
45 
46  void computeNodeAverage(const DataGeometry* geometry);
47 
48 private:
49  CEE_PRIVATE_F(DataResultGroup);
50  CEE_PRIVATE_IMPL(DataResultVector);
51  CEE_DISALLOW_COPY_AND_ASSIGN(DataResultVector);
52 };
53 
54 
55 } // namespace ug
56 } // namespace cee
Namespace cee contains all functionality and structures under the Core component. ...
Definition: AppComponent.cpp:26
Vector result values for a part.
Definition: DataPartVector.h:31
Result group binding a geometry and results (scalar, vector, displacement and/or transformation) ...
Definition: DataResultGroup.h:33
DeriveOperation
Available operations to derive a result from a base result.
Definition: Base.h:57
Scalar result for all parts in the geometry.
Definition: DataResultScalar.h:28
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
Vector results for all parts in the geometry.
Definition: DataResultVector.h:29