![]() |
QCAD
Open Source 2D CAD
|
Implementation of a simple CAM exporter that implements the RFileExporter interface. More...
Public Member Functions | |
void | appendToContour (void contour, void prepend) |
Appends / prepends entities to the given contour until no more connected entities can be found. | |
void | CamExporter (void documentInterface, void newDocumentInterface) |
void | closeLogFile (void fileName) |
void | contourContains (void contour, void point) |
Allow exporters to implement their own test if point is inside contour. | |
void | convert (void v) |
Converts the given value v from the document unit into the output unit. | |
void | createLayer (void layerName, void color, void linetype) |
void | endExport () |
void | exportArcSegment (void arc, void allowForZeroLength) |
void | exportClosedContourEntity (void entity, void rampOnPoint, void rampOffPoint) |
Called for entities of closed contours. | |
void | exportContour (void contour, void contourId, void pos, void siEntryPoints, void progressDialog) |
Exports the given contour, starting at the the given position pos . | |
void | exportContourEntity (void entity, void rampOnPoint, void rampOffPoint) |
Exports the given entity. | |
void | exportEntities (void allBlocks, void undone) |
void | exportFile (void fileName) |
void | exportFirstClosedContourEntity (void entity, void rampOnPoint, void rampOffPoint) |
Called for the first entity of a closed contour. | |
void | exportFirstContourEntity (void entity, void rampOnPoint, void rampOffPoint) |
Called for the first entity of open and closed contours. | |
void | exportFirstOpenContourEntity (void entity, void rampOnPoint, void rampOffPoint) |
Called for the first entity of an open contour. | |
void | exportLastClosedContourEntity (void entity, void rampOnPoint, void rampOffPoint) |
Called for the last entity of a closed contour. | |
void | exportLastContourEntity (void entity, void rampOnPoint, void rampOffPoint) |
Called for the last entity of open and closed contours. | |
void | exportLastOpenContourEntity (void entity, void rampOnPoint, void rampOffPoint) |
Called for the last entity of an open contour. | |
void | exportLineSegment (void line, void angle) |
void | exportOpenContourEntity (void entity, void rampOnPoint, void rampOffPoint) |
Called for entities of an open contour. | |
void | exportPoint (void point) |
void | exportSingleContourEntity (void entity, void rampOnPoint, void rampOffPoint) |
Called for single, isolated entities. | |
void | fuzzyCompare (void v1, void v2) |
void | getCamLayerId () |
Overwrite to create individual layers (e.g. | |
void | getConfigName () |
void | getContour (void entityId) |
Creates a new contour (Contour object) with the given entity and all connected entities. | |
void | getCreateNewDocument () |
void | getDocument () |
void | getEllipseSegments () |
Overwrite to specify number of segments to use for interpolating ellipses. | |
void | getEntityOption (void entity, void name, void def) |
void | getFileExtensions () |
void | getGlobalOption (void name, void def) |
void | getGlobalOptionFloat (void name, void def) |
void | getGlobalOptionInt (void name, void def) |
void | getIncrementalXYZ () |
Overwrite to enable incremental X/Y/Z moves. | |
void | getInnerBeforeOuter () |
Overwrite to change inner to outer option. | |
void | getLayerOption (void name, void def) |
void | getOperation () |
void | getPathOptimization () |
Overwrite to change path optimization. | |
void | getPathOrientation () |
Overwrite to change contour orientation. | |
void | getRampOff () |
Overwrite to change contour ramp off. | |
void | getRampOn () |
Overwrite to change contour ramp on. | |
void | getSafetyZLevel () |
Can be overwritten to return the current safety level (used at beginning and end). | |
void | getScale () |
Overwrite to change scale of output. | |
void | getSplineSegments () |
Overwrite to specify number of segments to use for interpolating splines. | |
void | getSplitFullCircles () |
Overwrite to change split circle behavior. | |
void | getStartPosition () |
void | getTolerance () |
Overwrite to change tolerance (maximum gap between connected entities). | |
void | getTool () |
void | getToolDownLevel () |
Can be overwritten to return the current cutting level. | |
void | getToolUpLevel () |
Can be overwritten to return the current clear level (used to move around without cutting). | |
void | getUnit () |
Overwrite to change unit of output. | |
void | getUnitScale () |
Overwrite to set fixed unit scale. | |
void | initDialog (void d) |
void | initGlobalOptionWidget (void w) |
void | initLayerOptionWidget (void w) |
void | initLogFile (void fileName) |
Prepares the log file for debugging. | |
void | log (void msg) |
void | logView (void fileName) |
void | notifyUser (void msg, void progressDialog) |
void | prependToContour (void contour) |
void | rapidMove (void p) |
void | setCamDocumentInterface (void camDocumentInterface) |
void | startExport () |
void | toString () |
void | write (void str) |
void | writeFooter () |
void | writeHeader () |
void | writeLine (void line) |
void | writeLinearMove (void x, void y) |
void | writeRampOff (void shape, void entity) |
void | writeRampOn (void shape, void entity) |
void | writeRapidLinearMove (void x, void y) |
void | writeToolUp () |
Public Attributes | |
int | contourCounter |
int | contours |
int | cursor |
int | document |
int | documentInterface |
int | duringRapidMove |
int | ellipseSegments |
int | incrementalXYZ |
int | innerBeforeOuter |
int | logStream |
int | op |
int | pathOptimization |
int | pathOrientation |
int | rampOff |
int | rampOffFactor |
int | rampOn |
int | rampOnFactor |
int | scale |
int | splineSegments |
int | splitFullCircles |
int | stream |
int | tolerance |
int | traversed |
int | unit |
int | unitScale |
Implementation of a simple CAM exporter that implements the RFileExporter interface.
This is the base class for all CAM configuration classes.
|
inline |
|
inline |
Appends / prepends entities to the given contour until no more connected entities can be found.
contour | Contour object with the IDs of the entities in this contour. |
prepend | Boolean true: prepend instead of append, false: append (default). |
|
inline |
|
inline |
Allow exporters to implement their own test if point is inside contour.
|
inline |
Converts the given value v
from the document unit into the output unit.
|
inline |
|
inline |
|
inline |
|
inline |
Called for entities of closed contours.
Default implementation calls exportContourEntity.
|
inline |
Exports the given contour, starting at the the given position pos
.
|
inline |
Exports the given entity.
entity | Entity object or entity ID. |
rampOnPoint | Alternative start point (cut from center). |
rampOffPoint | Alternative end point (cut to center). |
|
inline |
|
inline |
|
inline |
Called for the first entity of a closed contour.
Default implementation calls exportFirstContourEntity.
|
inline |
Called for the first entity of open and closed contours.
Default implementation calls exportContourEntity.
|
inline |
Called for the first entity of an open contour.
|
inline |
Called for the last entity of a closed contour.
Default implementation calls exportLastContourEntity.
|
inline |
Called for the last entity of open and closed contours.
Default implementation calls exportContourEntity.
|
inline |
Called for the last entity of an open contour.
|
inline |
|
inline |
Called for entities of an open contour.
Default implementation calls exportContourEntity.
|
inline |
|
inline |
Called for single, isolated entities.
|
inline |
|
inline |
Overwrite to create individual layers (e.g.
for Z-levels) on the fly.
|
inline |
|
inline |
Creates a new contour (Contour object) with the given entity and all connected entities.
|
inline |
|
inline |
|
inline |
Overwrite to specify number of segments to use for interpolating ellipses.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Overwrite to enable incremental X/Y/Z moves.
Default is false.
|
inline |
Overwrite to change inner to outer option.
Default is false (inner paths may be cut after outer paths).
|
inline |
|
inline |
|
inline |
Overwrite to change path optimization.
Default is true (optimize for shortest path).
|
inline |
Overwrite to change contour orientation.
Default is any.
|
inline |
Overwrite to change contour ramp off.
Default is -1 (no ramp off).
|
inline |
Overwrite to change contour ramp on.
Default is -1 (no ramp on).
|
inline |
Can be overwritten to return the current safety level (used at beginning and end).
|
inline |
Overwrite to change scale of output.
Default is 1.
|
inline |
Overwrite to specify number of segments to use for interpolating splines.
|
inline |
Overwrite to change split circle behavior.
Return true to split full circles in two halves.
|
inline |
|
inline |
Overwrite to change tolerance (maximum gap between connected entities).
|
inline |
|
inline |
Can be overwritten to return the current cutting level.
|
inline |
Can be overwritten to return the current clear level (used to move around without cutting).
|
inline |
Overwrite to change unit of output.
Default is None (same as input).
|
inline |
Overwrite to set fixed unit scale.
Default is undefined (use unit scale given by input and output unit).
|
inline |
|
inline |
|
inline |
|
inline |
Prepares the log file for debugging.
Name is the same as the given file but with extension .log.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
int CamExporter::contourCounter |
int CamExporter::contours |
int CamExporter::cursor |
int CamExporter::document |
int CamExporter::documentInterface |
int CamExporter::duringRapidMove |
int CamExporter::ellipseSegments |
int CamExporter::incrementalXYZ |
int CamExporter::innerBeforeOuter |
int CamExporter::logStream |
int CamExporter::op |
int CamExporter::pathOptimization |
int CamExporter::pathOrientation |
int CamExporter::rampOff |
int CamExporter::rampOffFactor |
int CamExporter::rampOn |
int CamExporter::rampOnFactor |
int CamExporter::scale |
int CamExporter::splineSegments |
int CamExporter::splitFullCircles |
int CamExporter::stream |
int CamExporter::tolerance |
int CamExporter::traversed |
int CamExporter::unit |
int CamExporter::unitScale |