8#include "RshPluginScript/RshPluginScriptDefines.h"
9#include "RshPluginScript/SClass/SClipping.h"
12namespace rsh::ScriptBinding
48 new SMatrix(thisDComp()->Move(iDistance)));
56 Boolean iReprojectPoint
62 new SMatrix(thisDComp()->MoveInDirectionOf(iTargetPoint, iReprojectPoint)));
83 thisDComp()->SetPosition(iNewCenter->Point);
101 return thisDComp()->SetDirection(iNormal, iXDir);
109 inline Number
GetDepth() {
return thisDComp()->GetDepth(); }
119 thisDComp()->SetDepth(iStep);
127 inline Number
GetStep() {
return thisDComp()->GetStep(); }
137 thisDComp()->SetStep(iDepth);
142 inline Boolean
HasPath() {
return thisDComp()->HasPath(); }
164 :
public SObjectStatic
201 QScriptContext ipContext,
203 QScriptEngine ipEngine
212 static Array
FromName( String Name) {
return SComp::GetFromName<SClippingPlane>(Name); }
223 static Array
FromClick() {
return SComp::GetFromClick<SClippingPlane>(SV_CLIPPINGPLANE); }
243 return SComp::GetAll<SClippingPlane>(VisCrit);
250Q_DECLARE_METATYPE(SClippingPlane::_SClippingPlaneDummy);
The SClipping class is an abstract class.
Definition: SClipping.h:20
ClippingPlane manipulation class. The SClippingPlane creation can be done by calling the static funct...
Definition: SClippingPlane.h:24
Number GetCurvilinearAbscissa()
Get the current curvilinear abscissa of the plane along its path.
Definition: SClippingPlane.h:148
static SClippingPlane New(SPoint iCenter, SVector iNormal)
Constructs a new SClippingPlane by defining its data.
static SClippingPlane New(SMultiline _iPath)
Constructs a new SClippingPlane by defining its path.
static Array All(Number VisCrit)
To get all the SComp in the document.
Definition: SClippingPlane.h:235
Number GetDepth()
Get the depth of the clipping plane.
Definition: SClippingPlane.h:109
static Array FromClick()
Launches a click interaction to select a SComp in the scene.
Definition: SClippingPlane.h:223
SMatrix Move(Number iDistance)
Move the clipping plane to a certain distance along its normal or its path if defined.
Definition: SClippingPlane.h:45
Number GetStep()
Get the step of the clipping plane.
Definition: SClippingPlane.h:127
SetDirection(SVector iNormal, SVector iXDir)
Set the normal of the clipping plane.
Definition: SClippingPlane.h:94
SPoint GetPosition()
Set the center of the clipping plane.
Definition: SClippingPlane.h:71
Array GetPath()
Get the path of the clipping plane as a polyline.
static SClippingPlane New()
Default constructor to create an empty new SClippingPlane.
static SClippingPlane New(SClippingPlane _iOther)
Constructs an SPlane by copying the SClippingPlane Other.
SetDepth(Number iStep)
Set the depth for the clipping plane.
Definition: SClippingPlane.h:113
SetStep(Number iDepth)
Set the step for the clipping plane.
Definition: SClippingPlane.h:131
SetPosition(SPoint iNewCenter)
Set the center of the clipping plane.
Definition: SClippingPlane.h:79
SMatrix MoveInDirectionOf(SPoint iTargetPoint, Boolean iReprojectPoint)
Move the clipping plane in direction of a given point along its normal or its path if defined.
Definition: SClippingPlane.h:53
static Array FromSel()
To get all the selected SComp.
Boolean HasPath()
Does the clipping have a path?
Definition: SClippingPlane.h:142
static SClippingPlane New(SPlane _iPlane)
Constructs a new SClippingPlane by defining its plane.
Array GetDirection()
Get the directions of the clipping plane.
static Array FromName(String Name)
Search all the component with the given name.
Definition: SClippingPlane.h:212
String toString()
Get the type of the variable.
static String toString()
Get the type of the variable.
Matrix with 3 lines and 4 columns to make any transformation. This class should be used in order to a...
Definition: SMatrix.h:21
Class to store a multiline, that is: an ordered list of points. The SMultiline creation can be done b...
Definition: SMultiLine.h:24
Plane manipulation class. The SPlane creation can be done by calling the static functions: .
Definition: SPlane.h:24
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