Cyclone 3DR Script
from Technodigit, part of Hexagon. Copyright 1997-2022.
 
Loading...
Searching...
No Matches
SCwCloud.h
1
2
3
5
6#pragma once
7
8#include "RshPluginCloudWorx/RshPluginCloudWorxDefines.h"
9#include "RshPluginScript/SClass/SComp.h"
10#include "CloudWorx/SCwCloud.h"
11
12#define SV_CWCLOUD "CwCloud"
13#define SV_CWCLOUD_TBL "CwCloudTbl"
14
15RSH_DCOMP_Q_DECLARE_METATYPE(SCwCloud);
16
17#ifndef FCT_DOC
18namespace rsh::ScriptBinding
19{
20#endif // !FCT_DOC
21
28class SCwCloud : public SComp
29{
30 //======================================================================================================================
31 // INTERNAL FUNCTION
32 //======================================================================================================================
33
34public:
39 {
40 // representations which are always available
41 CWCLOUD_COLORED, // Colored points
42 CWCLOUD_INTENSITY, // Intensity
43 CWCLOUD_APPEARANCE, // Appearance
44
45 };
46
47
52 {
53 // representations which are always available
59
60 SCHEME_NUMBER, // NOT USED BUT MUST ALWAYS BE THE LAST OPTION
61 };
62
64 {
67 HIGH};
68
69
70
71 //======================================================================================================================
72 // DOCUMENTED FUNCTION
73 //======================================================================================================================
74
75public slots: // these functions (slots) will be available in QtScript
76
86 Array ToCloud(
87 Number iNbPointsAsked,
89 Boolean iConvertIntoSpherical,
91 Boolean iConvertCloudOnly
93 );
94
100 Array SaveCwProject(String iProjectFileName
102 );
103
107
112 );
113
117
121
125
128 String toString() ;
129
142 Array ScanToMesh(CWMeshingMode iMeshingMode, Boolean iTextureFromCloud, Boolean iIgnoreScanDir);
143};
144
145// @brief
146// This class allows to wrap static functions to SCwCloud easily.
147// This allow to wrap constructor more easily : the constructor will be declared with the function New(...)
148class SCwCloud
149#ifndef FCT_DOC
150 : public SObjectStatic
151#endif // FCT_DOC
152{
153 //======================================================================================================================
154 // INTERNAL FUNCTION
155 //======================================================================================================================
156
157 //======================================================================================================================
158 // DOCUMENTED FUNCTION
159 //======================================================================================================================
160public slots:
173 static Array NewFromJetStreamData();
174
187 static Array NewFromImpData();
188
201 static Array NewFromLGSData();
202
213 static Array NewFromLGSData(String iFileName);
214
224 static Array NewFromCwProjectFile(String iFileName);
225
232
236
246 static Array FromClick() { return SComp::GetFromClick<SCwCloud>(SV_CWCLOUD); }
247
251 static Array FromName( String Name) { return SComp::GetFromName<SCwCloud>(Name); }
252
256 static Array FromSel() { return SComp::GetSelComp<SCwCloud>(SV_CWCLOUD_TBL); }
257
261 static Array All(
262 Number VisCrit
267 )
268 {
269 return SComp::GetAll<SCwCloud>(VisCrit);
270 }
271
274 static String toString();
275};
276
277RSH_SCOMP_STATIC_Q_DECLARE_METATYPE(SCwCloud, _SCwCloudDummy);
278
287RshPluginCloudWorxAPI Array
288CloudWorxLoadFile( std::function<eastl::unique_ptr<SCwCloud>(rsh::Display::DCompTree)> iFunc);
289
290#ifndef FCT_DOC
291} // namespace rsh::ScriptBinding
292#endif // !FCT_DOC
293
294RSH_SCOMP_Q_DECLARE_METATYPE(rsh::ScriptBinding::SCwCloud);
The SComp class is an abstract class. Use derived classes SCircle, SCylinder, SCloud,...
Definition: SComp.h:32
CloudWorx Cloud manipulation class. The SCwCloud creation can be done by calling the static functions...
Definition: SCwCloud.h:29
static Array NewFromCwProjectFile(String iFileName)
Constructor to load a CloudWorx Project.
CwCloudColorSchemeTypeEnum GetColorScheme()
Get the color scheme of the CwCloud.
static CloseCwProject()
If present, remove the existing CwCloud from the current document.
static Array NewFromJetStreamData()
Constructor to load a CloudWorx Cloud from a JetStream server.
static Array NewFromImpData()
Constructor to load a CloudWorx Cloud from a IMP file.
RegeneratePoints()
Ask to regenerate points from the data source.
SetCwCloudRepresentation(CwCloudRepresentationTypeEnum iRepresentation)
Set the representation of the component.
Array ScanToMesh(CWMeshingMode iMeshingMode, Boolean iTextureFromCloud, Boolean iIgnoreScanDir)
Create a mesh from predefined settings.
static Array FromName(String Name)
Search all the component with the given name.
Definition: SCwCloud.h:251
static DefineJetStreamServer()
Open a dialog to define the JetStream server address and port.
CwCloudRepresentationTypeEnum
The different representation types for cloudWorx clouds. Use SCwCloud.CWCLOUD_COLORED.
Definition: SCwCloud.h:39
@ CWCLOUD_APPEARANCE
Definition: SCwCloud.h:43
@ CWCLOUD_COLORED
Definition: SCwCloud.h:41
@ CWCLOUD_INTENSITY
Definition: SCwCloud.h:42
static Array All(Number VisCrit)
To get all the SComp in the document.
Definition: SCwCloud.h:261
static Array FromSel()
To get all the selected SComp.
Definition: SCwCloud.h:256
static Array NewFromLGSData(String iFileName)
Constructor to load a CloudWorx Cloud from a LGS file.
static Array FromClick()
Launches a click interaction to select a SComp in the scene.
Definition: SCwCloud.h:246
static String toString()
Get the type of the variable.
static Array NewFromLGSData()
Constructor to load a CloudWorx Cloud from a LGS file.
SetColorScheme(CwCloudColorSchemeTypeEnum iColorScheme)
Set the color scheme (the color scheme is only define inside the intensity representation)
CwCloudRepresentationTypeEnum GetCwCloudRepresentation()
Return the current representation.
CwCloudColorSchemeTypeEnum
Type of Color scheme for a SCwCloud (when representation if Intensity). Use SCwCloud....
Definition: SCwCloud.h:52
@ SCHEME_NUMBER
Definition: SCwCloud.h:60
@ CWCLOUD_SCHEME_GRAYSCALE
Definition: SCwCloud.h:55
@ CWCLOUD_SCHEME_MULTIHUE
Definition: SCwCloud.h:54
@ CWCLOUD_SCHEME_BLUE
Definition: SCwCloud.h:58
@ CWCLOUD_SCHEME_RED
Definition: SCwCloud.h:56
@ CWCLOUD_SCHEME_GREEN
Definition: SCwCloud.h:57
String toString()
Get the type of the variable.
Array SaveCwProject(String iProjectFileName)
Save the CwCloud into a cwprj file.
CWMeshingMode
Definition: SCwCloud.h:64
@ MEDIUM
Definition: SCwCloud.h:66
@ LOW
Definition: SCwCloud.h:65
Array ToCloud(Number iNbPointsAsked, Boolean iConvertIntoSpherical, Boolean iConvertCloudOnly)
Create a SCloud and optionally a SImage table from the CloudWorx cloud.