8#include "RshPluginScript/RshPluginScriptDefines.h"
9#include "RshPluginScript/SClass/SComp.h"
12namespace rsh::ScriptBinding
136 :
public SObjectStatic
189 static Array
FromName( String Name) {
return SComp::GetFromName<SPoint>(Name); }
248 Array<SPoint> PointsToSave,
250 SMatrix CoordinateSystemMatrix = {}
260Q_DECLARE_METATYPE(SPoint::_SPointDummy);
261Q_DECLARE_METATYPE(
SPoint);
268namespace rsh::Script::ScriptConvert
273 static char GetClassName() {
return "SPoint"; }
275 typedef SPoint ScriptClass;
277 typedef SPoint DCompClass;
279 static GPointComp GetGCompClass(
SPoint _iCompClass)
281 return _iCompClass.Point;
The SComp class is an abstract class. Use derived classes SCircle, SCylinder, SCloud,...
Definition: SComp.h:32
Matrix with 3 lines and 4 columns to make any transformation. This class should be used in order to a...
Definition: SMatrix.h:21
3D point manipulation class. The SPoint creation can be done by calling the static functions:
Definition: SPoint.h:23
SPoint Div(Number Scalar)
To calculate the division of a point by a scalar (to be able to do averages).
SPoint Add(SPoint iPtToAdd)
To calculate the sum of two points (to be able to do some averages)
SetPointSize(Number pointSize)
New point size.
static String toString()
Get the type of the variable.
SetZ(Number Z)
Sets the Z coordinate.
static SPoint New(SPoint Other)
Constructs an SPoint by copying the SPoint Other.
SetX(Number X)
Sets the X coordinate.
static SPoint New()
Default constructor to create an empty new SPoint. X = Y = Z// TESTED.
static Array All(Number iVisCrit)
To get all the SComp in the document.
ShowName(Boolean iShowName)
Control whether the name of the point is shown or not in the scene.
static Array Save(String FilePath, Array< SPoint > PointsToSave, SMatrix CoordinateSystemMatrix={})
Saves points into a file. Supported extensions : .asc, .txt.
Number Distance(SPoint iPtToCompare)
Calculates the true distance between 'this' and PtToCompare.
String ValuesToString()
Get a string representation of the point.
SPoint Mult(Number Scalar)
To calculate the multiplication of a point by a scalar.
Number GetPointSize()
Return the current point size.
static SPoint New(Number X, Number Y, Number Z)
Constructs a new SPoint by defining its data.
Boolean Equals(SPoint iPtToCompare)
To test if two 3D points are equal or not.
SPoint Sub(SPoint iPtToSub)
To calculate the subtraction of two points.
static Array FromName(String Name)
Search all the component with the given name.
Definition: SPoint.h:189
static Array FromClick()
Launches a click interaction to select a SComp in the scene.
static Array FromSel()
To get all the selected SComp.
String toString()
Get the type of the variable.
static Array FromFile(String FileName)
Imports points from a file. Authorized file extensions : .asc, .txt.
SetY(Number Y)
Sets the Y coordinate.