ExportDataSourceVTFx.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 "CeeExport/Base.h"
16 #include "CeeCore/Str.h"
17 #include "CeeUnstructGrid/DataStateSpec.h"
18 
19 
20 namespace cee {
21 
22 class Str;
23 class Image;
24 
25 namespace ug {
26  class DataSource;
27 }
28 
29 namespace exp {
30 
31 //==================================================================================================
32 //
33 // Export entire data source to VTFx
34 //
35 //==================================================================================================
36 class CEE_EXP_EXPORT ExportDataSourceVTFx
37 {
38 public:
40  virtual ~ExportDataSourceVTFx();
41 
42  void setVendorNameAndApplication(const Str& vendorName, const Str& vendorApplication);
43  void setCompressionLevel(unsigned int compressionLevel);
44  void setPassword(const Str& password);
45  void setCreateSignature(bool on);
46  void setWriteAsciiDataFiles(bool on);
47  void setExportSurfaceOnly(bool on);
48  void setRelativeDisplacements(bool on);
49  void setExportDerivedResultAsSelfContained(bool on);
50 
51  bool write(std::vector<int> stateIds, const cee::ug::DataStateSpec& spec, const Str& fileName);
52  bool write(const Str& fileName);
53 
54 private:
55  CEE_PRIVATE_IMPL(ExportDataSourceVTFx);
56  CEE_DISALLOW_COPY_AND_ASSIGN(ExportDataSourceVTFx);
57 };
58 
59 } // namespace exp
60 } // namespace cee
The data source of the model. For instance a file interface or custom built by the user...
Definition: DataSource.h:35
Namespace cee contains all functionality and structures under the Core component. ...
Definition: AppComponent.cpp:26
Export the entire contents of a DataSource to a VTFx file.
Definition: ExportDataSourceVTFx.h:36
A general unicode based string class.
Definition: Str.h:28
Specification of data to load for a state.
Definition: DataStateSpec.h:31