ExportWavefrontObj.h
1 //##################################################################################################
2 //
3 // Ceetron Desktop Components
4 // Component: UnstructGrid
5 //
6 // --------------------------------------------------------------------------------------------
7 // Copyright (C) 2021, 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 
18 
19 namespace cee {
20 
21 namespace ug {
22 class UnstructGridModel;
23 }
24 
25 namespace exp {
26 
27 //==================================================================================================
28 //
29 // Export selected view to Wavefront .obj, .mtl and texture (.png) files
30 // Note: Experimental
31 //
32 //==================================================================================================
33 class CEE_EXP_EXPORT ExportWavefrontObj
34 {
35 public:
36  ExportWavefrontObj(ug::UnstructGridModel* model, size_t frameIndex);
38 
39  bool save(const Str& objFilename);
40 
41 private:
42  CEE_PRIVATE_IMPL(ExportWavefrontObj);
43  CEE_DISALLOW_COPY_AND_ASSIGN(ExportWavefrontObj);
44 };
45 
46 } // namespace ug
47 } // 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
Export the given frame to Wavefront .obj, .mtl and texture (.png) files.
Definition: ExportWavefrontObj.h:33
UnstructGridModel is a subclass of Model which adds specific model structure and functionality for re...
Definition: UnstructGridModel.h:72