8#include "RshPluginCloudWorx/RshPluginCloudWorxDefines.h"
9#include "RshPluginScript/SClass/SComp.h"
10#include "CloudWorx/SCwCloud.h"
12#define SV_CWCLOUD "CwCloud"
13#define SV_CWCLOUD_TBL "CwCloudTbl"
15RSH_DCOMP_Q_DECLARE_METATYPE(
SCwCloud);
18namespace rsh::ScriptBinding
87 Number iNbPointsAsked,
89 Boolean iConvertIntoSpherical,
91 Boolean iConvertCloudOnly
150 :
public SObjectStatic
246 static Array
FromClick() {
return SComp::GetFromClick<SCwCloud>(SV_CWCLOUD); }
251 static Array
FromName( String Name) {
return SComp::GetFromName<SCwCloud>(Name); }
256 static Array
FromSel() {
return SComp::GetSelComp<SCwCloud>(SV_CWCLOUD_TBL); }
269 return SComp::GetAll<SCwCloud>(VisCrit);
277RSH_SCOMP_STATIC_Q_DECLARE_METATYPE(
SCwCloud, _SCwCloudDummy);
287RshPluginCloudWorxAPI Array
288CloudWorxLoadFile( std::function<eastl::unique_ptr<SCwCloud>(rsh::Display::DCompTree)> iFunc);
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.