StateLinearCombination.h
1 //##################################################################################################
2 //
3 // Ceetron Desktop Components
4 // Component: ImportCae
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 "CeeImportCae/Base.h"
16 #include "CeeUnstructGrid/DataSourceReader.h"
17 
18 namespace cee {
19 namespace ug {
20 
21 class DataGeometry;
22 class DataState;
23 class Error;
24 class UnstructGridModel;
25 
26 }
27 }
28 
29 namespace cee {
30 namespace imp {
31 namespace cae {
32 
33 //==================================================================================================
34 //
35 //
36 //
37 //==================================================================================================
38 class CEE_IMP_CAE_EXPORT StateLinearCombination : public cee::RefCountedObject
39 {
40 public:
41  StateLinearCombination(cee::ug::UnstructGridModel* sourceModel, const std::vector<int>& sourceStateIds, const std::vector<double>& combinedStateReferenceValues);
42  virtual ~StateLinearCombination();
43 
44  void setSourceStateWeights(int sourceStateId, const std::vector<double>& weights);
45 
46  bool build();
47  void setBuildFolderLocation(const cee::Str& location);
48  bool deleteBuildFolder();
49 
50  void setUseParallelComputation(bool use);
51 
52  bool write(const cee::Str& vtfxFile);
53 
54 
55 private:
56  CEE_PRIVATE_IMPL(StateLinearCombination);
57  CEE_DISALLOW_COPY_AND_ASSIGN(StateLinearCombination);
58 
59 };
60 
61 } // namespace cae
62 } // namespace imp
63 } // namespace cee
Namespace cee contains all functionality and structures under the Core component. ...
Definition: AppComponent.cpp:26
A general unicode based string class.
Definition: Str.h:28
Base class for all reference counted objects with built-in support for intrusive reference counting...
Definition: RefCountedObject.h:34
This class handles the building and storing of a linear combination of states.
Definition: StateLinearCombination.h:38
UnstructGridModel is a subclass of Model which adds specific model structure and functionality for re...
Definition: UnstructGridModel.h:72