8#include "RshPluginScript/RshPluginScriptDefines.h"
9#include "RshPluginScript/SClass/SFeature.h"
12namespace rsh::ScriptBinding
91 Number meanPointDistance
117 :
public SObjectStatic
179 static Array
FromClick() {
return SComp::GetFromClick<SSquareSlot>(SV_SQUARE_SLOT); }
185 static Array
FromName( String Name) {
return SComp::GetFromName<SSquareSlot>(Name); }
191 static Array
FromSel() {
return SFeature::GetFromSel<SSquareSlot>(); }
205 return SComp::GetAll<SSquareSlot>(VisCrit);
212Q_DECLARE_METATYPE(SSquareSlot::_SSquareSlotDummy);
The SFeature class is an abstract class.
Definition: SFeature.h:19
3D point manipulation class. The SPoint creation can be done by calling the static functions:
Definition: SPoint.h:23
SquareSlot manipulation class. The SSquareSlot creation can be done by calling the static functions: ...
Definition: SSquareSlot.h:24
SetWidth(Number iWidth)
Setter for the width.
Number GetLength()
Returns the length.
static Array All(Number VisCrit)
To get all the SComp in the document.
Definition: SSquareSlot.h:197
Number SetXDir(SVector iNewXDir)
Setter for the SSquareSlot X direction.
static Array FromSel()
To get all the selected SComp.
Definition: SSquareSlot.h:191
String toString()
Get the type of the variable.
static Array FromName(String Name)
Search all the component with the given name.
Definition: SSquareSlot.h:185
static SSquareSlot New(SPoint Center, SVector Normal, SVector XDir, Number Length, Number Width)
Constructs a new SSquareSlot by defining its data.
static Array FromClick()
Launches a click interaction to select a SComp in the scene.
Definition: SSquareSlot.h:179
SetLength(Number iLength)
Setter for the length.
static String toString()
Get the type of the variable.
Array Discretize(Number deflection, Number meanPointDistance)
To convert the continuous feature into a discretized SMultiline. Only one of the parameters must be s...
static SSquareSlot New(SSquareSlot Other)
Constructs an SSquareSlot by copying Other.
Number GetPerimeter()
Returns the perimeter of the feature.
static SSquareSlot New(SPoint FirstPt, SPoint SecondPt, SPoint ThirdPt)
Constructs a new SSquareSlot by 3 points.
static SSquareSlot New()
Default constructor to create an empty new SSquareSlot.
Number Distance(SPoint iPoint, Boolean CalcIn3D)
Returns the distance between a point and the feature <0 if below/inside the feature >0 if above/outsi...
Number GetWidth()
Returns the width.
The mathematical object vector.
Definition: SVector3.h:26