Cyclone 3DR Script
from Technodigit, part of Hexagon. Copyright 1997-2021.
SCwCloud Class Reference

CloudWorx Cloud manipulation class. The SCwCloud creation can be done by calling the static functions:
. More...

Inheritance diagram for SCwCloud:
SComp SObject

Public Types

enum  CwCloudColorSchemeTypeEnum {
  CWCLOUD_SCHEME_MULTIHUE , CWCLOUD_SCHEME_GRAYSCALE , CWCLOUD_SCHEME_RED , CWCLOUD_SCHEME_GREEN ,
  CWCLOUD_SCHEME_BLUE , SCHEME_NUMBER
}
 Type of Color scheme for a SCwCloud (when representation if Intensity). Use SCwCloud.CWCLOUD_SCHEME_MULTIHUE. More...
 
enum  CwCloudRepresentationTypeEnum { CWCLOUD_COLORED , CWCLOUD_INTENSITY , CWCLOUD_APPEARANCE }
 The different representation types for cloudWorx clouds.
Use SCwCloud.CWCLOUD_COLORED. More...
 
- Public Types inherited from SComp
enum  RepresentationTypeEnum {
  SMOOTH , FLAT , WIRE , SMOOTH_WIRE ,
  FLAT_WIRE , SMOOTH_ROTWIRE , FLAT_ROTWIRE , TEXTURE ,
  INSPECTION
}
 The different representation types for inherited classes.
Use (inherited class).SMOOTH. Example: for a cloud, use SCloud.SMOOTH. More...
 

Public Slots

static Array All (Number VisCrit)
 To get all the SComp in the document. More...
 
static CloseCwProject ()
 If present, remove the existing CwCloud from the current document. More...
 
static DefineJetStreamServer ()
 Open a dialog to define the JetStream server address and port. More...
 
static Array FromClick ()
 Displays a dialog box to select an SComp in the scene. More...
 
static Array FromName (String Name)
 Search all the component with the given name. More...
 
static Array FromSel ()
 To get all the selected SComp. More...
 
CwCloudColorSchemeTypeEnum GetColorScheme ()
 Get the color scheme of the CwCloud. More...
 
CwCloudRepresentationTypeEnum GetCwCloudRepresentation ()
 Return the current representation. More...
 
static Array NewFromCwProjectFile (String iFileName)
 Constructor to load a CloudWorx Project. More...
 
static Array NewFromImpData ()
 Constructor to load a CloudWorx Cloud from a IMP file. More...
 
static Array NewFromJetStreamData ()
 Constructor to load a CloudWorx Cloud from a JetStream server. More...
 
static Array NewFromLGSData ()
 Constructor to load a CloudWorx Cloud from a LGS file. More...
 
static Array NewFromLGSData (String iFileName)
 Constructor to load a CloudWorx Cloud from a LGS file. More...
 
 RegeneratePoints ()
 Ask to regenerate points from the data source. More...
 
Array SaveCwProject (String iProjectFileName)
 Save the CwCloud into a cwprj file. More...
 
 SetColorScheme (CwCloudColorSchemeTypeEnum iColorScheme)
 Set the color scheme (the color scheme is only define inside the intensity representation) More...
 
 SetCwCloudRepresentation (CwCloudRepresentationTypeEnum iRepresentation)
 Set the representation of the component. More...
 
Array ToCloud (Number iNbPointsAsked, Boolean iConvertIntoSpherical)
 Create a SCloud and a SImage table from the CloudWorx cloud. More...
 
String toString ()
 Get the type of the variable. More...
 
static String toString ()
 Get the type of the variable. More...
 
- Public Slots inherited from SComp
 AddToDoc ()
 To add the object to the document. More...
 
static Array All (Number VisCrit)
 To get all the SComp in the document. More...
 
 ApplyTransformation (SMatrix Matrix)
 To apply a geometric transformation to the current object by making a product with the given matrix. More...
 
 Clear ()
 To deallocate object memory. More...
 
static Array FromClick ()
 Displays a dialog box to select an SComp in the scene. More...
 
static Array FromName (String Name)
 Search all the component with the given name. More...
 
static Array FromSel ()
 To get all the selected SComp. More...
 
Array GetBoundingBox ()
 Calculates the bounding box of the component. More...
 
Array GetColors ()
 To get the colors of the component. More...
 
String GetFolderName ()
 
String GetName ()
 
 Invert ()
 Normal of the component is inverted. More...
 
Boolean IsInDoc ()
 Return if the component is in the document or not. More...
 
Boolean IsVisible ()
 
 MoveToGroup (String GroupPath, Boolean MoveInsideTopParent)
 Move the object to the document group represent by the given path. If some groups, in the path, don't exist, they will be created. More...
 
 RemoveFromDoc ()
 To remove the object from the document. More...
 
 SetClippable (Boolean clipping)
 Set clippable or not. More...
 
 SetColors (Number Red, Number Green, Number Blue)
 Sets the colors of the component. More...
 
 SetName (String ComponentName)
 To set the component's name. More...
 
 SetRepresentationType (RepresentationTypeEnum Representation)
 The shading type of the component is modified. More...
 
 SetTransparency (Number Alpha)
 Sets the transparency of the component. More...
 
 SetVisibility (Boolean Visible)
 Sets the component to be visible, or not visible. More...
 
String toString ()
 Get the type of the variable. More...
 
String toString ()
 Get the type of the variable. More...
 
 Translate (SVector Vector)
 To make a translation of the current object with an SVector. More...
 
- Public Slots inherited from SObject
 Clear ()
 To deallocate memory of the object. More...
 
String toString ()
 Get the type of the variable. More...
 

Detailed Description

CloudWorx Cloud manipulation class. The SCwCloud creation can be done by calling the static functions:
.

  • New() to load a SCwCloud from a server (open a dialog box).
    Note
    You need the CloudWorx Cloud plugin to access this feature.

Member Enumeration Documentation

◆ CwCloudColorSchemeTypeEnum

Type of Color scheme for a SCwCloud (when representation if Intensity). Use SCwCloud.CWCLOUD_SCHEME_MULTIHUE.

Enumerator
CWCLOUD_SCHEME_MULTIHUE 
CWCLOUD_SCHEME_GRAYSCALE 
CWCLOUD_SCHEME_RED 
CWCLOUD_SCHEME_GREEN 
CWCLOUD_SCHEME_BLUE 
SCHEME_NUMBER 

◆ CwCloudRepresentationTypeEnum

The different representation types for cloudWorx clouds.
Use SCwCloud.CWCLOUD_COLORED.

Enumerator
CWCLOUD_COLORED 
CWCLOUD_INTENSITY 
CWCLOUD_APPEARANCE 

Member Function Documentation

◆ All

static Array SCwCloud::All ( Number  VisCrit)
inlinestaticslot

To get all the SComp in the document.

Return values
Arrayall the SCwCloud contained in the document
Parameters
[in]VisCritVisible selection criteria
  • 0 Keep if not visible
  • 1 Keep if visible
  • 2 (Default) Indifferent

◆ CloseCwProject

static SCwCloud::CloseCwProject ( )
staticslot

If present, remove the existing CwCloud from the current document.

Note
Only the CwCloud will be removed. If you want to remove clipping object you could used ClearDoc() what will removed all objects inside the document.

◆ DefineJetStreamServer

static SCwCloud::DefineJetStreamServer ( )
staticslot

Open a dialog to define the JetStream server address and port.

◆ FromClick

static Array SCwCloud::FromClick ( )
inlinestaticslot

Displays a dialog box to select an SComp in the scene.

Warning
This function will break the script, and wait for user interaction
Return values
Array.ErrorCodeThe error code
  • 0: Success, the SComp is selected.
  • 1: Nothing is selected.
  • 2: The ESCape key has been pressed
Array.CwCloudthe SComp selected

◆ FromName

static Array SCwCloud::FromName ( String  Name)
inlinestaticslot

Search all the component with the given name.

Return values
Arrayall the SCwCloud with the given name

◆ FromSel

static Array SCwCloud::FromSel ( )
inlinestaticslot

To get all the selected SComp.

Return values
Arrayall the SCwCloud selected

◆ GetColorScheme

CwCloudColorSchemeTypeEnum SCwCloud::GetColorScheme ( )
slot

Get the color scheme of the CwCloud.

◆ GetCwCloudRepresentation

CwCloudRepresentationTypeEnum SCwCloud::GetCwCloudRepresentation ( )
slot

Return the current representation.

◆ NewFromCwProjectFile

static Array SCwCloud::NewFromCwProjectFile ( String  iFileName)
staticslot

Constructor to load a CloudWorx Project.

Note
The cloud is automatically added to the scene.
This function will fail if a CwCloud is already present inside the project
Return values
Array.ErrorCodeThe error code
  • 0: Success, a SCwCloud has been loaded.
  • 1: Nothing done.

◆ NewFromImpData

static Array SCwCloud::NewFromImpData ( )
staticslot

Constructor to load a CloudWorx Cloud from a IMP file.

Note
The cloud is automatically added to the scene.
This function will popup a dialog to the user in order to select a cloud from a IMP file
This function will fail if a CwCloud is already present inside the project
Return values
Array.ErrorCodeThe error code
  • 0: Success, a SCwCloud has been loaded.
  • 1: Nothing done.

◆ NewFromJetStreamData

static Array SCwCloud::NewFromJetStreamData ( )
staticslot

Constructor to load a CloudWorx Cloud from a JetStream server.

Note
The cloud is automatically added to the scene.
This function will popup a dialog to the user in order to select a cloud on the JetStream server
This function will fail if a CwCloud is already present inside the project
Return values
Array.ErrorCodeThe error code
  • 0: Success, a SCwCloud has been loaded.
  • 1: Nothing done.

◆ NewFromLGSData [1/2]

static Array SCwCloud::NewFromLGSData ( )
staticslot

Constructor to load a CloudWorx Cloud from a LGS file.

Note
The cloud is automatically added to the scene.
This function will popup a dialog to the user in order to select a cloud from a LGS file
This function will fail if a CwCloud is already present inside the project
Return values
Array.ErrorCodeThe error code
  • 0: Success, a SCwCloud has been loaded.
  • 1: Nothing done.

◆ NewFromLGSData [2/2]

static Array SCwCloud::NewFromLGSData ( String  iFileName)
staticslot

Constructor to load a CloudWorx Cloud from a LGS file.

Note
The cloud is automatically added to the scene.
This function will fail if a CwCloud is already present inside the project
Return values
Array.ErrorCodeThe error code
  • 0: Success, a SCwCloud has been loaded.
  • 1: Nothing done.

◆ RegeneratePoints

SCwCloud::RegeneratePoints ( )
slot

Ask to regenerate points from the data source.

◆ SaveCwProject

Array SCwCloud::SaveCwProject ( String  iProjectFileName)
slot

Save the CwCloud into a cwprj file.

Return values
Array.ErrorCodeThe error code.
  • 0 OK, No error.
  • 1 An error occurred.
Parameters
[in]iProjectFileNamefull path of the cwprj file

◆ SetColorScheme

SCwCloud::SetColorScheme ( CwCloudColorSchemeTypeEnum  iColorScheme)
slot

Set the color scheme (the color scheme is only define inside the intensity representation)

◆ SetCwCloudRepresentation

SCwCloud::SetCwCloudRepresentation ( CwCloudRepresentationTypeEnum  iRepresentation)
slot

Set the representation of the component.

Parameters
[in]iRepresentationThe cloud representation type

◆ ToCloud

Array SCwCloud::ToCloud ( Number  iNbPointsAsked,
Boolean  iConvertIntoSpherical 
)
slot

Create a SCloud and a SImage table from the CloudWorx cloud.

Return values
Array.ErrorCodeThe error code.
  • 0 OK, No error.
  • 1 An error occurred when converting the cloud.
  • 2 Error during images extraction.
  • 3 No image to extract.
Array.CloudThe extracted SCloud.
Array.ImageTblThe extracted SImage table.
Parameters
[in]iNbPointsAskedAn estimation of the number of points to extract
[in]iConvertIntoSphericalIf true, cubic images will be converted into spherical images

◆ toString [1/2]

String SCwCloud::toString ( )
slot

Get the type of the variable.

◆ toString [2/2]

static String SCwCloud::toString ( )
staticslot

Get the type of the variable.