ResultsQueryResultPosition.h
1 //##################################################################################################
2 //
3 // Ceetron Desktop Components
4 // Component: UnstructGrid
5 //
6 // --------------------------------------------------------------------------------------------
7 // Copyright (C) 2021, 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 
16 
17 #include "CeeUnstructGrid/Base.h"
18 #include "CeeCore/Vec3d.h"
19 #include "CeeCore/SymmetricTensor.h"
20 #include "CeeCore/RefCountedObject.h"
21 
22 
23 namespace cee {
24 namespace ug {
25 
26 
27 //==================================================================================================
28 //
29 //
30 //
31 //==================================================================================================
32 class CEE_UG_EXPORT ResultsQueryResultPosition
33 {
34 public:
36 
40 
41  bool operator==(const ResultsQueryResultPosition& other) const;
42 
43  void initialize(Vec3d position, const double* resultData, size_t dimension, int partId, int itemId, ResultMapping mapping);
44 
45  double scalar() const;
46  Vec3d vector() const;
47  SymmetricTensor tensor() const;
48 
49  const double* rawValuePointer() const;
50  void setRawPointer(const double* resultData, size_t dataSize);
51 
52  size_t resultSize() const;
53 
54  Vec3d position() const;
55  void setPosition(const Vec3d& position);
56 
57  int partId() const;
58  void setPartId(int partId);
59 
60  int itemId() const;
61  void setItemId(int itemId);
62 
63  ResultMapping mapping() const;
64  void setMapping(ResultMapping mapping) const;
65 
66  ResultType type() const;
67 
68 private:
69  CEE_PRIVATE_IMPL(ResultsQueryResultPosition);
70 };
71 
72 
73 } // namespace ug
74 } // namespace cee
A ResultsQueryResultPosition object contains the Position and the ResultsQueryResult of a specific va...
Definition: ResultsQueryResultPosition.h:32
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 symmetric 3x3 tensor represented by 6 values: xx, yy, zz, xy, yz, zx.
Definition: SymmetricTensor.h:26
ResultMapping
Available scalar and vector result mappings.
Definition: Base.h:47
Vector class for a 3D double vector.
Definition: Vec3d.h:26
ResultType
Different types of results.
Definition: Base.h:90