Cyclone 3DR Script
from Technodigit, part of Hexagon. Copyright 1997-2024.
|
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 a 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... | |
Public Types inherited from SComp | |
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. More... | |
CwCloudRepresentationTypeEnum | GetCwCloudRepresentation () |
Get the current representation of the SCwCloud. More... | |
Object | SaveCwProject (string projectFileName) |
Save the SCwCloud into a cwprj file. More... | |
SetColorScheme (CwCloudColorSchemeTypeEnum colorScheme) | |
Set the color scheme of the SCwCloud (the color scheme is only defined for the intensity representation) More... | |
SetCwCloudRepresentation (CwCloudRepresentationTypeEnum representation) | |
Set the representation of the SCwCloud. More... | |
Object | ToCloud (number nbPointsAsked, boolean convertIntoSpherical=false, boolean convertCloudOnly=false) |
Create a SCloud and optionally a SImage table from the SCwCloud. More... | |
Object | ToMMSData (number nbPointsAsked, ObjectsToConvert objectsToConvert=SCwCloud.CLOUDS, number imagesMinimumStep=5, boolean importSidePhotos=false) |
Convert mobile data from a LGSx file, creating a table of SCloud and / or a table of SImage tables and / or a table of STrajectory from the SCwCloud. More... | |
string | toString () |
Get the type of the variable. More... | |
string | ValuesToString () |
Get a debug string representation of the SCwCloud. More... | |
Public Member Functions inherited from SComp | |
AddToDoc () | |
Add the object to the document. More... | |
ApplyTransformation (SMatrix matrix) | |
Apply a geometric transformation to the current object by making a product with the given matrix. More... | |
Object | GetBoundingBox (SMatrix ucs=null) |
Calculate the bounding box of the object. More... | |
Object | GetColors () |
Get the colors of the object. More... | |
string | GetFolderName () |
Get the name of the folder containing the object. More... | |
string | GetName () |
Return the object's name. More... | |
string | GetPath () |
Return the full path of a SComp in the tree. More... | |
Invert () | |
Invert the normal of the object. More... | |
boolean | IsInDoc () |
Return if the object is in the document or not. More... | |
boolean | IsVisible () |
Get the visibility of the object. More... | |
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. More... | |
RemoveFromDoc () | |
Remove the object from the document. More... | |
SetClippable (boolean clipping) | |
Set clippable or not. More... | |
SetColors (number red, number green, number blue) | |
Set the colors of the object. More... | |
SetName (string objectName) | |
Set the object's name. More... | |
SetTransparency (number alpha) | |
Set the transparency of the object. More... | |
SetVisibility (boolean visible) | |
Set the object to be visible, or not visible. More... | |
string | toString () |
Get the type of the variable. More... | |
Translate (SVector vector) | |
Make a translation of the current object with an SVector. More... | |
Static Public Member Functions | |
static Array< SCwCloud > | All (VisibilityEnum visCrit=SComp.ANY_VISIBILITY) |
Get all the SCwCloud in the document. More... | |
static | CloseCwProject () |
Remove the existing SCwCloud from the current document, if any. More... | |
static | DefineJetStreamServer () |
Open a dialog to define the JetStream server address and port. More... | |
static Object | FromClick () |
Launch an interaction to select a SCwCloud in the scene. More... | |
static Array< SCwCloud > | FromName (string name) |
Search all the SCwCloud with the given name. More... | |
static Array< SCwCloud > | FromSel () |
Get all the selected SCwCloud. More... | |
static Object | NewFromCwProjectFile (string fileName) |
Constructor to load a CloudWorx Project. More... | |
static Object | NewFromImpData () |
Constructor to load a SCwCloud from a IMP file. More... | |
static Object | NewFromJetStreamData () |
Constructor to load a SCwCloud from a JetStream server. More... | |
static Object | NewFromLGSData () |
Constructor to load a SCwCloud from a LGSx file. More... | |
static Object | NewFromLGSData (string fileName) |
Constructor to load a SCwCloud from a LGSx file. More... | |
Static Public Member Functions inherited from SComp | |
static Array< SComp > | All (VisibilityEnum visCrit=SComp.ANY_VISIBILITY) |
Get all the SComp in the document. More... | |
static Object | FromClick () |
Launch an interaction to select a SComp in the scene. More... | |
static Array< SComp > | FromName (string name) |
Search all the SComp with the given name. More... | |
static Array< SComp > | FromSel () |
Get all the selected SComp. More... | |
Provide CloudWorx cloud edition and creation methods.
The type of color scheme for a 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 |
Remove the existing SCwCloud from the current document, if any.
|
static |
Open a dialog to define the JetStream server address and port.
|
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 |
Constructor to load a CloudWorx Project.
fileName | (string) The fileName of the CloudWorx Project to load |
ret.ErrorCode | (number) The error code
|
|
static |
|
static |
|
static |
|
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 a SCloud and optionally a 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 |
||
) |
Convert mobile data from a 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 spherical images along one trajectory |
importSidePhotos | (boolean) To import or not images from butterfly side cameras from TRK data |
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.