SurfacePathQuery.h
1 //##################################################################################################
2 //
3 // Ceetron Desktop Components
4 // Component: UnstructGrid
5 //
6 // --------------------------------------------------------------------------------------------
7 // Copyright (C) 2013, 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 "CeeUnstructGrid/UnstructGridModel.h"
18 #include "CeeUnstructGrid/HitItem.h"
19 
20 #include <vector>
21 
22 namespace cee {
23 namespace ug {
24 
25 
26 //==================================================================================================
27 //
28 //
29 //
30 //==================================================================================================
31 class CEE_UG_EXPORT SurfacePathQuery
32 {
33 public:
35  enum PointType
36  {
37  NODE,
39  COORDINATE
40  };
41 
42 
43 public:
44  SurfacePathQuery(UnstructGridModel* model, size_t frameIndex, PointType pointType, std::vector<cee::ug::HitItem> items);
46 
47  bool generatePath(std::vector<Vec3d>* points);
48  bool getScalarResultValues(int scalarResultId, std::vector<double>* length, std::vector<double>* results);
49  void enableSampling(bool enable);
50 
51 private:
52  CEE_PRIVATE_IMPL(SurfacePathQuery);
53  CEE_DISALLOW_COPY_AND_ASSIGN(SurfacePathQuery);
54 };
55 
56 } // namespace ug
57 } // namespace cee
Namespace cee contains all functionality and structures under the Core component. ...
Definition: AppComponent.cpp:26
The items specify elements.
Definition: SurfacePathQuery.h:38
The items specify nodes.
Definition: SurfacePathQuery.h:37
UnstructGridModel is a subclass of Model which adds specific model structure and functionality for re...
Definition: UnstructGridModel.h:72
Helper class for generating a path on a UnstructGridModel model and for sampling a scalar value along...
Definition: SurfacePathQuery.h:31
PointType
Enum specifying what kind of items that are in use.
Definition: SurfacePathQuery.h:35