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

Abstract class used by the following derived classes: SClippingBox and SClippingPlane. More...

Inheritance diagram for SClipping:
SComp SClippingBox SClippingPlane

Public Member Functions

 ActivateInAllScenes ()
 Activate the clipping object in all scenes. More...
 
 ActivateInScene (number sceneIndex)
 Activate the clipping object in the given scene. More...
 
 Clip (SComp comp)
 Clip a SComp. More...
 
 ClipAll ()
 Clip all SComp in the current document. More...
 
 ClipTable (Array< SComp > compTable)
 Clip a table of SComp. More...
 
 DeactivateInAllScenes ()
 Deactivate the clipping object in all scenes. More...
 
 DeactivateInScene (number sceneIndex)
 Deactivate the clipping object in a given scene. More...
 
boolean IsActivatedInAllScenes ()
 Return if the SClipping is activated in all scenes. More...
 
boolean IsActivatedInScene (number sceneIndex)
 Return if the SClipping is activated in a given scene. More...
 
boolean IsClipped (SComp comp)
 Return if the SComp is clipped or not. More...
 
string toString ()
 Get the type of the variable. More...
 
 Unclip (SComp comp)
 Unclip a SComp. More...
 
 UnclipAll ()
 Unclip all SComp in the current document. More...
 
 UnclipTable (Array< SComp > compTable)
 Unclip a table of SComp. 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< SClippingAll (VisibilityEnum visCrit=SComp.ANY_VISIBILITY)
 Get all the SClipping in the document. More...
 
static Object FromClick ()
 Launch an interaction to select a SClipping in the scene. More...
 
static Array< SClippingFromName (string name)
 Search all the SClipping with the given name. More...
 
static Array< SClippingFromSel ()
 Get all the selected SClipping. More...
 
static Array< SClippingGetAllActivated (VisibilityEnum visCrit=SComp.ANY_VISIBILITY)
 Get all the activated SClipping in the document. 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

Abstract class used by the following derived classes: SClippingBox and SClippingPlane.

Member Function Documentation

◆ ActivateInAllScenes()

SClipping::ActivateInAllScenes ( )

Activate the clipping object in all scenes.

◆ ActivateInScene()

SClipping::ActivateInScene ( number  sceneIndex)

Activate the clipping object in the given scene.

Parameters
sceneIndex(number) The index of the scene

◆ All()

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

Get all the SClipping in the document.

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

◆ Clip()

SClipping::Clip ( SComp  comp)

Clip a SComp.

Parameters
comp(SComp) The SComp to clip

◆ ClipAll()

SClipping::ClipAll ( )

Clip all SComp in the current document.

◆ ClipTable()

SClipping::ClipTable ( Array< SComp compTable)

Clip a table of SComp.

Parameters
compTable(Array<SComp>) The table of SComp to clip

◆ DeactivateInAllScenes()

SClipping::DeactivateInAllScenes ( )

Deactivate the clipping object in all scenes.

◆ DeactivateInScene()

SClipping::DeactivateInScene ( number  sceneIndex)

Deactivate the clipping object in a given scene.

Parameters
sceneIndex(number) The index of the scene

◆ FromClick()

static Object SClipping::FromClick ( )
static

Launch an interaction to select a SClipping in the scene.

Warning
This function will pause the script, and wait for user interaction
Return values
ret.ErrorCode(number) The error code
  • 0: No error, the SClipping is selected.
  • 1: Nothing is selected.
  • 2: The ESCape key has been pressed
ret.Clipping(SClipping) The selected SClipping

◆ FromName()

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

Search all the SClipping with the given name.

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

◆ FromSel()

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

Get all the selected SClipping.

Returns
(Array<SClipping>) All the selected SClipping

◆ GetAllActivated()

static Array< SClipping > SClipping::GetAllActivated ( VisibilityEnum  visCrit = SComp.ANY_VISIBILITY)
static

Get all the activated SClipping in the document.

Parameters
visCrit(VisibilityEnum) Visible selection criteria
Returns
(Array<SClipping>) All the activated SClipping in the document

◆ IsActivatedInAllScenes()

boolean SClipping::IsActivatedInAllScenes ( )

Return if the SClipping is activated in all scenes.

Return values
trueThe SClipping is activated in all scenes
falseThe SClipping is not activated in all scenes

◆ IsActivatedInScene()

boolean SClipping::IsActivatedInScene ( number  sceneIndex)

Return if the SClipping is activated in a given scene.

Parameters
sceneIndex(number) The index of the scene
Return values
trueThe SClipping is activated in a given scene
falseThe SClipping is deactivated in a given scene

◆ IsClipped()

boolean SClipping::IsClipped ( SComp  comp)

Return if the SComp is clipped or not.

Parameters
comp(SComp) The SComp
Return values
trueThe SComp is clipped by the SClipping
falseThe SComp is not clipped by the SClipping

◆ toString()

string SClipping::toString ( )

Get the type of the variable.

Returns
(string) The type name

◆ Unclip()

SClipping::Unclip ( SComp  comp)

Unclip a SComp.

Parameters
comp(SComp) The SComp to unclip

◆ UnclipAll()

SClipping::UnclipAll ( )

Unclip all SComp in the current document.

◆ UnclipTable()

SClipping::UnclipTable ( Array< SComp compTable)

Unclip a table of SComp.

Parameters
compTable(Array<SComp>) The table of SComp to unclip