Cyclone 3DR Script
from Technodigit, part of Hexagon. Copyright 1997-2022.
 
Loading...
Searching...
No Matches
SReportData.h
1
2
3
5
6#pragma once
7
8#include "RshPluginScript/RshPluginScriptDefines.h"
9#include "RshPluginScript/SClass/SComp.h"
10
11#ifndef FCT_DOC
12namespace rsh::ScriptBinding
13{
14#endif // !FCT_DOC
15
18class SReportData : public SComp
19{
20 //======================================================================================================================
21 // INTERNAL FUNCTION
22 //======================================================================================================================
23
24 //======================================================================================================================
25 // DOCUMENTED FUNCTION
26 //======================================================================================================================
27
28public:
30 {
36 Second
37 };
38
40 {
52 Miles
53 };
54
56 {
68 SquareMiles
69 };
70
72 {
90 US_OilBarrel
91 };
92
93
94public slots:
95
96
100
104
108 String iName,
110 Number iNumber
112 );
116 String iName,
118 AngleUnit angleUnit,
120 Number iAngle
122 );
126 String iName,
128 LengthUnit lengthUnit,
130 Number iLength
132 );
136 String iName,
138 AreaUnit areaUnit,
140 Number iArea
142 );
146 String iName,
148 VolumeUnit volumeUnit,
150 Number iVolume
152 );
156 String iName,
158 LengthUnit lengthUnit,
160 SPoint iPoint
162 );
166 String iName,
168 LengthUnit lengthUnit,
170 SVector iVector
172 );
176 String iName,
178 String iText
180 );
181
186 AddImageFromDisk( String iName, String iImageFilePath);
187
192 AddImage( String iName, SImage iImage);
193
197 String iName,
199 SViewSet iViewset
201 );
209 String iName,
211 Array<SLabel> iLabelTable
213 );
214
217 Number GetNumber( String iName
219 );
222 String GetText( String iKey
224 );
227 Number GetAngle( String iName
229 );
232 Number GetLength( String iName
234 );
237 Number GetArea( String iName
239 );
242 Number GetVolume( String iName
244 );
247 SPoint GetPoint( String iName
249 );
252 SVector GetVector( String iName
254 );
255
267 Array ExportTableCSV( String iFilesFolder
269 );
270
273 ExportDataXML( String iFilePath
275 );
276
277private:
280 String _MakeValidKey( String iStrToClean);
281};
282
283// @brief
284// this class allow to wrap static function to SReportData easily
285// this allow to wrap constructor more easily the constructor will be declared with the function New(...)
286class SReportData
287#ifndef FCT_DOC
288 : public SObjectStatic
289#endif // FCT_DOC
290{
291 //======================================================================================================================
292 // INTERNAL FUNCTION
293 //======================================================================================================================
294
295 //======================================================================================================================
296 // DOCUMENTED FUNCTION
297 //======================================================================================================================
298public slots:
299
302 static SReportData New( String iName
304 );
305
306
309 static Array FromName( String iName
311 )
312 {
313 return SComp::GetFromName<SReportData>(iName);
314 }
315
318 static String toString();
319};
320Q_DECLARE_METATYPE(SReportData::_SReportDataDummy);
321Q_DECLARE_METATYPE(SReportData);
322
323
324#ifndef FCT_DOC
325} // namespace rsh::ScriptBinding
326#endif // !FCT_DOC
The SComp class is an abstract class. Use derived classes SCircle, SCylinder, SCloud,...
Definition: SComp.h:32
This class is only available if you have the Survey plugin. .
Definition: SImage.h:29
3D point manipulation class. The SPoint creation can be done by calling the static functions:
Definition: SPoint.h:23
Class to store reporting data. Reporting data corresponds to a chapter of a report....
Definition: SReportData.h:19
Number GetArea(String iName)
Get an area from a SReportData.
AddArea(String iName, AreaUnit areaUnit, Number iArea)
Add a data corresponding to an area to a SReportData.
UpdateMainViewSet()
Update the main view of a report data with the current 3D view.
AddImage(String iName, SImage iImage)
Add a data corresponding to an internal image to a SReportData.
static SReportData New(String iName)
Create an empty report data.
AddPoint(String iName, LengthUnit lengthUnit, SPoint iPoint)
Add a data corresponding to a point to a SReportData.
AddText(String iName, String iText)
Add a data corresponding to a text to a SReportData.
Array ExportTableCSV(String iFilesFolder)
Export a table as CSV file.
AngleUnit
Definition: SReportData.h:30
@ Radian
Definition: SReportData.h:31
@ Percent
Definition: SReportData.h:34
@ Degree
Definition: SReportData.h:32
@ Gradian
Definition: SReportData.h:33
@ Minute
Definition: SReportData.h:35
ExportDataXML(String iFilePath)
Export all data as a XML file.
SPoint GetPoint(String iName)
Get a point from a SReportData.
AddVector(String iName, LengthUnit lengthUnit, SVector iVector)
Add a data corresponding to a vector to a SReportData.
AddAngle(String iName, AngleUnit angleUnit, Number iAngle)
Add a data corresponding to an angle to a SReportData.
static Array FromName(String iName)
To get all the selected SReportData corresponding to the given name.
Definition: SReportData.h:309
Number GetLength(String iName)
Get a length from a SReportData.
AddImageFromDisk(String iName, String iImageFilePath)
Add a data corresponding to an external image (provided its file path) to a SReportData.
LengthUnit
Definition: SReportData.h:40
@ Feet
Definition: SReportData.h:49
@ Inch
Definition: SReportData.h:48
@ Yard
Definition: SReportData.h:51
@ Microinch
Definition: SReportData.h:46
@ Kilometer
Definition: SReportData.h:45
@ Meter
Definition: SReportData.h:44
@ Millimeter
Definition: SReportData.h:42
@ Centimeter
Definition: SReportData.h:43
@ Milliinch
Definition: SReportData.h:47
@ Micrometer
Definition: SReportData.h:41
@ SurveyFeet
Definition: SReportData.h:50
Array AddLabels(String iName, Array< SLabel > iLabelTable)
Add a data corresponding to a table of labels to a SReportData. The labels table must contain labels ...
AddToDoc()
Add the report data to the current document.
AddViewset(String iName, SViewSet iViewset)
Add a data corresponding to a ViewSet to a SReportData.
AddNumber(String iName, Number iNumber)
Add a data corresponding to a number without unit to a SReportData.
Number GetVolume(String iName)
Get a volume from a SReportData.
SVector GetVector(String iName)
Get a vector from a SReportData.
AreaUnit
Definition: SReportData.h:56
@ SquareKilometer
Definition: SReportData.h:61
@ SquareMilliinch
Definition: SReportData.h:63
@ SquareMicroinch
Definition: SReportData.h:62
@ SquareFeet
Definition: SReportData.h:65
@ SquareInch
Definition: SReportData.h:64
@ SquareYard
Definition: SReportData.h:67
@ SquareSurveyFeet
Definition: SReportData.h:66
@ SquareMeter
Definition: SReportData.h:60
@ SquareMillimeter
Definition: SReportData.h:58
@ SquareMicrometer
Definition: SReportData.h:57
@ SquareCentimeter
Definition: SReportData.h:59
static String toString()
Get the type of the variable.
VolumeUnit
Definition: SReportData.h:72
@ CubicKilometer
Definition: SReportData.h:77
@ CubicMicroinch
Definition: SReportData.h:78
@ US_LiquidGallon
Definition: SReportData.h:86
@ CubicMillimeter
Definition: SReportData.h:74
@ CubicMicrometer
Definition: SReportData.h:73
@ CubicMilliinch
Definition: SReportData.h:79
@ Liter
Definition: SReportData.h:85
@ CubicMiles
Definition: SReportData.h:84
@ CubicSurveyFeet
Definition: SReportData.h:82
@ CubicCentimeter
Definition: SReportData.h:75
@ US_LiquidBarrel
Definition: SReportData.h:88
@ CubicMeter
Definition: SReportData.h:76
@ CubicFeet
Definition: SReportData.h:81
@ CubicYard
Definition: SReportData.h:83
@ US_DryGallon
Definition: SReportData.h:87
@ US_DryBarrel
Definition: SReportData.h:89
@ CubicInch
Definition: SReportData.h:80
String GetText(String iKey)
Get a text from a SReportData.
Number GetAngle(String iName)
Get an angle from a SReportData.
AddLength(String iName, LengthUnit lengthUnit, Number iLength)
Add a data corresponding to a length to a SReportData.
Number GetNumber(String iName)
Get a number from a SReportData.
AddVolume(String iName, VolumeUnit volumeUnit, Number iVolume)
Add a data corresponding to a volume to a SReportData.
The mathematical object vector.
Definition: SVector3.h:26
ViewSet manipulation class. The SViewSet class will save position of the camera and visibility of the...
Definition: SViewSet.h:25