![]() |
QCAD
Open Source 2D CAD
|
Implementation of a simple CAM exporter that implements the RFileExporter interface. More...
Public Member Functions | |
void | activated () |
Called when the configuration is activated by the user of on loading. | |
void | adjustOffsetLeadShapes (void leadShapes, void offsetShapes, void offsetBaseShapeUntrimmed, void leadIn) |
Adjusts the offset lead in / lead out to account for the move in which tool radius compensation is switched on / off. | |
void | afterExportToolpath (void entityIds, void toolpathBlock, void toolpathIndex, void createTransactionGroup, void updateConnections, void isNew) |
Implemented by exporters to do something after a toolpath is exported. | |
void | beforeExportContourPass (void contour) |
Called immediately before calling exportContourPass May implement radial stock offset or similar features. | |
void | beforeExportToolpath (void entityIds, void toolpathBlock, void toolpathIndex, void createTransactionGroup, void updateConnections, void isNew) |
Implemented by exporters to do something before a toolpath is exported. | |
void | beforeWrite (void fileName) |
void | CamExporterV2 (void cadDocumentInterface, void camDocumentInterface) |
void | checkContext (void context) |
void | collectCamOffsetPath (void camEntity) |
Collects information about an additional path representing the center tool path including cutter compensation. | |
void | contourContains (void contour, void point) |
Allow exporters to implement their own test if point is inside contour. | |
void | createConfigOutputLayer () |
Creates layers "CAM" and "CAM ... GCode". | |
void | createDrillToolpathDialog (void di, void toolpathBlock) |
Creates the standard QCAD/CAM drill toolpath dialog. | |
void | createLayer (void layerName, void color, void linetype, void options) |
void | createPocketToolpathDialog (void di, void toolpathBlock) |
Creates the standard QCAD/CAM pocket toolpath dialog. | |
void | createProfileToolpathDialog (void di, void toolpathBlock) |
Creates the standard QCAD/CAM profile toolpath dialog. | |
void | createSpatialIndex (void contours) |
Creates a spatial index over all entry points of the given contours. | |
void | createToolDialog (void di, void toolBlock, void title) |
Creates the standard QCAD/CAM tool dialog. | |
void | decIndent () |
void | detectAndWriteToolChange (void toolHeaderWritten) |
Writes a tool change if necessary. | |
void | dumpContext () |
void | exportArc (void arc) |
Called when contour shapes, offset shapes or leads and overcuts are exported. | |
void | exportCamEntity (void camEntity, void noProperties, void noOffset, void noTabs, void ignore) |
Adds the given entity to the output document. | |
void | exportClosedContourShape (void shape) |
Called for entities of closed contours. | |
void | exportContour (void contours, void contourIndex, void shapeIndex, void siEntryPoints, void inner) |
Exports the given contour to the target document, starting at the entity at the given entityIndex. | |
void | exportContourPass (void contour, void shapeIndex) |
Exports the given contour to the target document, starting at the shape at the given shapeIndex. | |
void | exportContours (void contours, void siEntryPoints) |
Exports the given contours which are all part of the same toolpoth. | |
void | exportEllipse (void ellipse) |
Called when contour shapes are exported. | |
void | exportFirstClosedContourShape (void shape) |
Called for the first entity of a closed contour. | |
void | exportFirstContourShape (void shape) |
Called for the first entity of open and closed contours. | |
void | exportFirstOpenContourShape (void shape) |
Called for the first entity of an open contour. | |
void | exportLastClosedContourShape (void shape) |
Called for the last entity of a closed contour. | |
void | exportLastContourShape (void shape) |
Called for the last entity of open and closed contours. | |
void | exportLastOpenContourShape (void shape) |
Called for the last entity of an open contour. | |
void | exportLead (void shape, void leadIn) |
Exports the lead in/out for the given shape. | |
void | exportLeadIn (void shape) |
void | exportLeadOut (void shape) |
void | exportLine (void line) |
Called when contour shapes, offset shapes or leads and overcuts are exported. | |
void | exportOffsetPath () |
Exports the previously collected path, offset by the tool radius. | |
void | exportOpenContourShape (void shape) |
Called for entities of an open contour. | |
void | exportPoint (void point) |
void | exportPostContourPass (void contour) |
Override to export additional moves after contour pass (e.g. | |
void | exportPostContourPasses (void contour) |
Retreat to tool up level after completing all passes. | |
void | exportRapidMoveTo (void p) |
Called for a rapid move to the given position. | |
void | exportRapidMoveToolDown (void shape) |
Exports a rapid move to the given start point and a tool down if this entity is not ignored for exporting (offset when exporting real contours or not offset when exporting offset contour). | |
void | exportShape (void shape) |
Exports the given shape to the CAM output (toolpath block). | |
void | exportSingleContourShape (void shape) |
Called for single, isolated entities. | |
void | exportSpline (void spline) |
Called when contour shapes are exported. | |
void | exportSplitCamEntity (void camEntity, void noProperties, void noOffset, void ignore) |
Split up given entity at tabs and export segments. | |
void | exportToolDown (void zOverride) |
Executes a tool down move. | |
void | exportToolDownClearance () |
Export line to Z clearance level (e.g. | |
void | exportToolDownClearancePass () |
Export line to pass specific Z clearance level (e.g. | |
void | exportToolpath (void entityIds, void toolpathBlock, void toolpathIndex, void createTransactionGroup, void updateConnections, void isNew) |
Exports the given entities as one single tool path into the given toolpath block. | |
void | exportToolpathContours (void contours, void toolpathBlock, void toolpathIndex, void createTransactionGroup, void updateConnections, void isNew) |
Exports the given contours as one single tool path into the given toolpath block. | |
void | exportToolUp (void force) |
Executes a tool up move. | |
void | exportToolUpSafety (void toolName) |
Executes a tool up move to the safety level. | |
void | exportToolUpSafetyDummy () |
Exports a dummy entity with length 0 which can be extended to a tool up to safety move if the next toolpath tool changes. | |
void | exportZMove (void z, void force) |
Executes a move in Z to given level (in source coordinates). | |
void | formatValue (void value, void decimals, void options) |
Formats the given value with the given number of decimals and additional formatting options. | |
void | fuzzyCompare (void v1, void v2) |
Compares v1 and v2 using the configured tolerance returned by this.getTolerance(). | |
void | getAllowanceOffset () |
void | getArcInterpolation () |
Overwrite to specify arc interpolation. | |
void | getArcSegmentLength () |
Overwrite to specify length of line segments to use for interpolating arcs. | |
void | getAutoRegenerateToolpaths () |
void | getBlockFileNames (void name) |
void | getCamConfigLayerName () |
void | getCamLayerId () |
Overwrite to create individual layers (e.g. | |
void | getConfigName (void withMachine) |
void | getContext () |
void | getContextValue (void contextId) |
void | getCreateNewDocument () |
void | getCurrentEntity () |
void | getCurrentToolName () |
void | getCurrentToolpathType () |
void | getCurrentToolType () |
void | getCustomPropertyPrefix (void global) |
void | getDirection () |
void | getDocument () |
void | getEllipseSegments () |
Overwrite to specify number of segments to use for interpolating ellipses. | |
void | getEntityOption (void entity, void name, void def) |
void | getEntityOptionBool (void entity, void name, void def) |
void | getEntityOptionFloat (void entity, void name, void def) |
void | getEntityOptionInt (void entity, void name, void def) |
void | getFeedRate () |
void | getFileExtensions () |
void | getFirstToolType () |
void | getGlobalOption (void name, void def) |
void | getGlobalOptionBool (void name, void def) |
void | getGlobalOptionFloat (void name, void def) |
void | getGlobalOptionInt (void name, void def) |
void | getHome () |
Overwrite to change home position. | |
void | getIgnoredContexts () |
void | getIgnoreOffsetContext () |
void | getIncrementalXYZ () |
Overwrite to enable incremental X/Y/Z moves. | |
void | getLastToolType () |
void | getLeadAngle (void entity, void leadIn) |
void | getLeadInAngle (void entity) |
void | getLeadInSize () |
void | getLeadInType () |
void | getLeadOutAngle (void entity) |
void | getLeadOutSize () |
void | getLeadOutType () |
void | getLeadPosition (void entity) |
void | getLeadShapes (void shape, void leadIn) |
void | getLeadSize (void leadIn) |
void | getLeadType (void leadIn) |
void | getName () |
void | getNextToolpathNameCounter (void nameTemplate) |
void | getOffsetLeadShapes (void leadShapes, void baseShape, void leadIn, void hasOvercutShape) |
void | getOvercutShape (void shape, void leadIn) |
void | getPlungeRate () |
void | getSafetyLevel (void toolName) |
Can be overwritten to return the current safety level. | |
void | getScale () |
Overwrite to change scale of output. | |
void | getSeparator () |
void | getSide () |
void | getSplineMaxRadius () |
Overwrite to specify maximum radius for arcs when exploding splines into bi-arcs. | |
void | getSplineTolerance () |
Overwrite to specify tolerance to use for interpolating splines. | |
void | getSplitFullCircles () |
Overwrite to change split circle behavior. | |
void | getTabBlockReferences (void shape) |
void | getTabInfo (void camEntity) |
void | getTemplateLayerData () |
void | getTolerance () |
Overwrite to change tolerance (maximum gap between connected entities). | |
void | getToolBlockName (void toolName) |
void | getToolBlockNames (void doc, void toolTypeFilter) |
void | getToolDiameter (void includeAllowance) |
void | getToolDiameterOverride () |
void | getToolName (void toolBlockName) |
void | getToolNames (void doc, void toolTypeFilter) |
void | getToolpathOption (void name, void def) |
void | getToolpathOptionFloat (void name, void def) |
void | getToolpathOptionInt (void name, void def) |
void | getToolpathZCuttingDepth () |
void | getToolTypeFilter (void dialogName) |
void | getToolTypeTitle (void toolType) |
void | getToolTypeTitleTemplate (void toolType) |
void | getTransformationScale () |
Converts the given value v from the document unit into the output unit. | |
void | getUnit () |
Overwrite to change unit of output. | |
void | getUnitScale () |
Overwrite to set fixed, custom unit scale. | |
void | getZClearanceLevel () |
Can be overwritten to return the current clear level (used to move around without cutting). | |
void | getZClearanceLevelOverride (void z) |
void | getZClearancePass () |
void | getZCuttingLevel () |
Can be overwritten to return the current cutting level. | |
void | getZCuttingLevelOverride (void z) |
void | hasBlock (void name) |
void | hasBlockData (void name, void map) |
void | hasBlockFile (void name, void map) |
void | hasLead (void leadIn) |
void | hasLeadIn () |
void | hasLeadOut () |
void | hasOffsetPath () |
void | hasOvercut () |
void | incIndent (void v) |
void | initCollector (void collector) |
Can be overwritten to initialize the contour collector. | |
void | initConfigDialog (void dialog) |
Can be overwritten to initialize / modify the standard configuration dialog. | |
void | initDialog (void dialog, void di, void obj) |
Can be overwritten to initialize / modify the standard dialogs (e.g. | |
void | initDrillToolpathDialog (void dialog, void di, void block) |
Can be overwritten to initialize / modify the standard drill toolpath dialog. | |
void | initEntity (void entity) |
Initializes variables for this entity (start point, end point, etc). | |
void | initExtents () |
Override to treat the first move differently. | |
void | initObject (void dialog, void di, void obj) |
Can be overwritten to initialize the object after a dialog has been used to create / edit the object. | |
void | initPass (void pass, void numberOfPasses) |
Overwrite to init pass 'pass' out of 'numberOfPasses'. | |
void | initProfileToolpathDialog (void dialog, void di, void block) |
Can be overwritten to initialize / modify the standard profile toolpath dialog. | |
void | initToolCombo (void toolCombo, void addNoneItem, void toolTypeFilter) |
Adds all available tools to the given combo box and an additonal item 'None' if addNoneItem is true. | |
void | initToolComboItem (void toolCombo, void toolName, void toolBlock) |
void | initToolpath (void toolpathBlock) |
Initializes variables for this toolpath (tool, etc). | |
void | initToolpathListContextMenu (void menu, void item) |
void | initToolpathListItem (void item, void toolpathBlock) |
Called to initialize the given toolpath list item from the given block. | |
void | isDrillTool (void toolType) |
void | isIgnoredForWrite (void entity) |
Override to filter out entities by returning true. | |
void | mapBlockName (void name) |
void | matchToolType (void toolType, void toolTypeFilter) |
void | notifyUser (void msg) |
Displays a message to the user in the command line and (if visible) the progress dialog. | |
void | popContext (void context) |
void | postInit () |
Called after constructor to initialize variables that depend on the exporter being initialized. | |
void | postInitDialog (void obj, void dialog, void di, void block) |
Can be overwritten to initialize / modify the standard dialogs for toolpaths or tools after all widgets have been added / removed. | |
void | postTemplateLoading (void templateLoaded) |
void | pushContext (void context) |
void | queueAndWrite (void idx, void entity, void entityNext, void propertyName, void name) |
Queues the given entity for writing and writes the queue if the next entity is not marked with the same given property. | |
void | queueWriteEntity (void idx) |
Queues the given entity for later writing. | |
void | registerVariable (void name, void id, void always, void prefix, void decimals, void options) |
Registers the variable with the given name. | |
void | reset () |
Resets internal variables before each export. | |
void | saveConfigDialog (void dialog) |
Can be overwritten to save the configuration dialog options. | |
void | saveDrillToolpathDialog (void dialog, void di, void toolpathBlock) |
Can be overwritten to save additional states of widgets from the standard drill toolpath dialog. | |
void | saveProfileToolpathDialog (void dialog, void di, void toolpathBlock) |
Can be overwritten to save additional states of widgets from the standard profile toolpath dialog. | |
void | saveToolpathDialog (void dialog, void di, void toolpathBlock) |
Can be overwritten to save additional states of widgets from the standard toolpath dialog. | |
void | setCamDocumentInterface (void camDocumentInterface) |
void | setName (void n) |
void | setToolDiameterOverride (void d) |
Used to override tool diameter (offset) level during Z stepping. | |
void | setZClearanceLevelOverride (void z) |
Used to override tool up (clearance) level during Z stepping. | |
void | setZCuttingLevelOverride (void z) |
Used to override tool down level during Z stepping. | |
void | transform (void e) |
Transforms the given entity from source document coordinates to output file coordinates. | |
void | trimOffsetLeadShapes (void leadShapes, void offsetShapes, void leadType, void hasOvercutShape, void leadIn) |
Trimms the offset lead in / out shapes. | |
void | uninitPass (void pass, void numberOfPasses) |
void | unsetToolDiameterOverride () |
void | unsetZClearanceLevelOverride () |
Disables tool up level override, after Z stepping. | |
void | unsetZCuttingLevelOverride () |
Disables tool down level override, after Z stepping. | |
void | updateDialogLeads (void dialog, void di, void block, void senderWidget) |
void | updateDialogSideDirection (void dialog, void di, void block) |
void | updateDialogTool (void dialog, void di, void block) |
Called when current tool changes in a dialog. | |
void | updateDialogToolDescription (void dialog, void di, void block) |
void | validateLeadRadius (void msgs, void leadSize, void toolDiameter, void leadIn) |
void | validateLeads (void dialog, void obj, void msgs) |
Validate lead in / lead out radius against tool radius in dialog. | |
void | validateToolName (void dialog, void obj, void msgs) |
Validate tool name in dialog. | |
void | validateToolpathName (void dialog, void obj, void msgs, void initial) |
Validate toolpath name in dialog. | |
void | variableUsed (void id, void valueString) |
void | warnUser (void msg) |
Displays a warning to the user in the command line. | |
void | write (void str) |
Writes the given string to the output stream. | |
void | writeArcCCWLeadIn () |
Called for circular counter-clockwise lead in moves. | |
void | writeArcCCWLeadOut () |
Called for circular counter-clockwise lead out moves. | |
void | writeArcCCWMove () |
Called for counter-clockwise circular move. | |
void | writeArcCWLeadIn () |
Called for circular clockwise lead in moves. | |
void | writeArcCWLeadOut () |
Called for circular clockwise lead out moves. | |
void | writeArcCWMove () |
Called for clockwise circular moves. | |
void | writeBlock (void name) |
Writes the given block from a file if available (this[name + "File"]) or from the variable this[name]. | |
void | writeBlockFooter (void blockName) |
void | writeBlockFromFiles (void name) |
Writes a text block from file(s) with the given name. | |
void | writeBlockFromQueue (void blockName, void name) |
void | writeBlockFromString (void blockStrings) |
void | writeBlockHeader (void blockName) |
Override to write the header for the block with the given name to the output file. | |
void | writeComment (void str) |
void | writeContourFooter () |
Override to write the contour footer to the output file. | |
void | writeContourHeader () |
Override to write the contour header to the output file. | |
void | writeEntity () |
Override to write the given CAM output entity to the output file. | |
void | writeFile (void fileName) |
Writes the output to the output file through the chosen configuration file (e.g. | |
void | writeFirstArcCCWMove () |
Called for first counter-clockwise circular move. | |
void | writeFirstArcCWMove () |
Called for first clockwise circular move. | |
void | writeFirstContourHeader () |
Override to write the contour header to the output file. | |
void | writeFirstLinearMove () |
Called for first linear move with new feedrate. | |
void | writeFirstLinearMoveZ () |
Called for first linear Z move with new feedrate. | |
void | writeFirstMove () |
Called for rapid moves to safety level before toolpath. | |
void | writeFirstMoveAndToolChange (void toolHeaderWritten) |
Writes the first move and a tool change if necessary. | |
void | writeFirstPointMoveZ () |
Called for first point Z move with new feedrate (drilling). | |
void | writeFirstToolpathHeader () |
Override to write the first toolpath header to the output file. | |
void | writeFooter () |
Override to write the file footer to the output file. | |
void | writeHeader () |
Override to write the file header to the output file. | |
void | writeLastMove () |
Called for rapid moves to safety level after toolpath. | |
void | writeLastToolFooter () |
Called for last tool footer. | |
void | writeLine (void line) |
Writes the given line (string + line ending) to the output stream. | |
void | writeLinearLeadIn () |
Called for linear lead in moves. | |
void | writeLinearLeadOut () |
Called for linear lead out moves. | |
void | writeLinearMove () |
Called for linear moves. | |
void | writeLinearMoveCompensationLeft () |
Called for linear moves switching on cutter radius compensation left. | |
void | writeLinearMoveCompensationOff () |
Called for linear moves switching off cutter radius compensation. | |
void | writeLinearMoveCompensationRight () |
Called for linear moves switching on cutter radius compensation right. | |
void | writeLinearMoveZ () |
Called for linear Z moves. | |
void | writeMultiZPassFooter () |
Override to write the footer for a multi pass to the output file. | |
void | writeMultiZPassHeader () |
Override to write the header for a multi pass to the output file. | |
void | writePointMoveZ () |
Called for point Z moves (drilling). | |
void | writeQueuedEntities () |
Writes queued entities. | |
void | writeRapidMove () |
Called for rapid moves. | |
void | writeRapidMoveZ () |
Called for rapid moves in Z. | |
void | writeSingleZPassFooter () |
Override to write the footer for a single pass to the output file. | |
void | writeSingleZPassHeader () |
Override to write the header for a single pass to the output file. | |
void | writeTabFooter () |
void | writeTabHeader () |
void | writeTabTop () |
void | writeToolFooter () |
Called for tool footer. | |
void | writeToolHeader () |
Called for tool header (tool changes). | |
void | writeToolpathFooter () |
Override to write the toolpath footer to the output file. | |
void | writeToolpathHeader () |
Override to write the toolpath header to the output file. | |
void | writeZPassFirstHeader () |
Override to write the first pass header to the output file. | |
void | writeZPassFooter () |
Override to write the pass footer to the output file. | |
void | writeZPassHeader () |
Override to write the pass header to the output file. | |
void | writeZPassLastFooter () |
Override to write the last pass footer to the output file. | |
Public Attributes | |
int | __debug__ |
int | allowLeadForSideOn |
int | allowNegativeTabs |
int | alwaysUseStartPointForEntry |
int | arcInterpolation |
int | arcSegmentLength |
int | blockNameMapping |
int | cadDocument |
int | cadDocumentInterface |
int | ellipseSegments |
int | fileExtensions |
int | firstEntityOfProfile |
int | id |
int | ignoreContourSide |
int | ignoredContexts |
int | ignoredOutput |
int | incrementalXYZ |
int | lastEntityOfProfile |
int | lineEnding |
int | lineNumber |
int | lineNumberIncrement |
int | lineNumberStart |
int | normalizeWhiteSpace |
int | offsetJoin |
int | oneToolpathPerContourDrill |
int | oneToolpathPerContourProfile |
int | options |
int | outputOffsetPath |
int | rapidMoveToOffset |
int | scale |
int | separator |
int | splineMaxRadius |
int | splineTolerance |
int | splitArcsAtQuadrantLines |
int | splitFullCircles |
int | stopAtTab |
int | tolerance |
int | toolChangeMode |
int | unit |
int | unitScale |
int | useProgressDialog |
int | variables |
int | zSafety |
Implementation of a simple CAM exporter that implements the RFileExporter interface.
This is the base class for all CAM postprocessor classes.
export* functions export CAM entities into the CAM blocks generated as visual representation of the output.
write* functions write to the output file.
|
inline |
|
inline |
Called when the configuration is activated by the user of on loading.
|
inline |
Adjusts the offset lead in / lead out to account for the move in which tool radius compensation is switched on / off.
leadShapes | Array of lead in / out shapes |
offsetShapes | Array of offset lead in / out shapes |
leadIn | True for lead in, false for lead out |
|
inline |
Implemented by exporters to do something after a toolpath is exported.
Used for example to update another, dependent toolpath.
|
inline |
Called immediately before calling exportContourPass May implement radial stock offset or similar features.
|
inline |
Implemented by exporters to do something before a toolpath is exported.
Used for example to update another, dependent toolpath.
|
inline |
|
inline |
|
inline |
Collects information about an additional path representing the center tool path including cutter compensation.
|
inline |
Allow exporters to implement their own test if point is inside contour.
|
inline |
Creates layers "CAM" and "CAM ... GCode".
|
inline |
Creates the standard QCAD/CAM drill toolpath dialog.
Can be overwritten to create a different toolpath dialog.
|
inline |
|
inline |
Creates the standard QCAD/CAM pocket toolpath dialog.
Can be overwritten to create a different tool dialog.
|
inline |
Creates the standard QCAD/CAM profile toolpath dialog.
Can be overwritten to create a different toolpath dialog.
|
inline |
Creates a spatial index over all entry points of the given contours.
The contours are typically all using the same tool (optimize by tool).
|
inline |
Creates the standard QCAD/CAM tool dialog.
Can be overwritten to create a different tool dialog.
|
inline |
|
inline |
Writes a tool change if necessary.
toolHeaderWritten | true: tool header written, don't write again |
|
inline |
|
inline |
Called when contour shapes, offset shapes or leads and overcuts are exported.
|
inline |
Adds the given entity to the output document.
Collects the geometry for adding the offset paths for cutter radius compensation if applicable. This is called for every entity along a contour and every offset entity.
camEntity | Line, arc or point entity to be added to CAM output. |
noProperties | True: don't transfer entity properties (typically Z moves). |
noOffset | True: don't export offset path for cutter compensation. |
noTabs | True: don't split at tabs. |
ignore | True ignore entity for CAM output (not part of the connected tool path). |
|
inline |
Called for entities of closed contours.
Default implementation calls exportShape.
|
inline |
Exports the given contour to the target document, starting at the entity at the given entityIndex.
inner | True for contours that take priority because they are inside another contour. |
|
inline |
Exports the given contour to the target document, starting at the shape at the given shapeIndex.
This can be called multiple times for contours with multiple Z-passes.
|
inline |
Exports the given contours which are all part of the same toolpoth.
The contour entry points are indexed by the given spatial index.
|
inline |
Called when contour shapes are exported.
|
inline |
Called for the first entity of a closed contour.
Default implementation calls exportFirstContourShape.
|
inline |
Called for the first entity of open and closed contours.
Default implementation calls exportShape.
|
inline |
Called for the first entity of an open contour.
|
inline |
Called for the last entity of a closed contour.
Default implementation calls exportLastContourShape.
|
inline |
Called for the last entity of open and closed contours.
Default implementation calls exportShape.
|
inline |
Called for the last entity of an open contour.
|
inline |
Exports the lead in/out for the given shape.
entity | Export lead in or lead out and overcut for this entity. |
leadIn | True for lead in, false for lead out. |
|
inline |
|
inline |
|
inline |
Called when contour shapes, offset shapes or leads and overcuts are exported.
|
inline |
Exports the previously collected path, offset by the tool radius.
|
inline |
Called for entities of an open contour.
Default implementation calls exportShape.
|
inline |
|
inline |
Override to export additional moves after contour pass (e.g.
tool retreat to safety).
|
inline |
Retreat to tool up level after completing all passes.
Override to export additional moves or cancel the move to tool up.
|
inline |
Called for a rapid move to the given position.
Tool is moved to up (or left at safety) position prior to the rapid move.
|
inline |
Exports a rapid move to the given start point and a tool down if this entity is not ignored for exporting (offset when exporting real contours or not offset when exporting offset contour).
|
inline |
Exports the given shape to the CAM output (toolpath block).
Called for original contour and offset contour.
|
inline |
Called for single, isolated entities.
|
inline |
Called when contour shapes are exported.
|
inline |
Split up given entity at tabs and export segments.
|
inline |
Executes a tool down move.
|
inline |
Export line to Z clearance level (e.g.
2).
|
inline |
Export line to pass specific Z clearance level (e.g.
-2.5 + 2).
|
inline |
Exports the given entities as one single tool path into the given toolpath block.
entityIds | Entity IDs to use as source for this toolpath or undefined to use previously used IDs. |
toolpathBlock | Toolpath block to export into. |
toolpathIndex | Toolpath index or undefined to find out on the fly. |
createTransactionGroup | True to create a transaction group for this update, false if a transaction group has been created before the call. |
updateConnections | True to update connecting rapid moved with previous and next path. |
isNew | True if this is a new toolpath, false for existing toolpaths. |
|
inline |
Exports the given contours as one single tool path into the given toolpath block.
contours | Contours to use as source for this toolpath. |
toolpathBlock | Toolpath block to export into. |
toolpathIndex | Toolpath index or undefined to find out on the fly. |
createTransactionGroup | True to create a transaction group for this update, false if a transaction groupd has been created before the call. |
updateConnections | True to update connecting rapid moved with previous and next path. |
isNew | True if this is a new toolpath, false for existing toolpaths. |
|
inline |
Executes a tool up move.
|
inline |
Executes a tool up move to the safety level.
toolName | Tool name of tool to use to retrieve safety level or undefined to use current tool. |
|
inline |
Exports a dummy entity with length 0 which can be extended to a tool up to safety move if the next toolpath tool changes.
|
inline |
Executes a move in Z to given level (in source coordinates).
|
inline |
Formats the given value with the given number of decimals and additional formatting options.
decimals | Number of decimal places for 0 for an integer. |
options | Additional options: { sign: true|false } Force sign { width: number } Width of output, filled up with leading spaces or zeros { leadingZeroes: true|false } Force leading zeroes { trailingZeroes: true|false } Force trailing zeroes { decimalSeparator: string } Use given string instead of decimal point { factor: number } Apply given factor to value (e.g. 360/Math.PI/2 to convert from rad to deg) |
|
inline |
Compares v1 and v2 using the configured tolerance returned by this.getTolerance().
|
inline |
|
inline |
Overwrite to specify arc interpolation.
|
inline |
Overwrite to specify length of line segments to use for interpolating arcs.
|
inline |
|
inline |
|
inline |
|
inline |
Overwrite to create individual layers (e.g.
for Z-levels) on the fly.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Overwrite to specify number of segments to use for interpolating ellipses.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Overwrite to change home position.
|
inline |
|
inline |
|
inline |
Overwrite to enable incremental X/Y/Z moves.
Default is false.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Can be overwritten to return the current safety level.
toolName | Tool name of tool to use to retrieve safety level or undefined to use current tool. |
|
inline |
Overwrite to change scale of output.
Default is 1.0.
|
inline |
|
inline |
|
inline |
Overwrite to specify maximum radius for arcs when exploding splines into bi-arcs.
|
inline |
Overwrite to specify tolerance to use for interpolating splines.
|
inline |
Overwrite to change split circle behavior.
Return true to split full circles in two halves.
|
inline |
|
inline |
|
inline |
|
inline |
Overwrite to change tolerance (maximum gap between connected entities).
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Converts the given value v
from the document unit into the output unit.
|
inline |
Overwrite to change unit of output.
Default is None (which means 'same unit as input drawing').
|
inline |
Overwrite to set fixed, custom unit scale.
Default is undefined (use unit scale defined by input and output unit).
|
inline |
Can be overwritten to return the current clear level (used to move around without cutting).
|
inline |
|
inline |
|
inline |
Can be overwritten to return the current cutting level.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Can be overwritten to initialize the contour collector.
|
inline |
Can be overwritten to initialize / modify the standard configuration dialog.
|
inline |
Can be overwritten to initialize / modify the standard dialogs (e.g.
for toolpaths, tools, layers).
|
inline |
Can be overwritten to initialize / modify the standard drill toolpath dialog.
|
inline |
Initializes variables for this entity (start point, end point, etc).
Called before the entity is written to output.
|
inline |
Override to treat the first move differently.
Default implementation calls writeEntity.
|
inline |
Can be overwritten to initialize the object after a dialog has been used to create / edit the object.
|
inline |
Overwrite to init pass 'pass' out of 'numberOfPasses'.
|
inline |
Can be overwritten to initialize / modify the standard profile toolpath dialog.
|
inline |
Adds all available tools to the given combo box and an additonal item 'None' if addNoneItem is true.
toolTypeFilter | Only show certain tools, e.g. Cam.ToolTypeFilter.All (default) or Cam.ToolTypeFilter.Drill |
|
inline |
|
inline |
Initializes variables for this toolpath (tool, etc).
Called before the toolpath is written to output.
|
inline |
|
inline |
Called to initialize the given toolpath list item from the given block.
|
inline |
|
inline |
Override to filter out entities by returning true.
|
inline |
|
inline |
|
inline |
Displays a message to the user in the command line and (if visible) the progress dialog.
|
inline |
|
inline |
Called after constructor to initialize variables that depend on the exporter being initialized.
|
inline |
Can be overwritten to initialize / modify the standard dialogs for toolpaths or tools after all widgets have been added / removed.
|
inline |
|
inline |
|
inline |
Queues the given entity for writing and writes the queue if the next entity is not marked with the same given property.
Used for lead in / lead out groups.
propertyName | Name of property marker (e.g. CamLeadIn) |
name | Human readable name (can be used in comments) |
|
inline |
Queues the given entity for later writing.
|
inline |
Registers the variable with the given name.
name | Variable name. This must match one of the variables available. |
id | Variable ID as used in blocks, e.g. "N" to substitute "[N]" in blocks. |
always | True to always write the variable, false to only write if it changes since the last write. |
decimals | Number of decimal places. 0 for an integer. |
options | Additional options: { sign: true|false } Force sign { width: number } Width of output, filled up with leading spaces or zeros { leadingZeroes: true|false } Force leading zeroes { trailingZeroes: true|false } Force trailing zeroes { decimalSeparator: string } Use given string instead of decimal point { factor: number } Apply given factor to value (e.g. 360/Math.PI/2 to convert from rad to deg) |
|
inline |
Resets internal variables before each export.
|
inline |
Can be overwritten to save the configuration dialog options.
|
inline |
Can be overwritten to save additional states of widgets from the standard drill toolpath dialog.
|
inline |
Can be overwritten to save additional states of widgets from the standard profile toolpath dialog.
|
inline |
Can be overwritten to save additional states of widgets from the standard toolpath dialog.
|
inline |
|
inline |
|
inline |
Used to override tool diameter (offset) level during Z stepping.
|
inline |
Used to override tool up (clearance) level during Z stepping.
|
inline |
Used to override tool down level during Z stepping.
|
inline |
Transforms the given entity from source document coordinates to output file coordinates.
Used when writing the file.
|
inline |
Trimms the offset lead in / out shapes.
|
inline |
|
inline |
|
inline |
Disables tool up level override, after Z stepping.
|
inline |
Disables tool down level override, after Z stepping.
|
inline |
|
inline |
|
inline |
Called when current tool changes in a dialog.
|
inline |
|
inline |
|
inline |
Validate lead in / lead out radius against tool radius in dialog.
|
inline |
Validate tool name in dialog.
|
inline |
Validate toolpath name in dialog.
|
inline |
|
inline |
Displays a warning to the user in the command line.
|
inline |
Writes the given string to the output stream.
|
inline |
Called for circular counter-clockwise lead in moves.
|
inline |
Called for circular counter-clockwise lead out moves.
|
inline |
Called for counter-clockwise circular move.
|
inline |
Called for circular clockwise lead in moves.
|
inline |
Called for circular clockwise lead out moves.
|
inline |
Called for clockwise circular moves.
|
inline |
Writes the given block from a file if available (this[name + "File"]) or from the variable this[name].
Variables ("[X]") are substituted with their formatted values ("X1.234").
|
inline |
|
inline |
Writes a text block from file(s) with the given name.
Used for complex post processors with extensive / many headers / footers.
|
inline |
|
inline |
|
inline |
Override to write the header for the block with the given name to the output file.
|
inline |
|
inline |
Override to write the contour footer to the output file.
|
inline |
Override to write the contour header to the output file.
|
inline |
Override to write the given CAM output entity to the output file.
|
inline |
Writes the output to the output file through the chosen configuration file (e.g.
GCode.js).
|
inline |
Called for first counter-clockwise circular move.
|
inline |
Called for first clockwise circular move.
|
inline |
Override to write the contour header to the output file.
|
inline |
Called for first linear move with new feedrate.
|
inline |
Called for first linear Z move with new feedrate.
|
inline |
Called for rapid moves to safety level before toolpath.
|
inline |
Writes the first move and a tool change if necessary.
toolHeaderWritten | true: tool header written, don't write again |
|
inline |
Called for first point Z move with new feedrate (drilling).
|
inline |
Override to write the first toolpath header to the output file.
|
inline |
Override to write the file footer to the output file.
|
inline |
Override to write the file header to the output file.
|
inline |
Called for rapid moves to safety level after toolpath.
|
inline |
Called for last tool footer.
|
inline |
Writes the given line (string + line ending) to the output stream.
|
inline |
Called for linear lead in moves.
|
inline |
Called for linear lead out moves.
|
inline |
Called for linear moves.
|
inline |
Called for linear moves switching on cutter radius compensation left.
|
inline |
Called for linear moves switching off cutter radius compensation.
|
inline |
Called for linear moves switching on cutter radius compensation right.
|
inline |
Called for linear Z moves.
|
inline |
Override to write the footer for a multi pass to the output file.
|
inline |
Override to write the header for a multi pass to the output file.
|
inline |
Called for point Z moves (drilling).
|
inline |
Writes queued entities.
|
inline |
Called for rapid moves.
|
inline |
Called for rapid moves in Z.
|
inline |
Override to write the footer for a single pass to the output file.
|
inline |
Override to write the header for a single pass to the output file.
|
inline |
|
inline |
|
inline |
|
inline |
Called for tool footer.
|
inline |
Called for tool header (tool changes).
|
inline |
Override to write the toolpath footer to the output file.
|
inline |
Override to write the toolpath header to the output file.
|
inline |
Override to write the first pass header to the output file.
|
inline |
Override to write the pass footer to the output file.
|
inline |
Override to write the pass header to the output file.
|
inline |
Override to write the last pass footer to the output file.
int CamExporterV2::__debug__ |
int CamExporterV2::allowLeadForSideOn |
int CamExporterV2::allowNegativeTabs |
int CamExporterV2::alwaysUseStartPointForEntry |
int CamExporterV2::arcInterpolation |
int CamExporterV2::arcSegmentLength |
int CamExporterV2::blockNameMapping |
int CamExporterV2::cadDocument |
int CamExporterV2::cadDocumentInterface |
int CamExporterV2::ellipseSegments |
int CamExporterV2::fileExtensions |
int CamExporterV2::firstEntityOfProfile |
int CamExporterV2::id |
int CamExporterV2::ignoreContourSide |
int CamExporterV2::ignoredContexts |
int CamExporterV2::ignoredOutput |
int CamExporterV2::incrementalXYZ |
int CamExporterV2::lastEntityOfProfile |
int CamExporterV2::lineEnding |
int CamExporterV2::lineNumber |
int CamExporterV2::lineNumberIncrement |
int CamExporterV2::lineNumberStart |
int CamExporterV2::normalizeWhiteSpace |
int CamExporterV2::offsetJoin |
int CamExporterV2::oneToolpathPerContourDrill |
int CamExporterV2::oneToolpathPerContourProfile |
int CamExporterV2::options |
int CamExporterV2::outputOffsetPath |
int CamExporterV2::rapidMoveToOffset |
int CamExporterV2::scale |
int CamExporterV2::separator |
int CamExporterV2::splineMaxRadius |
int CamExporterV2::splineTolerance |
int CamExporterV2::splitArcsAtQuadrantLines |
int CamExporterV2::splitFullCircles |
int CamExporterV2::stopAtTab |
int CamExporterV2::tolerance |
int CamExporterV2::toolChangeMode |
int CamExporterV2::unit |
int CamExporterV2::unitScale |
int CamExporterV2::useProgressDialog |
int CamExporterV2::variables |
int CamExporterV2::zSafety |