Cyclone 3DR Script
from Technodigit, part of Hexagon. Copyright 1997-2022.
 
Loading...
Searching...
No Matches
SSetMultiline.h
1
2
3
5
6#pragma once
7
8#include "RshPluginScript/RshPluginScriptDefines.h"
9#include "RshGeometry/Math/Algebra/Matrix.h"
10#include "RshPluginScript/SClass/SComp.h"
11#include "RshPluginScript/SClass/SMultiLine.h"
12
13#ifndef FCT_DOC
14namespace rsh::ScriptBinding
15{
16#endif // !FCT_DOC
17
26class SSetMultiline : public SComp
27{
28 //======================================================================================================================
29 // INTERNAL FUNCTION
30 //======================================================================================================================
31
32 //======================================================================================================================
33 // DOCUMENTED FUNCTION
34 //======================================================================================================================
35public:
40 {
41 // representations which are always available
42 SETMULTILINE_SEGMENTS, // only segments are displayed
43 SETMULTILINE_VERTICES, // segments and vertices are displayed
44 SETMULTILINE_INSPECTION, // Colors ares based on an inspection value on each point.
45 // only available if the polyline contains inspection information
46
47 };
48
52 {
53 EXTERNAL_2D_CALCULATION, // Calculate a 2D contour
54 EXTERNAL_3D_CALCULATION, // Calculate a 3D contour
55 };
56
57public slots: // these functions (slots) will be available in QtScript
58
63 // TESTED
64 Array Explode() ;
65
77 Array Save(
78 String FilePath,
80 SMatrix CoordinateSystemMatrix = {}
83 );
84
89 SetLineWidth(Number width
91 );
92
97 );
98
106 // TESTED
108 ExternalContourOptionEnum CalculationOption
112 ) ;
113
116 String toString() ;
117
120 ShowName(Boolean iShowName
122 );
123};
124
125// @brief
126// This class allows to wrap static functions to SSetMultiline easily.
127// This allow to wrap constructor more easily : the constructor will be declared with the function New(...)
128class SSetMultiline
129#ifndef FCT_DOC
130 : public SObjectStatic
131#endif // FCT_DOC
132{
133 //======================================================================================================================
134 // INTERNAL FUNCTION
135 //======================================================================================================================
136
137 //======================================================================================================================
138 // DOCUMENTED FUNCTION
139 //======================================================================================================================
140public slots:
143 // TESTED
145
148 // TESTED
149 static SSetMultiline New( Array<SMultiline>
150 TheMultiTable
152 );
153
163 static Array FromClick() { return SComp::GetFromClick<SSetMultiline>(SV_SET_MULTI); }
164
168 // TESTED
169 static Array FromName( String Name) { return SComp::GetFromName<SSetMultiline>(Name); }
170
174 // TESTED
175 static Array FromSel();
176
180 // TESTED
181 static Array All(
182 Number VisCrit
187 )
188 {
189 return SComp::GetAll<SSetMultiline>(VisCrit);
190 }
191
194 static String toString();
195};
196Q_DECLARE_METATYPE(SSetMultiline::_SSetMultilineDummy);
197Q_DECLARE_METATYPE(SSetMultiline);
198
199#ifndef FCT_DOC
200} // namespace rsh::ScriptBinding
201#endif // !FCT_DOC
The SComp class is an abstract class. Use derived classes SCircle, SCylinder, SCloud,...
Definition: SComp.h:32
Matrix with 3 lines and 4 columns to make any transformation. This class should be used in order to a...
Definition: SMatrix.h:21
SSetMultiline class is a set of SMultiline, it will allow to regroup SMultiline in an SComp entity,...
Definition: SSetMultiline.h:27
ShowName(Boolean iShowName)
Control whether the name of the multiline set is shown or not in the scene.
static String toString()
Get the type of the variable.
static SSetMultiline New()
Default constructor to create an empty new SSetMultiline.
static Array FromSel()
To get all the selected SComp.
SetLineWidth(Number width)
Change the thickness of the lines.
static Array All(Number VisCrit)
To get all the SComp in the document.
Definition: SSetMultiline.h:181
static Array FromClick()
Launches a click interaction to select a SComp in the scene.
Definition: SSetMultiline.h:163
SetMultilineRepresentationTypeEnum
The different representation types for set of multilines. Use SMultiline.FLAT.
Definition: SSetMultiline.h:40
@ SETMULTILINE_INSPECTION
Definition: SSetMultiline.h:44
@ SETMULTILINE_SEGMENTS
Definition: SSetMultiline.h:42
@ SETMULTILINE_VERTICES
Definition: SSetMultiline.h:43
String toString()
Get the type of the variable.
ExternalContourOptionEnum
To know whether the external contour calculation should output a 2D Contour or a 3D Contour.
Definition: SSetMultiline.h:52
@ EXTERNAL_3D_CALCULATION
Definition: SSetMultiline.h:54
@ EXTERNAL_2D_CALCULATION
Definition: SSetMultiline.h:53
static Array FromName(String Name)
Search all the component with the given name.
Definition: SSetMultiline.h:169
Array Explode()
To explode the set of SMultiline. This function will explode the set and will duplicate all the conta...
SetSetMultilineRepresentation(SetMultilineRepresentationTypeEnum Representation)
The representation of the component is modified.
Array Save(String FilePath, SMatrix CoordinateSystemMatrix={})
Saves the SetMultiline into a file.
static SSetMultiline New(Array< SMultiline > TheMultiTable)
Constructs a new SSetMultiline by defining its data.
Array ExternalContour(ExternalContourOptionEnum CalculationOption)
Calculates the external contour of a SSetMultiline The direction used to calculate the External conto...