GO2cam Javascript API  6.11
GO2SEnum Class Reference

Base class for enums. More...

Inherits QObject.

Public Types

enum class  GO2SAnchor {
  TopLeft = 0 , TopCenter , TopRight , CenterLeft ,
  Center , CenterRight , BottomLeft , BottomCenter ,
  BottomRight , count
}
 Text positioning. More...
 
enum class  GO2SAxis { x = 1 , y , z }
 Axis names. More...
 
enum class  GO2SContext {
  Neutral = 0 , Design = 1 , MachiningMilling = 2 , MachiningTurning = 3 ,
  MachiningEdm = 6 , Opelist = 7 , Machine = 8
}
 For Context.
 
enum class  GO2SCurve { unknown = -1 , open = 0 , close = 1 }
 For GO2SNurbs GO2SPolyline open/close curve parameter.
 
enum class  GO2SDockPosition { noDock , left , right }
 For modeless dialog. More...
 
enum class  GO2SError {
  success = 0 , failed , geom_null , get_failed ,
  exec_failed , bad_parameters , attribute_not_editable , point_locked
}
 Error codes. More...
 
enum class  GO2SFileOpen { read_only , read_write }
 Files opening modes. More...
 
enum class  GO2SMachiningType {
  unknown = 0 , turning , milling , milling3d ,
  edm
}
 Application type of a machining component (tool, cycle...) More...
 
enum class  GO2SMessageType { info , warning , error }
 GO2SDialogUtil.CreateMessageBox parameter. More...
 
enum class  GO2SOffsetLink { Chamfer = 1 , Extend , Corner , Fillet }
 GO2SOffsetCurve link parameter. More...
 
enum class  GO2SOffsetSide { Left = 1 , Inside = 1 , Right = -1 , Outside = -1 }
 GO2SOffsetCurve side parameter. More...
 
enum class  GO2SParam {
  length , width , height , angle ,
  radius , last_param
}
 Geometry parameters. More...
 
enum class  GO2SSilhouetteType { upper = 0 , lower , symetrical }
 GO2SSilhouetteRevolution parameter. More...
 
enum class  GO2SWay { before = -1 , after = 1 }
 GO2SMachiningUtil.MoveCycle parameter. More...
 

Detailed Description

Base class for enums.

Member Enumeration Documentation

◆ GO2SAnchor

enum class GO2SEnum::GO2SAnchor
strong

Text positioning.

Enumerator
count 

Unused.

◆ GO2SAxis

enum class GO2SEnum::GO2SAxis
strong

Axis names.

Enumerator

X axis.

Y axis.

Z axis.

◆ GO2SDockPosition

enum class GO2SEnum::GO2SDockPosition
strong

For modeless dialog.

Enumerator
noDock 

floating dialog

left 

docked dialog on the left of the application

right 

docked dialog on the right of the application

◆ GO2SError

enum class GO2SEnum::GO2SError
strong

Error codes.

Enumerator
success 

OK !

failed 

Default error code.

geom_null 

The geometry is not properly initialized.

get_failed 

The value cannot be returned.

exec_failed 

fail to compute the geometry

bad_parameters 

The entry parameters is not compatible.

attribute_not_editable 

The parameter is not editable.

point_locked 

The position of the point is locked and cannot be changed.

◆ GO2SFileOpen

enum class GO2SEnum::GO2SFileOpen
strong

Files opening modes.

Enumerator
read_only 

File open for reading only.

read_write 

FIle open for reading and writing in.

◆ GO2SMachiningType

enum class GO2SEnum::GO2SMachiningType
strong

Application type of a machining component (tool, cycle...)

Enumerator
unknown 

unknown

turning 

turning component

milling 

milling component

milling3d 

3D milling component

edm 

edm component

◆ GO2SMessageType

enum class GO2SEnum::GO2SMessageType
strong

GO2SDialogUtil.CreateMessageBox parameter.

Enumerator
info 

info

warning 

warning

error 

error

◆ GO2SOffsetLink

enum class GO2SEnum::GO2SOffsetLink
strong

GO2SOffsetCurve link parameter.

Enumerator
Chamfer 

Chamfer.

Extend 

Extend.

Corner 

Corner.

Fillet 

Fillet.

◆ GO2SOffsetSide

enum class GO2SEnum::GO2SOffsetSide
strong

GO2SOffsetCurve side parameter.

Enumerator
Left 

Left.

Inside 

Inside.

Right 

Right.

Outside 

Outside.

◆ GO2SParam

enum class GO2SEnum::GO2SParam
strong

Geometry parameters.

Enumerator
length 

Length parameter. Works for setting

  • the length of a segment, rectangle, cuboid...
  • the distance of a single distance chamfer
  • the 1st distance of a Number distance chamfer
  • a parallel distance between lines
  • an offset distance
width 

Width parameter. Works for setting

  • the width of a segment, cuboid...
  • the 2nd distance of a Number distance chamfer
height 

Height parameter. Works for setting

  • the height of a cuboid, cylinder, extrusion....
angle 

Angle parameter. Works for setting

  • the angle of an arc
  • the angle of a revolution
radius 

Radius parameter. Works for setting

  • the radius of a arc, a circle, a cylinder
  • the radius of a fillet

◆ GO2SSilhouetteType

enum class GO2SEnum::GO2SSilhouetteType
strong

GO2SSilhouetteRevolution parameter.

Enumerator
upper 

upper

lower 

lower

symetrical 

symetrical

◆ GO2SWay

enum class GO2SEnum::GO2SWay
strong

GO2SMachiningUtil.MoveCycle parameter.

Enumerator
before 

before

after 

after