Plane shape management.
More...
Inherits QObject.
Plane shape management.
Circle object.
Definition GO2SCircle.hpp:8
Class for utilitary methods of geometric entities.
Definition GO2SGeometryUtil.hpp:11
static Array< GO2SGeometry > GetPoints(Number color=-1, Number layer=-1, Number plane=-1)
static void SetUsedPlane(Number newPlane=-1)
Definition GO2SGeometryUtil.hpp:133
Plane shape management.
Definition GO2SPlane.hpp:21
GO2SEnum::GO2SError SetFrom3Points(GO2SXYZ origin, GO2SXYZ xAxis, GO2SXYZ yAxis)
Creation of a coordinate reference.
Definition GO2SXYZ.hpp:81
◆ GO2SPlane()
GO2SPlane::GO2SPlane |
( |
Number | no = MAXELT | ) |
|
|
inline |
Default constructor.
- Parameters
-
[in] | no | number of an existing plane number |
◆ GetName()
String GO2SPlane::GetName |
( |
| ) |
|
- Returns
- the name of the plane
◆ GetNumber()
Number GO2SPlane::GetNumber |
( |
| ) |
|
|
inline |
- Returns
- the number of the plane (Reference plane is number 1)
◆ SetFrom3Points()
Create a plane from 3 points
- Returns
- GO2SError.success (0) if success, see GO2SError otherwise
- Parameters
-
[in] | origin | origin of the plane |
[in] | xAxis | coordinates of a point in X axis of the plane |
[in] | yAxis | coordinates of a point in Y axis of the plane |
◆ SetFromAngle()
Create a plane by rotating the current plane
- Returns
- GO2SError.success (0) if success, see GO2SError otherwise
- Parameters
-
[in] | origin | new origin for the plane |
[in] | angle | rotation angle in degree |
[in] | axis | rotation axis |
◆ SetFromMatrix()
Use matrix to define a plane
- Returns
- GO2SError.success (0) if success, see GO2SError otherwise
- Parameters
-
[in] | matrix | the matrix defining the plane |
◆ SetName()
Set the name of the plane
- Returns
- GO2SError.success (0) if success, see GO2SError otherwise
- Parameters
-
[in] | name | new name for the plane |