![]() |
Cyclone 3DR Script
from Technodigit, part of Hexagon. Copyright 1997-2024.
|
Provide trajectory management. More...
Public Member Functions | |
| Object | ConvertToMulti () |
| Convert a STrajectory to a SMultiline. More... | |
| Object | EstimatePose (number timestamp) |
| Estimate the pose of the STrajectory at the given timestamp. More... | |
| number | GetDuration () |
| Get the total duration of the STrajectory. More... | |
| number | GetLength () |
| Get the total length of the STrajectory. More... | |
| number | GetNumberOfPoses () |
| Get the number of poses of the STrajectory. More... | |
| Object | GetPoseInfo (number index) |
| Get the pose and timestamp of the STrajectory at the given index. More... | |
| Object | GetTimestampRange () |
| Get the start and end time of the STrajectory. More... | |
| Object | LinkToCloud (SCloud cloud) |
| Link the given SCloud to the STrajectory. More... | |
| Object | Save (string filePath) |
| Save the STrajectory to a CSV file. More... | |
| string | toString () |
| Get the type of the variable. More... | |
| string | ValuesToString () |
| Get a debug string representation of the STrajectory. 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< STrajectory > | All (VisibilityEnum visCrit=SComp.ANY_VISIBILITY) |
| Get all the STrajectory in the document. More... | |
| static Object | FromClick () |
| Launch an interaction to select a STrajectory in the scene. More... | |
| static Object | FromFile (string fileName) |
| Import a STrajectory from a CSV or TRJ file. More... | |
| static Array< STrajectory > | FromName (string name) |
| Search all the STrajectory with the given name. More... | |
| static Array< STrajectory > | FromSel () |
| Get all the selected STrajectory. 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... | |
Additional Inherited Members | |
Public Types inherited from SComp | |
| enum | VisibilityEnum { HIDDEN_ONLY = 0 , VISIBLE_ONLY = 1 , ANY_VISIBILITY = 2 } |
| Visible criteria. More... | |
Provide trajectory management.
|
static |
Get all the STrajectory in the document.
| visCrit | (VisibilityEnum) Visible selection criteria
|
| Object STrajectory::ConvertToMulti | ( | ) |
Convert a STrajectory to a SMultiline.
| ret.Multi | (SMultiline) The converted SMultiline |
| Object STrajectory::EstimatePose | ( | number | timestamp | ) |
Estimate the pose of the STrajectory at the given timestamp.
| timestamp | (number) The timestamp at which to estimate the pose |
|
static |
Launch an interaction to select a STrajectory in the scene.
| ret.ErrorCode | (number) The error code
|
| ret.Trajectory | (STrajectory) The selected STrajectory |
|
static |
Import a STrajectory from a CSV or TRJ file.
| fileName | (string) The path to the trajectory file, must be a CSV or TRJ file |
| ret.ErrorCode | (number) The error code
|
| ret.Trajectory | (STrajectory) The loaded STrajectory |
|
static |
Search all the STrajectory with the given name.
| name | (string) The name to find |
|
static |
Get all the selected STrajectory.
| number STrajectory::GetDuration | ( | ) |
Get the total duration of the STrajectory.
| number STrajectory::GetLength | ( | ) |
Get the total length of the STrajectory.
| number STrajectory::GetNumberOfPoses | ( | ) |
Get the number of poses of the STrajectory.
| Object STrajectory::GetPoseInfo | ( | number | index | ) |
Get the pose and timestamp of the STrajectory at the given index.
| index | (number) The index at which to get the pose information |
| Object STrajectory::GetTimestampRange | ( | ) |
Get the start and end time of the STrajectory.
| ret.StartTime | (number) The timestamp at the start |
| ret.EndTime | (number) The timestamp at the end |
| Object STrajectory::LinkToCloud | ( | SCloud | cloud | ) |
Link the given SCloud to the STrajectory.
| cloud | (SCloud) The SCloud to link to the STrajectory |
| ret.ErrorCode | (number) The error code
|
| Object STrajectory::Save | ( | string | filePath | ) |
Save the STrajectory to a CSV file.
| filePath | (string) The path to the trajectory file, must be a CSV file |
| ret.ErrorCode | (number) The error code
|
| string STrajectory::toString | ( | ) |
Get the type of the variable.
| string STrajectory::ValuesToString | ( | ) |
Get a debug string representation of the STrajectory.