├── .gitignore ├── OcctLab.sln ├── OcctLab ├── Gui │ ├── FilterDispDialog.cpp │ ├── FilterDispDialog.h │ ├── LineStyleAndWidthDlg.cpp │ ├── LineStyleAndWidthDlg.h │ ├── ModelTreeCtrl.cpp │ ├── ModelTreeCtrl.h │ ├── kuiCmdBar.cpp │ ├── kuiCmdBar.h │ ├── kuiLayerBar.cpp │ ├── kuiLayerBar.h │ ├── kuiMainBar.cpp │ ├── kuiMainBar.h │ ├── kuiPropBar.cpp │ └── kuiPropBar.h ├── MainFrm.cpp ├── MainFrm.h ├── MainFrm2.cpp ├── OcctLab.cpp ├── OcctLab.h ├── OcctLab.rc ├── OcctLab.vcxproj ├── OcctLab.vcxproj.filters ├── OcctLab.vcxproj.user ├── OcctLabDoc.cpp ├── OcctLabDoc.h ├── OcctLabView.cpp ├── OcctLabView.h ├── ReadMe.txt ├── app │ ├── Trsf │ │ ├── kcmTrsfCopy.cpp │ │ ├── kcmTrsfCopy.h │ │ ├── kcmTrsfMirror.cpp │ │ ├── kcmTrsfMirror.h │ │ ├── kcmTrsfMove.cpp │ │ ├── kcmTrsfMove.h │ │ ├── kcmTrsfRotate.cpp │ │ ├── kcmTrsfRotate.h │ │ ├── kcmTrsfScale.cpp │ │ ├── kcmTrsfScale.h │ │ ├── kuiTrsfPlugin.cpp │ │ └── kuiTrsfPlugin.h │ └── syscmd │ │ ├── kcmDbgTool.cpp │ │ ├── kcmDbgTool.h │ │ ├── kcmDelete.cpp │ │ ├── kcmDelete.h │ │ ├── kcmDispLineStyle.cpp │ │ ├── kcmDispLineStyle.h │ │ ├── kcmDispLineWidth.cpp │ │ ├── kcmDispLineWidth.h │ │ ├── kcmDispTransparency.cpp │ │ ├── kcmDispTransparency.h │ │ ├── kcmDispVisible.cpp │ │ ├── kcmDispVisible.h │ │ ├── kcmMove.cpp │ │ ├── kcmMove.h │ │ ├── kcmShapeAnalysis.cpp │ │ ├── kcmShapeAnalysis.h │ │ ├── kcmUCSMgr.cpp │ │ ├── kcmUCSMgr.h │ │ ├── kuiSyscmdPlugin.cpp │ │ └── kuiSyscmdPlugin.h ├── occinc │ ├── OccGeom.h │ ├── OccGeomAPI.h │ ├── OccTopo.h │ └── OccTopoAPI.h ├── res │ ├── ModelTreeIcons16.bmp │ ├── ModelTreeIcons24.bmp │ ├── OcctLab.ico │ ├── OcctLab.manifest │ ├── OcctLab.rc2 │ ├── OcctLabDoc.ico │ ├── Toolbar.bmp │ └── bitmap2.bmp ├── resource.h ├── script │ ├── ScriptLib.cpp │ └── ScriptLib.h ├── stdafx.cpp └── stdafx.h ├── QxBaseLib ├── Base │ ├── QxDbgTool.cpp │ ├── QxInputBase.cpp │ ├── kColor.cpp │ ├── kPoint.cpp │ └── kVector.cpp ├── Geom │ ├── QxBRepLib.cpp │ ├── QxCurveInter.cpp │ ├── QxCurveLib.cpp │ ├── QxCurvePicker.cpp │ ├── QxFacePointPicker.cpp │ ├── QxSurfLib.cpp │ ├── kcgAnalysis.cpp │ └── kcgIntersect.cpp ├── QxBaseLib.def ├── QxBaseLib.rc ├── QxBaseLib.vcxproj ├── QxBaseLib.vcxproj.filters ├── QxBaseLib.vcxproj.user ├── QxBaseLibApp.cpp ├── QxBaseLibApp.h ├── ReadMe.txt ├── Resource.h ├── Utils │ └── QxBaseUtils.cpp ├── include │ ├── KCommonError.h │ ├── QxBRepLib.h │ ├── QxBaseDef.h │ ├── QxBaseUtils.h │ ├── QxCurveInter.h │ ├── QxCurveLib.h │ ├── QxCurvePicker.h │ ├── QxDbgTool.h │ ├── QxFacePointPicker.h │ ├── QxInputBase.h │ ├── QxLibDef.h │ ├── QxPrecision.h │ ├── QxSurfLib.h │ ├── kBase.h │ ├── kColor.h │ ├── kPoint.h │ ├── kVector.h │ ├── kcgAnalysis.h │ └── kcgIntersect.h ├── occinc │ ├── OccGeom.h │ ├── OccGeomAPI.h │ ├── OccTopo.h │ └── OccTopoAPI.h ├── res │ └── QxBaseLib.rc2 ├── stdafx.cpp ├── stdafx.h └── targetver.h ├── QxCurvePlugin ├── Dialogs │ ├── TextEditDialog.cpp │ └── TextEditDialog.h ├── Edit │ ├── kcmCurveBlend.cpp │ ├── kcmCurveBlend.h │ ├── kcmCurveBreak.cpp │ ├── kcmCurveBreak.h │ ├── kcmCurveFillet.cpp │ ├── kcmCurveFillet.h │ ├── kcmCurveOffset.cpp │ ├── kcmCurveOffset.h │ ├── kcmCurvePolyline.cpp │ ├── kcmCurvePolyline.h │ ├── kcmCurveTrim.cpp │ ├── kcmCurveTrim.h │ ├── kcmFaceCurve.cpp │ ├── kcmFaceCurve.h │ ├── kcmInterCurve.cpp │ ├── kcmInterCurve.h │ ├── kcmNormProjCurve.cpp │ └── kcmNormProjCurve.h ├── Make │ ├── kcmArc.cpp │ ├── kcmArc.h │ ├── kcmCircle.cpp │ ├── kcmCircle.h │ ├── kcmLine.cpp │ ├── kcmLine.h │ ├── kcmPoint.cpp │ ├── kcmPoint.h │ ├── kcmPolygon.cpp │ ├── kcmPolygon.h │ ├── kcmRect.cpp │ ├── kcmRect.h │ ├── kcmSpline.cpp │ ├── kcmSpline.h │ ├── kcmWireText.cpp │ └── kcmWireText.h ├── QxCurvePlugin.cpp ├── QxCurvePlugin.def ├── QxCurvePlugin.h ├── QxCurvePlugin.rc ├── QxCurvePlugin.vcxproj ├── QxCurvePlugin.vcxproj.filters ├── QxCurvePlugin.vcxproj.user ├── QxCurvePluginApp.cpp ├── QxCurvePluginApp.h ├── Resource.h ├── kcmSewCurve.cpp ├── kcmSewCurve.h ├── res │ └── QxCurvePlugin.rc2 ├── stdafx.cpp ├── stdafx.h └── targetver.h ├── QxDataExchg ├── DXF │ ├── dl_attributes.h │ ├── dl_codes.h │ ├── dl_creationadapter.h │ ├── dl_creationinterface.h │ ├── dl_dxf.cpp │ ├── dl_dxf.h │ ├── dl_entities.h │ ├── dl_exception.h │ ├── dl_extrusion.h │ ├── dl_writer.h │ ├── dl_writer_ascii.cpp │ └── dl_writer_ascii.h ├── Dialogs │ ├── XCAFDocDialog.cpp │ └── XCAFDocDialog.h ├── Export │ ├── kcBRepExport.cpp │ ├── kcBaseExport.cpp │ ├── kcIGESExport.cpp │ ├── kcSTEPExport.cpp │ └── kcgBRepFile.cpp ├── Import │ ├── kcBRepReader.cpp │ ├── kcBaseReader.cpp │ ├── kcDXFReader.cpp │ ├── kcIGESReader.cpp │ ├── kcSTEPReader.cpp │ ├── kcShapeAttrib.cpp │ ├── kcShapeAttribMgr.cpp │ ├── kcStepLayerMgr.cpp │ ├── kcStepMbStringMgr.cpp │ └── kcXCAFImportStep.cpp ├── QxDataExchg.def ├── QxDataExchg.rc ├── QxDataExchg.vcxproj ├── QxDataExchg.vcxproj.filters ├── QxDataExchg.vcxproj.user ├── QxDataExchgApp.cpp ├── QxDataExchgApp.h ├── ReadMe.txt ├── include │ ├── kcBRepExport.h │ ├── kcBRepReader.h │ ├── kcBaseExport.h │ ├── kcBaseReader.h │ ├── kcDXFReader.h │ ├── kcIGESExport.h │ ├── kcIGESReader.h │ ├── kcSTEPExport.h │ ├── kcSTEPReader.h │ ├── kcShapeAttrib.h │ ├── kcShapeAttribMgr.h │ ├── kcStepLayerMgr.h │ ├── kcStepMbStringMgr.h │ ├── kcXCAFImportStep.h │ └── kcgBRepFile.h ├── res │ └── QxDataExchg.rc2 ├── resource.h ├── stdafx.cpp ├── stdafx.h └── targetver.h ├── QxLuaScript ├── Dialogs │ ├── LuaScriptDlg.cpp │ └── LuaScriptDlg.h ├── QxLuaScript.def ├── QxLuaScript.rc ├── QxLuaScript.vcxproj ├── QxLuaScript.vcxproj.filters ├── QxLuaScript.vcxproj.user ├── QxLuaScriptApp.cpp ├── QxLuaScriptApp.h ├── ReadMe.txt ├── Script │ ├── QxLuaScript.cpp │ ├── QxLuaState.cpp │ ├── sciModelLib.cpp │ ├── sciModelLib.h │ ├── sciTopolLib.cpp │ └── sciTopolLib.h ├── include │ ├── QxLuaScript.h │ └── QxLuaState.h ├── res │ └── QxLuaScript.rc2 ├── resource.h ├── stdafx.cpp ├── stdafx.h └── targetver.h ├── QxModelLib ├── QxModelLib.def ├── QxModelLib.rc ├── QxModelLib.vcxproj ├── QxModelLib.vcxproj.filters ├── QxModelLib.vcxproj.user ├── QxModelLibApp.cpp ├── QxModelLibApp.h ├── ReadMe.txt ├── include │ ├── AIS_EntityShape.h │ ├── OxModel.h │ ├── QxModelLib.h │ ├── QxStgBlock.h │ ├── QxStgModelDef.h │ ├── kcBasePlane.h │ ├── kcEntity.h │ ├── kcEntityFactory.h │ ├── kcEntityTrsf.h │ ├── kcHandleMgr.h │ ├── kcLayer.h │ ├── kcModel.h │ ├── kcShapeAttrib.h │ ├── kcShapeAttribMgr.h │ ├── kcSnapMngr.h │ ├── kiSelSet.h │ ├── kiSnapMngr.h │ ├── kiUndoMgr.h │ ├── kuiInterface.h │ ├── kuiLayersDialog.h │ ├── kvCoordSystem.h │ ├── kvCoordSystemMgr.h │ ├── kvGrid.h │ └── stdafx.h ├── res │ └── QxModelLib.rc2 ├── resource.h ├── source │ ├── AIS_Curve.cpp │ ├── AIS_Curve.h │ ├── AIS_EntityShape.cpp │ ├── Dialogs │ │ └── kuiLayersDialog.cpp │ ├── QxStgBlock.cpp │ ├── kcBasePlane.cpp │ ├── kcEntity.cpp │ ├── kcEntity2.cpp │ ├── kcEntityFactory.cpp │ ├── kcEntityTrsf.cpp │ ├── kcHandleMgr.cpp │ ├── kcLayer.cpp │ ├── kcModel.cpp │ ├── kcModel2.cpp │ ├── kcShapeAttrib.cpp │ ├── kcShapeAttribMgr.cpp │ ├── kcSnapMngr.cpp │ ├── kiSelSet.cpp │ ├── kiSnapMngr.cpp │ ├── kiUndoMgr.cpp │ ├── kvCoordSystem.cpp │ ├── kvCoordSystemMgr.cpp │ └── kvGrid.cpp ├── stdafx.cpp ├── targetver.h └── zlib │ ├── adler32.c │ ├── compress.c │ ├── crc32.c │ ├── crc32.h │ ├── deflate.c │ ├── deflate.h │ ├── gzclose.c │ ├── gzguts.h │ ├── gzlib.c │ ├── gzread.c │ ├── gzwrite.c │ ├── infback.c │ ├── inffast.c │ ├── inffast.h │ ├── inffixed.h │ ├── inflate.c │ ├── inflate.h │ ├── inftrees.c │ ├── inftrees.h │ ├── trees.c │ ├── trees.h │ ├── uncompr.c │ ├── zconf.h │ ├── zlib.h │ ├── zutil.c │ └── zutil.h ├── QxSolidPlugin ├── QxSolidPlugin.cpp ├── QxSolidPlugin.def ├── QxSolidPlugin.h ├── QxSolidPlugin.rc ├── QxSolidPlugin.vcxproj ├── QxSolidPlugin.vcxproj.filters ├── QxSolidPlugin.vcxproj.user ├── QxSolidPluginApp.cpp ├── QxSolidPluginApp.h ├── Resource.h ├── edit │ ├── kcmSolidDeCompound.cpp │ ├── kcmSolidDeCompound.h │ ├── kcmSolidDraft.cpp │ ├── kcmSolidDraft.h │ ├── kcmSolidFillet.cpp │ ├── kcmSolidFillet.h │ ├── kcmSolidLoft.cpp │ ├── kcmSolidLoft.h │ ├── kcmSolidOffset.cpp │ ├── kcmSolidOffset.h │ ├── kcmSolidSewing.cpp │ ├── kcmSolidSewing.h │ ├── kcmSolidTrim.cpp │ ├── kcmSolidTrim.h │ ├── kcmThickSolid.cpp │ └── kcmThickSolid.h ├── kcmSolidBoolean.cpp ├── kcmSolidBoolean.h ├── make │ ├── kcmSolidBox.cpp │ ├── kcmSolidBox.h │ ├── kcmSolidCone.cpp │ ├── kcmSolidCone.h │ ├── kcmSolidCylinder.cpp │ ├── kcmSolidCylinder.h │ ├── kcmSolidPipe.cpp │ ├── kcmSolidPipe.h │ ├── kcmSolidPipeShell.cpp │ ├── kcmSolidPipeShell.h │ ├── kcmSolidPrism.cpp │ ├── kcmSolidPrism.h │ ├── kcmSolidRevol.cpp │ ├── kcmSolidRevol.h │ ├── kcmSolidSphere.cpp │ └── kcmSolidSphere.h ├── res │ └── QxSolidPlugin.rc2 ├── stdafx.cpp ├── stdafx.h ├── targetver.h └── tools │ ├── kcmOneFaceBase.cpp │ └── kcmOneFaceBase.h ├── QxSurfPlugin ├── Edit │ ├── kcmRegionBoolean.cpp │ ├── kcmRegionBoolean.h │ ├── kcmSurfaceFilling.cpp │ ├── kcmSurfaceFilling.h │ ├── kcmSurfaceSplit.cpp │ ├── kcmSurfaceSplit.h │ ├── kcmSurfaceTool.cpp │ ├── kcmSurfaceTool.h │ ├── kcmSurfaceTrim.cpp │ └── kcmSurfaceTrim.h ├── Make │ ├── kcmLoftSurface.cpp │ ├── kcmLoftSurface.h │ ├── kcmLoopToFace.cpp │ ├── kcmLoopToFace.h │ ├── kcmPlane.cpp │ ├── kcmPlane.h │ ├── kcmPrismSurface.cpp │ ├── kcmPrismSurface.h │ ├── kcmRevolSurface.cpp │ ├── kcmRevolSurface.h │ ├── kcmRuledSurface.cpp │ ├── kcmRuledSurface.h │ ├── kcmSurfPolygon.cpp │ ├── kcmSurfPolygon.h │ ├── kcmSurfacePipe.cpp │ └── kcmSurfacePipe.h ├── QxSurfPlugin.cpp ├── QxSurfPlugin.def ├── QxSurfPlugin.h ├── QxSurfPlugin.rc ├── QxSurfPlugin.vcxproj ├── QxSurfPlugin.vcxproj.filters ├── QxSurfPlugin.vcxproj.user ├── QxSurfPluginApp.cpp ├── QxSurfPluginApp.h ├── Resource.h ├── res │ └── QxSurfPlugin.rc2 ├── stdafx.cpp ├── stdafx.h └── targetver.h ├── QxSysLib ├── QxSysLib.def ├── QxSysLib.rc ├── QxSysLib.vcxproj ├── QxSysLib.vcxproj.filters ├── QxSysLib.vcxproj.user ├── QxSysLibApp.cpp ├── QxSysLibApp.h ├── ReadMe.txt ├── include │ ├── Gui │ │ ├── AutoHideBar.h │ │ ├── DrawFrame.h │ │ ├── PinDockBar.h │ │ ├── XInputEdit.h │ │ ├── scbarcf.h │ │ ├── scbarg.h │ │ └── sizecbar.h │ ├── Input │ │ ├── kiInputAngle.h │ │ ├── kiInputDirTool.h │ │ ├── kiInputEdit.h │ │ ├── kiInputEntityTool.h │ │ ├── kiInputLength.h │ │ ├── kiInputOptionsTool.h │ │ ├── kiInputPicker.h │ │ ├── kiInputPoint.h │ │ ├── kiInputPointOnCurve.h │ │ ├── kiInputPointTool.h │ │ ├── kiInputTool.h │ │ ├── kiInputValueTool.h │ │ ├── kiInputVector.h │ │ └── kiOptionSet.h │ ├── QxAnimationShape.h │ ├── QxCmdPlugin.h │ ├── QxCmdPluginImpl.h │ ├── QxCommandItem.h │ ├── QxPluginMgr.h │ ├── QxStgDocDef.h │ ├── QxStgDocReader.h │ ├── QxStgDocWriter.h │ ├── QxSysInterface.h │ ├── QxSysLib.h │ ├── QxWndTimerMgr.h │ ├── kcDispArrow.h │ ├── kcDispObj.h │ ├── kcDocContext.h │ ├── kcPreviewObj.h │ ├── kcPreviewText.h │ ├── kcProgressThread.h │ ├── kcSysUtils.h │ ├── kcgTextLib.h │ ├── kcmUtils.h │ ├── kiCommand.h │ ├── kiCommandMgr.h │ └── kiParseString.h ├── res │ └── QxSysLib.rc2 ├── resource.h ├── source │ ├── Cmd │ │ ├── kcmUtils.cpp │ │ ├── kiCommand.cpp │ │ └── kiCommandMgr.cpp │ ├── Disp │ │ ├── kcDispArrow.cpp │ │ ├── kcDispObj.cpp │ │ ├── kcPreviewObj.cpp │ │ ├── kcPreviewObj2.cpp │ │ └── kcPreviewText.cpp │ ├── Dlgs │ │ ├── InputDblDlg.cpp │ │ ├── InputDblDlg.h │ │ ├── InputIntDlg.cpp │ │ ├── InputIntDlg.h │ │ ├── ShapeStructDialog.cpp │ │ ├── ShapeStructDialog.h │ │ ├── kuiProgressDlg.cpp │ │ └── kuiProgressDlg.h │ ├── Geo │ │ ├── QxAnimationShape.cpp │ │ ├── kcSysUtils.cpp │ │ └── kcgTextLib.cpp │ ├── Gui │ │ ├── AutoHideBar.cpp │ │ ├── DrawFrame.cpp │ │ ├── PinDockBar.cpp │ │ ├── XInputEdit.cpp │ │ ├── scbarcf.cpp │ │ ├── scbarg.cpp │ │ └── sizecbar.cpp │ ├── Input │ │ ├── kiInputAngle.cpp │ │ ├── kiInputDirTool.cpp │ │ ├── kiInputEdit.cpp │ │ ├── kiInputEntityTool.cpp │ │ ├── kiInputLength.cpp │ │ ├── kiInputOptionsTool.cpp │ │ ├── kiInputPicker.cpp │ │ ├── kiInputPoint.cpp │ │ ├── kiInputPointOnCurve.cpp │ │ ├── kiInputPointTool.cpp │ │ ├── kiInputTool.cpp │ │ ├── kiInputValueTool.cpp │ │ ├── kiInputVector.cpp │ │ ├── kiOptionSet.cpp │ │ └── kiParseString.cpp │ ├── Plugin │ │ ├── QxCmdPlugin.cpp │ │ ├── QxCmdPluginImpl.cpp │ │ ├── QxCommandItem.cpp │ │ └── QxPluginMgr.cpp │ ├── QxSysLib.cpp │ ├── Stg │ │ ├── QxStgDocReader.cpp │ │ └── QxStgDocWriter.cpp │ └── Sys │ │ ├── QxWndTimerMgr.cpp │ │ ├── kcDocContext.cpp │ │ └── kcProgressThread.cpp ├── stdafx.cpp ├── stdafx.h └── targetver.h ├── QxToolPlugin ├── Dialogs │ ├── kcPropertyDlg.cpp │ └── kcPropertyDlg.h ├── Dim │ ├── kcmAngleDim.cpp │ ├── kcmAngleDim.h │ ├── kcmDiameterDim.cpp │ ├── kcmDiameterDim.h │ ├── kcmLengthDimension.cpp │ ├── kcmLengthDimension.h │ ├── kcmRadiusDim.cpp │ └── kcmRadiusDim.h ├── QxToolPlugin.cpp ├── QxToolPlugin.def ├── QxToolPlugin.h ├── QxToolPlugin.rc ├── QxToolPlugin.vcxproj ├── QxToolPlugin.vcxproj.filters ├── QxToolPlugin.vcxproj.user ├── QxToolPluginApp.cpp ├── QxToolPluginApp.h ├── Resource.h ├── analyze │ ├── kcmShapeProperty.cpp │ ├── kcmShapeProperty.h │ ├── kcmShapeStatistic.cpp │ └── kcmShapeStatistic.h ├── kcmAnimationDemo.cpp ├── kcmAnimationDemo.h ├── kcmBasePlane.cpp ├── kcmBasePlane.h ├── kcmDispColor.cpp ├── kcmDispColor.h ├── kcmDispShadingModel.cpp ├── kcmDispShadingModel.h ├── kcmShapeCheck.cpp ├── kcmShapeCheck.h ├── kcmShapeFix.cpp ├── kcmShapeFix.h ├── res │ └── QxToolPlugin.rc2 ├── stdafx.cpp ├── stdafx.h └── targetver.h ├── README.md ├── Release.zip ├── bin └── x64 │ └── release │ └── Release.zip └── luaLib ├── LuaLib.vcxproj ├── LuaLib.vcxproj.filters ├── LuaLib.vcxproj.user ├── lapi.c ├── lapi.h ├── lauxlib.c ├── lauxlib.h ├── lbaselib.c ├── lbitlib.c ├── lcode.c ├── lcode.h ├── lcorolib.c ├── lctype.c ├── lctype.h ├── ldblib.c ├── ldebug.c ├── ldebug.h ├── ldo.c ├── ldo.h ├── ldump.c ├── lfunc.c ├── lfunc.h ├── lgc.c ├── lgc.h ├── linit.c ├── liolib.c ├── llex.c ├── llex.h ├── llimits.h ├── lmathlib.c ├── lmem.c ├── lmem.h ├── loadlib.c ├── lobject.c ├── lobject.h ├── lopcodes.c ├── lopcodes.h ├── loslib.c ├── lparser.c ├── lparser.h ├── lprefix.h ├── lstate.c ├── lstate.h ├── lstring.c ├── lstring.h ├── lstrlib.c ├── ltable.c ├── ltable.h ├── ltablib.c ├── ltm.c ├── ltm.h ├── lua.h ├── lua.hpp ├── luaconf.h ├── lualib.h ├── lundump.c ├── lundump.h ├── lutf8lib.c ├── lvm.c ├── lvm.h ├── lzio.c └── lzio.h /.gitignore: -------------------------------------------------------------------------------- 1 | # Prerequisites 2 | *.d 3 | 4 | # Compiled Object files 5 | *.slo 6 | *.lo 7 | *.o 8 | *.obj 9 | 10 | # Precompiled Headers 11 | *.gch 12 | *.pch 13 | 14 | # Compiled Dynamic libraries 15 | *.so 16 | *.dylib 17 | *.dll 18 | 19 | # Fortran module files 20 | *.mod 21 | *.smod 22 | 23 | # Compiled Static libraries 24 | *.lai 25 | *.la 26 | *.a 27 | *.lib 28 | 29 | # Executables 30 | *.exe 31 | *.out 32 | *.app 33 | 34 | bin/ 35 | Obj/ 36 | .vs/ 37 | *.bak 38 | *.aps 39 | *.vss 40 | *.scc -------------------------------------------------------------------------------- /OcctLab/Gui/FilterDispDialog.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/Gui/FilterDispDialog.cpp -------------------------------------------------------------------------------- /OcctLab/Gui/FilterDispDialog.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/Gui/FilterDispDialog.h -------------------------------------------------------------------------------- /OcctLab/Gui/LineStyleAndWidthDlg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/Gui/LineStyleAndWidthDlg.cpp -------------------------------------------------------------------------------- /OcctLab/Gui/LineStyleAndWidthDlg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/Gui/LineStyleAndWidthDlg.h -------------------------------------------------------------------------------- /OcctLab/Gui/ModelTreeCtrl.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/Gui/ModelTreeCtrl.cpp -------------------------------------------------------------------------------- /OcctLab/Gui/ModelTreeCtrl.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/Gui/ModelTreeCtrl.h -------------------------------------------------------------------------------- /OcctLab/Gui/kuiCmdBar.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/Gui/kuiCmdBar.cpp -------------------------------------------------------------------------------- /OcctLab/Gui/kuiCmdBar.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/Gui/kuiCmdBar.h -------------------------------------------------------------------------------- /OcctLab/Gui/kuiLayerBar.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/Gui/kuiLayerBar.cpp -------------------------------------------------------------------------------- /OcctLab/Gui/kuiLayerBar.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////// 2 | // kuiLayerBar 3 | #ifndef _KUI_LAYER_BAR_H_ 4 | #define _KUI_LAYER_BAR_H_ 5 | 6 | #include "PinDockBar.h" 7 | 8 | class kuiLayerBar : public CPinDockBar 9 | { 10 | DECLARE_DYNAMIC(kuiLayerBar) 11 | 12 | public: 13 | kuiLayerBar(); 14 | virtual ~kuiLayerBar(); 15 | virtual void OnUpdateCmdUI(CFrameWnd* pTarget, BOOL bDisableIfNoHndler); 16 | 17 | protected: 18 | DECLARE_MESSAGE_MAP() 19 | public: 20 | afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 21 | afx_msg void OnSize(UINT nType, int cx, int cy); 22 | }; 23 | 24 | #endif 25 | 26 | -------------------------------------------------------------------------------- /OcctLab/Gui/kuiMainBar.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/Gui/kuiMainBar.cpp -------------------------------------------------------------------------------- /OcctLab/Gui/kuiMainBar.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef _KUI_MAIN_BAR_H_ 3 | #define _KUI_MAIN_BAR_H_ 4 | 5 | #include 6 | 7 | // kuiMainBar 8 | #include "PinDockBar.h" 9 | #include "kuiInterface.h" 10 | #include "ModelTreeCtrl.h" 11 | 12 | 13 | class kuiMainBar : public CPinDockBar 14 | { 15 | DECLARE_DYNAMIC(kuiMainBar) 16 | 17 | public: 18 | kuiMainBar(); 19 | virtual ~kuiMainBar(); 20 | virtual void OnUpdateCmdUI(CFrameWnd* pTarget, BOOL bDisableIfNoHndler); 21 | 22 | virtual void AddToDrawBar(CAutoHideBar * pDrawBar); 23 | virtual void RemoveFromDrawBar(CAutoHideBar * pDrawBar); 24 | 25 | kuiModelTreeInterface* GetModelTreeInterface() const; 26 | 27 | protected: 28 | void CreateTreeImageList(); 29 | 30 | protected: 31 | CModelTreeCtrl m_wndTreeCtrl; 32 | CImageList m_treeImageList; 33 | 34 | protected: 35 | DECLARE_MESSAGE_MAP() 36 | public: 37 | afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 38 | afx_msg void OnSize(UINT nType, int cx, int cy); 39 | }; 40 | 41 | #endif 42 | 43 | -------------------------------------------------------------------------------- /OcctLab/Gui/kuiPropBar.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/Gui/kuiPropBar.cpp -------------------------------------------------------------------------------- /OcctLab/Gui/kuiPropBar.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////// 2 | // kuiPropBar 3 | #ifndef _KUI_PROP_BAR_H_ 4 | #define _KUI_PROP_BAR_H_ 5 | 6 | #include "PinDockBar.h" 7 | 8 | class kuiPropBar : public CPinDockBar 9 | { 10 | DECLARE_DYNAMIC(kuiPropBar) 11 | 12 | public: 13 | kuiPropBar(); 14 | virtual ~kuiPropBar(); 15 | virtual void OnUpdateCmdUI(CFrameWnd* pTarget, BOOL bDisableIfNoHndler); 16 | 17 | protected: 18 | DECLARE_MESSAGE_MAP() 19 | public: 20 | afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 21 | afx_msg void OnSize(UINT nType, int cx, int cy); 22 | }; 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /OcctLab/MainFrm.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/MainFrm.cpp -------------------------------------------------------------------------------- /OcctLab/MainFrm.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/MainFrm.h -------------------------------------------------------------------------------- /OcctLab/MainFrm2.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/MainFrm2.cpp -------------------------------------------------------------------------------- /OcctLab/OcctLab.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/OcctLab.cpp -------------------------------------------------------------------------------- /OcctLab/OcctLab.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/OcctLab.h -------------------------------------------------------------------------------- /OcctLab/OcctLab.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/OcctLab.rc -------------------------------------------------------------------------------- /OcctLab/OcctLab.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /OcctLab/OcctLabDoc.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/OcctLabDoc.cpp -------------------------------------------------------------------------------- /OcctLab/OcctLabDoc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/OcctLabDoc.h -------------------------------------------------------------------------------- /OcctLab/OcctLabView.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/OcctLabView.cpp -------------------------------------------------------------------------------- /OcctLab/OcctLabView.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/OcctLabView.h -------------------------------------------------------------------------------- /OcctLab/app/Trsf/kcmTrsfCopy.cpp: -------------------------------------------------------------------------------- 1 | #include "StdAfx.h" 2 | #include ".\kcmtrsfcopy.h" 3 | 4 | kcmTrsfCopy::kcmTrsfCopy(void) 5 | { 6 | } 7 | 8 | kcmTrsfCopy::~kcmTrsfCopy(void) 9 | { 10 | } 11 | -------------------------------------------------------------------------------- /OcctLab/app/Trsf/kcmTrsfCopy.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class kcmTrsfCopy 4 | { 5 | public: 6 | kcmTrsfCopy(void); 7 | ~kcmTrsfCopy(void); 8 | }; 9 | -------------------------------------------------------------------------------- /OcctLab/app/Trsf/kcmTrsfMirror.cpp: -------------------------------------------------------------------------------- 1 | #include "StdAfx.h" 2 | #include ".\kcmtrsfmirror.h" 3 | 4 | kcmTrsfMirror::kcmTrsfMirror(void) 5 | { 6 | } 7 | 8 | kcmTrsfMirror::~kcmTrsfMirror(void) 9 | { 10 | } 11 | -------------------------------------------------------------------------------- /OcctLab/app/Trsf/kcmTrsfMirror.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class kcmTrsfMirror 4 | { 5 | public: 6 | kcmTrsfMirror(void); 7 | ~kcmTrsfMirror(void); 8 | }; 9 | -------------------------------------------------------------------------------- /OcctLab/app/Trsf/kcmTrsfMove.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/app/Trsf/kcmTrsfMove.cpp -------------------------------------------------------------------------------- /OcctLab/app/Trsf/kcmTrsfMove.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/app/Trsf/kcmTrsfMove.h -------------------------------------------------------------------------------- /OcctLab/app/Trsf/kcmTrsfRotate.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/app/Trsf/kcmTrsfRotate.cpp -------------------------------------------------------------------------------- /OcctLab/app/Trsf/kcmTrsfRotate.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/app/Trsf/kcmTrsfRotate.h -------------------------------------------------------------------------------- /OcctLab/app/Trsf/kcmTrsfScale.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/app/Trsf/kcmTrsfScale.cpp -------------------------------------------------------------------------------- /OcctLab/app/Trsf/kcmTrsfScale.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/app/Trsf/kcmTrsfScale.h -------------------------------------------------------------------------------- /OcctLab/app/Trsf/kuiTrsfPlugin.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/app/Trsf/kuiTrsfPlugin.cpp -------------------------------------------------------------------------------- /OcctLab/app/Trsf/kuiTrsfPlugin.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/app/Trsf/kuiTrsfPlugin.h -------------------------------------------------------------------------------- /OcctLab/app/syscmd/kcmDbgTool.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/app/syscmd/kcmDbgTool.cpp -------------------------------------------------------------------------------- /OcctLab/app/syscmd/kcmDbgTool.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/app/syscmd/kcmDbgTool.h -------------------------------------------------------------------------------- /OcctLab/app/syscmd/kcmDelete.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/app/syscmd/kcmDelete.cpp -------------------------------------------------------------------------------- /OcctLab/app/syscmd/kcmDelete.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/app/syscmd/kcmDelete.h -------------------------------------------------------------------------------- /OcctLab/app/syscmd/kcmDispLineStyle.cpp: -------------------------------------------------------------------------------- 1 | #include "StdAfx.h" 2 | #include ".\kcmdisplinestyle.h" 3 | 4 | kcmDispLineStyle::kcmDispLineStyle(void) 5 | { 6 | } 7 | 8 | kcmDispLineStyle::~kcmDispLineStyle(void) 9 | { 10 | } 11 | -------------------------------------------------------------------------------- /OcctLab/app/syscmd/kcmDispLineStyle.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class kcmDispLineStyle 4 | { 5 | public: 6 | kcmDispLineStyle(void); 7 | ~kcmDispLineStyle(void); 8 | }; 9 | -------------------------------------------------------------------------------- /OcctLab/app/syscmd/kcmDispLineWidth.cpp: -------------------------------------------------------------------------------- 1 | #include "StdAfx.h" 2 | #include ".\kcmdisplinewidth.h" 3 | 4 | kcmDispLineWidth::kcmDispLineWidth(void) 5 | { 6 | } 7 | 8 | kcmDispLineWidth::~kcmDispLineWidth(void) 9 | { 10 | } 11 | -------------------------------------------------------------------------------- /OcctLab/app/syscmd/kcmDispLineWidth.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class kcmDispLineWidth 4 | { 5 | public: 6 | kcmDispLineWidth(void); 7 | ~kcmDispLineWidth(void); 8 | }; 9 | -------------------------------------------------------------------------------- /OcctLab/app/syscmd/kcmDispTransparency.cpp: -------------------------------------------------------------------------------- 1 | #include "StdAfx.h" 2 | #include ".\kcmdisptransparency.h" 3 | 4 | kcmDispTransparency::kcmDispTransparency(void) 5 | { 6 | } 7 | 8 | kcmDispTransparency::~kcmDispTransparency(void) 9 | { 10 | } 11 | -------------------------------------------------------------------------------- /OcctLab/app/syscmd/kcmDispTransparency.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class kcmDispTransparency 4 | { 5 | public: 6 | kcmDispTransparency(void); 7 | ~kcmDispTransparency(void); 8 | }; 9 | -------------------------------------------------------------------------------- /OcctLab/app/syscmd/kcmDispVisible.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/app/syscmd/kcmDispVisible.cpp -------------------------------------------------------------------------------- /OcctLab/app/syscmd/kcmDispVisible.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/app/syscmd/kcmDispVisible.h -------------------------------------------------------------------------------- /OcctLab/app/syscmd/kcmMove.cpp: -------------------------------------------------------------------------------- 1 | #include "StdAfx.h" 2 | #include ".\kcmmove.h" 3 | 4 | kcmMove::kcmMove(void) 5 | { 6 | } 7 | 8 | kcmMove::~kcmMove(void) 9 | { 10 | } 11 | -------------------------------------------------------------------------------- /OcctLab/app/syscmd/kcmMove.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class kcmMove 4 | { 5 | public: 6 | kcmMove(void); 7 | ~kcmMove(void); 8 | }; 9 | -------------------------------------------------------------------------------- /OcctLab/app/syscmd/kcmShapeAnalysis.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/app/syscmd/kcmShapeAnalysis.cpp -------------------------------------------------------------------------------- /OcctLab/app/syscmd/kcmShapeAnalysis.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/app/syscmd/kcmShapeAnalysis.h -------------------------------------------------------------------------------- /OcctLab/app/syscmd/kcmUCSMgr.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/app/syscmd/kcmUCSMgr.cpp -------------------------------------------------------------------------------- /OcctLab/app/syscmd/kcmUCSMgr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/app/syscmd/kcmUCSMgr.h -------------------------------------------------------------------------------- /OcctLab/app/syscmd/kuiSyscmdPlugin.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/app/syscmd/kuiSyscmdPlugin.cpp -------------------------------------------------------------------------------- /OcctLab/app/syscmd/kuiSyscmdPlugin.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/app/syscmd/kuiSyscmdPlugin.h -------------------------------------------------------------------------------- /OcctLab/occinc/OccGeom.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/occinc/OccGeom.h -------------------------------------------------------------------------------- /OcctLab/occinc/OccGeomAPI.h: -------------------------------------------------------------------------------- 1 | #ifndef _OCCT_GEOM_API_H_ 2 | #define _OCCT_GEOM_API_H_ 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | #include 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /OcctLab/occinc/OccTopo.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/occinc/OccTopo.h -------------------------------------------------------------------------------- /OcctLab/occinc/OccTopoAPI.h: -------------------------------------------------------------------------------- 1 | #ifndef _OCCT_TOPO_API_H_ 2 | #define _OCCT_TOPO_API_H_ 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | #include 20 | #include 21 | #include 22 | #include 23 | 24 | //#include 25 | #include 26 | #include 27 | #include 28 | #include 29 | #include 30 | 31 | #include 32 | #include 33 | #include 34 | #include 35 | 36 | #include 37 | #include 38 | #include 39 | #include 40 | #include 41 | #include 42 | #include 43 | #include 44 | #include 45 | #include 46 | #include 47 | #include 48 | #include 49 | #include 50 | 51 | #include 52 | #include 53 | #include 54 | #include 55 | #include 56 | #include 57 | #include 58 | #include 59 | #include 60 | #include 61 | #include 62 | #include 63 | 64 | #endif 65 | -------------------------------------------------------------------------------- /OcctLab/res/ModelTreeIcons16.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/res/ModelTreeIcons16.bmp -------------------------------------------------------------------------------- /OcctLab/res/ModelTreeIcons24.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/res/ModelTreeIcons24.bmp -------------------------------------------------------------------------------- /OcctLab/res/OcctLab.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/res/OcctLab.ico -------------------------------------------------------------------------------- /OcctLab/res/OcctLab.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 在此说明应用程序 10 | 11 | 12 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /OcctLab/res/OcctLab.rc2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/res/OcctLab.rc2 -------------------------------------------------------------------------------- /OcctLab/res/OcctLabDoc.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/res/OcctLabDoc.ico -------------------------------------------------------------------------------- /OcctLab/res/Toolbar.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/res/Toolbar.bmp -------------------------------------------------------------------------------- /OcctLab/res/bitmap2.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/res/bitmap2.bmp -------------------------------------------------------------------------------- /OcctLab/resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/resource.h -------------------------------------------------------------------------------- /OcctLab/script/ScriptLib.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/script/ScriptLib.cpp -------------------------------------------------------------------------------- /OcctLab/script/ScriptLib.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/script/ScriptLib.h -------------------------------------------------------------------------------- /OcctLab/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/stdafx.cpp -------------------------------------------------------------------------------- /OcctLab/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/OcctLab/stdafx.h -------------------------------------------------------------------------------- /QxBaseLib/Base/QxDbgTool.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxBaseLib/Base/QxDbgTool.cpp -------------------------------------------------------------------------------- /QxBaseLib/Base/QxInputBase.cpp: -------------------------------------------------------------------------------- 1 | // 2 | #include "stdafx.h" 3 | #include "QxInputBase.h" 4 | 5 | ////////////////////////////////////////////////////////////////////////// 6 | kuiMouseInput::kuiMouseInput(void) 7 | { 8 | m_nFlags = 0; 9 | m_x = m_y = 0; 10 | } 11 | 12 | kuiMouseInput::kuiMouseInput(UINT nFlags, LONG x,LONG y,const Handle(V3d_View) &aView) 13 | { 14 | m_nFlags = nFlags; 15 | m_x = x;m_y = y; 16 | aView_ = aView; 17 | } 18 | 19 | kuiMouseInput::kuiMouseInput(const kuiMouseInput &other) 20 | { 21 | Assign(other); 22 | } 23 | 24 | kuiMouseInput& kuiMouseInput::operator=(const kuiMouseInput &other) 25 | { 26 | Assign(other); 27 | return *this; 28 | } 29 | 30 | void kuiMouseInput::Assign(const kuiMouseInput &other) 31 | { 32 | m_nFlags = other.m_nFlags; 33 | m_x = other.m_x; 34 | m_y = other.m_y; 35 | aView_ = other.aView_; 36 | } 37 | 38 | ////////////////////////////////////////////////////////////////////////// 39 | // 40 | kuiKeyInput::kuiKeyInput() 41 | { 42 | nChar_ = 0; 43 | nRepCnt_ = 0; 44 | nFlags_ = 0; 45 | } 46 | 47 | kuiKeyInput::kuiKeyInput(UINT nChar,UINT nRepCnt,UINT nFlags) 48 | { 49 | nChar_ = nChar; 50 | nRepCnt_ = nRepCnt; 51 | nFlags_ = nFlags; 52 | } 53 | 54 | ////////////////////////////////////////////////////////////////////////// 55 | // 56 | void kGetAxisDir(eStdAxis axis,double v[3]) 57 | { 58 | v[0] = v[1] = v[2] = 0.0; 59 | switch(axis){ 60 | case Z_POS: v[2] = 1.0; break; 61 | case Z_NEG: v[2] = -1.0; break; 62 | case X_POS: v[0] = 1.0; break; 63 | case X_NEG: v[0] = -1.0; break; 64 | case Y_POS: v[1] = 1.0; break; 65 | case Y_NEG: v[1] = -1.0; break; 66 | default: 67 | break; 68 | } 69 | } -------------------------------------------------------------------------------- /QxBaseLib/Base/kColor.cpp: -------------------------------------------------------------------------------- 1 | #include "StdAfx.h" 2 | #include 3 | #include "QxBaseDef.h" 4 | #include "kColor.h" 5 | 6 | inline static double axRound01(double a) 7 | { 8 | if(a < 0.0) return 0.0; 9 | if(a > 1.0) return 1.0; 10 | return a; 11 | } 12 | 13 | kColor::kColor(void) 14 | { 15 | _r = _g = _b = 0.0; 16 | _a = 1.0; 17 | } 18 | 19 | kColor::kColor(int icolor) 20 | { 21 | set(icolor); 22 | } 23 | 24 | kColor::kColor(unsigned char a) 25 | { 26 | set(a); 27 | } 28 | 29 | kColor::kColor(unsigned char r,unsigned char g,unsigned char b) 30 | { 31 | set(r,g,b); 32 | } 33 | 34 | kColor::kColor(double a) 35 | { 36 | set(a); 37 | } 38 | 39 | kColor::kColor(double r,double g,double b) 40 | { 41 | set(r,g,b); 42 | } 43 | 44 | kColor::kColor(const kColor& other) 45 | { 46 | _r = other._r;_g = other._g;_b = other._b;_a = other._a; 47 | } 48 | 49 | kColor::~kColor(void) 50 | { 51 | } 52 | 53 | kColor& kColor::operator=(const kColor& other) 54 | { 55 | _r = other._r;_g = other._g;_b = other._b;_a = other._a; 56 | return *this; 57 | } 58 | 59 | bool kColor::operator==(const kColor& other) 60 | { 61 | if(fabs(_r - other._r) > KDBL_EPSILON || 62 | fabs(_g - other._g) > KDBL_EPSILON || 63 | fabs(_b - other._b) > KDBL_EPSILON || 64 | fabs(_a - other._a) > KDBL_EPSILON) 65 | return false; 66 | return true; 67 | } 68 | 69 | bool kColor::operator!=(const kColor& other) 70 | { 71 | if(fabs(_r - other._r) > KDBL_EPSILON || 72 | fabs(_g - other._g) > KDBL_EPSILON || 73 | fabs(_b - other._b) > KDBL_EPSILON || 74 | fabs(_a - other._a) > KDBL_EPSILON) 75 | return true; 76 | return false; 77 | } 78 | 79 | void kColor::set(int icolor) 80 | { 81 | _r = GetRValue(icolor) / 255.0; 82 | _g = GetGValue(icolor) / 255.0; 83 | _b = GetBValue(icolor) / 255.0; 84 | _a = 1.0; 85 | } 86 | 87 | void kColor::set(unsigned char a) 88 | { 89 | _r = _g = _b = a / 255.0; 90 | _a = 1.0; 91 | } 92 | 93 | void kColor::set(unsigned char r,unsigned char g,unsigned char b) 94 | { 95 | _r = r / 255.0;_g = g / 255.0;_b = b / 255.0; 96 | _a = 1.0; 97 | } 98 | 99 | void kColor::set(double a) 100 | { 101 | _r = _g = _b = axRound01(a); 102 | _a = 1.0; 103 | } 104 | 105 | void kColor::set(double r,double g,double b) 106 | { 107 | _r = axRound01(r);_g = axRound01(g);_b = axRound01(b); 108 | _a = 1.0; 109 | } 110 | 111 | int kColor::rgb() const 112 | { 113 | unsigned char r,g,b; 114 | r = (unsigned char)(_r * 255); 115 | g = (unsigned char)(_g * 255); 116 | b = (unsigned char)(_b * 255); 117 | return RGB(r,g,b); 118 | } 119 | 120 | -------------------------------------------------------------------------------- /QxBaseLib/Base/kPoint.cpp: -------------------------------------------------------------------------------- 1 | #include "StdAfx.h" 2 | #include "kPoint.h" 3 | 4 | ////////////////////////////////////////////////////////////////////////// 5 | // 6 | void kPoint2::set(double *pv) 7 | { 8 | ASSERT(pv); 9 | _a[0] = pv[0];_a[1] = pv[1]; 10 | } 11 | 12 | ////////////////////////////////////////////////////////////////////////// 13 | // 14 | void kPoint3::set(double *pv) 15 | { 16 | ASSERT(pv); 17 | _a[0] = pv[0];_a[1] = pv[1];_a[2] = pv[2]; 18 | } 19 | 20 | void kPoint3::get(double *pv) 21 | { 22 | ASSERT(pv); 23 | pv[0] = _a[0];pv[1] = _a[1];pv[2] = _a[2]; 24 | } 25 | 26 | ////////////////////////////////////////////////////////////////////////// 27 | // 28 | kPoint::kPoint(void) 29 | { 30 | kPoint2 p2(3,4); 31 | kPoint2 p22 = p2; 32 | p22[0] = 4; 33 | 34 | kPoint3 p3(5.0); 35 | kPoint3 p31 = p3; 36 | p31[1] = 6.0; 37 | kPoint3 p32 = p31; 38 | p32[2] = 7.0; 39 | } 40 | 41 | kPoint::~kPoint(void) 42 | { 43 | } 44 | -------------------------------------------------------------------------------- /QxBaseLib/Base/kVector.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxBaseLib/Base/kVector.cpp -------------------------------------------------------------------------------- /QxBaseLib/Geom/QxBRepLib.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxBaseLib/Geom/QxBRepLib.cpp -------------------------------------------------------------------------------- /QxBaseLib/Geom/QxCurveInter.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxBaseLib/Geom/QxCurveInter.cpp -------------------------------------------------------------------------------- /QxBaseLib/Geom/QxCurveLib.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxBaseLib/Geom/QxCurveLib.cpp -------------------------------------------------------------------------------- /QxBaseLib/Geom/QxCurvePicker.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxBaseLib/Geom/QxCurvePicker.cpp -------------------------------------------------------------------------------- /QxBaseLib/Geom/QxFacePointPicker.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxBaseLib/Geom/QxFacePointPicker.cpp -------------------------------------------------------------------------------- /QxBaseLib/Geom/QxSurfLib.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxBaseLib/Geom/QxSurfLib.cpp -------------------------------------------------------------------------------- /QxBaseLib/Geom/kcgAnalysis.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxBaseLib/Geom/kcgAnalysis.cpp -------------------------------------------------------------------------------- /QxBaseLib/Geom/kcgIntersect.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxBaseLib/Geom/kcgIntersect.cpp -------------------------------------------------------------------------------- /QxBaseLib/QxBaseLib.def: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxBaseLib/QxBaseLib.def -------------------------------------------------------------------------------- /QxBaseLib/QxBaseLib.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxBaseLib/QxBaseLib.rc -------------------------------------------------------------------------------- /QxBaseLib/QxBaseLib.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /QxBaseLib/QxBaseLibApp.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxBaseLib/QxBaseLibApp.cpp -------------------------------------------------------------------------------- /QxBaseLib/QxBaseLibApp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxBaseLib/QxBaseLibApp.h -------------------------------------------------------------------------------- /QxBaseLib/ReadMe.txt: -------------------------------------------------------------------------------- 1 | ======================================================================== 2 | MICROSOFT 基础类库 : QxBaseLib 项目概述 3 | ======================================================================== 4 | 5 | 6 | 应用程序向导已为您创建了此 QxBaseLib DLL。此 DLL 不仅演示 Microsoft 基础类的基本使用方法,还可作为您编写 DLL 的起点。 7 | 8 | 本文件概要介绍组成 QxBaseLib DLL 的每个文件的内容。 9 | 10 | QxBaseLib.vcxproj 11 | 这是使用应用程序向导生成的 VC++ 项目的主项目文件,其中包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。 12 | 13 | QxBaseLib.vcxproj.filters 14 | 这是使用“应用程序向导”生成的 VC++ 项目筛选器文件。它包含有关项目文件与筛选器之间的关联信息。在 IDE 中,通过这种关联,在特定节点下以分组形式显示具有相似扩展名的文件。例如,“.cpp”文件与“源文件”筛选器关联。 15 | 16 | QxBaseLib.h 17 | 这是 DLL 的主头文件。它声明了 CQxBaseLibApp 类。 18 | 19 | QxBaseLib.cpp 20 | 这是主 DLL 源文件。它包含 CQxBaseLibApp 类。 21 | 22 | QxBaseLib.rc 23 | 这是程序使用的所有 Microsoft Windows 资源的列表。它包括 RES 子目录中存储的图标、位图和光标。此文件可以直接在 Microsoft Visual C++ 中进行编辑。 24 | 25 | res\QxBaseLib.rc2 26 | 此文件包含不在 Microsoft Visual C++ 中进行编辑的资源。您应该将不可由资源编辑器编辑的所有资源放在此文件中。 27 | 28 | QxBaseLib.def 29 | 此文件包含在 Microsoft Windows 中运行所必需的 DLL 的有关信息。它定义了 DLL 的名称和说明等参数,而且还从 DLL 导出函数。 30 | 31 | ///////////////////////////////////////////////////////////////////////////// 32 | 其他标准文件: 33 | 34 | StdAfx.h, StdAfx.cpp 35 | 这些文件用于生成名为 QxBaseLib.pch 的预编译头 (PCH) 文件和名为 StdAfx.obj 的预编译类型文件。 36 | 37 | Resource.h 38 | 这是标准头文件,可用于定义新的资源 ID。Microsoft Visual C++ 将读取并更新此文件。 39 | 40 | ///////////////////////////////////////////////////////////////////////////// 41 | 其他注释: 42 | 43 | 应用程序向导使用“TODO:”来指示应添加或自定义的源代码部分。 44 | 45 | ///////////////////////////////////////////////////////////////////////////// 46 | -------------------------------------------------------------------------------- /QxBaseLib/Resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxBaseLib/Resource.h -------------------------------------------------------------------------------- /QxBaseLib/Utils/QxBaseUtils.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxBaseLib/Utils/QxBaseUtils.cpp -------------------------------------------------------------------------------- /QxBaseLib/include/KCommonError.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxBaseLib/include/KCommonError.h -------------------------------------------------------------------------------- /QxBaseLib/include/QxBRepLib.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxBaseLib/include/QxBRepLib.h -------------------------------------------------------------------------------- /QxBaseLib/include/QxBaseDef.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxBaseLib/include/QxBaseDef.h -------------------------------------------------------------------------------- /QxBaseLib/include/QxBaseUtils.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxBaseLib/include/QxBaseUtils.h -------------------------------------------------------------------------------- /QxBaseLib/include/QxCurveInter.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxBaseLib/include/QxCurveInter.h -------------------------------------------------------------------------------- /QxBaseLib/include/QxCurveLib.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxBaseLib/include/QxCurveLib.h -------------------------------------------------------------------------------- /QxBaseLib/include/QxCurvePicker.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxBaseLib/include/QxCurvePicker.h -------------------------------------------------------------------------------- /QxBaseLib/include/QxDbgTool.h: -------------------------------------------------------------------------------- 1 | // 2 | #ifndef _QX_DBG_TOOL_H_ 3 | #define _QX_DBG_TOOL_H_ 4 | 5 | #include "QxLibDef.h" 6 | 7 | #ifndef KTRACE 8 | #ifdef _DEBUG 9 | #define KTRACE glb_Trace 10 | #else 11 | #define KTRACE 12 | #endif 13 | #endif 14 | 15 | QXLIB_API void glb_Trace(char *szfmt,...); 16 | 17 | #endif -------------------------------------------------------------------------------- /QxBaseLib/include/QxFacePointPicker.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxBaseLib/include/QxFacePointPicker.h -------------------------------------------------------------------------------- /QxBaseLib/include/QxInputBase.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxBaseLib/include/QxInputBase.h -------------------------------------------------------------------------------- /QxBaseLib/include/QxLibDef.h: -------------------------------------------------------------------------------- 1 | #ifndef _QX_LIB_DEF_H_ 2 | #define _QX_LIB_DEF_H_ 3 | 4 | #ifndef QXLIB_API 5 | #ifdef QXLIB_DLL 6 | #define QXLIB_API _declspec(dllexport) 7 | #else 8 | #define QXLIB_API _declspec(dllimport) 9 | #endif 10 | #endif 11 | 12 | #endif -------------------------------------------------------------------------------- /QxBaseLib/include/QxPrecision.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxBaseLib/include/QxPrecision.h -------------------------------------------------------------------------------- /QxBaseLib/include/QxSurfLib.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxBaseLib/include/QxSurfLib.h -------------------------------------------------------------------------------- /QxBaseLib/include/kBase.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxBaseLib/include/kBase.h -------------------------------------------------------------------------------- /QxBaseLib/include/kColor.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxBaseLib/include/kColor.h -------------------------------------------------------------------------------- /QxBaseLib/include/kPoint.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxBaseLib/include/kPoint.h -------------------------------------------------------------------------------- /QxBaseLib/include/kVector.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxBaseLib/include/kVector.h -------------------------------------------------------------------------------- /QxBaseLib/include/kcgAnalysis.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxBaseLib/include/kcgAnalysis.h -------------------------------------------------------------------------------- /QxBaseLib/include/kcgIntersect.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxBaseLib/include/kcgIntersect.h -------------------------------------------------------------------------------- /QxBaseLib/occinc/OccGeom.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxBaseLib/occinc/OccGeom.h -------------------------------------------------------------------------------- /QxBaseLib/occinc/OccGeomAPI.h: -------------------------------------------------------------------------------- 1 | #ifndef _OCCT_GEOM_API_H_ 2 | #define _OCCT_GEOM_API_H_ 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | #include 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /QxBaseLib/occinc/OccTopo.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxBaseLib/occinc/OccTopo.h -------------------------------------------------------------------------------- /QxBaseLib/occinc/OccTopoAPI.h: -------------------------------------------------------------------------------- 1 | #ifndef _OCCT_TOPO_API_H_ 2 | #define _OCCT_TOPO_API_H_ 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | #include 20 | #include 21 | #include 22 | #include 23 | 24 | //#include 25 | #include 26 | #include 27 | #include 28 | #include 29 | #include 30 | 31 | #include 32 | #include 33 | #include 34 | #include 35 | 36 | #include 37 | #include 38 | #include 39 | #include 40 | #include 41 | #include 42 | #include 43 | #include 44 | #include 45 | #include 46 | #include 47 | #include 48 | #include 49 | #include 50 | 51 | #include 52 | #include 53 | #include 54 | #include 55 | #include 56 | #include 57 | #include 58 | #include 59 | #include 60 | #include 61 | #include 62 | #include 63 | 64 | #endif 65 | -------------------------------------------------------------------------------- /QxBaseLib/res/QxBaseLib.rc2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxBaseLib/res/QxBaseLib.rc2 -------------------------------------------------------------------------------- /QxBaseLib/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxBaseLib/stdafx.cpp -------------------------------------------------------------------------------- /QxBaseLib/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxBaseLib/stdafx.h -------------------------------------------------------------------------------- /QxBaseLib/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxBaseLib/targetver.h -------------------------------------------------------------------------------- /QxCurvePlugin/Dialogs/TextEditDialog.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/Dialogs/TextEditDialog.cpp -------------------------------------------------------------------------------- /QxCurvePlugin/Dialogs/TextEditDialog.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/Dialogs/TextEditDialog.h -------------------------------------------------------------------------------- /QxCurvePlugin/Edit/kcmCurveBlend.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/Edit/kcmCurveBlend.cpp -------------------------------------------------------------------------------- /QxCurvePlugin/Edit/kcmCurveBlend.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/Edit/kcmCurveBlend.h -------------------------------------------------------------------------------- /QxCurvePlugin/Edit/kcmCurveBreak.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/Edit/kcmCurveBreak.cpp -------------------------------------------------------------------------------- /QxCurvePlugin/Edit/kcmCurveBreak.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/Edit/kcmCurveBreak.h -------------------------------------------------------------------------------- /QxCurvePlugin/Edit/kcmCurveFillet.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/Edit/kcmCurveFillet.cpp -------------------------------------------------------------------------------- /QxCurvePlugin/Edit/kcmCurveFillet.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/Edit/kcmCurveFillet.h -------------------------------------------------------------------------------- /QxCurvePlugin/Edit/kcmCurveOffset.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/Edit/kcmCurveOffset.cpp -------------------------------------------------------------------------------- /QxCurvePlugin/Edit/kcmCurveOffset.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/Edit/kcmCurveOffset.h -------------------------------------------------------------------------------- /QxCurvePlugin/Edit/kcmCurvePolyline.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/Edit/kcmCurvePolyline.cpp -------------------------------------------------------------------------------- /QxCurvePlugin/Edit/kcmCurvePolyline.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/Edit/kcmCurvePolyline.h -------------------------------------------------------------------------------- /QxCurvePlugin/Edit/kcmCurveTrim.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/Edit/kcmCurveTrim.cpp -------------------------------------------------------------------------------- /QxCurvePlugin/Edit/kcmCurveTrim.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/Edit/kcmCurveTrim.h -------------------------------------------------------------------------------- /QxCurvePlugin/Edit/kcmFaceCurve.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/Edit/kcmFaceCurve.cpp -------------------------------------------------------------------------------- /QxCurvePlugin/Edit/kcmFaceCurve.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/Edit/kcmFaceCurve.h -------------------------------------------------------------------------------- /QxCurvePlugin/Edit/kcmInterCurve.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/Edit/kcmInterCurve.cpp -------------------------------------------------------------------------------- /QxCurvePlugin/Edit/kcmInterCurve.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/Edit/kcmInterCurve.h -------------------------------------------------------------------------------- /QxCurvePlugin/Edit/kcmNormProjCurve.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/Edit/kcmNormProjCurve.cpp -------------------------------------------------------------------------------- /QxCurvePlugin/Edit/kcmNormProjCurve.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/Edit/kcmNormProjCurve.h -------------------------------------------------------------------------------- /QxCurvePlugin/Make/kcmArc.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/Make/kcmArc.cpp -------------------------------------------------------------------------------- /QxCurvePlugin/Make/kcmArc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/Make/kcmArc.h -------------------------------------------------------------------------------- /QxCurvePlugin/Make/kcmCircle.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/Make/kcmCircle.cpp -------------------------------------------------------------------------------- /QxCurvePlugin/Make/kcmCircle.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/Make/kcmCircle.h -------------------------------------------------------------------------------- /QxCurvePlugin/Make/kcmLine.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/Make/kcmLine.cpp -------------------------------------------------------------------------------- /QxCurvePlugin/Make/kcmLine.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/Make/kcmLine.h -------------------------------------------------------------------------------- /QxCurvePlugin/Make/kcmPoint.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/Make/kcmPoint.cpp -------------------------------------------------------------------------------- /QxCurvePlugin/Make/kcmPoint.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/Make/kcmPoint.h -------------------------------------------------------------------------------- /QxCurvePlugin/Make/kcmPolygon.cpp: -------------------------------------------------------------------------------- 1 | #include "StdAfx.h" 2 | #include "kcmpolygon.h" 3 | 4 | kcmPolygon::kcmPolygon(void) 5 | { 6 | } 7 | 8 | kcmPolygon::~kcmPolygon(void) 9 | { 10 | } 11 | -------------------------------------------------------------------------------- /QxCurvePlugin/Make/kcmPolygon.h: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////// 2 | // 3 | #ifndef _KCM_POLYGON_H_ 4 | #define _KCM_POLYGON_H_ 5 | 6 | #include "kiCommand.h" 7 | #include "kiOptionSet.h" 8 | 9 | class kcmPolygon : public kiCommand 10 | { 11 | public: 12 | kcmPolygon(void); 13 | virtual ~kcmPolygon(void); 14 | 15 | 16 | }; 17 | 18 | #endif -------------------------------------------------------------------------------- /QxCurvePlugin/Make/kcmRect.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/Make/kcmRect.cpp -------------------------------------------------------------------------------- /QxCurvePlugin/Make/kcmRect.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/Make/kcmRect.h -------------------------------------------------------------------------------- /QxCurvePlugin/Make/kcmSpline.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/Make/kcmSpline.cpp -------------------------------------------------------------------------------- /QxCurvePlugin/Make/kcmSpline.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/Make/kcmSpline.h -------------------------------------------------------------------------------- /QxCurvePlugin/Make/kcmWireText.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/Make/kcmWireText.cpp -------------------------------------------------------------------------------- /QxCurvePlugin/Make/kcmWireText.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/Make/kcmWireText.h -------------------------------------------------------------------------------- /QxCurvePlugin/QxCurvePlugin.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/QxCurvePlugin.cpp -------------------------------------------------------------------------------- /QxCurvePlugin/QxCurvePlugin.def: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/QxCurvePlugin.def -------------------------------------------------------------------------------- /QxCurvePlugin/QxCurvePlugin.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/QxCurvePlugin.h -------------------------------------------------------------------------------- /QxCurvePlugin/QxCurvePlugin.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/QxCurvePlugin.rc -------------------------------------------------------------------------------- /QxCurvePlugin/QxCurvePlugin.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /QxCurvePlugin/QxCurvePluginApp.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/QxCurvePluginApp.cpp -------------------------------------------------------------------------------- /QxCurvePlugin/QxCurvePluginApp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/QxCurvePluginApp.h -------------------------------------------------------------------------------- /QxCurvePlugin/Resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/Resource.h -------------------------------------------------------------------------------- /QxCurvePlugin/kcmSewCurve.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/kcmSewCurve.cpp -------------------------------------------------------------------------------- /QxCurvePlugin/kcmSewCurve.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/kcmSewCurve.h -------------------------------------------------------------------------------- /QxCurvePlugin/res/QxCurvePlugin.rc2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/res/QxCurvePlugin.rc2 -------------------------------------------------------------------------------- /QxCurvePlugin/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/stdafx.cpp -------------------------------------------------------------------------------- /QxCurvePlugin/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/stdafx.h -------------------------------------------------------------------------------- /QxCurvePlugin/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxCurvePlugin/targetver.h -------------------------------------------------------------------------------- /QxDataExchg/DXF/dl_exception.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** Copyright (C) 2001-2011 RibbonSoft. All rights reserved. 3 | ** Copyright (C) 2001 Robert J. Campbell Jr. 4 | ** 5 | ** This file is part of the dxflib project. 6 | ** 7 | ** This file may be distributed and/or modified under the terms of the 8 | ** GNU General Public License version 2 as published by the Free Software 9 | ** Foundation and appearing in the file LICENSE.GPL included in the 10 | ** packaging of this file. 11 | ** 12 | ** Licensees holding valid dxflib Professional Edition licenses may use 13 | ** this file in accordance with the dxflib Commercial License 14 | ** Agreement provided with the Software. 15 | ** 16 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 17 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 18 | ** 19 | ** See http://www.ribbonsoft.com for further details. 20 | ** 21 | ** Contact info@ribbonsoft.com if any conditions of this licensing are 22 | ** not clear to you. 23 | ** 24 | **********************************************************************/ 25 | 26 | #ifndef DL_EXCEPTION_H 27 | #define DL_EXCEPTION_H 28 | 29 | #if _MSC_VER > 1000 30 | #pragma once 31 | #endif // _MSC_VER > 1000 32 | 33 | /** 34 | * Used for exception handling. 35 | */ 36 | class DL_Exception {} 37 | ; 38 | 39 | /** 40 | * Used for exception handling. 41 | */ 42 | class DL_NullStrExc : public DL_Exception {} 43 | ; 44 | 45 | /** 46 | * Used for exception handling. 47 | */ 48 | class DL_GroupCodeExc : public DL_Exception { 49 | DL_GroupCodeExc(int gc=0) : groupCode(gc) {} 50 | int groupCode; 51 | }; 52 | #endif 53 | 54 | -------------------------------------------------------------------------------- /QxDataExchg/DXF/dl_writer_ascii.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** Copyright (C) 2001-2011 RibbonSoft. All rights reserved. 3 | ** Copyright (C) 2001 Robert J. Campbell Jr. 4 | ** 5 | ** This file is part of the dxflib project. 6 | ** 7 | ** This file may be distributed and/or modified under the terms of the 8 | ** GNU General Public License version 2 as published by the Free Software 9 | ** Foundation and appearing in the file LICENSE.GPL included in the 10 | ** packaging of this file. 11 | ** 12 | ** Licensees holding valid dxflib Professional Edition licenses may use 13 | ** this file in accordance with the dxflib Commercial License 14 | ** Agreement provided with the Software. 15 | ** 16 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 17 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 18 | ** 19 | ** See http://www.ribbonsoft.com for further details. 20 | ** 21 | ** Contact info@ribbonsoft.com if any conditions of this licensing are 22 | ** not clear to you. 23 | ** 24 | **********************************************************************/ 25 | 26 | #ifndef DL_WRITER_ASCII_H 27 | #define DL_WRITER_ASCII_H 28 | 29 | #if _MSC_VER > 1000 30 | #pragma once 31 | #endif // _MSC_VER > 1000 32 | 33 | #include "dl_writer.h" 34 | #include 35 | #include 36 | using std::string; 37 | 38 | /** 39 | * Implements functions defined in DL_Writer for writing low 40 | * level DXF constructs to an ASCII format DXF file. 41 | * 42 | * @para fname File name of the file to be created. 43 | * @para version DXF version. Defaults to DL_VERSION_2002. 44 | * 45 | * @todo What if \c fname is NULL? Or \c fname can't be opened for 46 | * another reason? 47 | */ 48 | class DL_WriterA : public DL_Writer { 49 | public: 50 | DL_WriterA(const char* fname, DL_Codes::version version=DL_VERSION_2000) 51 | : DL_Writer(version), m_ofile(fname) {} 52 | virtual ~DL_WriterA() {} 53 | 54 | bool openFailed() const; 55 | void close() const; 56 | void dxfReal(int gc, double value) const; 57 | void dxfInt(int gc, int value) const; 58 | void dxfHex(int gc, int value) const; 59 | void dxfString(int gc, const char* value) const; 60 | void dxfString(int gc, const string& value) const; 61 | 62 | static void strReplace(char* str, char src, char dest); 63 | 64 | private: 65 | /** 66 | * DXF file to be created. 67 | */ 68 | mutable std::ofstream m_ofile; 69 | 70 | }; 71 | 72 | #endif 73 | 74 | -------------------------------------------------------------------------------- /QxDataExchg/Dialogs/XCAFDocDialog.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxDataExchg/Dialogs/XCAFDocDialog.cpp -------------------------------------------------------------------------------- /QxDataExchg/Dialogs/XCAFDocDialog.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxDataExchg/Dialogs/XCAFDocDialog.h -------------------------------------------------------------------------------- /QxDataExchg/Export/kcBRepExport.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxDataExchg/Export/kcBRepExport.cpp -------------------------------------------------------------------------------- /QxDataExchg/Export/kcBaseExport.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxDataExchg/Export/kcBaseExport.cpp -------------------------------------------------------------------------------- /QxDataExchg/Export/kcIGESExport.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxDataExchg/Export/kcIGESExport.cpp -------------------------------------------------------------------------------- /QxDataExchg/Export/kcSTEPExport.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxDataExchg/Export/kcSTEPExport.cpp -------------------------------------------------------------------------------- /QxDataExchg/Export/kcgBRepFile.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxDataExchg/Export/kcgBRepFile.cpp -------------------------------------------------------------------------------- /QxDataExchg/Import/kcBRepReader.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxDataExchg/Import/kcBRepReader.cpp -------------------------------------------------------------------------------- /QxDataExchg/Import/kcBaseReader.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxDataExchg/Import/kcBaseReader.cpp -------------------------------------------------------------------------------- /QxDataExchg/Import/kcDXFReader.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxDataExchg/Import/kcDXFReader.cpp -------------------------------------------------------------------------------- /QxDataExchg/Import/kcIGESReader.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxDataExchg/Import/kcIGESReader.cpp -------------------------------------------------------------------------------- /QxDataExchg/Import/kcSTEPReader.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxDataExchg/Import/kcSTEPReader.cpp -------------------------------------------------------------------------------- /QxDataExchg/Import/kcShapeAttrib.cpp: -------------------------------------------------------------------------------- 1 | #include "stdafx.h" 2 | #include "kcShapeAttrib.h" 3 | 4 | IMPLEMENT_STANDARD_RTTIEXT(kcShapeAttrib,Standard_Transient) 5 | 6 | kcShapeAttrib::kcShapeAttrib(void) 7 | { 8 | bHasColor_ = false; 9 | } 10 | 11 | 12 | kcShapeAttrib::~kcShapeAttrib(void) 13 | { 14 | } 15 | 16 | void kcShapeAttrib::SetColor(double r,double g,double b) 17 | { 18 | bHasColor_ = true; 19 | aColor_.SetValues(r,g,b,Quantity_TOC_RGB); 20 | } 21 | 22 | void kcShapeAttrib::SetColor(const Quantity_Color &aCol) 23 | { 24 | aColor_ = aCol; 25 | bHasColor_ = true; 26 | } 27 | 28 | Quantity_Color kcShapeAttrib::GetColor() const 29 | { 30 | ASSERT(HasColor()); 31 | return aColor_; 32 | } -------------------------------------------------------------------------------- /QxDataExchg/Import/kcShapeAttribMgr.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxDataExchg/Import/kcShapeAttribMgr.cpp -------------------------------------------------------------------------------- /QxDataExchg/Import/kcStepLayerMgr.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxDataExchg/Import/kcStepLayerMgr.cpp -------------------------------------------------------------------------------- /QxDataExchg/Import/kcStepMbStringMgr.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxDataExchg/Import/kcStepMbStringMgr.cpp -------------------------------------------------------------------------------- /QxDataExchg/Import/kcXCAFImportStep.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxDataExchg/Import/kcXCAFImportStep.cpp -------------------------------------------------------------------------------- /QxDataExchg/QxDataExchg.def: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxDataExchg/QxDataExchg.def -------------------------------------------------------------------------------- /QxDataExchg/QxDataExchg.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxDataExchg/QxDataExchg.rc -------------------------------------------------------------------------------- /QxDataExchg/QxDataExchg.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /QxDataExchg/QxDataExchgApp.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxDataExchg/QxDataExchgApp.cpp -------------------------------------------------------------------------------- /QxDataExchg/QxDataExchgApp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxDataExchg/QxDataExchgApp.h -------------------------------------------------------------------------------- /QxDataExchg/ReadMe.txt: -------------------------------------------------------------------------------- 1 | ======================================================================== 2 | MICROSOFT 基础类库 : QxDataExchg 项目概述 3 | ======================================================================== 4 | 5 | 6 | 应用程序向导已为您创建了此 QxDataExchg DLL。此 DLL 不仅演示 Microsoft 基础类的基本使用方法,还可作为您编写 DLL 的起点。 7 | 8 | 本文件概要介绍组成 QxDataExchg DLL 的每个文件的内容。 9 | 10 | QxDataExchg.vcxproj 11 | 这是使用应用程序向导生成的 VC++ 项目的主项目文件,其中包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。 12 | 13 | QxDataExchg.vcxproj.filters 14 | 这是使用“应用程序向导”生成的 VC++ 项目筛选器文件。它包含有关项目文件与筛选器之间的关联信息。在 IDE 中,通过这种关联,在特定节点下以分组形式显示具有相似扩展名的文件。例如,“.cpp”文件与“源文件”筛选器关联。 15 | 16 | QxDataExchg.h 17 | 这是 DLL 的主头文件。它声明了 CQxDataExchgApp 类。 18 | 19 | QxDataExchg.cpp 20 | 这是主 DLL 源文件。它包含 CQxDataExchgApp 类。 21 | 22 | QxDataExchg.rc 23 | 这是程序使用的所有 Microsoft Windows 资源的列表。它包括 RES 子目录中存储的图标、位图和光标。此文件可以直接在 Microsoft Visual C++ 中进行编辑。 24 | 25 | res\QxDataExchg.rc2 26 | 此文件包含不在 Microsoft Visual C++ 中进行编辑的资源。您应该将不可由资源编辑器编辑的所有资源放在此文件中。 27 | 28 | QxDataExchg.def 29 | 此文件包含在 Microsoft Windows 中运行所必需的 DLL 的有关信息。它定义了 DLL 的名称和说明等参数,而且还从 DLL 导出函数。 30 | 31 | ///////////////////////////////////////////////////////////////////////////// 32 | 其他标准文件: 33 | 34 | StdAfx.h, StdAfx.cpp 35 | 这些文件用于生成名为 QxDataExchg.pch 的预编译头 (PCH) 文件和名为 StdAfx.obj 的预编译类型文件。 36 | 37 | Resource.h 38 | 这是标准头文件,可用于定义新的资源 ID。Microsoft Visual C++ 将读取并更新此文件。 39 | 40 | ///////////////////////////////////////////////////////////////////////////// 41 | 其他注释: 42 | 43 | 应用程序向导使用“TODO:”来指示应添加或自定义的源代码部分。 44 | 45 | ///////////////////////////////////////////////////////////////////////////// 46 | -------------------------------------------------------------------------------- /QxDataExchg/include/kcBRepExport.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "kcBaseExport.h" 4 | 5 | class QXLIB_API kcBRepExport : public kcBaseExport 6 | { 7 | public: 8 | kcBRepExport(kcModel *pModel); 9 | ~kcBRepExport(void); 10 | 11 | virtual void DoExport(); 12 | }; 13 | 14 | -------------------------------------------------------------------------------- /QxDataExchg/include/kcBRepReader.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxDataExchg/include/kcBRepReader.h -------------------------------------------------------------------------------- /QxDataExchg/include/kcBaseExport.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxDataExchg/include/kcBaseExport.h -------------------------------------------------------------------------------- /QxDataExchg/include/kcBaseReader.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxDataExchg/include/kcBaseReader.h -------------------------------------------------------------------------------- /QxDataExchg/include/kcDXFReader.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxDataExchg/include/kcDXFReader.h -------------------------------------------------------------------------------- /QxDataExchg/include/kcIGESExport.h: -------------------------------------------------------------------------------- 1 | // 2 | #ifndef _KC_IGES_EXPORT_H_ 3 | #define _KC_IGES_EXPORT_H_ 4 | 5 | #include "kcBaseExport.h" 6 | 7 | class QXLIB_API kcIGESExport : public kcBaseExport 8 | { 9 | public: 10 | kcIGESExport(kcModel *pModel); 11 | ~kcIGESExport(void); 12 | 13 | virtual void DoExport(); 14 | 15 | protected: 16 | bool WriteIGES(const Standard_CString& aFileName); 17 | }; 18 | 19 | #endif -------------------------------------------------------------------------------- /QxDataExchg/include/kcIGESReader.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxDataExchg/include/kcIGESReader.h -------------------------------------------------------------------------------- /QxDataExchg/include/kcSTEPExport.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | #include "kcBaseExport.h" 6 | 7 | class QXLIB_API kcSTEPExport : public kcBaseExport 8 | { 9 | public: 10 | kcSTEPExport(kcModel *pModel); 11 | ~kcSTEPExport(void); 12 | 13 | virtual void DoExport(); 14 | 15 | protected: 16 | IFSelect_ReturnStatus WriteSTEP(const Standard_CString& aFileName); 17 | STEPControl_StepModelType GetExportType(const TopoDS_Shape& aShape); 18 | }; 19 | 20 | -------------------------------------------------------------------------------- /QxDataExchg/include/kcSTEPReader.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxDataExchg/include/kcSTEPReader.h -------------------------------------------------------------------------------- /QxDataExchg/include/kcShapeAttrib.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxDataExchg/include/kcShapeAttrib.h -------------------------------------------------------------------------------- /QxDataExchg/include/kcShapeAttribMgr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxDataExchg/include/kcShapeAttribMgr.h -------------------------------------------------------------------------------- /QxDataExchg/include/kcStepLayerMgr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxDataExchg/include/kcStepLayerMgr.h -------------------------------------------------------------------------------- /QxDataExchg/include/kcStepMbStringMgr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxDataExchg/include/kcStepMbStringMgr.h -------------------------------------------------------------------------------- /QxDataExchg/include/kcXCAFImportStep.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxDataExchg/include/kcXCAFImportStep.h -------------------------------------------------------------------------------- /QxDataExchg/include/kcgBRepFile.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxDataExchg/include/kcgBRepFile.h -------------------------------------------------------------------------------- /QxDataExchg/res/QxDataExchg.rc2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxDataExchg/res/QxDataExchg.rc2 -------------------------------------------------------------------------------- /QxDataExchg/resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxDataExchg/resource.h -------------------------------------------------------------------------------- /QxDataExchg/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxDataExchg/stdafx.cpp -------------------------------------------------------------------------------- /QxDataExchg/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxDataExchg/stdafx.h -------------------------------------------------------------------------------- /QxDataExchg/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxDataExchg/targetver.h -------------------------------------------------------------------------------- /QxLuaScript/Dialogs/LuaScriptDlg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxLuaScript/Dialogs/LuaScriptDlg.cpp -------------------------------------------------------------------------------- /QxLuaScript/Dialogs/LuaScriptDlg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxLuaScript/Dialogs/LuaScriptDlg.h -------------------------------------------------------------------------------- /QxLuaScript/QxLuaScript.def: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxLuaScript/QxLuaScript.def -------------------------------------------------------------------------------- /QxLuaScript/QxLuaScript.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxLuaScript/QxLuaScript.rc -------------------------------------------------------------------------------- /QxLuaScript/QxLuaScript.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /QxLuaScript/QxLuaScriptApp.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxLuaScript/QxLuaScriptApp.cpp -------------------------------------------------------------------------------- /QxLuaScript/QxLuaScriptApp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxLuaScript/QxLuaScriptApp.h -------------------------------------------------------------------------------- /QxLuaScript/ReadMe.txt: -------------------------------------------------------------------------------- 1 | ======================================================================== 2 | MICROSOFT 基础类库 : QxLuaScript 项目概述 3 | ======================================================================== 4 | 5 | 6 | 应用程序向导已为您创建了此 QxLuaScript DLL。此 DLL 不仅演示 Microsoft 基础类的基本使用方法,还可作为您编写 DLL 的起点。 7 | 8 | 本文件概要介绍组成 QxLuaScript DLL 的每个文件的内容。 9 | 10 | QxLuaScript.vcxproj 11 | 这是使用应用程序向导生成的 VC++ 项目的主项目文件,其中包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。 12 | 13 | QxLuaScript.vcxproj.filters 14 | 这是使用“应用程序向导”生成的 VC++ 项目筛选器文件。它包含有关项目文件与筛选器之间的关联信息。在 IDE 中,通过这种关联,在特定节点下以分组形式显示具有相似扩展名的文件。例如,“.cpp”文件与“源文件”筛选器关联。 15 | 16 | QxLuaScript.h 17 | 这是 DLL 的主头文件。它声明了 CQxLuaScriptApp 类。 18 | 19 | QxLuaScript.cpp 20 | 这是主 DLL 源文件。它包含 CQxLuaScriptApp 类。 21 | 22 | QxLuaScript.rc 23 | 这是程序使用的所有 Microsoft Windows 资源的列表。它包括 RES 子目录中存储的图标、位图和光标。此文件可以直接在 Microsoft Visual C++ 中进行编辑。 24 | 25 | res\QxLuaScript.rc2 26 | 此文件包含不在 Microsoft Visual C++ 中进行编辑的资源。您应该将不可由资源编辑器编辑的所有资源放在此文件中。 27 | 28 | QxLuaScript.def 29 | 此文件包含在 Microsoft Windows 中运行所必需的 DLL 的有关信息。它定义了 DLL 的名称和说明等参数,而且还从 DLL 导出函数。 30 | 31 | ///////////////////////////////////////////////////////////////////////////// 32 | 其他标准文件: 33 | 34 | StdAfx.h, StdAfx.cpp 35 | 这些文件用于生成名为 QxLuaScript.pch 的预编译头 (PCH) 文件和名为 StdAfx.obj 的预编译类型文件。 36 | 37 | Resource.h 38 | 这是标准头文件,可用于定义新的资源 ID。Microsoft Visual C++ 将读取并更新此文件。 39 | 40 | ///////////////////////////////////////////////////////////////////////////// 41 | 其他注释: 42 | 43 | 应用程序向导使用“TODO:”来指示应添加或自定义的源代码部分。 44 | 45 | ///////////////////////////////////////////////////////////////////////////// 46 | -------------------------------------------------------------------------------- /QxLuaScript/Script/QxLuaScript.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxLuaScript/Script/QxLuaScript.cpp -------------------------------------------------------------------------------- /QxLuaScript/Script/QxLuaState.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxLuaScript/Script/QxLuaState.cpp -------------------------------------------------------------------------------- /QxLuaScript/Script/sciModelLib.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxLuaScript/Script/sciModelLib.cpp -------------------------------------------------------------------------------- /QxLuaScript/Script/sciModelLib.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxLuaScript/Script/sciModelLib.h -------------------------------------------------------------------------------- /QxLuaScript/Script/sciTopolLib.cpp: -------------------------------------------------------------------------------- 1 | #include "stdafx.h" 2 | #include "kBase.h" 3 | #include "QxModelLib.h" 4 | #include "QxLuaState.h" 5 | #include "sciTopolLib.h" 6 | 7 | class LuaTopoShape{ 8 | public: 9 | LuaTopoShape(TopoDS_Shape ashape){ 10 | _shape = ashape; 11 | } 12 | 13 | public: 14 | TopoDS_Shape _shape; 15 | }; 16 | 17 | int topol_interp_spline(lua_State *L) 18 | { 19 | return 0; 20 | } 21 | 22 | static const struct luaL_Reg topollib[] = { 23 | {"interp_spline",topol_interp_spline}, 24 | {NULL,NULL} 25 | }; 26 | 27 | int luaopen_topol(lua_State *L) 28 | { 29 | luaL_newlib(L,topollib); 30 | return 1; 31 | } 32 | 33 | void InitLuaExtTopolLib() 34 | { 35 | QxLuaState::RegisterModule("Topol",luaopen_topol,"topol module"); 36 | } -------------------------------------------------------------------------------- /QxLuaScript/Script/sciTopolLib.h: -------------------------------------------------------------------------------- 1 | /// 2 | #ifndef _SCI_TOPOL_LIB_H_ 3 | #define _SCI_TOPOL_LIB_H_ 4 | 5 | void InitLuaExtTopolLib(); 6 | 7 | #endif -------------------------------------------------------------------------------- /QxLuaScript/include/QxLuaScript.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxLuaScript/include/QxLuaScript.h -------------------------------------------------------------------------------- /QxLuaScript/include/QxLuaState.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxLuaScript/include/QxLuaState.h -------------------------------------------------------------------------------- /QxLuaScript/res/QxLuaScript.rc2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxLuaScript/res/QxLuaScript.rc2 -------------------------------------------------------------------------------- /QxLuaScript/resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxLuaScript/resource.h -------------------------------------------------------------------------------- /QxLuaScript/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxLuaScript/stdafx.cpp -------------------------------------------------------------------------------- /QxLuaScript/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxLuaScript/stdafx.h -------------------------------------------------------------------------------- /QxLuaScript/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxLuaScript/targetver.h -------------------------------------------------------------------------------- /QxModelLib/QxModelLib.def: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/QxModelLib.def -------------------------------------------------------------------------------- /QxModelLib/QxModelLib.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/QxModelLib.rc -------------------------------------------------------------------------------- /QxModelLib/QxModelLib.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /QxModelLib/QxModelLibApp.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/QxModelLibApp.cpp -------------------------------------------------------------------------------- /QxModelLib/QxModelLibApp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/QxModelLibApp.h -------------------------------------------------------------------------------- /QxModelLib/ReadMe.txt: -------------------------------------------------------------------------------- 1 | ======================================================================== 2 | MICROSOFT 基础类库 : QxModelLib 项目概述 3 | ======================================================================== 4 | 5 | 6 | 应用程序向导已为您创建了此 QxModelLib DLL。此 DLL 不仅演示 Microsoft 基础类的基本使用方法,还可作为您编写 DLL 的起点。 7 | 8 | 本文件概要介绍组成 QxModelLib DLL 的每个文件的内容。 9 | 10 | QxModelLib.vcxproj 11 | 这是使用应用程序向导生成的 VC++ 项目的主项目文件,其中包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。 12 | 13 | QxModelLib.vcxproj.filters 14 | 这是使用“应用程序向导”生成的 VC++ 项目筛选器文件。它包含有关项目文件与筛选器之间的关联信息。在 IDE 中,通过这种关联,在特定节点下以分组形式显示具有相似扩展名的文件。例如,“.cpp”文件与“源文件”筛选器关联。 15 | 16 | QxModelLib.h 17 | 这是 DLL 的主头文件。它声明了 CQxModelLibApp 类。 18 | 19 | QxModelLib.cpp 20 | 这是主 DLL 源文件。它包含 CQxModelLibApp 类。 21 | 22 | QxModelLib.rc 23 | 这是程序使用的所有 Microsoft Windows 资源的列表。它包括 RES 子目录中存储的图标、位图和光标。此文件可以直接在 Microsoft Visual C++ 中进行编辑。 24 | 25 | res\QxModelLib.rc2 26 | 此文件包含不在 Microsoft Visual C++ 中进行编辑的资源。您应该将不可由资源编辑器编辑的所有资源放在此文件中。 27 | 28 | QxModelLib.def 29 | 此文件包含在 Microsoft Windows 中运行所必需的 DLL 的有关信息。它定义了 DLL 的名称和说明等参数,而且还从 DLL 导出函数。 30 | 31 | ///////////////////////////////////////////////////////////////////////////// 32 | 其他标准文件: 33 | 34 | StdAfx.h, StdAfx.cpp 35 | 这些文件用于生成名为 QxModelLib.pch 的预编译头 (PCH) 文件和名为 StdAfx.obj 的预编译类型文件。 36 | 37 | Resource.h 38 | 这是标准头文件,可用于定义新的资源 ID。Microsoft Visual C++ 将读取并更新此文件。 39 | 40 | ///////////////////////////////////////////////////////////////////////////// 41 | 其他注释: 42 | 43 | 应用程序向导使用“TODO:”来指示应添加或自定义的源代码部分。 44 | 45 | ///////////////////////////////////////////////////////////////////////////// 46 | -------------------------------------------------------------------------------- /QxModelLib/include/AIS_EntityShape.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/include/AIS_EntityShape.h -------------------------------------------------------------------------------- /QxModelLib/include/OxModel.h: -------------------------------------------------------------------------------- 1 | #ifndef _OX_MODEL_H_ 2 | #define _OX_MODEL_H_ 3 | 4 | #include "QxLibDef.h" 5 | 6 | class kcLayer; 7 | class kcModel; 8 | 9 | QXLIB_API kcLayer* PickLayerByDlg(CWnd *pParentWnd,kcModel *pModel); 10 | 11 | #endif -------------------------------------------------------------------------------- /QxModelLib/include/QxModelLib.h: -------------------------------------------------------------------------------- 1 | // 2 | #ifndef _QX_MODEL_LIB_H_ 3 | #define _QX_MODEL_LIB_H_ 4 | 5 | #include "kcEntity.h" 6 | #include "kcEntityFactory.h" 7 | #include "kcLayer.h" 8 | #include "kcModel.h" 9 | 10 | #endif -------------------------------------------------------------------------------- /QxModelLib/include/QxStgBlock.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/include/QxStgBlock.h -------------------------------------------------------------------------------- /QxModelLib/include/QxStgModelDef.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/include/QxStgModelDef.h -------------------------------------------------------------------------------- /QxModelLib/include/kcBasePlane.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/include/kcBasePlane.h -------------------------------------------------------------------------------- /QxModelLib/include/kcEntity.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/include/kcEntity.h -------------------------------------------------------------------------------- /QxModelLib/include/kcEntityFactory.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/include/kcEntityFactory.h -------------------------------------------------------------------------------- /QxModelLib/include/kcEntityTrsf.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/include/kcEntityTrsf.h -------------------------------------------------------------------------------- /QxModelLib/include/kcHandleMgr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/include/kcHandleMgr.h -------------------------------------------------------------------------------- /QxModelLib/include/kcLayer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/include/kcLayer.h -------------------------------------------------------------------------------- /QxModelLib/include/kcModel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/include/kcModel.h -------------------------------------------------------------------------------- /QxModelLib/include/kcShapeAttrib.h: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////// 2 | // 3 | #pragma once 4 | 5 | #include 6 | #include 7 | #include "QxLibDef.h" 8 | 9 | class kcShapeAttrib; 10 | DEFINE_STANDARD_HANDLE(kcShapeAttrib,Standard_Transient); 11 | 12 | class kcShapeAttrib : public Standard_Transient 13 | { 14 | public: 15 | kcShapeAttrib(void); 16 | ~kcShapeAttrib(void); 17 | 18 | void SetColor(double r,double g,double b); 19 | void SetColor(const Quantity_Color &aCol); 20 | Quantity_Color GetColor() const; 21 | bool HasColor() const { return bHasColor_; } 22 | 23 | public: 24 | DEFINE_STANDARD_RTTIEXT(kcShapeAttrib,Standard_Transient) 25 | 26 | protected: 27 | bool bHasColor_; 28 | Quantity_Color aColor_; 29 | }; 30 | 31 | -------------------------------------------------------------------------------- /QxModelLib/include/kcShapeAttribMgr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/include/kcShapeAttribMgr.h -------------------------------------------------------------------------------- /QxModelLib/include/kcSnapMngr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/include/kcSnapMngr.h -------------------------------------------------------------------------------- /QxModelLib/include/kiSelSet.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/include/kiSelSet.h -------------------------------------------------------------------------------- /QxModelLib/include/kiSnapMngr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/include/kiSnapMngr.h -------------------------------------------------------------------------------- /QxModelLib/include/kiUndoMgr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/include/kiUndoMgr.h -------------------------------------------------------------------------------- /QxModelLib/include/kuiInterface.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/include/kuiInterface.h -------------------------------------------------------------------------------- /QxModelLib/include/kuiLayersDialog.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/include/kuiLayersDialog.h -------------------------------------------------------------------------------- /QxModelLib/include/kvCoordSystem.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/include/kvCoordSystem.h -------------------------------------------------------------------------------- /QxModelLib/include/kvCoordSystemMgr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/include/kvCoordSystemMgr.h -------------------------------------------------------------------------------- /QxModelLib/include/kvGrid.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/include/kvGrid.h -------------------------------------------------------------------------------- /QxModelLib/include/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/include/stdafx.h -------------------------------------------------------------------------------- /QxModelLib/res/QxModelLib.rc2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/res/QxModelLib.rc2 -------------------------------------------------------------------------------- /QxModelLib/resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/resource.h -------------------------------------------------------------------------------- /QxModelLib/source/AIS_Curve.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/source/AIS_Curve.cpp -------------------------------------------------------------------------------- /QxModelLib/source/AIS_Curve.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef _AIS_CURVE_H_ 3 | #define _AIS_CURVE_H_ 4 | 5 | #include 6 | #include 7 | 8 | // Handle definition 9 | // 10 | DEFINE_STANDARD_HANDLE(AIS_Curve,AIS_InteractiveObject) 11 | 12 | class AIS_Curve : public AIS_InteractiveObject{ 13 | public: 14 | AIS_Curve(const Handle(Geom_Curve)& hCurve); 15 | 16 | //! Returns index 20 by default.
17 | virtual Standard_Integer Signature() const; 18 | 19 | const Handle(Geom_Curve)& Curve() const; 20 | 21 | DEFINE_STANDARD_RTTIEXT(AIS_Curve,AIS_InteractiveObject) 22 | 23 | private: 24 | virtual void Compute(const Handle(PrsMgr_PresentationManager)& aPresentationManager, 25 | const Handle(Prs3d_Presentation)& aPresentation, 26 | const Standard_Integer aMode = 0) ; 27 | 28 | virtual void ComputeSelection(const Handle(SelectMgr_Selection)& aSelection, 29 | const Standard_Integer aMode) ; 30 | 31 | private: 32 | Handle(Geom_Curve) m_hCurve; 33 | }; 34 | 35 | #endif -------------------------------------------------------------------------------- /QxModelLib/source/AIS_EntityShape.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/source/AIS_EntityShape.cpp -------------------------------------------------------------------------------- /QxModelLib/source/Dialogs/kuiLayersDialog.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/source/Dialogs/kuiLayersDialog.cpp -------------------------------------------------------------------------------- /QxModelLib/source/QxStgBlock.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/source/QxStgBlock.cpp -------------------------------------------------------------------------------- /QxModelLib/source/kcBasePlane.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/source/kcBasePlane.cpp -------------------------------------------------------------------------------- /QxModelLib/source/kcEntity.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/source/kcEntity.cpp -------------------------------------------------------------------------------- /QxModelLib/source/kcEntity2.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/source/kcEntity2.cpp -------------------------------------------------------------------------------- /QxModelLib/source/kcEntityFactory.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/source/kcEntityFactory.cpp -------------------------------------------------------------------------------- /QxModelLib/source/kcEntityTrsf.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/source/kcEntityTrsf.cpp -------------------------------------------------------------------------------- /QxModelLib/source/kcHandleMgr.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/source/kcHandleMgr.cpp -------------------------------------------------------------------------------- /QxModelLib/source/kcLayer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/source/kcLayer.cpp -------------------------------------------------------------------------------- /QxModelLib/source/kcModel.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/source/kcModel.cpp -------------------------------------------------------------------------------- /QxModelLib/source/kcModel2.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/source/kcModel2.cpp -------------------------------------------------------------------------------- /QxModelLib/source/kcShapeAttrib.cpp: -------------------------------------------------------------------------------- 1 | #include "stdafx.h" 2 | #include "kcShapeAttrib.h" 3 | 4 | IMPLEMENT_STANDARD_RTTIEXT(kcShapeAttrib,Standard_Transient) 5 | 6 | kcShapeAttrib::kcShapeAttrib(void) 7 | { 8 | bHasColor_ = false; 9 | } 10 | 11 | 12 | kcShapeAttrib::~kcShapeAttrib(void) 13 | { 14 | } 15 | 16 | void kcShapeAttrib::SetColor(double r,double g,double b) 17 | { 18 | bHasColor_ = true; 19 | aColor_.SetValues(r,g,b,Quantity_TOC_RGB); 20 | } 21 | 22 | void kcShapeAttrib::SetColor(const Quantity_Color &aCol) 23 | { 24 | aColor_ = aCol; 25 | bHasColor_ = true; 26 | } 27 | 28 | Quantity_Color kcShapeAttrib::GetColor() const 29 | { 30 | ASSERT(HasColor()); 31 | return aColor_; 32 | } -------------------------------------------------------------------------------- /QxModelLib/source/kcShapeAttribMgr.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/source/kcShapeAttribMgr.cpp -------------------------------------------------------------------------------- /QxModelLib/source/kcSnapMngr.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/source/kcSnapMngr.cpp -------------------------------------------------------------------------------- /QxModelLib/source/kiSelSet.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/source/kiSelSet.cpp -------------------------------------------------------------------------------- /QxModelLib/source/kiSnapMngr.cpp: -------------------------------------------------------------------------------- 1 | #include "StdAfx.h" 2 | #include "kiSnapMngr.h" 3 | 4 | ////////////////////////////////////////////////////////////////////////// 5 | // 6 | kiSnapPoint::kiSnapPoint() 7 | { 8 | _scx = _scy = -1000; 9 | } 10 | 11 | kiSnapPoint::kiSnapPoint(double x,double y,double z) 12 | { 13 | _scx = _scy = -1000; 14 | _point.set(x,y,z); 15 | } 16 | 17 | kiSnapPoint::kiSnapPoint(const kiSnapPoint& other) 18 | { 19 | *this = other; 20 | } 21 | 22 | kiSnapPoint& kiSnapPoint::operator=(const kiSnapPoint& other) 23 | { 24 | _point = other._point; 25 | _scx = other._scx; 26 | _scy = other._scy; 27 | 28 | return *this; 29 | } 30 | 31 | -------------------------------------------------------------------------------- /QxModelLib/source/kiUndoMgr.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/source/kiUndoMgr.cpp -------------------------------------------------------------------------------- /QxModelLib/source/kvCoordSystem.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/source/kvCoordSystem.cpp -------------------------------------------------------------------------------- /QxModelLib/source/kvCoordSystemMgr.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/source/kvCoordSystemMgr.cpp -------------------------------------------------------------------------------- /QxModelLib/source/kvGrid.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/source/kvGrid.cpp -------------------------------------------------------------------------------- /QxModelLib/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/stdafx.cpp -------------------------------------------------------------------------------- /QxModelLib/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxModelLib/targetver.h -------------------------------------------------------------------------------- /QxModelLib/zlib/gzclose.c: -------------------------------------------------------------------------------- 1 | /* gzclose.c -- zlib gzclose() function 2 | * Copyright (C) 2004, 2010 Mark Adler 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | #include "gzguts.h" 7 | 8 | /* gzclose() is in a separate file so that it is linked in only if it is used. 9 | That way the other gzclose functions can be used instead to avoid linking in 10 | unneeded compression or decompression routines. */ 11 | int ZEXPORT gzclose(file) 12 | gzFile file; 13 | { 14 | #ifndef NO_GZCOMPRESS 15 | gz_statep state; 16 | 17 | if (file == NULL) 18 | return Z_STREAM_ERROR; 19 | state = (gz_statep)file; 20 | 21 | return state->mode == GZ_READ ? gzclose_r(file) : gzclose_w(file); 22 | #else 23 | return gzclose_r(file); 24 | #endif 25 | } 26 | -------------------------------------------------------------------------------- /QxModelLib/zlib/inffast.h: -------------------------------------------------------------------------------- 1 | /* inffast.h -- header to use inffast.c 2 | * Copyright (C) 1995-2003, 2010 Mark Adler 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | /* WARNING: this file should *not* be used by applications. It is 7 | part of the implementation of the compression library and is 8 | subject to change. Applications should only use zlib.h. 9 | */ 10 | 11 | void ZLIB_INTERNAL inflate_fast OF((z_streamp strm, unsigned start)); 12 | -------------------------------------------------------------------------------- /QxModelLib/zlib/uncompr.c: -------------------------------------------------------------------------------- 1 | /* uncompr.c -- decompress a memory buffer 2 | * Copyright (C) 1995-2003, 2010 Jean-loup Gailly. 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | /* @(#) $Id$ */ 7 | 8 | #define ZLIB_INTERNAL 9 | #include "zlib.h" 10 | 11 | /* =========================================================================== 12 | Decompresses the source buffer into the destination buffer. sourceLen is 13 | the byte length of the source buffer. Upon entry, destLen is the total 14 | size of the destination buffer, which must be large enough to hold the 15 | entire uncompressed data. (The size of the uncompressed data must have 16 | been saved previously by the compressor and transmitted to the decompressor 17 | by some mechanism outside the scope of this compression library.) 18 | Upon exit, destLen is the actual size of the compressed buffer. 19 | 20 | uncompress returns Z_OK if success, Z_MEM_ERROR if there was not 21 | enough memory, Z_BUF_ERROR if there was not enough room in the output 22 | buffer, or Z_DATA_ERROR if the input data was corrupted. 23 | */ 24 | int ZEXPORT uncompress (dest, destLen, source, sourceLen) 25 | Bytef *dest; 26 | uLongf *destLen; 27 | const Bytef *source; 28 | uLong sourceLen; 29 | { 30 | z_stream stream; 31 | int err; 32 | 33 | stream.next_in = (z_const Bytef *)source; 34 | stream.avail_in = (uInt)sourceLen; 35 | /* Check for source > 64K on 16-bit machine: */ 36 | if ((uLong)stream.avail_in != sourceLen) return Z_BUF_ERROR; 37 | 38 | stream.next_out = dest; 39 | stream.avail_out = (uInt)*destLen; 40 | if ((uLong)stream.avail_out != *destLen) return Z_BUF_ERROR; 41 | 42 | stream.zalloc = (alloc_func)0; 43 | stream.zfree = (free_func)0; 44 | 45 | err = inflateInit(&stream); 46 | if (err != Z_OK) return err; 47 | 48 | err = inflate(&stream, Z_FINISH); 49 | if (err != Z_STREAM_END) { 50 | inflateEnd(&stream); 51 | if (err == Z_NEED_DICT || (err == Z_BUF_ERROR && stream.avail_in == 0)) 52 | return Z_DATA_ERROR; 53 | return err; 54 | } 55 | *destLen = stream.total_out; 56 | 57 | err = inflateEnd(&stream); 58 | return err; 59 | } 60 | -------------------------------------------------------------------------------- /QxSolidPlugin/QxSolidPlugin.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/QxSolidPlugin.cpp -------------------------------------------------------------------------------- /QxSolidPlugin/QxSolidPlugin.def: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/QxSolidPlugin.def -------------------------------------------------------------------------------- /QxSolidPlugin/QxSolidPlugin.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/QxSolidPlugin.h -------------------------------------------------------------------------------- /QxSolidPlugin/QxSolidPlugin.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/QxSolidPlugin.rc -------------------------------------------------------------------------------- /QxSolidPlugin/QxSolidPlugin.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /QxSolidPlugin/QxSolidPluginApp.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/QxSolidPluginApp.cpp -------------------------------------------------------------------------------- /QxSolidPlugin/QxSolidPluginApp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/QxSolidPluginApp.h -------------------------------------------------------------------------------- /QxSolidPlugin/Resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/Resource.h -------------------------------------------------------------------------------- /QxSolidPlugin/edit/kcmSolidDeCompound.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/edit/kcmSolidDeCompound.cpp -------------------------------------------------------------------------------- /QxSolidPlugin/edit/kcmSolidDeCompound.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/edit/kcmSolidDeCompound.h -------------------------------------------------------------------------------- /QxSolidPlugin/edit/kcmSolidDraft.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/edit/kcmSolidDraft.cpp -------------------------------------------------------------------------------- /QxSolidPlugin/edit/kcmSolidDraft.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/edit/kcmSolidDraft.h -------------------------------------------------------------------------------- /QxSolidPlugin/edit/kcmSolidFillet.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/edit/kcmSolidFillet.cpp -------------------------------------------------------------------------------- /QxSolidPlugin/edit/kcmSolidFillet.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/edit/kcmSolidFillet.h -------------------------------------------------------------------------------- /QxSolidPlugin/edit/kcmSolidLoft.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/edit/kcmSolidLoft.cpp -------------------------------------------------------------------------------- /QxSolidPlugin/edit/kcmSolidLoft.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/edit/kcmSolidLoft.h -------------------------------------------------------------------------------- /QxSolidPlugin/edit/kcmSolidOffset.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/edit/kcmSolidOffset.cpp -------------------------------------------------------------------------------- /QxSolidPlugin/edit/kcmSolidOffset.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/edit/kcmSolidOffset.h -------------------------------------------------------------------------------- /QxSolidPlugin/edit/kcmSolidSewing.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/edit/kcmSolidSewing.cpp -------------------------------------------------------------------------------- /QxSolidPlugin/edit/kcmSolidSewing.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/edit/kcmSolidSewing.h -------------------------------------------------------------------------------- /QxSolidPlugin/edit/kcmSolidTrim.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/edit/kcmSolidTrim.cpp -------------------------------------------------------------------------------- /QxSolidPlugin/edit/kcmSolidTrim.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/edit/kcmSolidTrim.h -------------------------------------------------------------------------------- /QxSolidPlugin/edit/kcmThickSolid.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/edit/kcmThickSolid.cpp -------------------------------------------------------------------------------- /QxSolidPlugin/edit/kcmThickSolid.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/edit/kcmThickSolid.h -------------------------------------------------------------------------------- /QxSolidPlugin/kcmSolidBoolean.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/kcmSolidBoolean.cpp -------------------------------------------------------------------------------- /QxSolidPlugin/kcmSolidBoolean.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/kcmSolidBoolean.h -------------------------------------------------------------------------------- /QxSolidPlugin/make/kcmSolidBox.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/make/kcmSolidBox.cpp -------------------------------------------------------------------------------- /QxSolidPlugin/make/kcmSolidBox.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/make/kcmSolidBox.h -------------------------------------------------------------------------------- /QxSolidPlugin/make/kcmSolidCone.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/make/kcmSolidCone.cpp -------------------------------------------------------------------------------- /QxSolidPlugin/make/kcmSolidCone.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/make/kcmSolidCone.h -------------------------------------------------------------------------------- /QxSolidPlugin/make/kcmSolidCylinder.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/make/kcmSolidCylinder.cpp -------------------------------------------------------------------------------- /QxSolidPlugin/make/kcmSolidCylinder.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/make/kcmSolidCylinder.h -------------------------------------------------------------------------------- /QxSolidPlugin/make/kcmSolidPipe.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/make/kcmSolidPipe.cpp -------------------------------------------------------------------------------- /QxSolidPlugin/make/kcmSolidPipe.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/make/kcmSolidPipe.h -------------------------------------------------------------------------------- /QxSolidPlugin/make/kcmSolidPipeShell.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/make/kcmSolidPipeShell.cpp -------------------------------------------------------------------------------- /QxSolidPlugin/make/kcmSolidPipeShell.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/make/kcmSolidPipeShell.h -------------------------------------------------------------------------------- /QxSolidPlugin/make/kcmSolidPrism.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/make/kcmSolidPrism.cpp -------------------------------------------------------------------------------- /QxSolidPlugin/make/kcmSolidPrism.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/make/kcmSolidPrism.h -------------------------------------------------------------------------------- /QxSolidPlugin/make/kcmSolidRevol.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/make/kcmSolidRevol.cpp -------------------------------------------------------------------------------- /QxSolidPlugin/make/kcmSolidRevol.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/make/kcmSolidRevol.h -------------------------------------------------------------------------------- /QxSolidPlugin/make/kcmSolidSphere.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/make/kcmSolidSphere.cpp -------------------------------------------------------------------------------- /QxSolidPlugin/make/kcmSolidSphere.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/make/kcmSolidSphere.h -------------------------------------------------------------------------------- /QxSolidPlugin/res/QxSolidPlugin.rc2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/res/QxSolidPlugin.rc2 -------------------------------------------------------------------------------- /QxSolidPlugin/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/stdafx.cpp -------------------------------------------------------------------------------- /QxSolidPlugin/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/stdafx.h -------------------------------------------------------------------------------- /QxSolidPlugin/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/targetver.h -------------------------------------------------------------------------------- /QxSolidPlugin/tools/kcmOneFaceBase.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/tools/kcmOneFaceBase.cpp -------------------------------------------------------------------------------- /QxSolidPlugin/tools/kcmOneFaceBase.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSolidPlugin/tools/kcmOneFaceBase.h -------------------------------------------------------------------------------- /QxSurfPlugin/Edit/kcmRegionBoolean.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSurfPlugin/Edit/kcmRegionBoolean.cpp -------------------------------------------------------------------------------- /QxSurfPlugin/Edit/kcmRegionBoolean.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSurfPlugin/Edit/kcmRegionBoolean.h -------------------------------------------------------------------------------- /QxSurfPlugin/Edit/kcmSurfaceFilling.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSurfPlugin/Edit/kcmSurfaceFilling.cpp -------------------------------------------------------------------------------- /QxSurfPlugin/Edit/kcmSurfaceFilling.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSurfPlugin/Edit/kcmSurfaceFilling.h -------------------------------------------------------------------------------- /QxSurfPlugin/Edit/kcmSurfaceSplit.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSurfPlugin/Edit/kcmSurfaceSplit.cpp -------------------------------------------------------------------------------- /QxSurfPlugin/Edit/kcmSurfaceSplit.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSurfPlugin/Edit/kcmSurfaceSplit.h -------------------------------------------------------------------------------- /QxSurfPlugin/Edit/kcmSurfaceTool.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSurfPlugin/Edit/kcmSurfaceTool.cpp -------------------------------------------------------------------------------- /QxSurfPlugin/Edit/kcmSurfaceTool.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSurfPlugin/Edit/kcmSurfaceTool.h -------------------------------------------------------------------------------- /QxSurfPlugin/Edit/kcmSurfaceTrim.cpp: -------------------------------------------------------------------------------- 1 | #include "StdAfx.h" 2 | #include ".\kcmsurfacetrim.h" 3 | 4 | kcmSurfaceTrim::kcmSurfaceTrim(void) 5 | { 6 | } 7 | 8 | kcmSurfaceTrim::~kcmSurfaceTrim(void) 9 | { 10 | } 11 | -------------------------------------------------------------------------------- /QxSurfPlugin/Edit/kcmSurfaceTrim.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class kcmSurfaceTrim 4 | { 5 | public: 6 | kcmSurfaceTrim(void); 7 | ~kcmSurfaceTrim(void); 8 | }; 9 | -------------------------------------------------------------------------------- /QxSurfPlugin/Make/kcmLoftSurface.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSurfPlugin/Make/kcmLoftSurface.cpp -------------------------------------------------------------------------------- /QxSurfPlugin/Make/kcmLoftSurface.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSurfPlugin/Make/kcmLoftSurface.h -------------------------------------------------------------------------------- /QxSurfPlugin/Make/kcmLoopToFace.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSurfPlugin/Make/kcmLoopToFace.cpp -------------------------------------------------------------------------------- /QxSurfPlugin/Make/kcmLoopToFace.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSurfPlugin/Make/kcmLoopToFace.h -------------------------------------------------------------------------------- /QxSurfPlugin/Make/kcmPlane.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSurfPlugin/Make/kcmPlane.cpp -------------------------------------------------------------------------------- /QxSurfPlugin/Make/kcmPlane.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSurfPlugin/Make/kcmPlane.h -------------------------------------------------------------------------------- /QxSurfPlugin/Make/kcmPrismSurface.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSurfPlugin/Make/kcmPrismSurface.cpp -------------------------------------------------------------------------------- /QxSurfPlugin/Make/kcmPrismSurface.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSurfPlugin/Make/kcmPrismSurface.h -------------------------------------------------------------------------------- /QxSurfPlugin/Make/kcmRevolSurface.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSurfPlugin/Make/kcmRevolSurface.cpp -------------------------------------------------------------------------------- /QxSurfPlugin/Make/kcmRevolSurface.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSurfPlugin/Make/kcmRevolSurface.h -------------------------------------------------------------------------------- /QxSurfPlugin/Make/kcmRuledSurface.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSurfPlugin/Make/kcmRuledSurface.cpp -------------------------------------------------------------------------------- /QxSurfPlugin/Make/kcmRuledSurface.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSurfPlugin/Make/kcmRuledSurface.h -------------------------------------------------------------------------------- /QxSurfPlugin/Make/kcmSurfPolygon.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSurfPlugin/Make/kcmSurfPolygon.cpp -------------------------------------------------------------------------------- /QxSurfPlugin/Make/kcmSurfPolygon.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSurfPlugin/Make/kcmSurfPolygon.h -------------------------------------------------------------------------------- /QxSurfPlugin/Make/kcmSurfacePipe.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSurfPlugin/Make/kcmSurfacePipe.cpp -------------------------------------------------------------------------------- /QxSurfPlugin/Make/kcmSurfacePipe.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSurfPlugin/Make/kcmSurfacePipe.h -------------------------------------------------------------------------------- /QxSurfPlugin/QxSurfPlugin.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSurfPlugin/QxSurfPlugin.cpp -------------------------------------------------------------------------------- /QxSurfPlugin/QxSurfPlugin.def: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSurfPlugin/QxSurfPlugin.def -------------------------------------------------------------------------------- /QxSurfPlugin/QxSurfPlugin.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSurfPlugin/QxSurfPlugin.h -------------------------------------------------------------------------------- /QxSurfPlugin/QxSurfPlugin.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSurfPlugin/QxSurfPlugin.rc -------------------------------------------------------------------------------- /QxSurfPlugin/QxSurfPlugin.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /QxSurfPlugin/QxSurfPluginApp.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSurfPlugin/QxSurfPluginApp.cpp -------------------------------------------------------------------------------- /QxSurfPlugin/QxSurfPluginApp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSurfPlugin/QxSurfPluginApp.h -------------------------------------------------------------------------------- /QxSurfPlugin/Resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSurfPlugin/Resource.h -------------------------------------------------------------------------------- /QxSurfPlugin/res/QxSurfPlugin.rc2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSurfPlugin/res/QxSurfPlugin.rc2 -------------------------------------------------------------------------------- /QxSurfPlugin/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSurfPlugin/stdafx.cpp -------------------------------------------------------------------------------- /QxSurfPlugin/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSurfPlugin/stdafx.h -------------------------------------------------------------------------------- /QxSurfPlugin/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSurfPlugin/targetver.h -------------------------------------------------------------------------------- /QxSysLib/QxSysLib.def: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/QxSysLib.def -------------------------------------------------------------------------------- /QxSysLib/QxSysLib.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/QxSysLib.rc -------------------------------------------------------------------------------- /QxSysLib/QxSysLib.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /QxSysLib/QxSysLibApp.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/QxSysLibApp.cpp -------------------------------------------------------------------------------- /QxSysLib/QxSysLibApp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/QxSysLibApp.h -------------------------------------------------------------------------------- /QxSysLib/ReadMe.txt: -------------------------------------------------------------------------------- 1 | ======================================================================== 2 | MICROSOFT 基础类库 : QxSysLib 项目概述 3 | ======================================================================== 4 | 5 | 6 | 应用程序向导已为您创建了此 QxSysLib DLL。此 DLL 不仅演示 Microsoft 基础类的基本使用方法,还可作为您编写 DLL 的起点。 7 | 8 | 本文件概要介绍组成 QxSysLib DLL 的每个文件的内容。 9 | 10 | QxSysLib.vcxproj 11 | 这是使用应用程序向导生成的 VC++ 项目的主项目文件,其中包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。 12 | 13 | QxSysLib.vcxproj.filters 14 | 这是使用“应用程序向导”生成的 VC++ 项目筛选器文件。它包含有关项目文件与筛选器之间的关联信息。在 IDE 中,通过这种关联,在特定节点下以分组形式显示具有相似扩展名的文件。例如,“.cpp”文件与“源文件”筛选器关联。 15 | 16 | QxSysLib.h 17 | 这是 DLL 的主头文件。它声明了 CQxSysLibApp 类。 18 | 19 | QxSysLib.cpp 20 | 这是主 DLL 源文件。它包含 CQxSysLibApp 类。 21 | 22 | QxSysLib.rc 23 | 这是程序使用的所有 Microsoft Windows 资源的列表。它包括 RES 子目录中存储的图标、位图和光标。此文件可以直接在 Microsoft Visual C++ 中进行编辑。 24 | 25 | res\QxSysLib.rc2 26 | 此文件包含不在 Microsoft Visual C++ 中进行编辑的资源。您应该将不可由资源编辑器编辑的所有资源放在此文件中。 27 | 28 | QxSysLib.def 29 | 此文件包含在 Microsoft Windows 中运行所必需的 DLL 的有关信息。它定义了 DLL 的名称和说明等参数,而且还从 DLL 导出函数。 30 | 31 | ///////////////////////////////////////////////////////////////////////////// 32 | 其他标准文件: 33 | 34 | StdAfx.h, StdAfx.cpp 35 | 这些文件用于生成名为 QxSysLib.pch 的预编译头 (PCH) 文件和名为 StdAfx.obj 的预编译类型文件。 36 | 37 | Resource.h 38 | 这是标准头文件,可用于定义新的资源 ID。Microsoft Visual C++ 将读取并更新此文件。 39 | 40 | ///////////////////////////////////////////////////////////////////////////// 41 | 其他注释: 42 | 43 | 应用程序向导使用“TODO:”来指示应添加或自定义的源代码部分。 44 | 45 | ///////////////////////////////////////////////////////////////////////////// 46 | -------------------------------------------------------------------------------- /QxSysLib/include/Gui/DrawFrame.h: -------------------------------------------------------------------------------- 1 | #if !defined(AFX_DRAWFRAME_H__EF0EC395_D6D3_42D2_B68C_6FAB10C90B58__INCLUDED_) 2 | #define AFX_DRAWFRAME_H__EF0EC395_D6D3_42D2_B68C_6FAB10C90B58__INCLUDED_ 3 | 4 | #if _MSC_VER > 1000 5 | #pragma once 6 | #endif // _MSC_VER > 1000 7 | // DrawFrame.h : header file 8 | // 9 | 10 | #include "PinDockBar.h" 11 | 12 | #define WM_SHOWIT WM_USER + 1 13 | #define WM_SHOWHIDE WM_USER + 2 14 | #define WM_SHOWDOCKBAR WM_USER + 3 15 | ///////////////////////////////////////////////////////////////////////////// 16 | // CDrawFrame window 17 | class CAutoHideBar; 18 | 19 | class QXLIB_API CDrawFrame : public CWnd 20 | { 21 | // Construction 22 | public: 23 | CDrawFrame(); 24 | 25 | // Attributes 26 | public: 27 | int m_Size; 28 | CAutoHideBar * m_pDrawBar; 29 | int m_TitleHeight; 30 | CString m_Title; 31 | CString m_sFontFace; 32 | CSCBPushPinButton m_PushPin; 33 | BOOL m_bShowOff; 34 | BOOL m_bActive; 35 | // Operations 36 | public: 37 | 38 | // Overrides 39 | // ClassWizard generated virtual function overrides 40 | //{{AFX_VIRTUAL(CDrawFrame) 41 | //}}AFX_VIRTUAL 42 | 43 | // Implementation 44 | public: 45 | virtual ~CDrawFrame(); 46 | 47 | // Generated message map functions 48 | protected: 49 | //{{AFX_MSG(CDrawFrame) 50 | afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 51 | afx_msg void OnPaint(); 52 | afx_msg BOOL OnNcActivate(BOOL bActive); 53 | afx_msg void OnTimer(UINT_PTR nIDEvent); 54 | afx_msg LRESULT OnNcHitTest(CPoint point); 55 | afx_msg void OnNcCalcSize(BOOL bCalcValidRects, NCCALCSIZE_PARAMS FAR* lpncsp); 56 | afx_msg void OnSize(UINT nType, int cx, int cy); 57 | afx_msg void OnNcPaint(); 58 | afx_msg void OnNcMouseMove(UINT nHitTest, CPoint point); 59 | afx_msg void OnNcLButtonDown(UINT nHitTest, CPoint point); 60 | afx_msg void OnNcLButtonUp(UINT nHitTest, CPoint point); 61 | //}}AFX_MSG 62 | afx_msg LRESULT ShowOff(WPARAM, LPARAM); 63 | afx_msg LRESULT ShowHide(WPARAM, LPARAM); 64 | LRESULT CDrawFrame::ShowDockBar(WPARAM, LPARAM); 65 | void OnUpdateCmdUI(CFrameWnd* pTarget, 66 | BOOL bDisableIfNoHndler); 67 | 68 | DECLARE_MESSAGE_MAP() 69 | }; 70 | 71 | ///////////////////////////////////////////////////////////////////////////// 72 | 73 | //{{AFX_INSERT_LOCATION}} 74 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 75 | 76 | #endif // !defined(AFX_DRAWFRAME_H__EF0EC395_D6D3_42D2_B68C_6FAB10C90B58__INCLUDED_) 77 | -------------------------------------------------------------------------------- /QxSysLib/include/Gui/PinDockBar.h: -------------------------------------------------------------------------------- 1 | #if !defined(AFX_PINDOCKBAR_H__A84CB99F_86F9_4915_A34A_0AC066382F4E__INCLUDED_) 2 | #define AFX_PINDOCKBAR_H__A84CB99F_86F9_4915_A34A_0AC066382F4E__INCLUDED_ 3 | 4 | #if _MSC_VER > 1000 5 | #pragma once 6 | #endif // _MSC_VER > 1000 7 | // PinDockBar.h : header file 8 | // 9 | 10 | #include "scbarcf.h" 11 | #include "scbarg.h" 12 | 13 | #define BARPUSHPIN_ON WM_USER + 20 14 | #define BARPUSHPIN_OFF WM_USER + 30 15 | 16 | class CAutoHideBar; 17 | ///////////////////////////////////////////////////////////////////////////// 18 | // CPinDockBar window 19 | class CSCBPushPinButton: public CSCBButton 20 | { 21 | public: 22 | void Paint(CDC* pDC); 23 | }; 24 | 25 | class QXLIB_API CPinDockBar : public CSizingControlBarCF 26 | { 27 | // Construction 28 | public: 29 | CPinDockBar(); 30 | 31 | // Attributes 32 | public: 33 | CSCBPushPinButton m_PushPin; 34 | // Operations 35 | public: 36 | virtual void OnUpdateCmdUI(CFrameWnd* pTarget, BOOL bDisableIfNoHndler); 37 | UINT GetDockBarID(){ return m_nDockBarID;}; 38 | protected: 39 | virtual void NcPaintGripper(CDC* pDC, CRect rcClient); 40 | virtual void NcCalcClient(LPRECT pRc, UINT nDockBarID); 41 | // Overrides 42 | // ClassWizard generated virtual function overrides 43 | //{{AFX_VIRTUAL(CPinDockBar) 44 | //}}AFX_VIRTUAL 45 | 46 | // Implementation 47 | public: 48 | virtual ~CPinDockBar(); 49 | 50 | virtual void AddToDrawBar(CAutoHideBar * pDrawBar) = 0; 51 | virtual void RemoveFromDrawBar(CAutoHideBar * pDrawBar) = 0; 52 | // Generated message map functions 53 | protected: 54 | //{{AFX_MSG(CPinDockBar) 55 | afx_msg void OnNcCalcSize(BOOL bCalcValidRects, NCCALCSIZE_PARAMS FAR* lpncsp); 56 | afx_msg LRESULT OnNcHitTest(CPoint point); 57 | afx_msg void OnNcLButtonUp(UINT nHitTest, CPoint point); 58 | //}}AFX_MSG 59 | DECLARE_MESSAGE_MAP() 60 | }; 61 | 62 | ///////////////////////////////////////////////////////////////////////////// 63 | 64 | //{{AFX_INSERT_LOCATION}} 65 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 66 | 67 | #endif // !defined(AFX_PINDOCKBAR_H__A84CB99F_86F9_4915_A34A_0AC066382F4E__INCLUDED_) 68 | -------------------------------------------------------------------------------- /QxSysLib/include/Gui/XInputEdit.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/include/Gui/XInputEdit.h -------------------------------------------------------------------------------- /QxSysLib/include/Gui/scbarcf.h: -------------------------------------------------------------------------------- 1 | ///////////////////////////////////////////////////////////////////////// 2 | // 3 | // CSizingControlBarCF Version 2.44 4 | // 5 | // Created: Dec 21, 1998 Last Modified: March 31, 2002 6 | // 7 | // See the official site at www.datamekanix.com for documentation and 8 | // the latest news. 9 | // 10 | ///////////////////////////////////////////////////////////////////////// 11 | // Copyright (C) 1998-2002 by Cristi Posea. All rights reserved. 12 | // 13 | // This code is free for personal and commercial use, providing this 14 | // notice remains intact in the source files and all eventual changes are 15 | // clearly marked with comments. 16 | // 17 | // You must obtain the author's consent before you can include this code 18 | // in a software library. 19 | // 20 | // No warrantee of any kind, express or implied, is included with this 21 | // software; use at your own risk, responsibility for damages (if any) to 22 | // anyone resulting from the use of this software rests entirely with the 23 | // user. 24 | // 25 | // Send bug reports, bug fixes, enhancements, requests, flames, etc. to 26 | // cristi@datamekanix.com or post them at the message board at the site. 27 | ///////////////////////////////////////////////////////////////////////// 28 | 29 | #if !defined(__SCBARCF_H__) 30 | #define __SCBARCF_H__ 31 | 32 | #if _MSC_VER >= 1000 33 | #pragma once 34 | #endif // _MSC_VER >= 1000 35 | // scbarcf.h : header file 36 | // 37 | 38 | #include "scbarcf.h" 39 | #include "scbarg.h" 40 | 41 | ///////////////////////////////////////////////////////////////////////// 42 | // CSizingControlBarCF 43 | 44 | #ifndef baseCSizingControlBarCF 45 | #define baseCSizingControlBarCF CSizingControlBarG 46 | #endif 47 | 48 | class QXLIB_API CSizingControlBarCF : public baseCSizingControlBarCF 49 | { 50 | DECLARE_DYNAMIC(CSizingControlBarCF) 51 | 52 | // Construction 53 | public: 54 | CSizingControlBarCF(); 55 | 56 | // Overridables 57 | virtual void OnUpdateCmdUI(CFrameWnd* pTarget, BOOL bDisableIfNoHndler); 58 | 59 | // Implementation 60 | protected: 61 | // implementation helpers 62 | virtual void NcPaintGripper(CDC* pDC, CRect rcClient); 63 | 64 | protected: 65 | BOOL m_bActive; // a child has focus 66 | CString m_sFontFace; 67 | 68 | // Generated message map functions 69 | protected: 70 | //{{AFX_MSG(CSizingControlBarCF) 71 | //}}AFX_MSG 72 | afx_msg LRESULT OnSetText(WPARAM wParam, LPARAM lParam); 73 | 74 | DECLARE_MESSAGE_MAP() 75 | }; 76 | 77 | ///////////////////////////////////////////////////////////////////////// 78 | 79 | #endif // !defined(__SCBARCF_H__) 80 | -------------------------------------------------------------------------------- /QxSysLib/include/Gui/sizecbar.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/include/Gui/sizecbar.h -------------------------------------------------------------------------------- /QxSysLib/include/Input/kiInputAngle.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/include/Input/kiInputAngle.h -------------------------------------------------------------------------------- /QxSysLib/include/Input/kiInputDirTool.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/include/Input/kiInputDirTool.h -------------------------------------------------------------------------------- /QxSysLib/include/Input/kiInputEdit.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/include/Input/kiInputEdit.h -------------------------------------------------------------------------------- /QxSysLib/include/Input/kiInputEntityTool.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/include/Input/kiInputEntityTool.h -------------------------------------------------------------------------------- /QxSysLib/include/Input/kiInputLength.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/include/Input/kiInputLength.h -------------------------------------------------------------------------------- /QxSysLib/include/Input/kiInputOptionsTool.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/include/Input/kiInputOptionsTool.h -------------------------------------------------------------------------------- /QxSysLib/include/Input/kiInputPicker.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/include/Input/kiInputPicker.h -------------------------------------------------------------------------------- /QxSysLib/include/Input/kiInputPoint.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/include/Input/kiInputPoint.h -------------------------------------------------------------------------------- /QxSysLib/include/Input/kiInputPointOnCurve.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/include/Input/kiInputPointOnCurve.h -------------------------------------------------------------------------------- /QxSysLib/include/Input/kiInputPointTool.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/include/Input/kiInputPointTool.h -------------------------------------------------------------------------------- /QxSysLib/include/Input/kiInputTool.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/include/Input/kiInputTool.h -------------------------------------------------------------------------------- /QxSysLib/include/Input/kiInputValueTool.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/include/Input/kiInputValueTool.h -------------------------------------------------------------------------------- /QxSysLib/include/Input/kiInputVector.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/include/Input/kiInputVector.h -------------------------------------------------------------------------------- /QxSysLib/include/Input/kiOptionSet.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/include/Input/kiOptionSet.h -------------------------------------------------------------------------------- /QxSysLib/include/QxAnimationShape.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/include/QxAnimationShape.h -------------------------------------------------------------------------------- /QxSysLib/include/QxCmdPlugin.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/include/QxCmdPlugin.h -------------------------------------------------------------------------------- /QxSysLib/include/QxCmdPluginImpl.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/include/QxCmdPluginImpl.h -------------------------------------------------------------------------------- /QxSysLib/include/QxCommandItem.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/include/QxCommandItem.h -------------------------------------------------------------------------------- /QxSysLib/include/QxPluginMgr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/include/QxPluginMgr.h -------------------------------------------------------------------------------- /QxSysLib/include/QxStgDocDef.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/include/QxStgDocDef.h -------------------------------------------------------------------------------- /QxSysLib/include/QxStgDocReader.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/include/QxStgDocReader.h -------------------------------------------------------------------------------- /QxSysLib/include/QxStgDocWriter.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/include/QxStgDocWriter.h -------------------------------------------------------------------------------- /QxSysLib/include/QxSysInterface.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/include/QxSysInterface.h -------------------------------------------------------------------------------- /QxSysLib/include/QxSysLib.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/include/QxSysLib.h -------------------------------------------------------------------------------- /QxSysLib/include/QxWndTimerMgr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/include/QxWndTimerMgr.h -------------------------------------------------------------------------------- /QxSysLib/include/kcDispArrow.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/include/kcDispArrow.h -------------------------------------------------------------------------------- /QxSysLib/include/kcDispObj.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/include/kcDispObj.h -------------------------------------------------------------------------------- /QxSysLib/include/kcDocContext.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/include/kcDocContext.h -------------------------------------------------------------------------------- /QxSysLib/include/kcPreviewObj.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/include/kcPreviewObj.h -------------------------------------------------------------------------------- /QxSysLib/include/kcPreviewText.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/include/kcPreviewText.h -------------------------------------------------------------------------------- /QxSysLib/include/kcProgressThread.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | #include "QxLibDef.h" 6 | 7 | class QXLIB_API kcProgressThread 8 | { 9 | public: 10 | kcProgressThread(void); 11 | virtual ~kcProgressThread(void); 12 | 13 | bool Start(); 14 | int Stop(); 15 | 16 | public: 17 | static void ThreadProc(void *pArg); 18 | 19 | public: 20 | virtual void Run(); 21 | 22 | public: 23 | bool bRunning_; 24 | bool bQuit_; 25 | 26 | public: 27 | virtual std::string GetProgText(); 28 | virtual void SetProgText(const std::string &szText); 29 | 30 | protected: 31 | std::string szProgText_; 32 | CCriticalSection aCSLock_; 33 | }; 34 | 35 | -------------------------------------------------------------------------------- /QxSysLib/include/kcSysUtils.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/include/kcSysUtils.h -------------------------------------------------------------------------------- /QxSysLib/include/kcgTextLib.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/include/kcgTextLib.h -------------------------------------------------------------------------------- /QxSysLib/include/kcmUtils.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/include/kcmUtils.h -------------------------------------------------------------------------------- /QxSysLib/include/kiCommand.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/include/kiCommand.h -------------------------------------------------------------------------------- /QxSysLib/include/kiCommandMgr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/include/kiCommandMgr.h -------------------------------------------------------------------------------- /QxSysLib/include/kiParseString.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/include/kiParseString.h -------------------------------------------------------------------------------- /QxSysLib/res/QxSysLib.rc2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/res/QxSysLib.rc2 -------------------------------------------------------------------------------- /QxSysLib/resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/resource.h -------------------------------------------------------------------------------- /QxSysLib/source/Cmd/kcmUtils.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/source/Cmd/kcmUtils.cpp -------------------------------------------------------------------------------- /QxSysLib/source/Cmd/kiCommand.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/source/Cmd/kiCommand.cpp -------------------------------------------------------------------------------- /QxSysLib/source/Cmd/kiCommandMgr.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/source/Cmd/kiCommandMgr.cpp -------------------------------------------------------------------------------- /QxSysLib/source/Disp/kcDispArrow.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/source/Disp/kcDispArrow.cpp -------------------------------------------------------------------------------- /QxSysLib/source/Disp/kcDispObj.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/source/Disp/kcDispObj.cpp -------------------------------------------------------------------------------- /QxSysLib/source/Disp/kcPreviewObj.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/source/Disp/kcPreviewObj.cpp -------------------------------------------------------------------------------- /QxSysLib/source/Disp/kcPreviewObj2.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/source/Disp/kcPreviewObj2.cpp -------------------------------------------------------------------------------- /QxSysLib/source/Disp/kcPreviewText.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/source/Disp/kcPreviewText.cpp -------------------------------------------------------------------------------- /QxSysLib/source/Dlgs/InputDblDlg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/source/Dlgs/InputDblDlg.cpp -------------------------------------------------------------------------------- /QxSysLib/source/Dlgs/InputDblDlg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/source/Dlgs/InputDblDlg.h -------------------------------------------------------------------------------- /QxSysLib/source/Dlgs/InputIntDlg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/source/Dlgs/InputIntDlg.cpp -------------------------------------------------------------------------------- /QxSysLib/source/Dlgs/InputIntDlg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/source/Dlgs/InputIntDlg.h -------------------------------------------------------------------------------- /QxSysLib/source/Dlgs/ShapeStructDialog.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/source/Dlgs/ShapeStructDialog.cpp -------------------------------------------------------------------------------- /QxSysLib/source/Dlgs/ShapeStructDialog.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/source/Dlgs/ShapeStructDialog.h -------------------------------------------------------------------------------- /QxSysLib/source/Dlgs/kuiProgressDlg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/source/Dlgs/kuiProgressDlg.cpp -------------------------------------------------------------------------------- /QxSysLib/source/Dlgs/kuiProgressDlg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/source/Dlgs/kuiProgressDlg.h -------------------------------------------------------------------------------- /QxSysLib/source/Geo/QxAnimationShape.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/source/Geo/QxAnimationShape.cpp -------------------------------------------------------------------------------- /QxSysLib/source/Geo/kcSysUtils.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/source/Geo/kcSysUtils.cpp -------------------------------------------------------------------------------- /QxSysLib/source/Geo/kcgTextLib.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/source/Geo/kcgTextLib.cpp -------------------------------------------------------------------------------- /QxSysLib/source/Gui/XInputEdit.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/source/Gui/XInputEdit.cpp -------------------------------------------------------------------------------- /QxSysLib/source/Input/kiInputAngle.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/source/Input/kiInputAngle.cpp -------------------------------------------------------------------------------- /QxSysLib/source/Input/kiInputDirTool.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/source/Input/kiInputDirTool.cpp -------------------------------------------------------------------------------- /QxSysLib/source/Input/kiInputEdit.cpp: -------------------------------------------------------------------------------- 1 | #include "StdAfx.h" 2 | #include "kiInputTool.h" 3 | #include "kiInputEdit.h" 4 | 5 | ////////////////////////////////////////////////////////// 6 | // 7 | 8 | ////////////////////////////////////////////////////////// 9 | // 10 | 11 | kiInputEdit::kiInputEdit(void) 12 | { 13 | _pInputEditCallBack = NULL; 14 | m_pOptionSet = NULL; 15 | } 16 | 17 | -------------------------------------------------------------------------------- /QxSysLib/source/Input/kiInputEntityTool.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/source/Input/kiInputEntityTool.cpp -------------------------------------------------------------------------------- /QxSysLib/source/Input/kiInputLength.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/source/Input/kiInputLength.cpp -------------------------------------------------------------------------------- /QxSysLib/source/Input/kiInputOptionsTool.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/source/Input/kiInputOptionsTool.cpp -------------------------------------------------------------------------------- /QxSysLib/source/Input/kiInputPicker.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/source/Input/kiInputPicker.cpp -------------------------------------------------------------------------------- /QxSysLib/source/Input/kiInputPoint.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/source/Input/kiInputPoint.cpp -------------------------------------------------------------------------------- /QxSysLib/source/Input/kiInputPointOnCurve.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/source/Input/kiInputPointOnCurve.cpp -------------------------------------------------------------------------------- /QxSysLib/source/Input/kiInputPointTool.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/source/Input/kiInputPointTool.cpp -------------------------------------------------------------------------------- /QxSysLib/source/Input/kiInputTool.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/source/Input/kiInputTool.cpp -------------------------------------------------------------------------------- /QxSysLib/source/Input/kiInputValueTool.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/source/Input/kiInputValueTool.cpp -------------------------------------------------------------------------------- /QxSysLib/source/Input/kiInputVector.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/source/Input/kiInputVector.cpp -------------------------------------------------------------------------------- /QxSysLib/source/Input/kiOptionSet.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/source/Input/kiOptionSet.cpp -------------------------------------------------------------------------------- /QxSysLib/source/Input/kiParseString.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/source/Input/kiParseString.cpp -------------------------------------------------------------------------------- /QxSysLib/source/Plugin/QxCmdPlugin.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/source/Plugin/QxCmdPlugin.cpp -------------------------------------------------------------------------------- /QxSysLib/source/Plugin/QxCmdPluginImpl.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/source/Plugin/QxCmdPluginImpl.cpp -------------------------------------------------------------------------------- /QxSysLib/source/Plugin/QxCommandItem.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/source/Plugin/QxCommandItem.cpp -------------------------------------------------------------------------------- /QxSysLib/source/Plugin/QxPluginMgr.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/source/Plugin/QxPluginMgr.cpp -------------------------------------------------------------------------------- /QxSysLib/source/QxSysLib.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/source/QxSysLib.cpp -------------------------------------------------------------------------------- /QxSysLib/source/Stg/QxStgDocReader.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/source/Stg/QxStgDocReader.cpp -------------------------------------------------------------------------------- /QxSysLib/source/Stg/QxStgDocWriter.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/source/Stg/QxStgDocWriter.cpp -------------------------------------------------------------------------------- /QxSysLib/source/Sys/QxWndTimerMgr.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/source/Sys/QxWndTimerMgr.cpp -------------------------------------------------------------------------------- /QxSysLib/source/Sys/kcDocContext.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/source/Sys/kcDocContext.cpp -------------------------------------------------------------------------------- /QxSysLib/source/Sys/kcProgressThread.cpp: -------------------------------------------------------------------------------- 1 | #include "stdafx.h" 2 | #include "..\dlgs\kuiProgressDlg.h" 3 | #include "kcProgressThread.h" 4 | 5 | 6 | kcProgressThread::kcProgressThread(void) 7 | { 8 | bRunning_ = false; 9 | bQuit_ = false; 10 | 11 | szProgText_ = ""; 12 | } 13 | 14 | 15 | kcProgressThread::~kcProgressThread(void) 16 | { 17 | Stop(); 18 | } 19 | 20 | bool kcProgressThread::Start() 21 | { 22 | if(bRunning_){ 23 | ASSERT(FALSE); 24 | return false; 25 | } 26 | 27 | _beginthread(kcProgressThread::ThreadProc,0,(void *)this); 28 | 29 | kuiProgressDlg dlg(this); 30 | dlg.DoModal(); 31 | 32 | return bRunning_; 33 | } 34 | 35 | int kcProgressThread::Stop() 36 | { 37 | if(!bRunning_){ 38 | return 0; 39 | } 40 | 41 | bQuit_ = true; 42 | 43 | return 1; 44 | } 45 | 46 | void kcProgressThread::ThreadProc(void *pArg) 47 | { 48 | kcProgressThread *pThis = (kcProgressThread *)pArg; 49 | 50 | pThis->bRunning_ = true; 51 | pThis->bQuit_ = false; 52 | 53 | pThis->Run(); 54 | 55 | pThis->bRunning_ = false; 56 | } 57 | 58 | void kcProgressThread::Run() 59 | {} 60 | 61 | std::string kcProgressThread:: GetProgText() 62 | { 63 | std::string ss; 64 | aCSLock_.Lock(); 65 | ss = szProgText_; 66 | aCSLock_.Unlock(); 67 | 68 | return ss; 69 | } 70 | 71 | void kcProgressThread::SetProgText(const std::string &szText) 72 | { 73 | aCSLock_.Lock(); 74 | szProgText_ = szText; 75 | aCSLock_.Unlock(); 76 | } -------------------------------------------------------------------------------- /QxSysLib/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/stdafx.cpp -------------------------------------------------------------------------------- /QxSysLib/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/stdafx.h -------------------------------------------------------------------------------- /QxSysLib/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxSysLib/targetver.h -------------------------------------------------------------------------------- /QxToolPlugin/Dialogs/kcPropertyDlg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxToolPlugin/Dialogs/kcPropertyDlg.cpp -------------------------------------------------------------------------------- /QxToolPlugin/Dialogs/kcPropertyDlg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxToolPlugin/Dialogs/kcPropertyDlg.h -------------------------------------------------------------------------------- /QxToolPlugin/Dim/kcmAngleDim.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxToolPlugin/Dim/kcmAngleDim.cpp -------------------------------------------------------------------------------- /QxToolPlugin/Dim/kcmAngleDim.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxToolPlugin/Dim/kcmAngleDim.h -------------------------------------------------------------------------------- /QxToolPlugin/Dim/kcmDiameterDim.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxToolPlugin/Dim/kcmDiameterDim.cpp -------------------------------------------------------------------------------- /QxToolPlugin/Dim/kcmDiameterDim.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxToolPlugin/Dim/kcmDiameterDim.h -------------------------------------------------------------------------------- /QxToolPlugin/Dim/kcmLengthDimension.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxToolPlugin/Dim/kcmLengthDimension.cpp -------------------------------------------------------------------------------- /QxToolPlugin/Dim/kcmLengthDimension.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxToolPlugin/Dim/kcmLengthDimension.h -------------------------------------------------------------------------------- /QxToolPlugin/Dim/kcmRadiusDim.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxToolPlugin/Dim/kcmRadiusDim.cpp -------------------------------------------------------------------------------- /QxToolPlugin/Dim/kcmRadiusDim.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxToolPlugin/Dim/kcmRadiusDim.h -------------------------------------------------------------------------------- /QxToolPlugin/QxToolPlugin.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxToolPlugin/QxToolPlugin.cpp -------------------------------------------------------------------------------- /QxToolPlugin/QxToolPlugin.def: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxToolPlugin/QxToolPlugin.def -------------------------------------------------------------------------------- /QxToolPlugin/QxToolPlugin.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxToolPlugin/QxToolPlugin.h -------------------------------------------------------------------------------- /QxToolPlugin/QxToolPlugin.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxToolPlugin/QxToolPlugin.rc -------------------------------------------------------------------------------- /QxToolPlugin/QxToolPlugin.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /QxToolPlugin/QxToolPluginApp.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxToolPlugin/QxToolPluginApp.cpp -------------------------------------------------------------------------------- /QxToolPlugin/QxToolPluginApp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxToolPlugin/QxToolPluginApp.h -------------------------------------------------------------------------------- /QxToolPlugin/Resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxToolPlugin/Resource.h -------------------------------------------------------------------------------- /QxToolPlugin/analyze/kcmShapeProperty.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxToolPlugin/analyze/kcmShapeProperty.cpp -------------------------------------------------------------------------------- /QxToolPlugin/analyze/kcmShapeProperty.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxToolPlugin/analyze/kcmShapeProperty.h -------------------------------------------------------------------------------- /QxToolPlugin/analyze/kcmShapeStatistic.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxToolPlugin/analyze/kcmShapeStatistic.cpp -------------------------------------------------------------------------------- /QxToolPlugin/analyze/kcmShapeStatistic.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxToolPlugin/analyze/kcmShapeStatistic.h -------------------------------------------------------------------------------- /QxToolPlugin/kcmAnimationDemo.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxToolPlugin/kcmAnimationDemo.cpp -------------------------------------------------------------------------------- /QxToolPlugin/kcmAnimationDemo.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxToolPlugin/kcmAnimationDemo.h -------------------------------------------------------------------------------- /QxToolPlugin/kcmBasePlane.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxToolPlugin/kcmBasePlane.cpp -------------------------------------------------------------------------------- /QxToolPlugin/kcmBasePlane.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxToolPlugin/kcmBasePlane.h -------------------------------------------------------------------------------- /QxToolPlugin/kcmDispColor.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxToolPlugin/kcmDispColor.cpp -------------------------------------------------------------------------------- /QxToolPlugin/kcmDispColor.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxToolPlugin/kcmDispColor.h -------------------------------------------------------------------------------- /QxToolPlugin/kcmDispShadingModel.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxToolPlugin/kcmDispShadingModel.cpp -------------------------------------------------------------------------------- /QxToolPlugin/kcmDispShadingModel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxToolPlugin/kcmDispShadingModel.h -------------------------------------------------------------------------------- /QxToolPlugin/kcmShapeCheck.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxToolPlugin/kcmShapeCheck.cpp -------------------------------------------------------------------------------- /QxToolPlugin/kcmShapeCheck.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxToolPlugin/kcmShapeCheck.h -------------------------------------------------------------------------------- /QxToolPlugin/kcmShapeFix.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxToolPlugin/kcmShapeFix.cpp -------------------------------------------------------------------------------- /QxToolPlugin/kcmShapeFix.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxToolPlugin/kcmShapeFix.h -------------------------------------------------------------------------------- /QxToolPlugin/res/QxToolPlugin.rc2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxToolPlugin/res/QxToolPlugin.rc2 -------------------------------------------------------------------------------- /QxToolPlugin/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxToolPlugin/stdafx.cpp -------------------------------------------------------------------------------- /QxToolPlugin/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxToolPlugin/stdafx.h -------------------------------------------------------------------------------- /QxToolPlugin/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/QxToolPlugin/targetver.h -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # OcctLab 2 | 3 | ## 说明 4 | 5 | Demo some OpenCascade functions。 6 | 7 | 这是一个简单的基于OpenCascade开发的程序,用于尝试一些OpenCascade的一些功能和算法。基于MFC开发的单文档程序。 8 | 9 | ## 依赖关系 10 | 11 | 该程序 仅仅依赖OpenCascade开源库,目前使用的是OpenCascade7.6.0版本。 12 | 13 | 不依赖其他库。 14 | 15 | ## 编译 16 | 17 | 目前使用visual studio 2017版本编译,仅仅支持64位下的debug和release编译。 18 | 19 | 需要定义一个环境变量:**OCCT_ROOT_760**指向OpenCascade的inc所在的路径。 20 | 21 | ## Release程序 22 | 23 | 在Bin/X64/Release目录下,编译了一个可执行程序,使用visual studio 2017编译,Occt版本为7.6.0. 24 | -------------------------------------------------------------------------------- /Release.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/Release.zip -------------------------------------------------------------------------------- /bin/x64/release/Release.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happytik/OcctLab/40437b4221aac060c5c2254ce5a16369b24918f5/bin/x64/release/Release.zip -------------------------------------------------------------------------------- /luaLib/LuaLib.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /luaLib/lapi.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lapi.h,v 2.9 2015/03/06 19:49:50 roberto Exp $ 3 | ** Auxiliary functions from Lua API 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lapi_h 8 | #define lapi_h 9 | 10 | 11 | #include "llimits.h" 12 | #include "lstate.h" 13 | 14 | #define api_incr_top(L) {L->top++; api_check(L, L->top <= L->ci->top, \ 15 | "stack overflow");} 16 | 17 | #define adjustresults(L,nres) \ 18 | { if ((nres) == LUA_MULTRET && L->ci->top < L->top) L->ci->top = L->top; } 19 | 20 | #define api_checknelems(L,n) api_check(L, (n) < (L->top - L->ci->func), \ 21 | "not enough elements in the stack") 22 | 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /luaLib/lctype.c: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lctype.c,v 1.12 2014/11/02 19:19:04 roberto Exp $ 3 | ** 'ctype' functions for Lua 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #define lctype_c 8 | #define LUA_CORE 9 | 10 | #include "lprefix.h" 11 | 12 | 13 | #include "lctype.h" 14 | 15 | #if !LUA_USE_CTYPE /* { */ 16 | 17 | #include 18 | 19 | LUAI_DDEF const lu_byte luai_ctype_[UCHAR_MAX + 2] = { 20 | 0x00, /* EOZ */ 21 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0. */ 22 | 0x00, 0x08, 0x08, 0x08, 0x08, 0x08, 0x00, 0x00, 23 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 1. */ 24 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 25 | 0x0c, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, /* 2. */ 26 | 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 27 | 0x16, 0x16, 0x16, 0x16, 0x16, 0x16, 0x16, 0x16, /* 3. */ 28 | 0x16, 0x16, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 29 | 0x04, 0x15, 0x15, 0x15, 0x15, 0x15, 0x15, 0x05, /* 4. */ 30 | 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 31 | 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, /* 5. */ 32 | 0x05, 0x05, 0x05, 0x04, 0x04, 0x04, 0x04, 0x05, 33 | 0x04, 0x15, 0x15, 0x15, 0x15, 0x15, 0x15, 0x05, /* 6. */ 34 | 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 35 | 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, /* 7. */ 36 | 0x05, 0x05, 0x05, 0x04, 0x04, 0x04, 0x04, 0x00, 37 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 8. */ 38 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 39 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 9. */ 40 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 41 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* a. */ 42 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 43 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* b. */ 44 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 45 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* c. */ 46 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 47 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* d. */ 48 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 49 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* e. */ 50 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 51 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* f. */ 52 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 53 | }; 54 | 55 | #endif /* } */ 56 | -------------------------------------------------------------------------------- /luaLib/lctype.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lctype.h,v 1.12 2011/07/15 12:50:29 roberto Exp $ 3 | ** 'ctype' functions for Lua 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lctype_h 8 | #define lctype_h 9 | 10 | #include "lua.h" 11 | 12 | 13 | /* 14 | ** WARNING: the functions defined here do not necessarily correspond 15 | ** to the similar functions in the standard C ctype.h. They are 16 | ** optimized for the specific needs of Lua 17 | */ 18 | 19 | #if !defined(LUA_USE_CTYPE) 20 | 21 | #if 'A' == 65 && '0' == 48 22 | /* ASCII case: can use its own tables; faster and fixed */ 23 | #define LUA_USE_CTYPE 0 24 | #else 25 | /* must use standard C ctype */ 26 | #define LUA_USE_CTYPE 1 27 | #endif 28 | 29 | #endif 30 | 31 | 32 | #if !LUA_USE_CTYPE /* { */ 33 | 34 | #include 35 | 36 | #include "llimits.h" 37 | 38 | 39 | #define ALPHABIT 0 40 | #define DIGITBIT 1 41 | #define PRINTBIT 2 42 | #define SPACEBIT 3 43 | #define XDIGITBIT 4 44 | 45 | 46 | #define MASK(B) (1 << (B)) 47 | 48 | 49 | /* 50 | ** add 1 to char to allow index -1 (EOZ) 51 | */ 52 | #define testprop(c,p) (luai_ctype_[(c)+1] & (p)) 53 | 54 | /* 55 | ** 'lalpha' (Lua alphabetic) and 'lalnum' (Lua alphanumeric) both include '_' 56 | */ 57 | #define lislalpha(c) testprop(c, MASK(ALPHABIT)) 58 | #define lislalnum(c) testprop(c, (MASK(ALPHABIT) | MASK(DIGITBIT))) 59 | #define lisdigit(c) testprop(c, MASK(DIGITBIT)) 60 | #define lisspace(c) testprop(c, MASK(SPACEBIT)) 61 | #define lisprint(c) testprop(c, MASK(PRINTBIT)) 62 | #define lisxdigit(c) testprop(c, MASK(XDIGITBIT)) 63 | 64 | /* 65 | ** this 'ltolower' only works for alphabetic characters 66 | */ 67 | #define ltolower(c) ((c) | ('A' ^ 'a')) 68 | 69 | 70 | /* two more entries for 0 and -1 (EOZ) */ 71 | LUAI_DDEC const lu_byte luai_ctype_[UCHAR_MAX + 2]; 72 | 73 | 74 | #else /* }{ */ 75 | 76 | /* 77 | ** use standard C ctypes 78 | */ 79 | 80 | #include 81 | 82 | 83 | #define lislalpha(c) (isalpha(c) || (c) == '_') 84 | #define lislalnum(c) (isalnum(c) || (c) == '_') 85 | #define lisdigit(c) (isdigit(c)) 86 | #define lisspace(c) (isspace(c)) 87 | #define lisprint(c) (isprint(c)) 88 | #define lisxdigit(c) (isxdigit(c)) 89 | 90 | #define ltolower(c) (tolower(c)) 91 | 92 | #endif /* } */ 93 | 94 | #endif 95 | 96 | -------------------------------------------------------------------------------- /luaLib/ldebug.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: ldebug.h,v 2.14 2015/05/22 17:45:56 roberto Exp $ 3 | ** Auxiliary functions from Debug Interface module 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef ldebug_h 8 | #define ldebug_h 9 | 10 | 11 | #include "lstate.h" 12 | 13 | 14 | #define pcRel(pc, p) (cast(int, (pc) - (p)->code) - 1) 15 | 16 | #define getfuncline(f,pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : -1) 17 | 18 | #define resethookcount(L) (L->hookcount = L->basehookcount) 19 | 20 | 21 | LUAI_FUNC l_noret luaG_typeerror (lua_State *L, const TValue *o, 22 | const char *opname); 23 | LUAI_FUNC l_noret luaG_concaterror (lua_State *L, const TValue *p1, 24 | const TValue *p2); 25 | LUAI_FUNC l_noret luaG_opinterror (lua_State *L, const TValue *p1, 26 | const TValue *p2, 27 | const char *msg); 28 | LUAI_FUNC l_noret luaG_tointerror (lua_State *L, const TValue *p1, 29 | const TValue *p2); 30 | LUAI_FUNC l_noret luaG_ordererror (lua_State *L, const TValue *p1, 31 | const TValue *p2); 32 | LUAI_FUNC l_noret luaG_runerror (lua_State *L, const char *fmt, ...); 33 | LUAI_FUNC const char *luaG_addinfo (lua_State *L, const char *msg, 34 | TString *src, int line); 35 | LUAI_FUNC l_noret luaG_errormsg (lua_State *L); 36 | LUAI_FUNC void luaG_traceexec (lua_State *L); 37 | 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /luaLib/ldo.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: ldo.h,v 2.29 2015/12/21 13:02:14 roberto Exp $ 3 | ** Stack and Call structure of Lua 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef ldo_h 8 | #define ldo_h 9 | 10 | 11 | #include "lobject.h" 12 | #include "lstate.h" 13 | #include "lzio.h" 14 | 15 | 16 | /* 17 | ** Macro to check stack size and grow stack if needed. Parameters 18 | ** 'pre'/'pos' allow the macro to preserve a pointer into the 19 | ** stack across reallocations, doing the work only when needed. 20 | ** 'condmovestack' is used in heavy tests to force a stack reallocation 21 | ** at every check. 22 | */ 23 | #define luaD_checkstackaux(L,n,pre,pos) \ 24 | if (L->stack_last - L->top <= (n)) \ 25 | { pre; luaD_growstack(L, n); pos; } else { condmovestack(L,pre,pos); } 26 | 27 | /* In general, 'pre'/'pos' are empty (nothing to save) */ 28 | #define luaD_checkstack(L,n) luaD_checkstackaux(L,n,(void)0,(void)0) 29 | 30 | 31 | 32 | #define savestack(L,p) ((char *)(p) - (char *)L->stack) 33 | #define restorestack(L,n) ((TValue *)((char *)L->stack + (n))) 34 | 35 | 36 | /* type of protected functions, to be ran by 'runprotected' */ 37 | typedef void (*Pfunc) (lua_State *L, void *ud); 38 | 39 | LUAI_FUNC int luaD_protectedparser (lua_State *L, ZIO *z, const char *name, 40 | const char *mode); 41 | LUAI_FUNC void luaD_hook (lua_State *L, int event, int line); 42 | LUAI_FUNC int luaD_precall (lua_State *L, StkId func, int nresults); 43 | LUAI_FUNC void luaD_call (lua_State *L, StkId func, int nResults); 44 | LUAI_FUNC void luaD_callnoyield (lua_State *L, StkId func, int nResults); 45 | LUAI_FUNC int luaD_pcall (lua_State *L, Pfunc func, void *u, 46 | ptrdiff_t oldtop, ptrdiff_t ef); 47 | LUAI_FUNC int luaD_poscall (lua_State *L, CallInfo *ci, StkId firstResult, 48 | int nres); 49 | LUAI_FUNC void luaD_reallocstack (lua_State *L, int newsize); 50 | LUAI_FUNC void luaD_growstack (lua_State *L, int n); 51 | LUAI_FUNC void luaD_shrinkstack (lua_State *L); 52 | LUAI_FUNC void luaD_inctop (lua_State *L); 53 | 54 | LUAI_FUNC l_noret luaD_throw (lua_State *L, int errcode); 55 | LUAI_FUNC int luaD_rawrunprotected (lua_State *L, Pfunc f, void *ud); 56 | 57 | #endif 58 | 59 | -------------------------------------------------------------------------------- /luaLib/lfunc.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lfunc.h,v 2.15 2015/01/13 15:49:11 roberto Exp $ 3 | ** Auxiliary functions to manipulate prototypes and closures 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lfunc_h 8 | #define lfunc_h 9 | 10 | 11 | #include "lobject.h" 12 | 13 | 14 | #define sizeCclosure(n) (cast(int, sizeof(CClosure)) + \ 15 | cast(int, sizeof(TValue)*((n)-1))) 16 | 17 | #define sizeLclosure(n) (cast(int, sizeof(LClosure)) + \ 18 | cast(int, sizeof(TValue *)*((n)-1))) 19 | 20 | 21 | /* test whether thread is in 'twups' list */ 22 | #define isintwups(L) (L->twups != L) 23 | 24 | 25 | /* 26 | ** maximum number of upvalues in a closure (both C and Lua). (Value 27 | ** must fit in a VM register.) 28 | */ 29 | #define MAXUPVAL 255 30 | 31 | 32 | /* 33 | ** Upvalues for Lua closures 34 | */ 35 | struct UpVal { 36 | TValue *v; /* points to stack or to its own value */ 37 | lu_mem refcount; /* reference counter */ 38 | union { 39 | struct { /* (when open) */ 40 | UpVal *next; /* linked list */ 41 | int touched; /* mark to avoid cycles with dead threads */ 42 | } open; 43 | TValue value; /* the value (when closed) */ 44 | } u; 45 | }; 46 | 47 | #define upisopen(up) ((up)->v != &(up)->u.value) 48 | 49 | 50 | LUAI_FUNC Proto *luaF_newproto (lua_State *L); 51 | LUAI_FUNC CClosure *luaF_newCclosure (lua_State *L, int nelems); 52 | LUAI_FUNC LClosure *luaF_newLclosure (lua_State *L, int nelems); 53 | LUAI_FUNC void luaF_initupvals (lua_State *L, LClosure *cl); 54 | LUAI_FUNC UpVal *luaF_findupval (lua_State *L, StkId level); 55 | LUAI_FUNC void luaF_close (lua_State *L, StkId level); 56 | LUAI_FUNC void luaF_freeproto (lua_State *L, Proto *f); 57 | LUAI_FUNC const char *luaF_getlocalname (const Proto *func, int local_number, 58 | int pc); 59 | 60 | 61 | #endif 62 | -------------------------------------------------------------------------------- /luaLib/linit.c: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: linit.c,v 1.39 2016/12/04 20:17:24 roberto Exp $ 3 | ** Initialization of libraries for lua.c and other clients 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | 8 | #define linit_c 9 | #define LUA_LIB 10 | 11 | /* 12 | ** If you embed Lua in your program and need to open the standard 13 | ** libraries, call luaL_openlibs in your program. If you need a 14 | ** different set of libraries, copy this file to your project and edit 15 | ** it to suit your needs. 16 | ** 17 | ** You can also *preload* libraries, so that a later 'require' can 18 | ** open the library, which is already linked to the application. 19 | ** For that, do the following code: 20 | ** 21 | ** luaL_getsubtable(L, LUA_REGISTRYINDEX, LUA_PRELOAD_TABLE); 22 | ** lua_pushcfunction(L, luaopen_modname); 23 | ** lua_setfield(L, -2, modname); 24 | ** lua_pop(L, 1); // remove PRELOAD table 25 | */ 26 | 27 | #include "lprefix.h" 28 | 29 | 30 | #include 31 | 32 | #include "lua.h" 33 | 34 | #include "lualib.h" 35 | #include "lauxlib.h" 36 | 37 | 38 | /* 39 | ** these libs are loaded by lua.c and are readily available to any Lua 40 | ** program 41 | */ 42 | static const luaL_Reg loadedlibs[] = { 43 | {"_G", luaopen_base}, 44 | {LUA_LOADLIBNAME, luaopen_package}, 45 | {LUA_COLIBNAME, luaopen_coroutine}, 46 | {LUA_TABLIBNAME, luaopen_table}, 47 | {LUA_IOLIBNAME, luaopen_io}, 48 | {LUA_OSLIBNAME, luaopen_os}, 49 | {LUA_STRLIBNAME, luaopen_string}, 50 | {LUA_MATHLIBNAME, luaopen_math}, 51 | {LUA_UTF8LIBNAME, luaopen_utf8}, 52 | {LUA_DBLIBNAME, luaopen_debug}, 53 | #if defined(LUA_COMPAT_BITLIB) 54 | {LUA_BITLIBNAME, luaopen_bit32}, 55 | #endif 56 | {NULL, NULL} 57 | }; 58 | 59 | 60 | LUALIB_API void luaL_openlibs (lua_State *L) { 61 | const luaL_Reg *lib; 62 | /* "require" functions from 'loadedlibs' and set results to global table */ 63 | for (lib = loadedlibs; lib->func; lib++) { 64 | luaL_requiref(L, lib->name, lib->func, 1); 65 | lua_pop(L, 1); /* remove lib */ 66 | } 67 | } 68 | 69 | -------------------------------------------------------------------------------- /luaLib/llex.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: llex.h,v 1.79 2016/05/02 14:02:12 roberto Exp $ 3 | ** Lexical Analyzer 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef llex_h 8 | #define llex_h 9 | 10 | #include "lobject.h" 11 | #include "lzio.h" 12 | 13 | 14 | #define FIRST_RESERVED 257 15 | 16 | 17 | #if !defined(LUA_ENV) 18 | #define LUA_ENV "_ENV" 19 | #endif 20 | 21 | 22 | /* 23 | * WARNING: if you change the order of this enumeration, 24 | * grep "ORDER RESERVED" 25 | */ 26 | enum RESERVED { 27 | /* terminal symbols denoted by reserved words */ 28 | TK_AND = FIRST_RESERVED, TK_BREAK, 29 | TK_DO, TK_ELSE, TK_ELSEIF, TK_END, TK_FALSE, TK_FOR, TK_FUNCTION, 30 | TK_GOTO, TK_IF, TK_IN, TK_LOCAL, TK_NIL, TK_NOT, TK_OR, TK_REPEAT, 31 | TK_RETURN, TK_THEN, TK_TRUE, TK_UNTIL, TK_WHILE, 32 | /* other terminal symbols */ 33 | TK_IDIV, TK_CONCAT, TK_DOTS, TK_EQ, TK_GE, TK_LE, TK_NE, 34 | TK_SHL, TK_SHR, 35 | TK_DBCOLON, TK_EOS, 36 | TK_FLT, TK_INT, TK_NAME, TK_STRING 37 | }; 38 | 39 | /* number of reserved words */ 40 | #define NUM_RESERVED (cast(int, TK_WHILE-FIRST_RESERVED+1)) 41 | 42 | 43 | typedef union { 44 | lua_Number r; 45 | lua_Integer i; 46 | TString *ts; 47 | } SemInfo; /* semantics information */ 48 | 49 | 50 | typedef struct Token { 51 | int token; 52 | SemInfo seminfo; 53 | } Token; 54 | 55 | 56 | /* state of the lexer plus state of the parser when shared by all 57 | functions */ 58 | typedef struct LexState { 59 | int current; /* current character (charint) */ 60 | int linenumber; /* input line counter */ 61 | int lastline; /* line of last token 'consumed' */ 62 | Token t; /* current token */ 63 | Token lookahead; /* look ahead token */ 64 | struct FuncState *fs; /* current function (parser) */ 65 | struct lua_State *L; 66 | ZIO *z; /* input stream */ 67 | Mbuffer *buff; /* buffer for tokens */ 68 | Table *h; /* to avoid collection/reuse strings */ 69 | struct Dyndata *dyd; /* dynamic structures used by the parser */ 70 | TString *source; /* current source name */ 71 | TString *envn; /* environment variable name */ 72 | } LexState; 73 | 74 | 75 | LUAI_FUNC void luaX_init (lua_State *L); 76 | LUAI_FUNC void luaX_setinput (lua_State *L, LexState *ls, ZIO *z, 77 | TString *source, int firstchar); 78 | LUAI_FUNC TString *luaX_newstring (LexState *ls, const char *str, size_t l); 79 | LUAI_FUNC void luaX_next (LexState *ls); 80 | LUAI_FUNC int luaX_lookahead (LexState *ls); 81 | LUAI_FUNC l_noret luaX_syntaxerror (LexState *ls, const char *s); 82 | LUAI_FUNC const char *luaX_token2str (LexState *ls, int token); 83 | 84 | 85 | #endif 86 | -------------------------------------------------------------------------------- /luaLib/lprefix.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lprefix.h,v 1.2 2014/12/29 16:54:13 roberto Exp $ 3 | ** Definitions for Lua code that must come before any other header file 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lprefix_h 8 | #define lprefix_h 9 | 10 | 11 | /* 12 | ** Allows POSIX/XSI stuff 13 | */ 14 | #if !defined(LUA_USE_C89) /* { */ 15 | 16 | #if !defined(_XOPEN_SOURCE) 17 | #define _XOPEN_SOURCE 600 18 | #elif _XOPEN_SOURCE == 0 19 | #undef _XOPEN_SOURCE /* use -D_XOPEN_SOURCE=0 to undefine it */ 20 | #endif 21 | 22 | /* 23 | ** Allows manipulation of large files in gcc and some other compilers 24 | */ 25 | #if !defined(LUA_32BITS) && !defined(_FILE_OFFSET_BITS) 26 | #define _LARGEFILE_SOURCE 1 27 | #define _FILE_OFFSET_BITS 64 28 | #endif 29 | 30 | #endif /* } */ 31 | 32 | 33 | /* 34 | ** Windows stuff 35 | */ 36 | #if defined(_WIN32) /* { */ 37 | 38 | #if !defined(_CRT_SECURE_NO_WARNINGS) 39 | #define _CRT_SECURE_NO_WARNINGS /* avoid warnings about ISO C functions */ 40 | #endif 41 | 42 | #endif /* } */ 43 | 44 | #endif 45 | 46 | -------------------------------------------------------------------------------- /luaLib/lstring.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lstring.h,v 1.61 2015/11/03 15:36:01 roberto Exp $ 3 | ** String table (keep all strings handled by Lua) 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lstring_h 8 | #define lstring_h 9 | 10 | #include "lgc.h" 11 | #include "lobject.h" 12 | #include "lstate.h" 13 | 14 | 15 | #define sizelstring(l) (sizeof(union UTString) + ((l) + 1) * sizeof(char)) 16 | 17 | #define sizeludata(l) (sizeof(union UUdata) + (l)) 18 | #define sizeudata(u) sizeludata((u)->len) 19 | 20 | #define luaS_newliteral(L, s) (luaS_newlstr(L, "" s, \ 21 | (sizeof(s)/sizeof(char))-1)) 22 | 23 | 24 | /* 25 | ** test whether a string is a reserved word 26 | */ 27 | #define isreserved(s) ((s)->tt == LUA_TSHRSTR && (s)->extra > 0) 28 | 29 | 30 | /* 31 | ** equality for short strings, which are always internalized 32 | */ 33 | #define eqshrstr(a,b) check_exp((a)->tt == LUA_TSHRSTR, (a) == (b)) 34 | 35 | 36 | LUAI_FUNC unsigned int luaS_hash (const char *str, size_t l, unsigned int seed); 37 | LUAI_FUNC unsigned int luaS_hashlongstr (TString *ts); 38 | LUAI_FUNC int luaS_eqlngstr (TString *a, TString *b); 39 | LUAI_FUNC void luaS_resize (lua_State *L, int newsize); 40 | LUAI_FUNC void luaS_clearcache (global_State *g); 41 | LUAI_FUNC void luaS_init (lua_State *L); 42 | LUAI_FUNC void luaS_remove (lua_State *L, TString *ts); 43 | LUAI_FUNC Udata *luaS_newudata (lua_State *L, size_t s); 44 | LUAI_FUNC TString *luaS_newlstr (lua_State *L, const char *str, size_t l); 45 | LUAI_FUNC TString *luaS_new (lua_State *L, const char *str); 46 | LUAI_FUNC TString *luaS_createlngstrobj (lua_State *L, size_t l); 47 | 48 | 49 | #endif 50 | -------------------------------------------------------------------------------- /luaLib/ltable.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: ltable.h,v 2.23 2016/12/22 13:08:50 roberto Exp $ 3 | ** Lua tables (hash) 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef ltable_h 8 | #define ltable_h 9 | 10 | #include "lobject.h" 11 | 12 | 13 | #define gnode(t,i) (&(t)->node[i]) 14 | #define gval(n) (&(n)->i_val) 15 | #define gnext(n) ((n)->i_key.nk.next) 16 | 17 | 18 | /* 'const' to avoid wrong writings that can mess up field 'next' */ 19 | #define gkey(n) cast(const TValue*, (&(n)->i_key.tvk)) 20 | 21 | /* 22 | ** writable version of 'gkey'; allows updates to individual fields, 23 | ** but not to the whole (which has incompatible type) 24 | */ 25 | #define wgkey(n) (&(n)->i_key.nk) 26 | 27 | #define invalidateTMcache(t) ((t)->flags = 0) 28 | 29 | 30 | /* true when 't' is using 'dummynode' as its hash part */ 31 | #define isdummy(t) ((t)->lastfree == NULL) 32 | 33 | 34 | /* allocated size for hash nodes */ 35 | #define allocsizenode(t) (isdummy(t) ? 0 : sizenode(t)) 36 | 37 | 38 | /* returns the key, given the value of a table entry */ 39 | #define keyfromval(v) \ 40 | (gkey(cast(Node *, cast(char *, (v)) - offsetof(Node, i_val)))) 41 | 42 | 43 | LUAI_FUNC const TValue *luaH_getint (Table *t, lua_Integer key); 44 | LUAI_FUNC void luaH_setint (lua_State *L, Table *t, lua_Integer key, 45 | TValue *value); 46 | LUAI_FUNC const TValue *luaH_getshortstr (Table *t, TString *key); 47 | LUAI_FUNC const TValue *luaH_getstr (Table *t, TString *key); 48 | LUAI_FUNC const TValue *luaH_get (Table *t, const TValue *key); 49 | LUAI_FUNC TValue *luaH_newkey (lua_State *L, Table *t, const TValue *key); 50 | LUAI_FUNC TValue *luaH_set (lua_State *L, Table *t, const TValue *key); 51 | LUAI_FUNC Table *luaH_new (lua_State *L); 52 | LUAI_FUNC void luaH_resize (lua_State *L, Table *t, unsigned int nasize, 53 | unsigned int nhsize); 54 | LUAI_FUNC void luaH_resizearray (lua_State *L, Table *t, unsigned int nasize); 55 | LUAI_FUNC void luaH_free (lua_State *L, Table *t); 56 | LUAI_FUNC int luaH_next (lua_State *L, Table *t, StkId key); 57 | LUAI_FUNC int luaH_getn (Table *t); 58 | 59 | 60 | #if defined(LUA_DEBUG) 61 | LUAI_FUNC Node *luaH_mainposition (const Table *t, const TValue *key); 62 | LUAI_FUNC int luaH_isdummy (const Table *t); 63 | #endif 64 | 65 | 66 | #endif 67 | -------------------------------------------------------------------------------- /luaLib/ltm.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: ltm.h,v 2.22 2016/02/26 19:20:15 roberto Exp $ 3 | ** Tag methods 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef ltm_h 8 | #define ltm_h 9 | 10 | 11 | #include "lobject.h" 12 | 13 | 14 | /* 15 | * WARNING: if you change the order of this enumeration, 16 | * grep "ORDER TM" and "ORDER OP" 17 | */ 18 | typedef enum { 19 | TM_INDEX, 20 | TM_NEWINDEX, 21 | TM_GC, 22 | TM_MODE, 23 | TM_LEN, 24 | TM_EQ, /* last tag method with fast access */ 25 | TM_ADD, 26 | TM_SUB, 27 | TM_MUL, 28 | TM_MOD, 29 | TM_POW, 30 | TM_DIV, 31 | TM_IDIV, 32 | TM_BAND, 33 | TM_BOR, 34 | TM_BXOR, 35 | TM_SHL, 36 | TM_SHR, 37 | TM_UNM, 38 | TM_BNOT, 39 | TM_LT, 40 | TM_LE, 41 | TM_CONCAT, 42 | TM_CALL, 43 | TM_N /* number of elements in the enum */ 44 | } TMS; 45 | 46 | 47 | 48 | #define gfasttm(g,et,e) ((et) == NULL ? NULL : \ 49 | ((et)->flags & (1u<<(e))) ? NULL : luaT_gettm(et, e, (g)->tmname[e])) 50 | 51 | #define fasttm(l,et,e) gfasttm(G(l), et, e) 52 | 53 | #define ttypename(x) luaT_typenames_[(x) + 1] 54 | 55 | LUAI_DDEC const char *const luaT_typenames_[LUA_TOTALTAGS]; 56 | 57 | 58 | LUAI_FUNC const char *luaT_objtypename (lua_State *L, const TValue *o); 59 | 60 | LUAI_FUNC const TValue *luaT_gettm (Table *events, TMS event, TString *ename); 61 | LUAI_FUNC const TValue *luaT_gettmbyobj (lua_State *L, const TValue *o, 62 | TMS event); 63 | LUAI_FUNC void luaT_init (lua_State *L); 64 | 65 | LUAI_FUNC void luaT_callTM (lua_State *L, const TValue *f, const TValue *p1, 66 | const TValue *p2, TValue *p3, int hasres); 67 | LUAI_FUNC int luaT_callbinTM (lua_State *L, const TValue *p1, const TValue *p2, 68 | StkId res, TMS event); 69 | LUAI_FUNC void luaT_trybinTM (lua_State *L, const TValue *p1, const TValue *p2, 70 | StkId res, TMS event); 71 | LUAI_FUNC int luaT_callorderTM (lua_State *L, const TValue *p1, 72 | const TValue *p2, TMS event); 73 | 74 | 75 | 76 | #endif 77 | -------------------------------------------------------------------------------- /luaLib/lua.hpp: -------------------------------------------------------------------------------- 1 | // lua.hpp 2 | // Lua header files for C++ 3 | // <> not supplied automatically because Lua also compiles as C++ 4 | 5 | extern "C" { 6 | #include "lua.h" 7 | #include "lualib.h" 8 | #include "lauxlib.h" 9 | } 10 | -------------------------------------------------------------------------------- /luaLib/lualib.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lualib.h,v 1.45 2017/01/12 17:14:26 roberto Exp $ 3 | ** Lua standard libraries 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | 8 | #ifndef lualib_h 9 | #define lualib_h 10 | 11 | #include "lua.h" 12 | 13 | 14 | /* version suffix for environment variable names */ 15 | #define LUA_VERSUFFIX "_" LUA_VERSION_MAJOR "_" LUA_VERSION_MINOR 16 | 17 | 18 | LUAMOD_API int (luaopen_base) (lua_State *L); 19 | 20 | #define LUA_COLIBNAME "coroutine" 21 | LUAMOD_API int (luaopen_coroutine) (lua_State *L); 22 | 23 | #define LUA_TABLIBNAME "table" 24 | LUAMOD_API int (luaopen_table) (lua_State *L); 25 | 26 | #define LUA_IOLIBNAME "io" 27 | LUAMOD_API int (luaopen_io) (lua_State *L); 28 | 29 | #define LUA_OSLIBNAME "os" 30 | LUAMOD_API int (luaopen_os) (lua_State *L); 31 | 32 | #define LUA_STRLIBNAME "string" 33 | LUAMOD_API int (luaopen_string) (lua_State *L); 34 | 35 | #define LUA_UTF8LIBNAME "utf8" 36 | LUAMOD_API int (luaopen_utf8) (lua_State *L); 37 | 38 | #define LUA_BITLIBNAME "bit32" 39 | LUAMOD_API int (luaopen_bit32) (lua_State *L); 40 | 41 | #define LUA_MATHLIBNAME "math" 42 | LUAMOD_API int (luaopen_math) (lua_State *L); 43 | 44 | #define LUA_DBLIBNAME "debug" 45 | LUAMOD_API int (luaopen_debug) (lua_State *L); 46 | 47 | #define LUA_LOADLIBNAME "package" 48 | LUAMOD_API int (luaopen_package) (lua_State *L); 49 | 50 | 51 | /* open all previous libraries */ 52 | LUALIB_API void (luaL_openlibs) (lua_State *L); 53 | 54 | 55 | 56 | #if !defined(lua_assert) 57 | #define lua_assert(x) ((void)0) 58 | #endif 59 | 60 | 61 | #endif 62 | -------------------------------------------------------------------------------- /luaLib/lundump.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lundump.h,v 1.45 2015/09/08 15:41:05 roberto Exp $ 3 | ** load precompiled Lua chunks 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lundump_h 8 | #define lundump_h 9 | 10 | #include "llimits.h" 11 | #include "lobject.h" 12 | #include "lzio.h" 13 | 14 | 15 | /* data to catch conversion errors */ 16 | #define LUAC_DATA "\x19\x93\r\n\x1a\n" 17 | 18 | #define LUAC_INT 0x5678 19 | #define LUAC_NUM cast_num(370.5) 20 | 21 | #define MYINT(s) (s[0]-'0') 22 | #define LUAC_VERSION (MYINT(LUA_VERSION_MAJOR)*16+MYINT(LUA_VERSION_MINOR)) 23 | #define LUAC_FORMAT 0 /* this is the official format */ 24 | 25 | /* load one chunk; from lundump.c */ 26 | LUAI_FUNC LClosure* luaU_undump (lua_State* L, ZIO* Z, const char* name); 27 | 28 | /* dump one chunk; from ldump.c */ 29 | LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, 30 | void* data, int strip); 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /luaLib/lzio.c: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lzio.c,v 1.37 2015/09/08 15:41:05 roberto Exp $ 3 | ** Buffered streams 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #define lzio_c 8 | #define LUA_CORE 9 | 10 | #include "lprefix.h" 11 | 12 | 13 | #include 14 | 15 | #include "lua.h" 16 | 17 | #include "llimits.h" 18 | #include "lmem.h" 19 | #include "lstate.h" 20 | #include "lzio.h" 21 | 22 | 23 | int luaZ_fill (ZIO *z) { 24 | size_t size; 25 | lua_State *L = z->L; 26 | const char *buff; 27 | lua_unlock(L); 28 | buff = z->reader(L, z->data, &size); 29 | lua_lock(L); 30 | if (buff == NULL || size == 0) 31 | return EOZ; 32 | z->n = size - 1; /* discount char being returned */ 33 | z->p = buff; 34 | return cast_uchar(*(z->p++)); 35 | } 36 | 37 | 38 | void luaZ_init (lua_State *L, ZIO *z, lua_Reader reader, void *data) { 39 | z->L = L; 40 | z->reader = reader; 41 | z->data = data; 42 | z->n = 0; 43 | z->p = NULL; 44 | } 45 | 46 | 47 | /* --------------------------------------------------------------- read --- */ 48 | size_t luaZ_read (ZIO *z, void *b, size_t n) { 49 | while (n) { 50 | size_t m; 51 | if (z->n == 0) { /* no bytes in buffer? */ 52 | if (luaZ_fill(z) == EOZ) /* try to read more */ 53 | return n; /* no more input; return number of missing bytes */ 54 | else { 55 | z->n++; /* luaZ_fill consumed first byte; put it back */ 56 | z->p--; 57 | } 58 | } 59 | m = (n <= z->n) ? n : z->n; /* min. between n and z->n */ 60 | memcpy(b, z->p, m); 61 | z->n -= m; 62 | z->p += m; 63 | b = (char *)b + m; 64 | n -= m; 65 | } 66 | return 0; 67 | } 68 | 69 | -------------------------------------------------------------------------------- /luaLib/lzio.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lzio.h,v 1.31 2015/09/08 15:41:05 roberto Exp $ 3 | ** Buffered streams 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | 8 | #ifndef lzio_h 9 | #define lzio_h 10 | 11 | #include "lua.h" 12 | 13 | #include "lmem.h" 14 | 15 | 16 | #define EOZ (-1) /* end of stream */ 17 | 18 | typedef struct Zio ZIO; 19 | 20 | #define zgetc(z) (((z)->n--)>0 ? cast_uchar(*(z)->p++) : luaZ_fill(z)) 21 | 22 | 23 | typedef struct Mbuffer { 24 | char *buffer; 25 | size_t n; 26 | size_t buffsize; 27 | } Mbuffer; 28 | 29 | #define luaZ_initbuffer(L, buff) ((buff)->buffer = NULL, (buff)->buffsize = 0) 30 | 31 | #define luaZ_buffer(buff) ((buff)->buffer) 32 | #define luaZ_sizebuffer(buff) ((buff)->buffsize) 33 | #define luaZ_bufflen(buff) ((buff)->n) 34 | 35 | #define luaZ_buffremove(buff,i) ((buff)->n -= (i)) 36 | #define luaZ_resetbuffer(buff) ((buff)->n = 0) 37 | 38 | 39 | #define luaZ_resizebuffer(L, buff, size) \ 40 | ((buff)->buffer = luaM_reallocvchar(L, (buff)->buffer, \ 41 | (buff)->buffsize, size), \ 42 | (buff)->buffsize = size) 43 | 44 | #define luaZ_freebuffer(L, buff) luaZ_resizebuffer(L, buff, 0) 45 | 46 | 47 | LUAI_FUNC void luaZ_init (lua_State *L, ZIO *z, lua_Reader reader, 48 | void *data); 49 | LUAI_FUNC size_t luaZ_read (ZIO* z, void *b, size_t n); /* read next n bytes */ 50 | 51 | 52 | 53 | /* --------- Private Part ------------------ */ 54 | 55 | struct Zio { 56 | size_t n; /* bytes still unread */ 57 | const char *p; /* current position in buffer */ 58 | lua_Reader reader; /* reader function */ 59 | void *data; /* additional data */ 60 | lua_State *L; /* Lua state (for reader) */ 61 | }; 62 | 63 | 64 | LUAI_FUNC int luaZ_fill (ZIO *z); 65 | 66 | #endif 67 | --------------------------------------------------------------------------------