ResultsQueryResult.h
1 //##################################################################################################
2 //
3 // Ceetron Desktop Components
4 // Component: UnstructGrid
5 //
6 // --------------------------------------------------------------------------------------------
7 // Copyright (C) 2017, 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 "CeeCore/Vec3d.h"
17 #include "CeeCore/SymmetricTensor.h"
18 
19 #include <vector>
20 
21 namespace cee {
22 namespace ug {
23 
24 //==================================================================================================
25 //
26 //
27 //
28 //==================================================================================================
29 class CEE_UG_EXPORT ResultsQueryResult
30 {
31 public:
35 
36  ResultsQueryResult& operator=(const ResultsQueryResult& other);
37  bool operator==(const ResultsQueryResult& other) const;
38 
39  void setSpatialDimension(int spatialDimension);
40  bool addSubItem(double* data, size_t dataCount);
41 
42  size_t subItemCount() const;
43 
44  double scalar() const;
45  Vec3d vector() const;
46  SymmetricTensor tensor() const;
47 
48  double subItemScalar(size_t subItemIndex) const;
49  Vec3d subItemVector(size_t subItemIndex) const;
50  SymmetricTensor subItemTensor(size_t subItemIndex) const;
51 
52  double averageSubItemScalar() const;
53  Vec3d averageSubItemVector() const;
54  SymmetricTensor averageSubItemTensor() const;
55 
56 private:
57 
58  CEE_PRIVATE_IMPL(ResultsQueryResult);
59  //CEE_PRIVATE_F(ResultsQuery);
60 
61 };
62 
63 
64 } // namespace ug
65 } // namespace cee
Namespace cee contains all functionality and structures under the Core component. ...
Definition: AppComponent.cpp:26
bool operator==(const PtrRef< T1 > &a, const PtrRef< T2 > &b)
Returns true if the internal pointers of refs a and b are equal.
Definition: PtrRef.h:57
A ResultsQuery result that contains the values found by a ResultsQuery on one ResultsQueryItem.
Definition: ResultsQueryResult.h:29
A symmetric 3x3 tensor represented by 6 values: xx, yy, zz, xy, yz, zx.
Definition: SymmetricTensor.h:26
Vector class for a 3D double vector.
Definition: Vec3d.h:26