GO2cam Javascript API  6.11
GO2SGeometryUtil Class Reference

Class for utilitary methods of geometric entities. More...

Inherits QObject.

Static Public Member Functions

static Array< GO2SGeometryGetAll (Number color=-1, Number layer=-1, Number plane=-1)
 
static Array< GO2SGeometryGetArcs (Number color=-1, Number layer=-1, Number plane=-1)
 
static Array< GO2SGeometryGetByColor (Number color)
 
static Array< GO2SGeometryGetByName (String p1)
 
static Array< GO2SGeometryGetByNameLike (String p1)
 
static Array< GO2SGeometryGetChamfers (Number color=-1, Number layer=-1, Number plane=-1)
 
static Array< GO2SGeometryGetCircles (Number color=-1, Number layer=-1, Number plane=-1)
 
static Array< GO2SGeometryGetFillets (Number color=-1, Number layer=-1, Number plane=-1)
 
static GO2SGeometry GetLast ()
 
static Array< GO2SGeometryGetLines (Number color=-1, Number layer=-1, Number plane=-1)
 
static Array< GO2SGeometryGetPoints (Number color=-1, Number layer=-1, Number plane=-1)
 
static Array< GO2SGeometryGetProfiles (Number color=-1, Number layer=-1, Number plane=-1)
 
static Array< GO2SGeometryGetRectangles (Number color=-1, Number layer=-1, Number plane=-1)
 
static Array< GO2SGeometryGetSegments (Number color=-1, Number layer=-1, Number plane=-1)
 
static Array< GO2SGeometryGetSelected ()
 
static Array< GO2SGeometryGetSolids (Number color=-1, Number layer=-1, Number plane=-1)
 
static Number GetUsedColor ()
 
static Number GetUsedLayer ()
 
static Number GetUsedPlane ()
 
static void SetUsedColor (Number newColor=-1)
 
static void SetUsedLayer (Number newLayer=-1)
 
static void SetUsedPlane (Number newPlane=-1)
 

Detailed Description

Class for utilitary methods of geometric entities.

Member Function Documentation

◆ GetAll()

static Array< GO2SGeometry > GO2SGeometryUtil::GetAll ( Number color = -1,
Number layer = -1,
Number plane = -1 )
static
Returns
an array containing all geometry according to filters
Version
6.11.203
Parameters
[in]colorcolor filter
[in]layerlayer filter
[in]planeplane filter

◆ GetArcs()

static Array< GO2SGeometry > GO2SGeometryUtil::GetArcs ( Number color = -1,
Number layer = -1,
Number plane = -1 )
static

Get an array of arcs with filter

Remarks
if a filter = -1 it means that it is not included
Parameters
[in]colorcolor filter
[in]layerlayer filter
[in]planeplane filter

◆ GetByColor()

static Array< GO2SGeometry > GO2SGeometryUtil::GetByColor ( Number color)
static
Returns
an array of geometry having the given color
Parameters
[in]colorcolor filter

◆ GetByName()

static Array< GO2SGeometry > GO2SGeometryUtil::GetByName ( String p1)
static

Get geometry by name

Returns
an array of geometry with the given name
Parameters
[in]p1the name of the geometry

◆ GetByNameLike()

static Array< GO2SGeometry > GO2SGeometryUtil::GetByNameLike ( String p1)
static
Returns
an array of geometry with name containing p1
Parameters
[in]p1part of name

◆ GetChamfers()

static Array< GO2SGeometry > GO2SGeometryUtil::GetChamfers ( Number color = -1,
Number layer = -1,
Number plane = -1 )
static

Get an array of chamfers with filter

Remarks
if a filter = -1 it means that it is not included
Parameters
[in]colorcolor filter
[in]layerlayer filter
[in]planeplane filter

◆ GetCircles()

static Array< GO2SGeometry > GO2SGeometryUtil::GetCircles ( Number color = -1,
Number layer = -1,
Number plane = -1 )
static

Get an array of circles with filter

Remarks
if a filter = -1 it means that it is not included
Parameters
[in]colorcolor filter
[in]layerlayer filter
[in]planeplane filter

◆ GetFillets()

static Array< GO2SGeometry > GO2SGeometryUtil::GetFillets ( Number color = -1,
Number layer = -1,
Number plane = -1 )
static

Get an array of fillets with filter

Remarks
if a filter = -1 it means that it is not included
Parameters
[in]colorcolor filter
[in]layerlayer filter
[in]planeplane filter

◆ GetLast()

static GO2SGeometry GO2SGeometryUtil::GetLast ( )
static

Get the last geometry in the database

Returns
a geometry if found, if not nullptr

◆ GetLines()

static Array< GO2SGeometry > GO2SGeometryUtil::GetLines ( Number color = -1,
Number layer = -1,
Number plane = -1 )
static

Get an array of lines with filter

Remarks
if a filter = -1 it means that it is not included
Parameters
[in]colorcolor filter
[in]layerlayer filter
[in]planeplane filter

◆ GetPoints()

static Array< GO2SGeometry > GO2SGeometryUtil::GetPoints ( Number color = -1,
Number layer = -1,
Number plane = -1 )
static

Get an array of points with filter

Remarks
if a filter = -1 it means that it is not included
Parameters
[in]colorcolor filter
[in]layerlayer filter
[in]planeplane filter

◆ GetProfiles()

static Array< GO2SGeometry > GO2SGeometryUtil::GetProfiles ( Number color = -1,
Number layer = -1,
Number plane = -1 )
static

Get an array of profiles with filter

Remarks
if a filter = -1 it means that it is not included
Parameters
[in]colorcolor filter
[in]layerlayer filter
[in]planeplane filter

◆ GetRectangles()

static Array< GO2SGeometry > GO2SGeometryUtil::GetRectangles ( Number color = -1,
Number layer = -1,
Number plane = -1 )
static

Get an array of rectangles with filter

Remarks
if a filter = -1 it means that it is not included
Parameters
[in]colorcolor filter
[in]layerlayer filter
[in]planeplane filter

◆ GetSegments()

static Array< GO2SGeometry > GO2SGeometryUtil::GetSegments ( Number color = -1,
Number layer = -1,
Number plane = -1 )
static

Get an array of segments with filter

Remarks
if a filter = -1 it means that it is not included
Parameters
[in]colorcolor filter
[in]layerlayer filter
[in]planeplane filter

◆ GetSelected()

static Array< GO2SGeometry > GO2SGeometryUtil::GetSelected ( )
static
Returns
an array containing selected geometry. The selection can be asked by GO2SInteract.StartSelection()

◆ GetSolids()

static Array< GO2SGeometry > GO2SGeometryUtil::GetSolids ( Number color = -1,
Number layer = -1,
Number plane = -1 )
static

Get an array of solids with filter

Remarks
if a filter = -1 it means that it is not included
Version
6.11.206
Parameters
[in]colorcolor filter
[in]layerlayer filter
[in]planeplane filter

◆ GetUsedColor()

static Number GO2SGeometryUtil::GetUsedColor ( )
inlinestatic
Returns
the color used to build geometry

◆ GetUsedLayer()

static Number GO2SGeometryUtil::GetUsedLayer ( )
inlinestatic
Returns
the layer used to build geometry

◆ GetUsedPlane()

static Number GO2SGeometryUtil::GetUsedPlane ( )
inlinestatic
Returns
the plane used to build geometry

◆ SetUsedColor()

static void GO2SGeometryUtil::SetUsedColor ( Number newColor = -1)
inlinestatic

Set the Color used to build geometry

Remarks
if the color is -1 then the current color in GO2Cam will be used

◆ SetUsedLayer()

static void GO2SGeometryUtil::SetUsedLayer ( Number newLayer = -1)
inlinestatic

Set the layer used to build geometry

Remarks
if the layer is -1 then the current layer in GO2Cam will be used

◆ SetUsedPlane()

static void GO2SGeometryUtil::SetUsedPlane ( Number newPlane = -1)
inlinestatic

Set the plane used to build geometry

Remarks
if the plane is -1 then the current plane in GO2Cam will be used