![]() |
Cyclone 3DR Script
from Technodigit, part of Hexagon. Copyright 1997-2025.
|
Provide CloudWorx cloud edition and creation methods. More...
Public Types | |
enum | CwCloudColorSchemeTypeEnum { CWCLOUD_SCHEME_MULTIHUE = 0 , CWCLOUD_SCHEME_GRAYSCALE = 1 , CWCLOUD_SCHEME_RED = 2 , CWCLOUD_SCHEME_GREEN = 3 , CWCLOUD_SCHEME_BLUE = 4 } |
The type of color scheme for an SCwCloud (when representation is Intensity) More... | |
enum | CwCloudRepresentationTypeEnum { CWCLOUD_COLORED = 0 , CWCLOUD_INTENSITY = 1 , CWCLOUD_APPEARANCE = 2 , CWCLOUD_CLASSIFICATION = 3 } |
The different representation types for SCwCloud. More... | |
enum | ObjectsToConvert { CLOUDS = 1 , IMAGES = 2 , TRAJECTORIES = 4 } |
Enum to know which objects types must be converted. More... | |
![]() | |
enum | VisibilityEnum { HIDDEN_ONLY = 0 , VISIBLE_ONLY = 1 , ANY_VISIBILITY = 2 } |
Visible criteria. More... | |
Public Member Functions | |
CwCloudColorSchemeTypeEnum | GetColorScheme () |
Get the current color scheme of the SCwCloud. | |
CwCloudRepresentationTypeEnum | GetCwCloudRepresentation () |
Get the current representation of the SCwCloud. | |
Object | SaveCwProject (string projectFileName) |
Save the SCwCloud into a cwprj file. | |
SetColorScheme (CwCloudColorSchemeTypeEnum colorScheme) | |
Set the color scheme of the SCwCloud (the color scheme is only defined for the intensity representation) | |
SetCwCloudRepresentation (CwCloudRepresentationTypeEnum representation) | |
Set the representation of the SCwCloud. | |
Object | ToCloud (number nbPointsAsked, boolean convertIntoSpherical=false, boolean convertCloudOnly=false) |
Create an SCloud and optionally an SImage table from the SCwCloud. | |
Object | ToMMSData (number nbPointsAsked, ObjectsToConvert objectsToConvert=SCwCloud.CLOUDS, number imagesMinimumStep=5, boolean importSidePhotos=false, boolean convertCubefaceToSpherical=true) |
Convert mobile data from an LGSx file, creating a table of SCloud and / or a table of SImage tables and / or a table of STrajectory from the SCwCloud. | |
string | toString () |
Get the type of the variable. | |
string | ValuesToString () |
Get a debug string representation of the SCwCloud. | |
![]() | |
AddToDoc () | |
Add the object to the document. | |
ApplyTransformation (SMatrix matrix) | |
Apply a geometric transformation to the current object by making a product with the given matrix. | |
Object | GetBoundingBox (SMatrix ucs=null) |
Calculate the bounding box of the object. | |
Object | GetColors () |
Get the colors of the object. | |
string | GetFolderName () |
Get the name of the folder containing the object. | |
string | GetName () |
Return the object's name. | |
string | GetPath () |
Return the full path of an SComp in the tree. | |
Invert () | |
Invert the normal of the object. | |
boolean | IsInDoc () |
Return if the object is in the document or not. | |
boolean | IsVisible () |
Get the visibility of the object. | |
MoveToGroup (string groupPath, boolean moveInsideTopParent=true) | |
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. | |
RemoveFromDoc () | |
Remove the object from the document. | |
SetClippable (boolean clipping) | |
Set clippable or not. | |
SetColors (number red, number green, number blue) | |
Set the colors of the object. | |
SetName (string objectName) | |
Set the object's name. | |
SetTransparency (number alpha) | |
Set the transparency of the object. | |
SetVisibility (boolean visible) | |
Set the object to be visible, or not visible. | |
string | toString () |
Get the type of the variable. | |
Translate (SVector vector) | |
Make a translation of the current object with an SVector. | |
Static Public Member Functions | |
static Array< SCwCloud > | All (VisibilityEnum visCrit=SComp.ANY_VISIBILITY) |
Get all the SCwCloud in the document. | |
static Object | CloneLGSx (Array< SCloud > clouds, SCwCloud cwCloud, string path, Object options={}) |
Clone an LGSx project while updating with the points. | |
static | CloseCwProject () |
Remove the existing SCwCloud from the current document, if any. | |
static | DefineJetStreamServer () |
Open a dialog to define the JetStream server address and port. | |
static Object | ExportLGSx (Array< SComp > objects, string path, Object options={}) |
Export objects as a new LGSx project. | |
static Object | FromClick () |
Launch an interaction to select a SCwCloud in the scene. | |
static Array< SCwCloud > | FromName (string name) |
Search all the SCwCloud with the given name. | |
static Array< SCwCloud > | FromSel () |
Get all the selected SCwCloud. | |
static | ManageConnections () |
Open a dialog to define the CloudWorx server address and port. | |
static Object | NewFromCwProjectFile (string fileName) |
Constructor to load a CloudWorx Project. | |
static Object | NewFromImpData () |
Constructor to load an SCwCloud from an IMP file. | |
static Object | NewFromLGSData () |
Constructor to load an SCwCloud from an LGSx file. | |
static Object | NewFromLGSData (string fileName) |
Constructor to load an SCwCloud from an LGSx file. | |
static Object | NewFromLGSxData () |
Constructor to load an SCwCloud from an LGSx file. | |
static Object | NewFromLGSxData (string fileName) |
Constructor to load an SCwCloud from an LGSx file. | |
![]() | |
static Array< SComp > | All (VisibilityEnum visCrit=SComp.ANY_VISIBILITY) |
Get all the SComp in the document. | |
static Object | FromClick () |
Launch an interaction to select a SComp in the scene. | |
static Array< SComp > | FromName (string name) |
Search all the SComp with the given name. | |
static Array< SComp > | FromSel () |
Get all the selected SComp. | |
Provide CloudWorx cloud edition and creation methods.
The type of color scheme for an SCwCloud (when representation is Intensity)
Enumerator | |
---|---|
CWCLOUD_SCHEME_MULTIHUE | Multi hue. |
CWCLOUD_SCHEME_GRAYSCALE | Gray scale. |
CWCLOUD_SCHEME_RED | Red. |
CWCLOUD_SCHEME_GREEN | Green. |
CWCLOUD_SCHEME_BLUE | Blue. |
The different representation types for SCwCloud.
Enumerator | |
---|---|
CWCLOUD_COLORED | Colored points. |
CWCLOUD_INTENSITY | Intensity. |
CWCLOUD_APPEARANCE | Appearance. |
CWCLOUD_CLASSIFICATION | Classification. |
|
static |
Get all the SCwCloud in the document.
visCrit | (VisibilityEnum) Visible selection criteria
|
|
static |
Clone an LGSx project while updating with the points.
A publisher license is required.
clouds | (Array<SCloud>) An array of SCloud that will be used to update the LGSx project. |
cwCloud | (SCwCloud) An SCwCloud opened from the LGSx project that will be cloned. |
path | (string) Path for generated clone project. |
options | (Object)
|
ret.ErrorCode | (number) Status
|
ret.InvalidMobilePoints | (number) Number of invalid mobile points. These have been ignored. |
ret.UnstructuredPoints | (number) Number of unstructured points. |
|
static |
Remove the existing SCwCloud from the current document, if any.
|
static |
Open a dialog to define the JetStream server address and port.
|
static |
Export objects as a new LGSx project.
objects | (Array<SComp>) Objects to export. These can be clouds, trajectories or clipping objects. There must be at least one cloud. |
path | (string) Path where the LGSx should be exported to. |
options | (Object)
|
ret.ErrorCode | (number) Status
|
|
static |
Launch an interaction to select a SCwCloud in the scene.
|
static |
|
static |
CwCloudColorSchemeTypeEnum SCwCloud::GetColorScheme | ( | ) |
Get the current color scheme of the SCwCloud.
CwCloudRepresentationTypeEnum SCwCloud::GetCwCloudRepresentation | ( | ) |
Get the current representation of the SCwCloud.
|
static |
Open a dialog to define the CloudWorx server address and port.
|
static |
Constructor to load a CloudWorx Project.
fileName | (string) The fileName of the CloudWorx Project to load |
ret.ErrorCode | (number) The error code
|
|
static |
|
static |
Constructor to load an SCwCloud from an LGSx file.
|
static |
Constructor to load an SCwCloud from an LGSx file.
fileName | (string) The fileName of the LGSx to load |
|
static |
Constructor to load an SCwCloud from an LGSx file.
|
static |
Object SCwCloud::SaveCwProject | ( | string | projectFileName | ) |
Save the SCwCloud into a cwprj file.
projectFileName | (string) The full path of the cwprj file |
ret.ErrorCode | (number) The error code
|
SCwCloud::SetColorScheme | ( | CwCloudColorSchemeTypeEnum | colorScheme | ) |
Set the color scheme of the SCwCloud (the color scheme is only defined for the intensity representation)
colorScheme | (CwCloudColorSchemeTypeEnum) The new color scheme to use
|
SCwCloud::SetCwCloudRepresentation | ( | CwCloudRepresentationTypeEnum | representation | ) |
Set the representation of the SCwCloud.
representation | (CwCloudRepresentationTypeEnum) The SCwCloud representation type
|
Object SCwCloud::ToCloud | ( | number | nbPointsAsked, |
boolean | convertIntoSpherical = false, | ||
boolean | convertCloudOnly = false ) |
Create an SCloud and optionally an SImage table from the SCwCloud.
nbPointsAsked | (number) An estimation of the number of points to extract |
convertIntoSpherical | (boolean) If true, cubic images will be converted into spherical images |
convertCloudOnly | (boolean) Define if it converts only the cloud or also the images if any
|
Object SCwCloud::ToMMSData | ( | number | nbPointsAsked, |
ObjectsToConvert | objectsToConvert = SCwCloud.CLOUDS, | ||
number | imagesMinimumStep = 5, | ||
boolean | importSidePhotos = false, | ||
boolean | convertCubefaceToSpherical = true ) |
Convert mobile data from an LGSx file, creating a table of SCloud and / or a table of SImage tables and / or a table of STrajectory from the SCwCloud.
nbPointsAsked | (number) An estimation of the total number of points to extract |
objectsToConvert | (ObjectsToConvert) Define the types of objects to convert
|
imagesMinimumStep | (number) Minimum distance between two consecutive extracted images along one trajectory |
importSidePhotos | (boolean) To import or not images from butterfly side cameras from TRK data |
convertCubefaceToSpherical | (boolean) To convert or not cubeface images to spherical images |
ret.ErrorCode | (number) The error code
|
ret.CloudTbl | (Array<SCloud>) The extracted table of SCloud: each SCloud corresponds to a track |
ret.ImageTblTbl | (Array<Array<SImage>>) The extracted tables of SImage: each table of SImage corresponds to a track |
ret.TrajectoryTbl | (Array<STrajectory>) The extracted table of STrajectory: each STrajectory corresponds to a track |
string SCwCloud::toString | ( | ) |
Get the type of the variable.