8#include "RshPluginScript/RshPluginScriptDefines.h"
9#include "RshPluginScript/SClass/SClipping.h"
12namespace rsh::ScriptBinding
38 Number
GetVolume() {
return thisDComp()->Volume(); }
50 thisDComp()->SetCenter(iNewCenter->Point);
55 inline Number
GetLength() {
return thisDComp()->Length(); }
63 thisDComp()->SetLength(iLength);
68 inline Number
GetWidth() {
return thisDComp()->Width(); }
76 thisDComp()->SetWidth(iWidth);
81 inline Number
GetHeight() {
return thisDComp()->Height(); }
89 thisDComp()->SetHeight(iHeight);
128 :
public SObjectStatic
166 QScriptContext ipContext,
168 QScriptEngine ipEngine
177 static Array
FromName( String Name) {
return SComp::GetFromName<SClippingBox>(Name); }
188 static Array
FromClick() {
return SComp::GetFromClick<SClippingBox>(SV_CLIPPINGBOX); }
208 return SComp::GetAll<SClippingBox>(VisCrit);
215Q_DECLARE_METATYPE(SClippingBox::_SClippingBoxDummy);
ClippingBox manipulation class. The SClippingBox creation can be done by calling the static functions...
Definition: SClippingBox.h:25
SPoint GetLowerPoint()
Returns the lower point of the clipping box.
String toString()
Get the type of the variable.
Number GetHeight()
Definition: SClippingBox.h:81
SetWidth(Number iWidth)
Set the width (extent along the Y axis) for the clipping box.
Definition: SClippingBox.h:72
static String toString()
Get the type of the variable.
Number GetLength()
Definition: SClippingBox.h:55
SetHeight(Number iHeight)
Set the height (extent along the Z axis) for the clipping box.
Definition: SClippingBox.h:85
SPoint GetUpperPoint()
Returns the upper point of the clipping box.
SVector GetAxisY()
Definition: SClippingBox.h:98
static SClippingBox New()
Default constructor to create a default clipping box of size 1.
SVector GetAxisZ()
Definition: SClippingBox.h:102
static SClippingBox New(SPoint iFirstPt, SPoint iSecondPt, SPoint iThirdPt, SPoint iFourthPt)
Constructs a new SClippingBox by 3 points.
SetLength(Number iLength)
Set the length (extent along the X axis) for the clipping box.
Definition: SClippingBox.h:59
SPoint GetCenter()
Set the center of the clipping box.
Definition: SClippingBox.h:42
Number GetVolume()
Definition: SClippingBox.h:38
static SClippingBox New(SClippingBox Other)
Constructs an SBox by copying the SClippingBox Other.
SetCenter(SPoint iNewCenter)
Set the center of the clipping box.
Definition: SClippingBox.h:46
Number GetWidth()
Definition: SClippingBox.h:68
static Array FromClick()
Launches a click interaction to select a SComp in the scene.
Definition: SClippingBox.h:188
static Array All(Number VisCrit)
To get all the SComp in the document.
Definition: SClippingBox.h:200
static SClippingBox New(Array< SComp > TblElm)
Constructs a new SClippingBox corresponding to the bounding box of all the table of element.
static Array FromSel()
To get all the selected SComp.
SVector GetAxisX()
Definition: SClippingBox.h:94
static Array FromName(String Name)
Search all the component with the given name.
Definition: SClippingBox.h:177
The SClipping class is an abstract class.
Definition: SClipping.h:20
3D point manipulation class. The SPoint creation can be done by calling the static functions:
Definition: SPoint.h:23
The mathematical object vector.
Definition: SVector3.h:26