Cyclone 3DR Script
from Technodigit, part of Hexagon. Copyright 1997-2023.
Loading...
Searching...
No Matches
SViewSet Class Reference

Allow to save the camera position and the visibility of objects in a 3D scene. More...

Inheritance diagram for SViewSet:
SComp

Public Member Functions

 SViewSet ()
 Default constructor. More...
 
 SViewSet (boolean saveObjectsVisibility=true)
 Default constructor to create a SViewSet. More...
 
 SViewSet (SViewSet other)
 Construct a SViewSet by copying other. More...
 
string toString ()
 Get the type of the variable. More...
 
 Update (boolean saveObjectsVisibility)
 Update the SViewSet with the current position of the camera. 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 ()
 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< SViewSetAll (VisibilityEnum visCrit=SComp.ANY_VISIBILITY)
 Get all the SViewSet in the document. More...
 
static Array< SViewSetFromName (string name)
 Search all the SViewSet with the given name. More...
 
static Array< SViewSetFromSel ()
 Get all the selected SViewSet. More...
 
static SViewSet New (boolean saveObjectsVisibility=true)
 Default constructor to create a SViewSet. More...
 
static SViewSet New (SViewSet other)
 Construct a SViewSet by copying other. More...
 
- Static Public Member Functions inherited from SComp
static Array< SCompAll (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< SCompFromName (string name)
 Search all the SComp with the given name. More...
 
static Array< SCompFromSel ()
 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...
 

Detailed Description

Allow to save the camera position and the visibility of objects in a 3D scene.

Constructor & Destructor Documentation

◆ SViewSet() [1/3]

SViewSet::SViewSet ( )

Default constructor.

◆ SViewSet() [2/3]

SViewSet::SViewSet ( boolean  saveObjectsVisibility = true)

Default constructor to create a SViewSet.

Parameters
saveObjectsVisibility(boolean) If true, save the objects visibility

◆ SViewSet() [3/3]

SViewSet::SViewSet ( SViewSet  other)

Construct a SViewSet by copying other.

Parameters
other(SViewSet) The other SViewSet to copy

Member Function Documentation

◆ All()

static Array< SViewSet > SViewSet::All ( VisibilityEnum  visCrit = SComp.ANY_VISIBILITY)
static

Get all the SViewSet in the document.

Parameters
visCrit(VisibilityEnum) Visible selection criteria
Returns
(Array<SViewSet>) Array of all the SViewSet contained in the document, that fulfill the visibility criteria

◆ FromName()

static Array< SViewSet > SViewSet::FromName ( string  name)
static

Search all the SViewSet with the given name.

Parameters
name(string) The name to find
Returns
(Array<SViewSet>) All the SViewSet with the given name

◆ FromSel()

static Array< SViewSet > SViewSet::FromSel ( )
static

Get all the selected SViewSet.

Returns
(Array<SViewSet>) All the selected SViewSet

◆ New() [1/2]

static SViewSet SViewSet::New ( boolean  saveObjectsVisibility = true)
static

Default constructor to create a SViewSet.

Parameters
saveObjectsVisibility(boolean) If true, save the objects visibility
Returns
(SViewSet) The new SViewSet.

◆ New() [2/2]

static SViewSet SViewSet::New ( SViewSet  other)
static

Construct a SViewSet by copying other.

Parameters
other(SViewSet) The other SViewSet to copy
Returns
(SViewSet) The new SViewSet.

◆ toString()

string SViewSet::toString ( )

Get the type of the variable.

Returns
(string) The type name

◆ Update()

SViewSet::Update ( boolean  saveObjectsVisibility)

Update the SViewSet with the current position of the camera.

Parameters
saveObjectsVisibility(boolean) If true, save the objects visibility