ExportConstantRemoteModel.h
1 //##################################################################################################
2 //
3 // Ceetron Desktop Components
4 // Component: Export
5 //
6 // --------------------------------------------------------------------------------------------
7 // Copyright (C) 2018, 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 "CeeExport/Base.h"
16 #include "CeeCore/RefCountedObject.h"
17 #include "CeeCore/Str.h"
18 
19 #include "CeeVisualization/Camera.h"
20 
21 #include <vector>
22 
23 namespace cee {
24 
25 namespace ug {
26 class UnstructGridModel;
27 }
28 
29 namespace exp {
30 
31 //==================================================================================================
32 //
33 // Export selected view to the Constant Remote Model Database
34 //
35 //==================================================================================================
36 class CEE_EXP_EXPORT ExportConstantRemoteModel
37 {
38 public:
41 
42  static int dataFormatVersion();
43 
44  void setModel(ug::UnstructGridModel* model);
45  void setDefaultCamera(const vis::Camera& camera);
46  void setDefaultParticleTraceStepCount(size_t stepCount);
47 
48  bool save(const Str& outputFolder);
49  bool saveBinBundle(const Str& fileName);
50  bool saveJsBundle(const Str& fileName);
51 
52 private:
53  CEE_PRIVATE_IMPL(ExportConstantRemoteModel);
54  CEE_DISALLOW_COPY_AND_ASSIGN(ExportConstantRemoteModel);
55 };
56 
57 } // namespace ug
58 } // namespace cee
Namespace cee contains all functionality and structures under the Core component. ...
Definition: AppComponent.cpp:26
The camera configuration of a view.
Definition: Camera.h:33
A general unicode based string class.
Definition: Str.h:28
UnstructGridModel is a subclass of Model which adds specific model structure and functionality for re...
Definition: UnstructGridModel.h:72
Export selected view to the Constant Remote Model Database.
Definition: ExportConstantRemoteModel.h:36