Debian Codegraph @

plugins/core/Standard/qSRA/include/dxfProfilesExporter.h

raw
1 //##########################################################################
2 //# #
3 //# CLOUDCOMPARE PLUGIN: qSRA #
4 //# #
5 //# This program is free software; you can redistribute it and/or modify #
6 //# it under the terms of the GNU General Public License as published by #
7 //# the Free Software Foundation; version 2 or later of the License. #
8 //# #
9 //# This program is distributed in the hope that it will be useful, #
10 //# but WITHOUT ANY WARRANTY; without even the implied warranty of #
11 //# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
12 //# GNU General Public License for more details. #
13 //# #
14 //# COPYRIGHT: EDF #
15 //# #
16 //##########################################################################
17
18 #ifndef QSRA_DXF_PROFILES_EXPORTER_HEADER
19 #define QSRA_DXF_PROFILES_EXPORTER_HEADER
20
21 //Local
22 #include "distanceMapGenerationTool.h"
23
24 //Qt
25 #include <QSharedPointer>
26 #include <QString>
27
28 class ccPolyline;
29 class ccMainAppInterface;
30
31 //! DXF profiles (of a surface of revolution) exporter
32 /** Requires DXF lib support!
33 **/
34 class DxfProfilesExporter
35 {
36 public:
37
38 //! Returns whether DXF support is enabled or not
39 static bool IsEnabled();
40
41 struct Parameters
42 {
43 QStringList profileTitles;
44 QString legendTheoProfileTitle;
45 QString legendRealProfileTitle;
46 QString scaledDevUnits;
47 double devLabelMultCoef;
48 double devMagnifyCoef;
49 int precision;
50 };
51
52 //! Exports vertical profiles (of a surface of revolution's map) as a DXF file
53 static bool SaveVerticalProfiles( const QSharedPointer<DistanceMapGenerationTool::Map>& map,
54 ccPolyline* profile,
55 QString filename,
56 unsigned angularStepCount,
57 double heightStep,
58 double heightShift,
59 const Parameters& params,
60 ccMainAppInterface* app = nullptr);
61
62 //! Exports horizontal profiles (of a surface of revolution's map) as a DXF file
63 static bool SaveHorizontalProfiles( const QSharedPointer<DistanceMapGenerationTool::Map>& map,
64 ccPolyline* profile,
65 QString filename,
66 unsigned heightStepCount,
67 double heightShift,
68 double angularStep_rad,
69 double radToUnitConvFactor,
70 QString angleUnit,
71 const Parameters& params,
72 ccMainAppInterface* app = nullptr);
73 };
74
75 #endif //QSRA_DXF_PROFILES_EXPORTER_HEADER
76