Cyclone 3DR Script
from Technodigit, part of Hexagon. Copyright 1997-2022.
 
Loading...
Searching...
No Matches
SFeature.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 SFeature : public SComp
19{
20 //======================================================================================================================
21 // INTERNAL FUNCTION
22 //======================================================================================================================
23
24 //======================================================================================================================
25 // DOCUMENTED FUNCTION
26 //======================================================================================================================
27
28public slots: // these functions (slots) will be available in QtScript
32 // TESTED
34
37 // TESTED
40 );
41
45 // TESTED
47
50 // TESTED
53 );
54
72 Array Compare(
73 SCloud iMeasCloud,
75 Number DistMax,
77 Number MappingObject,
80 Number maxCosAngle = -2
86 ) ;
87
90 String toString() ;
91};
92
93// @brief
94// This class allows to wrap static functions to SFeature easily.
95// This allow to wrap constructor more easily : the constructor will be declared with the function New(...)
96class SFeature
97#ifndef FCT_DOC
98 : public SObjectStatic
99#endif // FCT_DOC
100{
101 //======================================================================================================================
102 // INTERNAL FUNCTION
103 //======================================================================================================================
104
105 //======================================================================================================================
106 // DOCUMENTED FUNCTION
107 //======================================================================================================================
108public slots:
109
119 static Array FromClick() { return SComp::GetFromClick<SFeature>(SV_FEATURE); }
120
124 // TESTED
125 static Array FromName( String Name) { return SComp::GetFromName<SFeature>(Name); }
126
130 // TESTED
131 static Array FromSel();
132
142 static Array FromBfcFile( String iFilePath
144 );
145
149 // TESTED
150 static Array All(
151 Number VisCrit
156 )
157 {
158 return SComp::GetAll<SFeature>(VisCrit);
159 }
160
163 static String toString();
164};
165RSH_SCOMP_STATIC_Q_DECLARE_METATYPE(SFeature, _SFeatureDummy);
166
167//-------------------------------------------------------------------------------------------------------------------
168
169#ifndef FCT_DOC
170} // namespace rsh::ScriptBinding
171#endif // !FCT_DOC
The SCloud class provides point cloud manipulation. The SCloud creation can be done by calling the st...
Definition: SCloud.h:41
The SComp class is an abstract class. Use derived classes SCircle, SCylinder, SCloud,...
Definition: SComp.h:32
The SFeature class is an abstract class.
Definition: SFeature.h:19
Array Compare(SCloud iMeasCloud, Number DistMax, Number MappingObject, Number maxCosAngle=-2)
Calculates the distances between 2 components for further inspection purpose (color mapping)
SVector GetNormal()
static String toString()
Get the type of the variable.
static Array FromSel()
To get all the selected SComp.
SPoint GetCenter()
String toString()
Get the type of the variable.
static Array FromName(String Name)
Search all the component with the given name.
Definition: SFeature.h:125
SetCenter(SPoint iCenter)
To set a new center to the SFeature.
static Array FromBfcFile(String iFilePath)
To load a .bfc file.
static Array All(Number VisCrit)
To get all the SComp in the document.
Definition: SFeature.h:150
SetNormal(SVector Normal)
To set a new normal to the SFeature.
static Array FromClick()
Launches a click interaction to select a SComp in the scene.
Definition: SFeature.h:119
3D point manipulation class. The SPoint creation can be done by calling the static functions:
Definition: SPoint.h:23
The mathematical object vector.
Definition: SVector3.h:26