CADGetLTypeIDs to CADGetLineTypeIDs
CADGetLTypeDef to CADGetLineTypeDefinition
CADGetPrintSpec to CADGetPrintSpecs
CADSetPrintSpec to CADSetPrintSpecs
CADGetLayerAttr to CADGetLayerAttributes
CADSetLayerAttr to CADSetLayerAttributes
CADGetLayOrder to CADGetLayerOrder
CADSetLayOrder to CADSetLayerOrder
CADGetCurrLayer to CADGetCurrentLayer
CADSetCurrLayer to CADSetCurrentLayer
CADGetIDsArray to CADGetObjIDsArray
CADGetType to CADGetObjType
CADAddEllipsArc to CADAddEllipseArc
CADObjEllipsArc to CADObjEllipseArc
CADGetEllipsArc to CADGetEllipseArc
CADSetEllipsArc to CADSetEllipseArc
CADMetricsByMat to CADMetricsByMatrix
CADCalcImageRes to CADCalcImageResolution
CADCalcImageMat to CADCalcImageMatrix
CADGetInsColor to CADGetInsertColor
CADSetInsColor to CADSetInsertColor
CADCopyAttribs to CADCopyAttributes
CADCopyObjByMat to CADCopyObjByMatrix
CADImageFileInf to CADGetImageFileInfo
CADImageInfo to CADGetImageInfo
CADDecimalDiff to CADDecimalDifference
CADIdentityMat to CADIdentityMatrix
CADStandardMat to CADStandardMatrix
CADTranslateMat to CADTranslateMatrix
CADRotateMat to CADRotateMatrix
CADScaleMat to CADScaleMatrix
CADMirrorMat to CADMirrorMatrix
CADShearMat to CADShearMatrix
CADTransformMat to CADTransformMatrix
CADFlipMat to CADFlipMatrix
CADStretchMat to CADStretchMatrix
CADInvertMat to CADInvertMatrix
CADCalcMat to CADCalcMatrix
CADGetMatPlane to CADGetMatrixPlane
.
Notes
and the following features:
Not yet supported are the following edit operations:
nor the following features:
kCADObjLockString
Please note that kCADUndoWriteString
is still unimplemented.
CADGetAreaPrefs
and CADSetAreaPrefs
that
determine whether the application or the built-in string editor handles string editing:
function CADGetAreaPrefs ( theCADArea : longint; var theWriteStringModeModifiers : longint; var theSpecialClickModeModifiers : longint; var theUseEditBoxForObjFlag : integer; var theUseEditBoxForNewObjFlag : integer; var theNoEditBoxModifiers : longint): OSErr; function CADSetAreaPrefs ( theCADArea : longint; theWriteStringModeModifiers : longint; theSpecialClickModeModifiers : longint; theUseEditBoxForObjFlag : integer; theUseEditBoxForNewObjFlag : integer; theNoEditBoxModifiers : longint): OSErr;
theUseEditBoxForObjFlag (default kCADTrue
) is
kCADTrue if the inline string-editor handles existing string objects
theUseEditBoxForNewObjFlag (default kCADTrue) is
kCADTrue if the inline string-editor handles new string objects
theNoEditBoxModifiers (default 0) is
the optional keyboard modifier that overrules theUseEditBoxForObjFlag and
theUseEditBoxForNewObjFlag to let the application handle string editing.
For example, if theUseEditBoxForObjFlag and theUseEditBoxForNewObjFlag are set
to kCADTrue, and theNoEditBoxModifiers is set to
kCADModifierOptionKey
, then a plain mouse click in mode
kCADModeWriteString will show the inline string editor but a mouse click
with the option modifier key will trigger an application dialog box (see below).
kCADEventPhaseBefore
and kCADEventPhaseAfter
phase
to kCADEventIDWriteString
.
In kCADModeWriteString, preference settings of CADSetAreaPrefs determine
whether string editing is handled by the application or by the built-in string editor
(see above).
If string editing is to be handled by the application, then a mouse click triggers a
kCADEventPhaseDuring phase of kCADEventIDWriteString.
If string-editing is handled by the built-in string editor, then the following events are triggered instead:
kCADEventPhaseBefore phase when the string edit-box is about to be displayed
kCADEventPhaseAfter phase when the string edit-box is canceled or accepted.
kCADEventPhaseBefore IO Parameter Type Description in theCADArea longint Area ID in theEventID longint kCADEventIDWriteString in theEventPhase longint kCADEventPhaseBefore in theEventData1 longint the Object ID of the string object in theEventData2 longint kCADTrue is the string object is a new object, kCADFalse if not in theEventData3 longint 0 in theEventData4 longint 0 in theMouseX real Mouse X-coordinate, optionally snapped in theMouseY real Mouse Y-coordinate, optionally snapped in theEventValue1 real Unsnapped mouse X-coordinate in theEventValue2 real Unsnapped mouse Y-coordinate in theKeyAsciiValue integer 0 in theModifiers longint Sum of pressed modifier keys, see modifier key constants (also see CADGetAreaPrefs and CADSetAreaPrefs) in theTickCount longint Tick count of the system software (a tick is a 1/60th of a second) out theEventResult longint Set to kCADEventResultDoFilter to filter out the event or to kCADEventResultDontFilter to let it pass. kCADEventPhaseDuring IO Parameter Type Description in theCADArea longint Area ID in theEventID longint kCADEventIDWriteString in theEventPhase longint kCADEventPhaseDuring in theEventData1 longint Current Layer or Sublayer ID in theEventData2 longint 0 in theEventData3 longint kCADTrue if the mouse coordinate was snapped, kCADFalse if not in theEventData4 longint Target object scope, initially empty. If you add objects to this scope, they will be removed by a successive undo action in theMouseX real Mouse X-coordinate, optionally snapped in theMouseY real Mouse Y-coordinate, optionally snapped in theEventValue1 real Unsnapped mouse X-coordinate in theEventValue2 real Unsnapped mouse Y-coordinate in theKeyAsciiValue integer 0 in theModifiers longint Sum of pressed modifier keys, see Modifier key constants (also see CADGetAreaPrefs and CADSetAreaPrefs) in theTickCount longint Tick count of the system software (a tick is a 1/60th of a second) out theEventResult longint Set to kCADEventResultTriggerUndoRedo to trigger an undo and redo. Set to kCADEventResultTriggerUndoOnly to trigger an undo only. Set to kCADEventResultTriggerNoUndo to trigger no undos. The default undo action removes those objects that were added to the target object scope. kCADEventPhaseAfter IO Parameter Type Description in theCADArea longint Area ID in theEventID longint kCADEventIDWriteString in theEventPhase longint kCADEventPhaseAfter in theEventData1 longint the Object ID of the string object in theEventData2 longint kCADTrue is the string object is a new object, kCADFalse if not in theEventData3 longint kCADTrue if the edit-box was accepted, kCADFalse if it was canceled in theEventData4 longint 0 in theMouseX real 0.0 in theMouseY real 0.0 in theEventValue1 real 0.0 in theEventValue2 real 0.0 in theKeyAsciiValue integer 0 in theModifiers longint 0 in theTickCount longint 0 out theEventResult longint Don’t change.
kCADEventFilter2CreateString to kCADEventFilter2WriteString
.
CADPrintToPDF
, as follows
function CADPrintToPDF ( theCADArea : longint; thePDFEngine : integer; thePDFFlags : longint; theOptionalMacFileCreator : Str4; theMacVolumeRef : integer; theMacDirID : longint; theDosDirPathStr : Str255; theFilename : Str255; theReplaceExistingFileFlag : integer; thePDFTitleStr : Str255; thePDFAuthorStr : Str255; thePDFCreatorStr : Str255): OSErr;
Only kCADPDFEngineAppleOSX
is implemented. This implies that for now
CADPrintToPDF only works on Mac OS X
thePDFTitleStr, thePDFAuthorStr and thePDFCreatorStr
are ignored.