DataPartDisplacement.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 
17 #include "CeeCore/RefCountedObject.h"
18 #include "CeeCore/Vec3d.h"
19 
20 #include <vector>
21 
22 namespace cee {
23 namespace ug {
24 
25 
26 //==================================================================================================
27 //
28 //
29 //
30 //==================================================================================================
31 class CEE_UG_EXPORT DataPartDisplacement : public RefCountedObject
32 {
33 public:
35  virtual ~DataPartDisplacement();
36 
37  size_t count() const;
38 
39  Vec3d value(size_t index) const;
40  const double* rawValuePointer() const;
41  double* rawValuePointer();
42 
43  void resize(size_t count);
44  void setValue(size_t index, const Vec3d& value);
45 
46  void setValues(const std::vector<Vec3d>& values);
47  void setValues(const double values[], size_t vectorCount);
48  void setValuesFloat(const float values[], size_t vectorCount);
49 
50 private:
51  CEE_PRIVATE_F(DataResultDisplacement);
52  CEE_PRIVATE_F(ElementsQuery);
53  CEE_PRIVATE_IMPL(DataPartDisplacement);
54  CEE_DISALLOW_COPY_AND_ASSIGN(DataPartDisplacement);
55 };
56 
57 
58 } // namespace ug
59 } // namespace cee
Namespace cee contains all functionality and structures under the Core component. ...
Definition: AppComponent.cpp:26
A query object for extracting data and information from data elements.
Definition: ElementsQuery.h:33
Base class for all reference counted objects with built-in support for intrusive reference counting...
Definition: RefCountedObject.h:34
Displacement results for a part.
Definition: DataPartDisplacement.h:31
Displacements results for all parts in the geometry.
Definition: DataResultDisplacement.h:30
Vector class for a 3D double vector.
Definition: Vec3d.h:26