]> OCCT Git - occt-copy.git/commitdiff
IGES simplification
authorszv <szv@opencascade.com>
Mon, 5 Dec 2016 11:41:36 +0000 (14:41 +0300)
committerszv <szv@opencascade.com>
Mon, 5 Dec 2016 11:41:36 +0000 (14:41 +0300)
472 files changed:
src/IFSelect/IFSelect_SelectPointed.cxx
src/IFSelect/IFSelect_SelectPointed.hxx
src/IGESAppli/IGESAppli.cxx
src/IGESAppli/IGESAppli.hxx
src/IGESAppli/IGESAppli_DrilledHole.cxx
src/IGESAppli/IGESAppli_DrilledHole.hxx
src/IGESAppli/IGESAppli_ElementResults.cxx
src/IGESAppli/IGESAppli_ElementResults.hxx
src/IGESAppli/IGESAppli_FiniteElement.cxx
src/IGESAppli/IGESAppli_FiniteElement.hxx
src/IGESAppli/IGESAppli_Flow.cxx
src/IGESAppli/IGESAppli_Flow.hxx
src/IGESAppli/IGESAppli_FlowLineSpec.cxx
src/IGESAppli/IGESAppli_FlowLineSpec.hxx
src/IGESAppli/IGESAppli_GeneralModule.cxx
src/IGESAppli/IGESAppli_GeneralModule.hxx
src/IGESAppli/IGESAppli_LevelFunction.cxx
src/IGESAppli/IGESAppli_LevelFunction.hxx
src/IGESAppli/IGESAppli_LevelToPWBLayerMap.cxx
src/IGESAppli/IGESAppli_LevelToPWBLayerMap.hxx
src/IGESAppli/IGESAppli_LineWidening.cxx
src/IGESAppli/IGESAppli_LineWidening.hxx
src/IGESAppli/IGESAppli_NodalConstraint.cxx
src/IGESAppli/IGESAppli_NodalConstraint.hxx
src/IGESAppli/IGESAppli_NodalDisplAndRot.cxx
src/IGESAppli/IGESAppli_NodalDisplAndRot.hxx
src/IGESAppli/IGESAppli_NodalResults.cxx
src/IGESAppli/IGESAppli_NodalResults.hxx
src/IGESAppli/IGESAppli_Node.cxx
src/IGESAppli/IGESAppli_Node.hxx
src/IGESAppli/IGESAppli_PWBArtworkStackup.cxx
src/IGESAppli/IGESAppli_PWBArtworkStackup.hxx
src/IGESAppli/IGESAppli_PWBDrilledHole.cxx
src/IGESAppli/IGESAppli_PWBDrilledHole.hxx
src/IGESAppli/IGESAppli_PartNumber.cxx
src/IGESAppli/IGESAppli_PartNumber.hxx
src/IGESAppli/IGESAppli_PinNumber.cxx
src/IGESAppli/IGESAppli_PinNumber.hxx
src/IGESAppli/IGESAppli_PipingFlow.cxx
src/IGESAppli/IGESAppli_PipingFlow.hxx
src/IGESAppli/IGESAppli_Protocol.cxx
src/IGESAppli/IGESAppli_Protocol.hxx
src/IGESAppli/IGESAppli_ReadWriteModule.cxx
src/IGESAppli/IGESAppli_ReadWriteModule.hxx
src/IGESAppli/IGESAppli_ReferenceDesignator.cxx
src/IGESAppli/IGESAppli_ReferenceDesignator.hxx
src/IGESAppli/IGESAppli_RegionRestriction.cxx
src/IGESAppli/IGESAppli_RegionRestriction.hxx
src/IGESAppli/IGESAppli_ToolDrilledHole.cxx
src/IGESAppli/IGESAppli_ToolDrilledHole.hxx
src/IGESAppli/IGESAppli_ToolElementResults.cxx
src/IGESAppli/IGESAppli_ToolElementResults.hxx
src/IGESAppli/IGESAppli_ToolFiniteElement.cxx
src/IGESAppli/IGESAppli_ToolFiniteElement.hxx
src/IGESAppli/IGESAppli_ToolFlow.cxx
src/IGESAppli/IGESAppli_ToolFlow.hxx
src/IGESAppli/IGESAppli_ToolFlowLineSpec.cxx
src/IGESAppli/IGESAppli_ToolFlowLineSpec.hxx
src/IGESAppli/IGESAppli_ToolLevelFunction.cxx
src/IGESAppli/IGESAppli_ToolLevelFunction.hxx
src/IGESAppli/IGESAppli_ToolLevelToPWBLayerMap.cxx
src/IGESAppli/IGESAppli_ToolLevelToPWBLayerMap.hxx
src/IGESAppli/IGESAppli_ToolLineWidening.cxx
src/IGESAppli/IGESAppli_ToolLineWidening.hxx
src/IGESAppli/IGESAppli_ToolNodalConstraint.cxx
src/IGESAppli/IGESAppli_ToolNodalConstraint.hxx
src/IGESAppli/IGESAppli_ToolNodalDisplAndRot.cxx
src/IGESAppli/IGESAppli_ToolNodalDisplAndRot.hxx
src/IGESAppli/IGESAppli_ToolNodalResults.cxx
src/IGESAppli/IGESAppli_ToolNodalResults.hxx
src/IGESAppli/IGESAppli_ToolNode.cxx
src/IGESAppli/IGESAppli_ToolNode.hxx
src/IGESAppli/IGESAppli_ToolPWBArtworkStackup.cxx
src/IGESAppli/IGESAppli_ToolPWBArtworkStackup.hxx
src/IGESAppli/IGESAppli_ToolPWBDrilledHole.cxx
src/IGESAppli/IGESAppli_ToolPWBDrilledHole.hxx
src/IGESAppli/IGESAppli_ToolPartNumber.cxx
src/IGESAppli/IGESAppli_ToolPartNumber.hxx
src/IGESAppli/IGESAppli_ToolPinNumber.cxx
src/IGESAppli/IGESAppli_ToolPinNumber.hxx
src/IGESAppli/IGESAppli_ToolPipingFlow.cxx
src/IGESAppli/IGESAppli_ToolPipingFlow.hxx
src/IGESAppli/IGESAppli_ToolReferenceDesignator.cxx
src/IGESAppli/IGESAppli_ToolReferenceDesignator.hxx
src/IGESAppli/IGESAppli_ToolRegionRestriction.cxx
src/IGESAppli/IGESAppli_ToolRegionRestriction.hxx
src/IGESBasic/IGESBasic.cxx
src/IGESBasic/IGESBasic.hxx
src/IGESBasic/IGESBasic_GeneralModule.cxx
src/IGESBasic/IGESBasic_GeneralModule.hxx
src/IGESBasic/IGESBasic_ReadWriteModule.cxx
src/IGESBasic/IGESBasic_ReadWriteModule.hxx
src/IGESBasic/IGESBasic_ToolAssocGroupType.cxx
src/IGESBasic/IGESBasic_ToolAssocGroupType.hxx
src/IGESBasic/IGESBasic_ToolExternalRefFile.cxx
src/IGESBasic/IGESBasic_ToolExternalRefFile.hxx
src/IGESBasic/IGESBasic_ToolExternalRefFileIndex.cxx
src/IGESBasic/IGESBasic_ToolExternalRefFileIndex.hxx
src/IGESBasic/IGESBasic_ToolExternalRefFileName.cxx
src/IGESBasic/IGESBasic_ToolExternalRefFileName.hxx
src/IGESBasic/IGESBasic_ToolExternalRefLibName.cxx
src/IGESBasic/IGESBasic_ToolExternalRefLibName.hxx
src/IGESBasic/IGESBasic_ToolExternalRefName.cxx
src/IGESBasic/IGESBasic_ToolExternalRefName.hxx
src/IGESBasic/IGESBasic_ToolExternalReferenceFile.cxx
src/IGESBasic/IGESBasic_ToolExternalReferenceFile.hxx
src/IGESBasic/IGESBasic_ToolGroup.cxx
src/IGESBasic/IGESBasic_ToolGroup.hxx
src/IGESBasic/IGESBasic_ToolGroupWithoutBackP.cxx
src/IGESBasic/IGESBasic_ToolGroupWithoutBackP.hxx
src/IGESBasic/IGESBasic_ToolHierarchy.cxx
src/IGESBasic/IGESBasic_ToolHierarchy.hxx
src/IGESBasic/IGESBasic_ToolName.cxx
src/IGESBasic/IGESBasic_ToolName.hxx
src/IGESBasic/IGESBasic_ToolOrderedGroup.cxx
src/IGESBasic/IGESBasic_ToolOrderedGroup.hxx
src/IGESBasic/IGESBasic_ToolOrderedGroupWithoutBackP.cxx
src/IGESBasic/IGESBasic_ToolOrderedGroupWithoutBackP.hxx
src/IGESBasic/IGESBasic_ToolSingleParent.cxx
src/IGESBasic/IGESBasic_ToolSingleParent.hxx
src/IGESBasic/IGESBasic_ToolSingularSubfigure.cxx
src/IGESBasic/IGESBasic_ToolSingularSubfigure.hxx
src/IGESBasic/IGESBasic_ToolSubfigureDef.cxx
src/IGESBasic/IGESBasic_ToolSubfigureDef.hxx
src/IGESControl/IGESControl_Controller.cxx
src/IGESControl/IGESControl_Reader.cxx
src/IGESData/FILES
src/IGESData/IGESData_DefaultGeneral.cxx
src/IGESData/IGESData_DefaultGeneral.hxx
src/IGESData/IGESData_FileProtocol.cxx
src/IGESData/IGESData_FileProtocol.hxx
src/IGESData/IGESData_FileRecognizer.hxx [deleted file]
src/IGESData/IGESData_FileRecognizer_0.cxx [deleted file]
src/IGESData/IGESData_GeneralModule.cxx
src/IGESData/IGESData_GeneralModule.hxx
src/IGESData/IGESData_IGESEntity.cxx
src/IGESData/IGESData_IGESEntity.hxx
src/IGESData/IGESData_IGESReaderTool.cxx
src/IGESData/IGESData_IGESReaderTool.hxx
src/IGESData/IGESData_Protocol.cxx
src/IGESData/IGESData_Protocol.hxx
src/IGESData/IGESData_ReadWriteModule.cxx
src/IGESData/IGESData_ReadWriteModule.hxx
src/IGESData/IGESData_SpecificModule.hxx
src/IGESDefs/IGESDefs.cxx
src/IGESDefs/IGESDefs.hxx
src/IGESDefs/IGESDefs_GeneralModule.cxx
src/IGESDefs/IGESDefs_GeneralModule.hxx
src/IGESDefs/IGESDefs_ReadWriteModule.cxx
src/IGESDefs/IGESDefs_ReadWriteModule.hxx
src/IGESDefs/IGESDefs_ToolAssociativityDef.cxx
src/IGESDefs/IGESDefs_ToolAssociativityDef.hxx
src/IGESDefs/IGESDefs_ToolAttributeDef.cxx
src/IGESDefs/IGESDefs_ToolAttributeDef.hxx
src/IGESDefs/IGESDefs_ToolAttributeTable.cxx
src/IGESDefs/IGESDefs_ToolAttributeTable.hxx
src/IGESDefs/IGESDefs_ToolGenericData.cxx
src/IGESDefs/IGESDefs_ToolGenericData.hxx
src/IGESDefs/IGESDefs_ToolMacroDef.cxx
src/IGESDefs/IGESDefs_ToolMacroDef.hxx
src/IGESDefs/IGESDefs_ToolTabularData.cxx
src/IGESDefs/IGESDefs_ToolTabularData.hxx
src/IGESDefs/IGESDefs_ToolUnitsData.cxx
src/IGESDefs/IGESDefs_ToolUnitsData.hxx
src/IGESDimen/IGESDimen.cxx
src/IGESDimen/IGESDimen.hxx
src/IGESDimen/IGESDimen_GeneralModule.cxx
src/IGESDimen/IGESDimen_GeneralModule.hxx
src/IGESDimen/IGESDimen_ToolAngularDimension.cxx
src/IGESDimen/IGESDimen_ToolAngularDimension.hxx
src/IGESDimen/IGESDimen_ToolBasicDimension.cxx
src/IGESDimen/IGESDimen_ToolBasicDimension.hxx
src/IGESDimen/IGESDimen_ToolCenterLine.cxx
src/IGESDimen/IGESDimen_ToolCenterLine.hxx
src/IGESDimen/IGESDimen_ToolCurveDimension.cxx
src/IGESDimen/IGESDimen_ToolCurveDimension.hxx
src/IGESDimen/IGESDimen_ToolDiameterDimension.cxx
src/IGESDimen/IGESDimen_ToolDiameterDimension.hxx
src/IGESDimen/IGESDimen_ToolDimensionDisplayData.cxx
src/IGESDimen/IGESDimen_ToolDimensionDisplayData.hxx
src/IGESDimen/IGESDimen_ToolDimensionTolerance.cxx
src/IGESDimen/IGESDimen_ToolDimensionTolerance.hxx
src/IGESDimen/IGESDimen_ToolDimensionUnits.cxx
src/IGESDimen/IGESDimen_ToolDimensionUnits.hxx
src/IGESDimen/IGESDimen_ToolDimensionedGeometry.cxx
src/IGESDimen/IGESDimen_ToolDimensionedGeometry.hxx
src/IGESDimen/IGESDimen_ToolFlagNote.cxx
src/IGESDimen/IGESDimen_ToolFlagNote.hxx
src/IGESDimen/IGESDimen_ToolGeneralLabel.cxx
src/IGESDimen/IGESDimen_ToolGeneralLabel.hxx
src/IGESDimen/IGESDimen_ToolGeneralNote.cxx
src/IGESDimen/IGESDimen_ToolGeneralNote.hxx
src/IGESDimen/IGESDimen_ToolGeneralSymbol.cxx
src/IGESDimen/IGESDimen_ToolGeneralSymbol.hxx
src/IGESDimen/IGESDimen_ToolLeaderArrow.cxx
src/IGESDimen/IGESDimen_ToolLeaderArrow.hxx
src/IGESDimen/IGESDimen_ToolLinearDimension.cxx
src/IGESDimen/IGESDimen_ToolLinearDimension.hxx
src/IGESDimen/IGESDimen_ToolNewDimensionedGeometry.cxx
src/IGESDimen/IGESDimen_ToolNewDimensionedGeometry.hxx
src/IGESDimen/IGESDimen_ToolNewGeneralNote.cxx
src/IGESDimen/IGESDimen_ToolNewGeneralNote.hxx
src/IGESDimen/IGESDimen_ToolOrdinateDimension.cxx
src/IGESDimen/IGESDimen_ToolOrdinateDimension.hxx
src/IGESDimen/IGESDimen_ToolPointDimension.cxx
src/IGESDimen/IGESDimen_ToolPointDimension.hxx
src/IGESDimen/IGESDimen_ToolRadiusDimension.cxx
src/IGESDimen/IGESDimen_ToolRadiusDimension.hxx
src/IGESDimen/IGESDimen_ToolSection.cxx
src/IGESDimen/IGESDimen_ToolSection.hxx
src/IGESDimen/IGESDimen_ToolSectionedArea.cxx
src/IGESDimen/IGESDimen_ToolSectionedArea.hxx
src/IGESDimen/IGESDimen_ToolWitnessLine.cxx
src/IGESDimen/IGESDimen_ToolWitnessLine.hxx
src/IGESDraw/IGESDraw.cxx
src/IGESDraw/IGESDraw.hxx
src/IGESDraw/IGESDraw_GeneralModule.cxx
src/IGESDraw/IGESDraw_GeneralModule.hxx
src/IGESDraw/IGESDraw_ToolCircArraySubfigure.cxx
src/IGESDraw/IGESDraw_ToolCircArraySubfigure.hxx
src/IGESDraw/IGESDraw_ToolConnectPoint.cxx
src/IGESDraw/IGESDraw_ToolConnectPoint.hxx
src/IGESDraw/IGESDraw_ToolDrawing.cxx
src/IGESDraw/IGESDraw_ToolDrawing.hxx
src/IGESDraw/IGESDraw_ToolDrawingWithRotation.cxx
src/IGESDraw/IGESDraw_ToolDrawingWithRotation.hxx
src/IGESDraw/IGESDraw_ToolLabelDisplay.cxx
src/IGESDraw/IGESDraw_ToolLabelDisplay.hxx
src/IGESDraw/IGESDraw_ToolNetworkSubfigure.cxx
src/IGESDraw/IGESDraw_ToolNetworkSubfigure.hxx
src/IGESDraw/IGESDraw_ToolNetworkSubfigureDef.cxx
src/IGESDraw/IGESDraw_ToolNetworkSubfigureDef.hxx
src/IGESDraw/IGESDraw_ToolPerspectiveView.cxx
src/IGESDraw/IGESDraw_ToolPerspectiveView.hxx
src/IGESDraw/IGESDraw_ToolPlanar.cxx
src/IGESDraw/IGESDraw_ToolPlanar.hxx
src/IGESDraw/IGESDraw_ToolRectArraySubfigure.cxx
src/IGESDraw/IGESDraw_ToolRectArraySubfigure.hxx
src/IGESDraw/IGESDraw_ToolSegmentedViewsVisible.cxx
src/IGESDraw/IGESDraw_ToolSegmentedViewsVisible.hxx
src/IGESDraw/IGESDraw_ToolView.cxx
src/IGESDraw/IGESDraw_ToolView.hxx
src/IGESDraw/IGESDraw_ToolViewsVisible.cxx
src/IGESDraw/IGESDraw_ToolViewsVisible.hxx
src/IGESDraw/IGESDraw_ToolViewsVisibleWithAttr.cxx
src/IGESDraw/IGESDraw_ToolViewsVisibleWithAttr.hxx
src/IGESFile/IGESFile_Read.cxx
src/IGESFile/IGESFile_Read.hxx
src/IGESGeom/IGESGeom.cxx
src/IGESGeom/IGESGeom.hxx
src/IGESGeom/IGESGeom_GeneralModule.cxx
src/IGESGeom/IGESGeom_GeneralModule.hxx
src/IGESGeom/IGESGeom_SpecificModule.cxx
src/IGESGeom/IGESGeom_SpecificModule.hxx
src/IGESGeom/IGESGeom_ToolBSplineCurve.cxx
src/IGESGeom/IGESGeom_ToolBSplineCurve.hxx
src/IGESGeom/IGESGeom_ToolBSplineSurface.cxx
src/IGESGeom/IGESGeom_ToolBSplineSurface.hxx
src/IGESGeom/IGESGeom_ToolBoundary.cxx
src/IGESGeom/IGESGeom_ToolBoundary.hxx
src/IGESGeom/IGESGeom_ToolBoundedSurface.cxx
src/IGESGeom/IGESGeom_ToolBoundedSurface.hxx
src/IGESGeom/IGESGeom_ToolCircularArc.cxx
src/IGESGeom/IGESGeom_ToolCircularArc.hxx
src/IGESGeom/IGESGeom_ToolCompositeCurve.cxx
src/IGESGeom/IGESGeom_ToolCompositeCurve.hxx
src/IGESGeom/IGESGeom_ToolConicArc.cxx
src/IGESGeom/IGESGeom_ToolConicArc.hxx
src/IGESGeom/IGESGeom_ToolCopiousData.cxx
src/IGESGeom/IGESGeom_ToolCopiousData.hxx
src/IGESGeom/IGESGeom_ToolCurveOnSurface.cxx
src/IGESGeom/IGESGeom_ToolCurveOnSurface.hxx
src/IGESGeom/IGESGeom_ToolDirection.cxx
src/IGESGeom/IGESGeom_ToolDirection.hxx
src/IGESGeom/IGESGeom_ToolFlash.cxx
src/IGESGeom/IGESGeom_ToolFlash.hxx
src/IGESGeom/IGESGeom_ToolLine.cxx
src/IGESGeom/IGESGeom_ToolLine.hxx
src/IGESGeom/IGESGeom_ToolOffsetCurve.cxx
src/IGESGeom/IGESGeom_ToolOffsetCurve.hxx
src/IGESGeom/IGESGeom_ToolOffsetSurface.cxx
src/IGESGeom/IGESGeom_ToolOffsetSurface.hxx
src/IGESGeom/IGESGeom_ToolPlane.cxx
src/IGESGeom/IGESGeom_ToolPlane.hxx
src/IGESGeom/IGESGeom_ToolPoint.cxx
src/IGESGeom/IGESGeom_ToolPoint.hxx
src/IGESGeom/IGESGeom_ToolRuledSurface.cxx
src/IGESGeom/IGESGeom_ToolRuledSurface.hxx
src/IGESGeom/IGESGeom_ToolSplineCurve.cxx
src/IGESGeom/IGESGeom_ToolSplineCurve.hxx
src/IGESGeom/IGESGeom_ToolSplineSurface.cxx
src/IGESGeom/IGESGeom_ToolSplineSurface.hxx
src/IGESGeom/IGESGeom_ToolSurfaceOfRevolution.cxx
src/IGESGeom/IGESGeom_ToolSurfaceOfRevolution.hxx
src/IGESGeom/IGESGeom_ToolTabulatedCylinder.cxx
src/IGESGeom/IGESGeom_ToolTabulatedCylinder.hxx
src/IGESGeom/IGESGeom_ToolTransformationMatrix.cxx
src/IGESGeom/IGESGeom_ToolTransformationMatrix.hxx
src/IGESGeom/IGESGeom_ToolTrimmedSurface.cxx
src/IGESGeom/IGESGeom_ToolTrimmedSurface.hxx
src/IGESGraph/IGESGraph.cxx
src/IGESGraph/IGESGraph.hxx
src/IGESGraph/IGESGraph_GeneralModule.cxx
src/IGESGraph/IGESGraph_GeneralModule.hxx
src/IGESGraph/IGESGraph_Protocol.cxx
src/IGESGraph/IGESGraph_ToolColor.cxx
src/IGESGraph/IGESGraph_ToolColor.hxx
src/IGESGraph/IGESGraph_ToolDefinitionLevel.cxx
src/IGESGraph/IGESGraph_ToolDefinitionLevel.hxx
src/IGESGraph/IGESGraph_ToolDrawingSize.cxx
src/IGESGraph/IGESGraph_ToolDrawingSize.hxx
src/IGESGraph/IGESGraph_ToolDrawingUnits.cxx
src/IGESGraph/IGESGraph_ToolDrawingUnits.hxx
src/IGESGraph/IGESGraph_ToolHighLight.cxx
src/IGESGraph/IGESGraph_ToolHighLight.hxx
src/IGESGraph/IGESGraph_ToolIntercharacterSpacing.cxx
src/IGESGraph/IGESGraph_ToolIntercharacterSpacing.hxx
src/IGESGraph/IGESGraph_ToolLineFontDefPattern.cxx
src/IGESGraph/IGESGraph_ToolLineFontDefPattern.hxx
src/IGESGraph/IGESGraph_ToolLineFontDefTemplate.cxx
src/IGESGraph/IGESGraph_ToolLineFontDefTemplate.hxx
src/IGESGraph/IGESGraph_ToolLineFontPredefined.cxx
src/IGESGraph/IGESGraph_ToolLineFontPredefined.hxx
src/IGESGraph/IGESGraph_ToolNominalSize.cxx
src/IGESGraph/IGESGraph_ToolNominalSize.hxx
src/IGESGraph/IGESGraph_ToolPick.cxx
src/IGESGraph/IGESGraph_ToolPick.hxx
src/IGESGraph/IGESGraph_ToolTextDisplayTemplate.cxx
src/IGESGraph/IGESGraph_ToolTextDisplayTemplate.hxx
src/IGESGraph/IGESGraph_ToolTextFontDef.cxx
src/IGESGraph/IGESGraph_ToolTextFontDef.hxx
src/IGESGraph/IGESGraph_ToolUniformRectGrid.cxx
src/IGESGraph/IGESGraph_ToolUniformRectGrid.hxx
src/IGESSolid/IGESSolid.cxx
src/IGESSolid/IGESSolid.hxx
src/IGESSolid/IGESSolid_Block.cxx
src/IGESSolid/IGESSolid_Block.hxx
src/IGESSolid/IGESSolid_BooleanTree.cxx
src/IGESSolid/IGESSolid_BooleanTree.hxx
src/IGESSolid/IGESSolid_ConeFrustum.cxx
src/IGESSolid/IGESSolid_ConeFrustum.hxx
src/IGESSolid/IGESSolid_ConicalSurface.cxx
src/IGESSolid/IGESSolid_ConicalSurface.hxx
src/IGESSolid/IGESSolid_Cylinder.cxx
src/IGESSolid/IGESSolid_Cylinder.hxx
src/IGESSolid/IGESSolid_CylindricalSurface.cxx
src/IGESSolid/IGESSolid_CylindricalSurface.hxx
src/IGESSolid/IGESSolid_EdgeList.cxx
src/IGESSolid/IGESSolid_EdgeList.hxx
src/IGESSolid/IGESSolid_Ellipsoid.cxx
src/IGESSolid/IGESSolid_Ellipsoid.hxx
src/IGESSolid/IGESSolid_Face.cxx
src/IGESSolid/IGESSolid_Face.hxx
src/IGESSolid/IGESSolid_GeneralModule.cxx
src/IGESSolid/IGESSolid_GeneralModule.hxx
src/IGESSolid/IGESSolid_Loop.cxx
src/IGESSolid/IGESSolid_Loop.hxx
src/IGESSolid/IGESSolid_ManifoldSolid.cxx
src/IGESSolid/IGESSolid_ManifoldSolid.hxx
src/IGESSolid/IGESSolid_PlaneSurface.cxx
src/IGESSolid/IGESSolid_PlaneSurface.hxx
src/IGESSolid/IGESSolid_Protocol.cxx
src/IGESSolid/IGESSolid_Protocol.hxx
src/IGESSolid/IGESSolid_RightAngularWedge.cxx
src/IGESSolid/IGESSolid_RightAngularWedge.hxx
src/IGESSolid/IGESSolid_SelectedComponent.cxx
src/IGESSolid/IGESSolid_SelectedComponent.hxx
src/IGESSolid/IGESSolid_Shell.cxx
src/IGESSolid/IGESSolid_Shell.hxx
src/IGESSolid/IGESSolid_SolidAssembly.cxx
src/IGESSolid/IGESSolid_SolidAssembly.hxx
src/IGESSolid/IGESSolid_SolidInstance.cxx
src/IGESSolid/IGESSolid_SolidInstance.hxx
src/IGESSolid/IGESSolid_SolidOfLinearExtrusion.cxx
src/IGESSolid/IGESSolid_SolidOfLinearExtrusion.hxx
src/IGESSolid/IGESSolid_SolidOfRevolution.cxx
src/IGESSolid/IGESSolid_SolidOfRevolution.hxx
src/IGESSolid/IGESSolid_Sphere.cxx
src/IGESSolid/IGESSolid_Sphere.hxx
src/IGESSolid/IGESSolid_SphericalSurface.cxx
src/IGESSolid/IGESSolid_SphericalSurface.hxx
src/IGESSolid/IGESSolid_ToolBlock.cxx
src/IGESSolid/IGESSolid_ToolBlock.hxx
src/IGESSolid/IGESSolid_ToolBooleanTree.cxx
src/IGESSolid/IGESSolid_ToolBooleanTree.hxx
src/IGESSolid/IGESSolid_ToolConeFrustum.cxx
src/IGESSolid/IGESSolid_ToolConeFrustum.hxx
src/IGESSolid/IGESSolid_ToolConicalSurface.cxx
src/IGESSolid/IGESSolid_ToolConicalSurface.hxx
src/IGESSolid/IGESSolid_ToolCylinder.cxx
src/IGESSolid/IGESSolid_ToolCylinder.hxx
src/IGESSolid/IGESSolid_ToolCylindricalSurface.cxx
src/IGESSolid/IGESSolid_ToolCylindricalSurface.hxx
src/IGESSolid/IGESSolid_ToolEdgeList.cxx
src/IGESSolid/IGESSolid_ToolEdgeList.hxx
src/IGESSolid/IGESSolid_ToolEllipsoid.cxx
src/IGESSolid/IGESSolid_ToolEllipsoid.hxx
src/IGESSolid/IGESSolid_ToolFace.cxx
src/IGESSolid/IGESSolid_ToolFace.hxx
src/IGESSolid/IGESSolid_ToolLoop.cxx
src/IGESSolid/IGESSolid_ToolLoop.hxx
src/IGESSolid/IGESSolid_ToolManifoldSolid.cxx
src/IGESSolid/IGESSolid_ToolManifoldSolid.hxx
src/IGESSolid/IGESSolid_ToolPlaneSurface.cxx
src/IGESSolid/IGESSolid_ToolPlaneSurface.hxx
src/IGESSolid/IGESSolid_ToolRightAngularWedge.cxx
src/IGESSolid/IGESSolid_ToolRightAngularWedge.hxx
src/IGESSolid/IGESSolid_ToolSelectedComponent.cxx
src/IGESSolid/IGESSolid_ToolSelectedComponent.hxx
src/IGESSolid/IGESSolid_ToolShell.cxx
src/IGESSolid/IGESSolid_ToolShell.hxx
src/IGESSolid/IGESSolid_ToolSolidAssembly.cxx
src/IGESSolid/IGESSolid_ToolSolidAssembly.hxx
src/IGESSolid/IGESSolid_ToolSolidInstance.cxx
src/IGESSolid/IGESSolid_ToolSolidInstance.hxx
src/IGESSolid/IGESSolid_ToolSolidOfLinearExtrusion.cxx
src/IGESSolid/IGESSolid_ToolSolidOfLinearExtrusion.hxx
src/IGESSolid/IGESSolid_ToolSolidOfRevolution.cxx
src/IGESSolid/IGESSolid_ToolSolidOfRevolution.hxx
src/IGESSolid/IGESSolid_ToolSphere.cxx
src/IGESSolid/IGESSolid_ToolSphere.hxx
src/IGESSolid/IGESSolid_ToolSphericalSurface.cxx
src/IGESSolid/IGESSolid_ToolSphericalSurface.hxx
src/IGESSolid/IGESSolid_ToolToroidalSurface.cxx
src/IGESSolid/IGESSolid_ToolToroidalSurface.hxx
src/IGESSolid/IGESSolid_ToolTorus.cxx
src/IGESSolid/IGESSolid_ToolTorus.hxx
src/IGESSolid/IGESSolid_ToolVertexList.cxx
src/IGESSolid/IGESSolid_ToolVertexList.hxx
src/IGESSolid/IGESSolid_ToroidalSurface.cxx
src/IGESSolid/IGESSolid_ToroidalSurface.hxx
src/IGESSolid/IGESSolid_Torus.cxx
src/IGESSolid/IGESSolid_Torus.hxx
src/IGESSolid/IGESSolid_VertexList.cxx
src/IGESSolid/IGESSolid_VertexList.hxx
src/IGESToBRep/IGESToBRep_Reader.cxx
src/Interface/FILES
src/Interface/Interface_CopyControl.cxx [deleted file]
src/Interface/Interface_CopyControl.hxx [deleted file]
src/Interface/Interface_CopyMap.cxx [deleted file]
src/Interface/Interface_CopyMap.hxx [deleted file]
src/Interface/Interface_CopyTool.cxx [deleted file]
src/Interface/Interface_CopyTool.hxx [deleted file]
src/Interface/Interface_FileReaderTool.cxx
src/Interface/Interface_FileReaderTool.hxx
src/Interface/Interface_GeneralModule.cxx
src/Interface/Interface_GeneralModule.hxx
src/Interface/Interface_Protocol.hxx
src/Interface/Interface_ReaderModule.cxx
src/Interface/Interface_ReaderModule.hxx
src/Interface/Interface_ReportEntity.cxx
src/Interface/Interface_ReportEntity.hxx
src/Interface/Interface_UndefinedContent.cxx
src/Interface/Interface_UndefinedContent.hxx
src/LibCtl/LibCtl_Library.gxx
src/RWHeaderSection/RWHeaderSection_GeneralModule.cxx
src/RWHeaderSection/RWHeaderSection_GeneralModule.hxx
src/RWStepAP214/RWStepAP214_GeneralModule.cxx
src/RWStepAP214/RWStepAP214_GeneralModule.hxx
src/StepData/StepData_GeneralModule.hxx
src/StepData/StepData_Protocol.cxx
src/StepData/StepData_Protocol.hxx
src/StepData/StepData_ReadWriteModule.hxx
src/StepData/StepData_StepModel.cxx
src/StepData/StepData_StepReaderTool.cxx
src/StepData/StepData_StepReaderTool.hxx
src/StepData/StepData_UndefinedEntity.cxx
src/StepData/StepData_UndefinedEntity.hxx
src/StepData/StepData_WriterLib.hxx
src/StepFile/StepFile_Read.cxx
src/StepSelect/StepSelect_StepType.cxx
src/XSDRAWIGES/XSDRAWIGES.cxx

index c374a6641016c51f97bbebbd675a38bc14e6503b..52f665eb4c33e2bd27e18a6c7132444d77e0958b 100644 (file)
@@ -13,7 +13,6 @@
 
 
 #include <IFSelect_SelectPointed.hxx>
-#include <Interface_CopyControl.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Graph.hxx>
 #include <Interface_InterfaceError.hxx>
@@ -146,18 +145,6 @@ IFSelect_SelectPointed::IFSelect_SelectPointed ()
   return theitems.Value(num);
 }
 
-    void  IFSelect_SelectPointed::Update
-  (const Handle(Interface_CopyControl)& control)
-{
-  Standard_Integer nb = theitems.Length();
-  for (Standard_Integer i = nb; i > 0; i --) {
-    Handle(Standard_Transient) enfr, ento;
-    enfr = theitems.Value(i);
-    if (!control->Search(enfr,ento)) theitems.Remove(i);
-    else  theitems.SetValue(i,ento);
-  }
-}
-
 //  ....  Actions Generales
 
     Interface_EntityIterator  IFSelect_SelectPointed::RootResult
index af27105f35efccf61ac2886319aadf9b71f16d06..a4c8a41055ec028f8acca9fead395381439687c6 100644 (file)
@@ -27,7 +27,6 @@
 #include <Standard_Integer.hxx>
 class Interface_InterfaceError;
 class Standard_Transient;
-class Interface_CopyControl;
 class Interface_EntityIterator;
 class Interface_Graph;
 class TCollection_AsciiString;
@@ -106,10 +105,6 @@ public:
   //! Returns an item given its rank, or a Null Handle
   Standard_EXPORT Handle(Standard_Transient) Item (const Standard_Integer num) const;
   
-  //! Rebuilds the selected list. Any selected entity which has a
-  //! bound result is replaced by this result, else it is removed.
-  Standard_EXPORT void Update (const Handle(Interface_CopyControl)& control);
-  
   //! Returns the list of selected items. Only the selected entities
   //! which are present in the graph are given (this result assures
   //! uniqueness).
@@ -119,29 +114,12 @@ public:
   //! It is "Pointed Entities"
   Standard_EXPORT TCollection_AsciiString Label() const Standard_OVERRIDE;
 
-
-
-
   DEFINE_STANDARD_RTTIEXT(IFSelect_SelectPointed,IFSelect_SelectBase)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   Standard_Boolean theset;
   TColStd_SequenceOfTransient theitems;
-
-
 };
 
-
-
-
-
-
-
 #endif // _IFSelect_SelectPointed_HeaderFile
index cba9bf81b2ee1a2074a408c536378bbbea1b9ab4..dd4dc47d39cc3384abb3c549a6f7bebccfb66992 100644 (file)
 #include <Interface_GeneralLib.hxx>
 #include <Interface_ReaderLib.hxx>
 
-//  Ancillary data to work on a Package of IGES Entities with a Protocol
-//  (Modules are created and loaded in appropriate libraries, once by Init)
-static Handle(IGESAppli_Protocol) protocol;
-
+#include <IGESData.hxx>
+#include <IGESBasic.hxx>
+#include <IGESGeom.hxx>
+#include <IGESGraph.hxx>
+#include <IGESDimen.hxx>
+//#include <IGESSolid.hxx>
 
+void IGESAppli::Init ()
+{
+  //Instead of IGESSolid::Init(); {
+  //Instead of IGESGeom::Init(); {
+  //Instead of IGESBasic::Init(); {
+  IGESData::Init();      // usefull for Undefined Type or Erroneous Entities
+  IGESBasic::Protocol();
+  //}
+  IGESGeom::Protocol();
+  //}
+  //IGESSolid::Protocol();
+  //}
+  //Instead of IGESDefs::Init(); {
+  //Instead of IGESGraph::Init(); {
+  //IGESBasic::Init();
+  IGESGraph::Protocol();
+  //}
+  IGESDefs::Protocol();
+  //}
+  //Instead of IGESDraw::Init(); {
+  //Instead of IGESDimen::Init(); {
+  //IGESGeom::Init();
+  //IGESGraph::Init();
+  IGESDimen::Protocol();
+  //}
+  IGESDraw::Protocol();
+  //}
+  IGESAppli::Protocol();
+}
 
-    void  IGESAppli::Init ()
+const Handle(IGESAppli_Protocol) & IGESAppli::Protocol ()
 {
-  IGESDefs::Init();
-  IGESDraw::Init();
+  static Handle(IGESAppli_Protocol) protocol;
   if (protocol.IsNull()) {
     protocol = new IGESAppli_Protocol;
+    /*Interface_GeneralLib::SetGlobal (new IGESSolid_GeneralModule,  protocol);
+    Interface_ReaderLib::SetGlobal  (new IGESSolid_ReadWriteModule,protocol);
+    IGESData_WriterLib::SetGlobal   (new IGESSolid_ReadWriteModule,protocol);
+    IGESData_SpecificLib::SetGlobal (new IGESSolid_SpecificModule, protocol);*/
     Interface_GeneralLib::SetGlobal (new IGESAppli_GeneralModule,  protocol);
     Interface_ReaderLib::SetGlobal  (new IGESAppli_ReadWriteModule,protocol);
     IGESData_WriterLib::SetGlobal   (new IGESAppli_ReadWriteModule,protocol);
     IGESData_SpecificLib::SetGlobal (new IGESAppli_SpecificModule, protocol);
   }
-}
-
-    Handle(IGESAppli_Protocol)  IGESAppli::Protocol ()
-{
   return protocol;
 }
index 1f544e9645c28b7ddaa7c7af54e1c1c28a7c4527..0f67ebedb41018c41acf2681131c2c3d4106b223 100644 (file)
 #define _IGESAppli_HeaderFile
 
 #include <Standard.hxx>
-#include <Standard_DefineAlloc.hxx>
 #include <Standard_Handle.hxx>
-
-class IGESAppli_Protocol;
-class IGESAppli_Node;
-class IGESAppli_FiniteElement;
-class IGESAppli_NodalDisplAndRot;
-class IGESAppli_NodalResults;
-class IGESAppli_ElementResults;
-class IGESAppli_Flow;
-class IGESAppli_PipingFlow;
-class IGESAppli_RegionRestriction;
-class IGESAppli_LevelFunction;
-class IGESAppli_LineWidening;
-class IGESAppli_DrilledHole;
-class IGESAppli_ReferenceDesignator;
-class IGESAppli_PinNumber;
-class IGESAppli_PartNumber;
-class IGESAppli_FlowLineSpec;
-class IGESAppli_LevelToPWBLayerMap;
-class IGESAppli_PWBArtworkStackup;
-class IGESAppli_PWBDrilledHole;
-class IGESAppli_NodalConstraint;
-class IGESAppli_ToolNode;
-class IGESAppli_ToolFiniteElement;
-class IGESAppli_ToolNodalDisplAndRot;
-class IGESAppli_ToolNodalResults;
-class IGESAppli_ToolElementResults;
-class IGESAppli_ToolFlow;
-class IGESAppli_ToolPipingFlow;
-class IGESAppli_ToolRegionRestriction;
-class IGESAppli_ToolLevelFunction;
-class IGESAppli_ToolLineWidening;
-class IGESAppli_ToolDrilledHole;
-class IGESAppli_ToolReferenceDesignator;
-class IGESAppli_ToolPinNumber;
-class IGESAppli_ToolPartNumber;
-class IGESAppli_ToolFlowLineSpec;
-class IGESAppli_ToolLevelToPWBLayerMap;
-class IGESAppli_ToolPWBArtworkStackup;
-class IGESAppli_ToolPWBDrilledHole;
-class IGESAppli_ToolNodalConstraint;
 class IGESAppli_Protocol;
-class IGESAppli_ReadWriteModule;
-class IGESAppli_GeneralModule;
-class IGESAppli_SpecificModule;
 
 
 //! This package represents collection of miscellaneous
 //! entities from IGES
 class IGESAppli 
 {
-public:
-
-  DEFINE_STANDARD_ALLOC
+ public:
 
-  
   //! Prepares dynamic data (Protocol, Modules) for this package
   Standard_EXPORT static void Init();
   
   //! Returns the Protocol for this Package
-  Standard_EXPORT static Handle(IGESAppli_Protocol) Protocol();
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-friend class IGESAppli_Node;
-friend class IGESAppli_FiniteElement;
-friend class IGESAppli_NodalDisplAndRot;
-friend class IGESAppli_NodalResults;
-friend class IGESAppli_ElementResults;
-friend class IGESAppli_Flow;
-friend class IGESAppli_PipingFlow;
-friend class IGESAppli_RegionRestriction;
-friend class IGESAppli_LevelFunction;
-friend class IGESAppli_LineWidening;
-friend class IGESAppli_DrilledHole;
-friend class IGESAppli_ReferenceDesignator;
-friend class IGESAppli_PinNumber;
-friend class IGESAppli_PartNumber;
-friend class IGESAppli_FlowLineSpec;
-friend class IGESAppli_LevelToPWBLayerMap;
-friend class IGESAppli_PWBArtworkStackup;
-friend class IGESAppli_PWBDrilledHole;
-friend class IGESAppli_NodalConstraint;
-friend class IGESAppli_ToolNode;
-friend class IGESAppli_ToolFiniteElement;
-friend class IGESAppli_ToolNodalDisplAndRot;
-friend class IGESAppli_ToolNodalResults;
-friend class IGESAppli_ToolElementResults;
-friend class IGESAppli_ToolFlow;
-friend class IGESAppli_ToolPipingFlow;
-friend class IGESAppli_ToolRegionRestriction;
-friend class IGESAppli_ToolLevelFunction;
-friend class IGESAppli_ToolLineWidening;
-friend class IGESAppli_ToolDrilledHole;
-friend class IGESAppli_ToolReferenceDesignator;
-friend class IGESAppli_ToolPinNumber;
-friend class IGESAppli_ToolPartNumber;
-friend class IGESAppli_ToolFlowLineSpec;
-friend class IGESAppli_ToolLevelToPWBLayerMap;
-friend class IGESAppli_ToolPWBArtworkStackup;
-friend class IGESAppli_ToolPWBDrilledHole;
-friend class IGESAppli_ToolNodalConstraint;
-friend class IGESAppli_Protocol;
-friend class IGESAppli_ReadWriteModule;
-friend class IGESAppli_GeneralModule;
-friend class IGESAppli_SpecificModule;
-
+  Standard_EXPORT static const Handle(IGESAppli_Protocol) & Protocol();
 };
 
-
-
-
-
-
-
 #endif // _IGESAppli_HeaderFile
index d612ffce1dfaa0cd081b4649d3886f1b699f7aec..521a0a7471c3954c05dd4c65e1b9de7a0d1682e8 100644 (file)
 //--------------------------------------------------------------------
 
 #include <IGESAppli_DrilledHole.hxx>
-#include <Standard_Type.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_DrilledHole,IGESData_IGESEntity)
 
-IGESAppli_DrilledHole::IGESAppli_DrilledHole ()    {  }
-
-    void  IGESAppli_DrilledHole::Init
+void IGESAppli_DrilledHole::Init
   (const Standard_Integer nbPropVal,
    const Standard_Real    aSize,    const Standard_Real    anotherSize,
    const Standard_Integer aPlating, const Standard_Integer aLayer,
@@ -38,33 +35,12 @@ IGESAppli_DrilledHole::IGESAppli_DrilledHole ()    {  }
   InitTypeAndForm(406,6);
 }
 
-
-    Standard_Integer  IGESAppli_DrilledHole::NbPropertyValues () const
-{
-  return theNbPropertyValues;
-}
-
-    Standard_Real  IGESAppli_DrilledHole::DrillDiaSize () const
-{
-  return theDrillDiaSize;
-}
-
-    Standard_Real  IGESAppli_DrilledHole::FinishDiaSize () const
-{
-  return theFinishDiaSize;
-}
-
-    Standard_Boolean  IGESAppli_DrilledHole::IsPlating () const
-{
-  return (thePlatingFlag != 0);
-}
-
-    Standard_Integer  IGESAppli_DrilledHole::NbLowerLayer () const
-{
-  return theNbLowerLayer;
-}
-
-    Standard_Integer  IGESAppli_DrilledHole::NbHigherLayer () const
+void IGESAppli_DrilledHole::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
 {
-  return theNbHigherLayer;
+  if (SubordinateStatus() != 0)
+    if (DefLevel() != IGESData_DefOne &&
+           DefLevel() != IGESData_DefSeveral)
+      theCheck->AddFail("Level type : Not value/reference");
+  if (NbPropertyValues() != 5)
+    theCheck->AddFail("Number of Property Values != 5");
 }
index c533f9084e3c5c353f8c144a1f43ea4f74d290bc..673f95c0208991e7bcb748ac31f3613b347c5c20 100644 (file)
 #ifndef _IGESAppli_DrilledHole_HeaderFile
 #define _IGESAppli_DrilledHole_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
-#include <Standard_Integer.hxx>
-#include <Standard_Real.hxx>
 #include <IGESData_IGESEntity.hxx>
-#include <Standard_Boolean.hxx>
-
 
 class IGESAppli_DrilledHole;
 DEFINE_STANDARD_HANDLE(IGESAppli_DrilledHole, IGESData_IGESEntity)
@@ -35,11 +28,9 @@ DEFINE_STANDARD_HANDLE(IGESAppli_DrilledHole, IGESData_IGESEntity)
 //! through a printed circuit board.
 class IGESAppli_DrilledHole : public IGESData_IGESEntity
 {
+ public:
 
-public:
-
-  
-  Standard_EXPORT IGESAppli_DrilledHole();
+  IGESAppli_DrilledHole() {}
   
   //! This method is used to set the fields of the class
   //! DrilledHole
@@ -54,36 +45,29 @@ public:
   Standard_EXPORT void Init (const Standard_Integer nbPropVal, const Standard_Real aSize, const Standard_Real anotherSize, const Standard_Integer aPlating, const Standard_Integer aLayer, const Standard_Integer anotherLayer);
   
   //! is always 5
-  Standard_EXPORT Standard_Integer NbPropertyValues() const;
-  
+  Standard_Integer NbPropertyValues() const { return theNbPropertyValues; }
+
   //! returns the drill diameter size
-  Standard_EXPORT Standard_Real DrillDiaSize() const;
-  
+  Standard_Real DrillDiaSize() const { return theDrillDiaSize; }
+
   //! returns the finish diameter size
-  Standard_EXPORT Standard_Real FinishDiaSize() const;
-  
+  Standard_Real FinishDiaSize() const { return theFinishDiaSize; }
+
   //! Returns Plating Status :
   //! False = not plating  /  True  = is plating
-  Standard_EXPORT Standard_Boolean IsPlating() const;
-  
-  //! returns the lower numbered layer
-  Standard_EXPORT Standard_Integer NbLowerLayer() const;
-  
-  //! returns the higher numbered layer
-  Standard_EXPORT Standard_Integer NbHigherLayer() const;
+  Standard_Boolean IsPlating() const { return (thePlatingFlag != 0); }
 
+  //! returns the lower numbered layer
+  Standard_Integer NbLowerLayer() const { return theNbLowerLayer; }
 
+  //! returns the higher numbered layer
+  Standard_Integer NbHigherLayer() const { return theNbHigherLayer; }
 
+  Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
 
   DEFINE_STANDARD_RTTIEXT(IGESAppli_DrilledHole,IGESData_IGESEntity)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   Standard_Integer theNbPropertyValues;
   Standard_Real theDrillDiaSize;
@@ -91,14 +75,6 @@ private:
   Standard_Integer thePlatingFlag;
   Standard_Integer theNbLowerLayer;
   Standard_Integer theNbHigherLayer;
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESAppli_DrilledHole_HeaderFile
index d7a10d7d50ed6a78b31807419ffb8fe71ee06717..90500c64355721961fd9aef71c7020ff19b2fc76 100644 (file)
 #include <IGESDimen_GeneralNote.hxx>
 #include <Standard_DimensionMismatch.hxx>
 #include <Standard_OutOfRange.hxx>
-#include <Standard_Type.hxx>
+#include <Interface_EntityIterator.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_ElementResults,IGESData_IGESEntity)
 
-IGESAppli_ElementResults::IGESAppli_ElementResults ()    {  }
-
-    void  IGESAppli_ElementResults::Init
+void IGESAppli_ElementResults::Init
   (const Handle(IGESDimen_GeneralNote)& aNote,
    const Standard_Integer aSubCase, const Standard_Real aTime,
    const Standard_Integer nbResults, const Standard_Integer aResRepFlag,
@@ -83,101 +81,66 @@ IGESAppli_ElementResults::IGESAppli_ElementResults ()    {  }
 // FormNumber -> Type of the Results
 }
 
-    void  IGESAppli_ElementResults::SetFormNumber (const Standard_Integer form)
+void IGESAppli_ElementResults::SetFormNumber (const Standard_Integer form)
 {
   if (form < 0 || form > 34) Standard_OutOfRange::Raise
     ("IGESAppli_ElementResults : SetFormNumber");
   InitTypeAndForm(148,form);
 }
 
-
-    Handle(IGESDimen_GeneralNote)  IGESAppli_ElementResults::Note () const
-{
-  return theNote;
-}
-
-    Standard_Integer  IGESAppli_ElementResults::SubCaseNumber () const
-{
-  return theSubcaseNumber;
-}
-
-    Standard_Real  IGESAppli_ElementResults::Time () const
-{
-  return theTime;
-}
-
-    Standard_Integer  IGESAppli_ElementResults::NbResultValues () const
-{
-  return theNbResultValues;
-}
-
-    Standard_Integer  IGESAppli_ElementResults::ResultReportFlag () const
-{
-  return theResultReportFlag;
-}
-
-    Standard_Integer  IGESAppli_ElementResults::NbElements () const
+Standard_Integer IGESAppli_ElementResults::NbElements () const
 {
   return theElements->Length();
 }
 
-    Standard_Integer  IGESAppli_ElementResults::ElementIdentifier
-  (const Standard_Integer Index) const
+Standard_Integer IGESAppli_ElementResults::ElementIdentifier (const Standard_Integer Index) const
 {
   return theElementIdentifiers->Value(Index);
 }
 
-    Handle(IGESAppli_FiniteElement)  IGESAppli_ElementResults::Element
-  (const Standard_Integer Index) const
+const Handle(IGESAppli_FiniteElement) & IGESAppli_ElementResults::Element (const Standard_Integer Index) const
 {
   return theElements->Value(Index);
 }
 
-    Standard_Integer  IGESAppli_ElementResults::ElementTopologyType
-  (const Standard_Integer Index) const
+Standard_Integer IGESAppli_ElementResults::ElementTopologyType (const Standard_Integer Index) const
 {
   return theElementTopologyTypes->Value(Index);
 }
 
-    Standard_Integer  IGESAppli_ElementResults::NbLayers
-  (const Standard_Integer Index) const
+Standard_Integer IGESAppli_ElementResults::NbLayers (const Standard_Integer Index) const
 {
   return theNbLayers->Value(Index);
 }
 
-    Standard_Integer  IGESAppli_ElementResults::DataLayerFlag
-  (const Standard_Integer Index) const
+Standard_Integer IGESAppli_ElementResults::DataLayerFlag (const Standard_Integer Index) const
 {
   return theDataLayerFlags->Value(Index);
 }
 
-    Standard_Integer  IGESAppli_ElementResults::NbResultDataLocs
-  (const Standard_Integer Index) const
+Standard_Integer IGESAppli_ElementResults::NbResultDataLocs (const Standard_Integer Index) const
 {
   return theNbResultDataLocs->Value(Index);
 }
 
 //  ?? VERIFIER
 
-    Standard_Integer  IGESAppli_ElementResults::ResultDataLoc
-  (const Standard_Integer NElem, const Standard_Integer NLoc) const
+Standard_Integer IGESAppli_ElementResults::ResultDataLoc (const Standard_Integer NElem, const Standard_Integer NLoc) const
 {
   return theResultDataLocs->Value(NElem)->Value(NLoc);
 }
 
-    Standard_Integer  IGESAppli_ElementResults::NbResults
-  (const Standard_Integer Index) const
+Standard_Integer IGESAppli_ElementResults::NbResults (const Standard_Integer Index) const
 {
   return theResultData->Value(Index)->Length();
 }
 
-    Standard_Real  IGESAppli_ElementResults::ResultData
-  (const Standard_Integer NElem, const Standard_Integer num) const
+Standard_Real IGESAppli_ElementResults::ResultData (const Standard_Integer NElem, const Standard_Integer num) const
 {
   return theResultData->Value(NElem)->Value(num);
 }
 
-    Standard_Integer  IGESAppli_ElementResults::ResultRank
+Standard_Integer IGESAppli_ElementResults::ResultRank
   (const Standard_Integer NElem, const Standard_Integer NVal,
    const Standard_Integer NLay, const Standard_Integer NLoc) const
 {
@@ -186,15 +149,91 @@ IGESAppli_ElementResults::IGESAppli_ElementResults ()    {  }
   return num;
 }
 
-    Standard_Real  IGESAppli_ElementResults::ResultData
+Standard_Real IGESAppli_ElementResults::ResultData
   (const Standard_Integer NElem, const Standard_Integer NVal,
    const Standard_Integer NLay, const Standard_Integer NLoc) const
 {
   return theResultData->Value(NElem)->Value(ResultRank(NElem,NVal,NLay,NLoc));
 }
 
-    Handle(TColStd_HArray1OfReal)  IGESAppli_ElementResults::ResultList
-  (const Standard_Integer NElem) const
+Handle(TColStd_HArray1OfReal) IGESAppli_ElementResults::ResultList (const Standard_Integer NElem) const
 {
   return theResultData->Value(NElem);
 }
+
+void IGESAppli_ElementResults::OwnShared(Interface_EntityIterator &theIter) const
+{
+  theIter.GetOneItem(Note());
+  const Standard_Integer num = NbElements();
+  for ( Standard_Integer i = 1; i <= num; i++ )
+    theIter.GetOneItem(Element(i));
+}
+
+void IGESAppli_ElementResults::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
+{
+  Standard_Integer rrf = ResultReportFlag();
+  if (rrf < 0 || rrf > 3) theCheck->AddFail("Result Report Flag not in [0-3]");
+  Standard_Integer nv = NbResultValues();
+  Standard_Boolean OK = Standard_True;
+  switch (FormNumber()) {
+    case  0 : if (nv <  0) OK = Standard_False;  break;
+    case  1 : if (nv != 1) OK = Standard_False;  break;
+    case  2 : if (nv != 1) OK = Standard_False;  break;
+    case  3 : if (nv != 3) OK = Standard_False;  break;
+    case  4 : if (nv != 6) OK = Standard_False;  break;
+    case  5 : if (nv != 3) OK = Standard_False;  break;
+    case  6 : if (nv != 3) OK = Standard_False;  break;
+    case  7 : if (nv != 3) OK = Standard_False;  break;
+    case  8 : if (nv != 3) OK = Standard_False;  break;
+    case  9 : if (nv != 3) OK = Standard_False;  break;
+    case 10 : if (nv != 1) OK = Standard_False;  break;
+    case 11 : if (nv != 1) OK = Standard_False;  break;
+    case 12 : if (nv != 3) OK = Standard_False;  break;
+    case 13 : if (nv != 1) OK = Standard_False;  break;
+    case 14 : if (nv != 1) OK = Standard_False;  break;
+    case 15 : if (nv != 3) OK = Standard_False;  break;
+    case 16 : if (nv != 1) OK = Standard_False;  break;
+    case 17 : if (nv != 3) OK = Standard_False;  break;
+    case 18 : if (nv != 3) OK = Standard_False;  break;
+    case 19 : if (nv != 3) OK = Standard_False;  break;
+    case 20 : if (nv != 3) OK = Standard_False;  break;
+    case 21 : if (nv != 3) OK = Standard_False;  break;
+    case 22 : if (nv != 3) OK = Standard_False;  break;
+    case 23 : if (nv != 6) OK = Standard_False;  break;
+    case 24 : if (nv != 6) OK = Standard_False;  break;
+    case 25 : if (nv != 6) OK = Standard_False;  break;
+    case 26 : if (nv != 6) OK = Standard_False;  break;
+    case 27 : if (nv != 6) OK = Standard_False;  break;
+    case 28 : if (nv != 6) OK = Standard_False;  break;
+    case 29 : if (nv != 9) OK = Standard_False;  break;
+    case 30 : if (nv != 9) OK = Standard_False;  break;
+    case 31 : if (nv != 9) OK = Standard_False;  break;
+    case 32 : if (nv != 9) OK = Standard_False;  break;
+    case 33 : if (nv != 9) OK = Standard_False;  break;
+    case 34 : if (nv != 9) OK = Standard_False;  break;
+    default : theCheck->AddFail("Incorrect Form Number");    break;
+  }
+  if (!OK) theCheck->AddFail("Incorrect count of real values in array V for FEM node");
+  const Standard_Integer ne = NbElements();
+  for (Standard_Integer i = 1; i <= ne; i ++) {
+    char mess[100];
+    Standard_Integer dlf = DataLayerFlag(i);
+    Standard_Integer nl  = NbLayers(i);
+    Standard_Integer nrl = NbResultDataLocs(i);
+    if (dlf < 0 || dlf > 4)
+      theCheck->AddFail("One of the Data Layer Flags not in [0-4]");
+    if (dlf < 4 && NbLayers(i) != 1) {
+      sprintf(mess,"Nb. of Layers n0.%d not ONE while Data Layer Flag is in [0-3]",i);
+      theCheck->AddFail(mess);
+    }
+    if (rrf == 1 || rrf == 2)
+      if (nrl != 1 || ResultDataLoc(i,1) != 0) {
+        sprintf(mess,"Result Data Locs n0.%d incorrect for Result Report = 1 or 2",i);
+        theCheck->AddFail(mess);
+      }
+    if (NbResults(i) != (nv*nl*nrl)) {
+      sprintf(mess,"Nb. of results for Element n0.%d incorrect, should be %d",i,nv*nl*nrl);
+      theCheck->AddFail(mess);
+    }
+  }
+}
index f265002969593ef1a8ed3a544ea6224780483c43..18e3761f950c8d53f7d0a8ced3f202f1052abaad 100644 (file)
 #ifndef _IGESAppli_ElementResults_HeaderFile
 #define _IGESAppli_ElementResults_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
-#include <Standard_Integer.hxx>
-#include <Standard_Real.hxx>
 #include <TColStd_HArray1OfInteger.hxx>
 #include <IGESAppli_HArray1OfFiniteElement.hxx>
 #include <IGESData_IGESEntity.hxx>
@@ -29,8 +24,6 @@
 class IGESDimen_GeneralNote;
 class IGESBasic_HArray1OfHArray1OfInteger;
 class IGESBasic_HArray1OfHArray1OfReal;
-class Standard_DimensionMismatch;
-class Standard_OutOfRange;
 class IGESAppli_FiniteElement;
 
 
@@ -42,11 +35,9 @@ DEFINE_STANDARD_HANDLE(IGESAppli_ElementResults, IGESData_IGESEntity)
 //! Used to find the results of FEM analysis
 class IGESAppli_ElementResults : public IGESData_IGESEntity
 {
+ public:
 
-public:
-
-  
-  Standard_EXPORT IGESAppli_ElementResults();
+  IGESAppli_ElementResults() {}
   
   //! This method is used to set the fields of the class
   //! ElementResults
@@ -70,28 +61,28 @@ public:
   Standard_EXPORT void SetFormNumber (const Standard_Integer form);
   
   //! returns General Note Entity describing analysis case
-  Standard_EXPORT Handle(IGESDimen_GeneralNote) Note() const;
-  
+  const Handle(IGESDimen_GeneralNote) & Note() const { return theNote; }
+
   //! returns analysis Subcase number
-  Standard_EXPORT Standard_Integer SubCaseNumber() const;
-  
+  Standard_Integer SubCaseNumber() const { return theSubcaseNumber; }
+
   //! returns analysis time value
-  Standard_EXPORT Standard_Real Time() const;
-  
+  Standard_Real Time() const { return theTime; }
+
   //! returns number of result values per FEM
-  Standard_EXPORT Standard_Integer NbResultValues() const;
-  
+  Standard_Integer NbResultValues() const { return theNbResultValues; }
+
   //! returns Results Reporting Flag
-  Standard_EXPORT Standard_Integer ResultReportFlag() const;
-  
+  Standard_Integer ResultReportFlag() const { return theResultReportFlag; }
+
   //! returns number of FEM elements
   Standard_EXPORT Standard_Integer NbElements() const;
-  
+
   //! returns FEM element number for elements
   Standard_EXPORT Standard_Integer ElementIdentifier (const Standard_Integer Index) const;
   
   //! returns FEM element
-  Standard_EXPORT Handle(IGESAppli_FiniteElement) Element (const Standard_Integer Index) const;
+  Standard_EXPORT const Handle(IGESAppli_FiniteElement) & Element (const Standard_Integer Index) const;
   
   //! returns element Topology Types
   Standard_EXPORT Standard_Integer ElementTopologyType (const Standard_Integer Index) const;
@@ -136,18 +127,13 @@ public:
   //! addressed as by ResultRank (See above)
   Standard_EXPORT Handle(TColStd_HArray1OfReal) ResultList (const Standard_Integer NElem) const;
 
+  Standard_EXPORT virtual void OwnShared(Interface_EntityIterator &theIter) const Standard_OVERRIDE;
 
-
+  Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
 
   DEFINE_STANDARD_RTTIEXT(IGESAppli_ElementResults,IGESData_IGESEntity)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   Handle(IGESDimen_GeneralNote) theNote;
   Standard_Integer theSubcaseNumber;
@@ -162,14 +148,6 @@ private:
   Handle(TColStd_HArray1OfInteger) theNbResultDataLocs;
   Handle(IGESBasic_HArray1OfHArray1OfInteger) theResultDataLocs;
   Handle(IGESBasic_HArray1OfHArray1OfReal) theResultData;
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESAppli_ElementResults_HeaderFile
index 9c943d735a7efad3e8730a97ebbe3ab0ee2d96ad..54c306f513338197fb45dc3dccc79d28ba3926b8 100644 (file)
 #include <IGESAppli_Node.hxx>
 #include <Standard_DimensionMismatch.hxx>
 #include <Standard_OutOfRange.hxx>
-#include <Standard_Type.hxx>
+#include <Interface_EntityIterator.hxx>
 #include <TCollection_HAsciiString.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_FiniteElement,IGESData_IGESEntity)
 
-IGESAppli_FiniteElement::IGESAppli_FiniteElement ()    {  }
-
-
-    void  IGESAppli_FiniteElement::Init
+void IGESAppli_FiniteElement::Init
   (const Standard_Integer aType,
    const Handle(IGESAppli_HArray1OfNode)&  allNodes,
    const Handle(TCollection_HAsciiString)& aName)
@@ -42,23 +39,19 @@ IGESAppli_FiniteElement::IGESAppli_FiniteElement ()    {  }
   InitTypeAndForm(136,0);
 }
 
-    Standard_Integer  IGESAppli_FiniteElement::Topology () const
+Standard_Integer IGESAppli_FiniteElement::NbNodes () const
 {
-  return theTopology;
+  return theNodes->Length();
 }
 
-    Handle(IGESAppli_Node)  IGESAppli_FiniteElement::Node
-  (const Standard_Integer Index) const
+const Handle(IGESAppli_Node) & IGESAppli_FiniteElement::Node (const Standard_Integer Index) const
 {
   return theNodes->Value(Index);
 }
 
-    Handle(TCollection_HAsciiString)  IGESAppli_FiniteElement::Name () const
+void IGESAppli_FiniteElement::OwnShared(Interface_EntityIterator &theIter) const
 {
-  return theName;
-}
-
-    Standard_Integer  IGESAppli_FiniteElement::NbNodes () const
-{
-  return theNodes->Length();
+  const Standard_Integer upper = theNodes->Length();
+  for (Standard_Integer i= 1; i <= upper ; i ++)
+    theIter.GetOneItem(theNodes->Value(i));
 }
index 77d59a4ed4b77def432ac76f02aaab076ade23e6..7c0a1943f2330a62a8e19bbc19f67dfa41620c69 100644 (file)
 #ifndef _IGESAppli_FiniteElement_HeaderFile
 #define _IGESAppli_FiniteElement_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
-#include <Standard_Integer.hxx>
 #include <IGESAppli_HArray1OfNode.hxx>
 #include <IGESData_IGESEntity.hxx>
 class TCollection_HAsciiString;
-class Standard_OutOfRange;
 class IGESAppli_Node;
 
 
@@ -37,11 +32,9 @@ DEFINE_STANDARD_HANDLE(IGESAppli_FiniteElement, IGESData_IGESEntity)
 //! element topology.
 class IGESAppli_FiniteElement : public IGESData_IGESEntity
 {
+ public:
 
-public:
-
-  
-  Standard_EXPORT IGESAppli_FiniteElement();
+  IGESAppli_FiniteElement() {}
   
   //! This method is used to set the fields of the class
   //! FiniteElement
@@ -51,42 +44,27 @@ public:
   Standard_EXPORT void Init (const Standard_Integer aType, const Handle(IGESAppli_HArray1OfNode)& allNodes, const Handle(TCollection_HAsciiString)& aName);
   
   //! returns Topology type
-  Standard_EXPORT Standard_Integer Topology() const;
-  
+  Standard_Integer Topology() const { return theTopology; }
+
   //! returns the number of nodes defining the element
   Standard_EXPORT Standard_Integer NbNodes() const;
   
   //! returns Node defining element entity
   //! raises exception if Index <= 0 or Index > NbNodes()
-  Standard_EXPORT Handle(IGESAppli_Node) Node (const Standard_Integer Index) const;
+  Standard_EXPORT const Handle(IGESAppli_Node) & Node (const Standard_Integer Index) const;
   
   //! returns Element Type Name
-  Standard_EXPORT Handle(TCollection_HAsciiString) Name() const;
-
-
+  const Handle(TCollection_HAsciiString) & Name() const { return theName; }
 
+  Standard_EXPORT virtual void OwnShared(Interface_EntityIterator &theIter) const Standard_OVERRIDE;
 
   DEFINE_STANDARD_RTTIEXT(IGESAppli_FiniteElement,IGESData_IGESEntity)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   Standard_Integer theTopology;
   Handle(IGESAppli_HArray1OfNode) theNodes;
   Handle(TCollection_HAsciiString) theName;
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESAppli_FiniteElement_HeaderFile
index 7a3c4b451d228c1088ebd4eae985bcc9697681a2..265580eb8f34a29be16b3666a95089917bc850c9 100644 (file)
 #include <IGESGraph_TextDisplayTemplate.hxx>
 #include <Standard_DimensionMismatch.hxx>
 #include <Standard_OutOfRange.hxx>
-#include <Standard_Type.hxx>
+#include <Interface_EntityIterator.hxx>
 #include <TCollection_HAsciiString.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_Flow,IGESData_IGESEntity)
 
-IGESAppli_Flow::IGESAppli_Flow ()    {  }
-
-
-    void  IGESAppli_Flow::Init
+void IGESAppli_Flow::Init
   (const Standard_Integer nbContextFlags,
    const Standard_Integer aFlowType, const Standard_Integer aFuncFlag,
    const Handle(IGESData_HArray1OfIGESEntity)&    allFlowAssocs,
@@ -52,7 +49,7 @@ IGESAppli_Flow::IGESAppli_Flow ()    {  }
   InitTypeAndForm(402,18);
 }
 
-    Standard_Boolean  IGESAppli_Flow::OwnCorrect ()
+Standard_Boolean IGESAppli_Flow::OwnCorrect ()
 {
   if (theNbContextFlags == 2) return Standard_False;
   theNbContextFlags = 2;
@@ -60,83 +57,87 @@ IGESAppli_Flow::IGESAppli_Flow ()    {  }
 }
 
 
-    Standard_Integer  IGESAppli_Flow::NbContextFlags () const
-{
-  return theNbContextFlags;
-}
-
-    Standard_Integer  IGESAppli_Flow::NbFlowAssociativities () const
+Standard_Integer IGESAppli_Flow::NbFlowAssociativities () const
 {
   return (theFlowAssociativities.IsNull() ? 0 : theFlowAssociativities->Length());
 }
 
-    Standard_Integer  IGESAppli_Flow::NbConnectPoints () const
+Standard_Integer IGESAppli_Flow::NbConnectPoints () const
 {
   return (theConnectPoints.IsNull() ? 0 : theConnectPoints->Length());
 }
 
-    Standard_Integer  IGESAppli_Flow::NbJoins () const
+Standard_Integer IGESAppli_Flow::NbJoins () const
 {
   return (theJoins.IsNull() ? 0 : theJoins->Length());
 }
 
-    Standard_Integer  IGESAppli_Flow::NbFlowNames () const
+Standard_Integer IGESAppli_Flow::NbFlowNames () const
 {
   return (theFlowNames.IsNull() ? 0 : theFlowNames->Length());
 }
 
-    Standard_Integer  IGESAppli_Flow::NbTextDisplayTemplates () const
+Standard_Integer IGESAppli_Flow::NbTextDisplayTemplates () const
 {
   return (theTextDisplayTemplates.IsNull() ? 0 : theTextDisplayTemplates->Length());
 }
 
-    Standard_Integer  IGESAppli_Flow::NbContFlowAssociativities () const
+Standard_Integer IGESAppli_Flow::NbContFlowAssociativities () const
 {
   return (theContFlowAssociativities.IsNull() ? 0 : theContFlowAssociativities->Length());
 }
 
-    Standard_Integer  IGESAppli_Flow::TypeOfFlow () const
-{
-  return theTypeOfFlow;
-}
-
-    Standard_Integer  IGESAppli_Flow::FunctionFlag () const
-{
-  return theFunctionFlag;
-}
-
-    Handle(IGESData_IGESEntity)  IGESAppli_Flow::FlowAssociativity
-  (const Standard_Integer Index) const
+const Handle(IGESData_IGESEntity) & IGESAppli_Flow::FlowAssociativity (const Standard_Integer Index) const
 {
   return theFlowAssociativities->Value(Index);
 }
 
-    Handle(IGESDraw_ConnectPoint)  IGESAppli_Flow::ConnectPoint
-  (const Standard_Integer Index) const
+const Handle(IGESDraw_ConnectPoint) & IGESAppli_Flow::ConnectPoint (const Standard_Integer Index) const
 {
   return theConnectPoints->Value(Index);
 }
 
-    Handle(IGESData_IGESEntity)  IGESAppli_Flow::Join
-  (const Standard_Integer Index) const
+const Handle(IGESData_IGESEntity) & IGESAppli_Flow::Join (const Standard_Integer Index) const
 {
   return theJoins->Value(Index);
 }
 
-    Handle(TCollection_HAsciiString)  IGESAppli_Flow::FlowName
-  (const Standard_Integer Index) const
+const Handle(TCollection_HAsciiString) & IGESAppli_Flow::FlowName (const Standard_Integer Index) const
 {
   return theFlowNames->Value(Index);
 }
 
-    Handle(IGESGraph_TextDisplayTemplate)  IGESAppli_Flow::TextDisplayTemplate
-  (const Standard_Integer Index) const
+const Handle(IGESGraph_TextDisplayTemplate) & IGESAppli_Flow::TextDisplayTemplate (const Standard_Integer Index) const
 {
   return theTextDisplayTemplates->Value(Index);
 }
 
-    Handle(IGESData_IGESEntity)  IGESAppli_Flow::ContFlowAssociativity
-  (const Standard_Integer Index) const
+const Handle(IGESData_IGESEntity) & IGESAppli_Flow::ContFlowAssociativity (const Standard_Integer Index) const
 {
   return theContFlowAssociativities->Value(Index);
 }
+
+void IGESAppli_Flow::OwnShared(Interface_EntityIterator &theIter) const
+{
+  Standard_Integer i, num;
+  for ( num = NbFlowAssociativities(), i = 1; i <= num; i++ )
+    theIter.GetOneItem(FlowAssociativity(i));
+  for ( num = NbConnectPoints(), i = 1; i <= num; i++ )
+    theIter.GetOneItem(ConnectPoint(i));
+  for ( num = NbJoins(), i = 1; i <= num; i++ )
+    theIter.GetOneItem(Join(i));
+  for ( num = NbTextDisplayTemplates(), i = 1; i <= num; i++ )
+    theIter.GetOneItem(TextDisplayTemplate(i));
+  for ( num = NbContFlowAssociativities(), i = 1; i <= num; i++ )
+    theIter.GetOneItem(ContFlowAssociativity(i));
+}
+
+void IGESAppli_Flow::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
+{
+  if (NbContextFlags() != 2)
+    theCheck->AddFail("Number of Context Flags != 2");
+  if ((TypeOfFlow() < 0) || (TypeOfFlow() > 2))
+    theCheck->AddFail("Type of Flow != 0,1,2");
+  if ((FunctionFlag() < 0) || (FunctionFlag() > 2))
+    theCheck->AddFail("Function Flag != 0,1,2");
+}
index 6d24843dd301561ea5d3a8b9bc318309bb9381f3..478a4a5e093be7fb0f07c4b306921510829a6064 100644 (file)
 #ifndef _IGESAppli_Flow_HeaderFile
 #define _IGESAppli_Flow_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
-#include <Standard_Integer.hxx>
 #include <IGESData_HArray1OfIGESEntity.hxx>
 #include <IGESDraw_HArray1OfConnectPoint.hxx>
 #include <Interface_HArray1OfHAsciiString.hxx>
 #include <IGESGraph_HArray1OfTextDisplayTemplate.hxx>
 #include <IGESData_IGESEntity.hxx>
-#include <Standard_Boolean.hxx>
-class Standard_OutOfRange;
 class IGESData_IGESEntity;
 class IGESDraw_ConnectPoint;
 class TCollection_HAsciiString;
@@ -44,11 +38,9 @@ DEFINE_STANDARD_HANDLE(IGESAppli_Flow, IGESData_IGESEntity)
 //! including additional intermediate connect points.
 class IGESAppli_Flow : public IGESData_IGESEntity
 {
+ public:
 
-public:
-
-  
-  Standard_EXPORT IGESAppli_Flow();
+  IGESAppli_Flow() {}
   
   //! This method is used to set the fields of the class Flow
   //! - nbContextFlags    : Count of Context Flags, always = 2
@@ -66,7 +58,7 @@ public:
   Standard_EXPORT Standard_Boolean OwnCorrect();
   
   //! returns number of Count of Context Flags, always = 2
-  Standard_EXPORT Standard_Integer NbContextFlags() const;
+  Standard_Integer NbContextFlags() const { return theNbContextFlags; }
   
   //! returns number of Flow Associativity Entities
   Standard_EXPORT Standard_Integer NbFlowAssociativities() const;
@@ -89,49 +81,44 @@ public:
   //! returns Type of Flow = 0 : Not Specified (default)
   //! 1 : Logical
   //! 2 : Physical
-  Standard_EXPORT Standard_Integer TypeOfFlow() const;
-  
+  Standard_Integer TypeOfFlow() const { return theTypeOfFlow; }
+
   //! returns Function Flag = 0 : Not Specified (default)
   //! 1 : Electrical Signal
   //! 2 : Fluid Flow Path
-  Standard_EXPORT Standard_Integer FunctionFlag() const;
-  
+  Standard_Integer FunctionFlag() const { return theFunctionFlag; }
+
   //! returns Flow Associativity Entity
   //! raises exception if Index <= 0 or Index > NbFlowAssociativities()
-  Standard_EXPORT Handle(IGESData_IGESEntity) FlowAssociativity (const Standard_Integer Index) const;
+  Standard_EXPORT const Handle(IGESData_IGESEntity) & FlowAssociativity (const Standard_Integer Index) const;
   
   //! returns Connect Point Entity
   //! raises exception if Index <= 0 or Index > NbConnectPoints()
-  Standard_EXPORT Handle(IGESDraw_ConnectPoint) ConnectPoint (const Standard_Integer Index) const;
+  Standard_EXPORT const Handle(IGESDraw_ConnectPoint) & ConnectPoint (const Standard_Integer Index) const;
   
   //! returns Join Entity
   //! raises exception if Index <= 0 or Index > NbJoins()
-  Standard_EXPORT Handle(IGESData_IGESEntity) Join (const Standard_Integer Index) const;
+  Standard_EXPORT const Handle(IGESData_IGESEntity) & Join (const Standard_Integer Index) const;
   
   //! returns Flow Name
   //! raises exception if Index <= 0 or Index > NbFlowNames()
-  Standard_EXPORT Handle(TCollection_HAsciiString) FlowName (const Standard_Integer Index) const;
+  Standard_EXPORT const Handle(TCollection_HAsciiString) & FlowName (const Standard_Integer Index) const;
   
   //! returns Text Display Template Entity
   //! raises exception if Index <= 0 or Index > NbTextDisplayTemplates()
-  Standard_EXPORT Handle(IGESGraph_TextDisplayTemplate) TextDisplayTemplate (const Standard_Integer Index) const;
+  Standard_EXPORT const Handle(IGESGraph_TextDisplayTemplate) & TextDisplayTemplate (const Standard_Integer Index) const;
   
   //! returns Continuation Flow Associativity Entity
   //! raises exception if Index <= 0 or Index > NbContFlowAssociativities()
-  Standard_EXPORT Handle(IGESData_IGESEntity) ContFlowAssociativity (const Standard_Integer Index) const;
-
+  Standard_EXPORT const Handle(IGESData_IGESEntity) & ContFlowAssociativity (const Standard_Integer Index) const;
 
+  Standard_EXPORT virtual void OwnShared(Interface_EntityIterator &theIter) const Standard_OVERRIDE;
 
+  Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
 
   DEFINE_STANDARD_RTTIEXT(IGESAppli_Flow,IGESData_IGESEntity)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   Standard_Integer theNbContextFlags;
   Standard_Integer theTypeOfFlow;
@@ -142,14 +129,6 @@ private:
   Handle(Interface_HArray1OfHAsciiString) theFlowNames;
   Handle(IGESGraph_HArray1OfTextDisplayTemplate) theTextDisplayTemplates;
   Handle(IGESData_HArray1OfIGESEntity) theContFlowAssociativities;
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESAppli_Flow_HeaderFile
index 27c747ceefb3f7e8cad33a6834b4cb5379ed1d24..a47848f632f3d5c55e89b485a3b5d7fab442fa95 100644 (file)
@@ -24,9 +24,7 @@
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_FlowLineSpec,IGESData_IGESEntity)
 
-IGESAppli_FlowLineSpec::IGESAppli_FlowLineSpec ()    {  }
-
-    void  IGESAppli_FlowLineSpec::Init
+void IGESAppli_FlowLineSpec::Init
   (const Handle(Interface_HArray1OfHAsciiString)& allProperties)
 {
   if (allProperties->Lower() != 1)
@@ -35,18 +33,17 @@ IGESAppli_FlowLineSpec::IGESAppli_FlowLineSpec ()    {  }
   InitTypeAndForm(406,14);
 }
 
-    Standard_Integer  IGESAppli_FlowLineSpec::NbPropertyValues () const
+Standard_Integer IGESAppli_FlowLineSpec::NbPropertyValues () const
 {
   return theNameAndModifiers->Length();
 }
 
-    Handle(TCollection_HAsciiString)  IGESAppli_FlowLineSpec::FlowLineName () const
+const Handle(TCollection_HAsciiString) & IGESAppli_FlowLineSpec::FlowLineName () const
 {
   return theNameAndModifiers->Value(1);
 }
 
-    Handle(TCollection_HAsciiString)  IGESAppli_FlowLineSpec::Modifier
-  (const Standard_Integer Index) const
+const Handle(TCollection_HAsciiString) & IGESAppli_FlowLineSpec::Modifier (const Standard_Integer Index) const
 {
   return theNameAndModifiers->Value(Index);
 }
index 13f1b6bdd1b58902156fd6051035c328a0ae03ea..3e396a2efa296be5224680f3878b37b3a234cea9 100644 (file)
 #ifndef _IGESAppli_FlowLineSpec_HeaderFile
 #define _IGESAppli_FlowLineSpec_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
 #include <Interface_HArray1OfHAsciiString.hxx>
 #include <IGESData_IGESEntity.hxx>
-#include <Standard_Integer.hxx>
-class Standard_OutOfRange;
 class TCollection_HAsciiString;
 
 
@@ -36,11 +31,9 @@ DEFINE_STANDARD_HANDLE(IGESAppli_FlowLineSpec, IGESData_IGESEntity)
 //! used to represent a flow line
 class IGESAppli_FlowLineSpec : public IGESData_IGESEntity
 {
+ public:
 
-public:
-
-  
-  Standard_EXPORT IGESAppli_FlowLineSpec();
+  IGESAppli_FlowLineSpec() {}
   
   //! This method is used to set the fields of the class
   //! FlowLineSpec
@@ -51,34 +44,17 @@ public:
   Standard_EXPORT Standard_Integer NbPropertyValues() const;
   
   //! returns primary flow line specification name
-  Standard_EXPORT Handle(TCollection_HAsciiString) FlowLineName() const;
+  Standard_EXPORT const Handle(TCollection_HAsciiString) & FlowLineName() const;
   
   //! returns specified modifier element
   //! raises exception if Index <= 1 or Index > NbPropertyValues
-  Standard_EXPORT Handle(TCollection_HAsciiString) Modifier (const Standard_Integer Index) const;
-
-
-
+  Standard_EXPORT const Handle(TCollection_HAsciiString) & Modifier (const Standard_Integer Index) const;
 
   DEFINE_STANDARD_RTTIEXT(IGESAppli_FlowLineSpec,IGESData_IGESEntity)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   Handle(Interface_HArray1OfHAsciiString) theNameAndModifiers;
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESAppli_FlowLineSpec_HeaderFile
index 873c63a18a79e7d83bc01f4556123b154761e9c3..fb684b51153da5b76a0e02048cdbfe9e7bc9c087 100644 (file)
 // Alternatively, this file may be used under the terms of Open CASCADE
 // commercial license or contractual agreement.
 
+#include <IGESSolid_Block.hxx>
+#include <IGESSolid_BooleanTree.hxx>
+#include <IGESSolid_ConeFrustum.hxx>
+#include <IGESSolid_ConicalSurface.hxx>
+#include <IGESSolid_Cylinder.hxx>
+#include <IGESSolid_CylindricalSurface.hxx>
+#include <IGESSolid_EdgeList.hxx>
+#include <IGESSolid_Ellipsoid.hxx>
+#include <IGESSolid_Face.hxx>
+#include <IGESSolid_Loop.hxx>
+#include <IGESSolid_ManifoldSolid.hxx>
+#include <IGESSolid_PlaneSurface.hxx>
+#include <IGESSolid_RightAngularWedge.hxx>
+#include <IGESSolid_SelectedComponent.hxx>
+#include <IGESSolid_Shell.hxx>
+#include <IGESSolid_SolidAssembly.hxx>
+#include <IGESSolid_SolidInstance.hxx>
+#include <IGESSolid_SolidOfLinearExtrusion.hxx>
+#include <IGESSolid_SolidOfRevolution.hxx>
+#include <IGESSolid_Sphere.hxx>
+#include <IGESSolid_SphericalSurface.hxx>
+#include <IGESSolid_ToroidalSurface.hxx>
+#include <IGESSolid_Torus.hxx>
+#include <IGESSolid_VertexList.hxx>
+#include <IGESSolid_ToolBlock.hxx>
+#include <IGESSolid_ToolBooleanTree.hxx>
+#include <IGESSolid_ToolConeFrustum.hxx>
+#include <IGESSolid_ToolConicalSurface.hxx>
+#include <IGESSolid_ToolCylinder.hxx>
+#include <IGESSolid_ToolCylindricalSurface.hxx>
+#include <IGESSolid_ToolEdgeList.hxx>
+#include <IGESSolid_ToolEllipsoid.hxx>
+#include <IGESSolid_ToolFace.hxx>
+#include <IGESSolid_ToolLoop.hxx>
+#include <IGESSolid_ToolManifoldSolid.hxx>
+#include <IGESSolid_ToolPlaneSurface.hxx>
+#include <IGESSolid_ToolRightAngularWedge.hxx>
+#include <IGESSolid_ToolSelectedComponent.hxx>
+#include <IGESSolid_ToolShell.hxx>
+#include <IGESSolid_ToolSolidAssembly.hxx>
+#include <IGESSolid_ToolSolidInstance.hxx>
+#include <IGESSolid_ToolSolidOfLinearExtrusion.hxx>
+#include <IGESSolid_ToolSolidOfRevolution.hxx>
+#include <IGESSolid_ToolSphere.hxx>
+#include <IGESSolid_ToolSphericalSurface.hxx>
+#include <IGESSolid_ToolToroidalSurface.hxx>
+#include <IGESSolid_ToolTorus.hxx>
+#include <IGESSolid_ToolVertexList.hxx>
+
 
 #include <IGESAppli_DrilledHole.hxx>
 #include <IGESAppli_ElementResults.hxx>
 #include <IGESAppli_ToolPWBDrilledHole.hxx>
 #include <IGESAppli_ToolReferenceDesignator.hxx>
 #include <IGESAppli_ToolRegionRestriction.hxx>
+
 #include <IGESData_DirChecker.hxx>
 #include <IGESData_IGESEntity.hxx>
 #include <Interface_Category.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
-#include <Standard_Transient.hxx>
-#include <Standard_Type.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_GeneralModule,IGESData_GeneralModule)
 
-//  Each Module is attached to a Protocol : it must interprete Case Numbers
-//  (arguments <CN> of various methods) in accordance to values returned by
-//  the method TypeNumber from this Protocol
-IGESAppli_GeneralModule::IGESAppli_GeneralModule ()    {  }
+void IGESAppli_GeneralModule::OwnSharedCase (const Standard_Integer, const Handle(IGESData_IGESEntity)& ent, Interface_EntityIterator& iter) const
+{
+  ent->OwnShared(iter);
+}
 
 
-    void  IGESAppli_GeneralModule::OwnSharedCase
-  (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent,
-   Interface_EntityIterator& iter) const 
+IGESData_DirChecker IGESAppli_GeneralModule::DirChecker (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent) const
 {
+  // For IGESSolid {
   switch (CN) {
     case  1 : {
-      DeclareAndCast(IGESAppli_DrilledHole,anent,ent);
-      if (anent.IsNull()) return;
-      IGESAppli_ToolDrilledHole tool;
-      tool.OwnShared(anent,iter);
+      DeclareAndCast(IGESSolid_Block,anent,ent);
+      if (anent.IsNull()) break;
+      IGESSolid_ToolBlock tool;
+      return tool.DirChecker(anent);
     }
-      break;
     case  2 : {
-      DeclareAndCast(IGESAppli_ElementResults,anent,ent);
-      if (anent.IsNull()) return;
-      IGESAppli_ToolElementResults tool;
-      tool.OwnShared(anent,iter);
+      DeclareAndCast(IGESSolid_BooleanTree,anent,ent);
+      if (anent.IsNull()) break;
+      IGESSolid_ToolBooleanTree tool;
+      return tool.DirChecker(anent);
     }
-      break;
     case  3 : {
-      DeclareAndCast(IGESAppli_FiniteElement,anent,ent);
-      if (anent.IsNull()) return;
-      IGESAppli_ToolFiniteElement tool;
-      tool.OwnShared(anent,iter);
+      DeclareAndCast(IGESSolid_ConeFrustum,anent,ent);
+      if (anent.IsNull()) break;
+      IGESSolid_ToolConeFrustum tool;
+      return tool.DirChecker(anent);
     }
-      break;
     case  4 : {
-      DeclareAndCast(IGESAppli_Flow,anent,ent);
-      if (anent.IsNull()) return;
-      IGESAppli_ToolFlow tool;
-      tool.OwnShared(anent,iter);
+      DeclareAndCast(IGESSolid_ConicalSurface,anent,ent);
+      if (anent.IsNull()) break;
+      IGESSolid_ToolConicalSurface tool;
+      return tool.DirChecker(anent);
     }
-      break;
     case  5 : {
-      DeclareAndCast(IGESAppli_FlowLineSpec,anent,ent);
-      if (anent.IsNull()) return;
-      IGESAppli_ToolFlowLineSpec tool;
-      tool.OwnShared(anent,iter);
+      DeclareAndCast(IGESSolid_Cylinder,anent,ent);
+      if (anent.IsNull()) break;
+      IGESSolid_ToolCylinder tool;
+      return tool.DirChecker(anent);
     }
-      break;
     case  6 : {
-      DeclareAndCast(IGESAppli_LevelFunction,anent,ent);
-      if (anent.IsNull()) return;
-      IGESAppli_ToolLevelFunction tool;
-      tool.OwnShared(anent,iter);
+      DeclareAndCast(IGESSolid_CylindricalSurface,anent,ent);
+      if (anent.IsNull()) break;
+      IGESSolid_ToolCylindricalSurface tool;
+      return tool.DirChecker(anent);
     }
-      break;
     case  7 : {
-      DeclareAndCast(IGESAppli_LevelToPWBLayerMap,anent,ent);
-      if (anent.IsNull()) return;
-      IGESAppli_ToolLevelToPWBLayerMap tool;
-      tool.OwnShared(anent,iter);
+      DeclareAndCast(IGESSolid_EdgeList,anent,ent);
+      if (anent.IsNull()) break;
+      IGESSolid_ToolEdgeList tool;
+      return tool.DirChecker(anent);
     }
-      break;
     case  8 : {
-      DeclareAndCast(IGESAppli_LineWidening,anent,ent);
-      if (anent.IsNull()) return;
-      IGESAppli_ToolLineWidening tool;
-      tool.OwnShared(anent,iter);
+      DeclareAndCast(IGESSolid_Ellipsoid,anent,ent);
+      if (anent.IsNull()) break;
+      IGESSolid_ToolEllipsoid tool;
+      return tool.DirChecker(anent);
     }
-      break;
     case  9 : {
-      DeclareAndCast(IGESAppli_NodalConstraint,anent,ent);
-      if (anent.IsNull()) return;
-      IGESAppli_ToolNodalConstraint tool;
-      tool.OwnShared(anent,iter);
+      DeclareAndCast(IGESSolid_Face,anent,ent);
+      if (anent.IsNull()) break;
+      IGESSolid_ToolFace tool;
+      return tool.DirChecker(anent);
     }
-      break;
     case 10 : {
-      DeclareAndCast(IGESAppli_NodalDisplAndRot,anent,ent);
-      if (anent.IsNull()) return;
-      IGESAppli_ToolNodalDisplAndRot tool;
-      tool.OwnShared(anent,iter);
+      DeclareAndCast(IGESSolid_Loop,anent,ent);
+      if (anent.IsNull()) break;
+      IGESSolid_ToolLoop tool;
+      return tool.DirChecker(anent);
     }
-      break;
     case 11 : {
-      DeclareAndCast(IGESAppli_NodalResults,anent,ent);
-      if (anent.IsNull()) return;
-      IGESAppli_ToolNodalResults tool;
-      tool.OwnShared(anent,iter);
+      DeclareAndCast(IGESSolid_ManifoldSolid,anent,ent);
+      if (anent.IsNull()) break;
+      IGESSolid_ToolManifoldSolid tool;
+      return tool.DirChecker(anent);
     }
-      break;
     case 12 : {
-      DeclareAndCast(IGESAppli_Node,anent,ent);
-      if (anent.IsNull()) return;
-      IGESAppli_ToolNode tool;
-      tool.OwnShared(anent,iter);
+      DeclareAndCast(IGESSolid_PlaneSurface,anent,ent);
+      if (anent.IsNull()) break;
+      IGESSolid_ToolPlaneSurface tool;
+      return tool.DirChecker(anent);
     }
-      break;
     case 13 : {
-      DeclareAndCast(IGESAppli_PWBArtworkStackup,anent,ent);
-      if (anent.IsNull()) return;
-      IGESAppli_ToolPWBArtworkStackup tool;
-      tool.OwnShared(anent,iter);
+      DeclareAndCast(IGESSolid_RightAngularWedge,anent,ent);
+      if (anent.IsNull()) break;
+      IGESSolid_ToolRightAngularWedge tool;
+      return tool.DirChecker(anent);
     }
-      break;
     case 14 : {
-      DeclareAndCast(IGESAppli_PWBDrilledHole,anent,ent);
-      if (anent.IsNull()) return;
-      IGESAppli_ToolPWBDrilledHole tool;
-      tool.OwnShared(anent,iter);
+      DeclareAndCast(IGESSolid_SelectedComponent,anent,ent);
+      if (anent.IsNull()) break;
+      IGESSolid_ToolSelectedComponent tool;
+      return tool.DirChecker(anent);
     }
-      break;
     case 15 : {
-      DeclareAndCast(IGESAppli_PartNumber,anent,ent);
-      if (anent.IsNull()) return;
-      IGESAppli_ToolPartNumber tool;
-      tool.OwnShared(anent,iter);
+      DeclareAndCast(IGESSolid_Shell,anent,ent);
+      if (anent.IsNull()) break;
+      IGESSolid_ToolShell tool;
+      return tool.DirChecker(anent);
     }
-      break;
     case 16 : {
-      DeclareAndCast(IGESAppli_PinNumber,anent,ent);
-      if (anent.IsNull()) return;
-      IGESAppli_ToolPinNumber tool;
-      tool.OwnShared(anent,iter);
+      DeclareAndCast(IGESSolid_SolidAssembly,anent,ent);
+      if (anent.IsNull()) break;
+      IGESSolid_ToolSolidAssembly tool;
+      return tool.DirChecker(anent);
     }
-      break;
     case 17 : {
-      DeclareAndCast(IGESAppli_PipingFlow,anent,ent);
-      if (anent.IsNull()) return;
-      IGESAppli_ToolPipingFlow tool;
-      tool.OwnShared(anent,iter);
+      DeclareAndCast(IGESSolid_SolidInstance,anent,ent);
+      if (anent.IsNull()) break;
+      IGESSolid_ToolSolidInstance tool;
+      return tool.DirChecker(anent);
     }
-      break;
     case 18 : {
-      DeclareAndCast(IGESAppli_ReferenceDesignator,anent,ent);
-      if (anent.IsNull()) return;
-      IGESAppli_ToolReferenceDesignator tool;
-      tool.OwnShared(anent,iter);
+      DeclareAndCast(IGESSolid_SolidOfLinearExtrusion,anent,ent);
+      if (anent.IsNull()) break;
+      IGESSolid_ToolSolidOfLinearExtrusion tool;
+      return tool.DirChecker(anent);
     }
-      break;
     case 19 : {
-      DeclareAndCast(IGESAppli_RegionRestriction,anent,ent);
-      if (anent.IsNull()) return;
-      IGESAppli_ToolRegionRestriction tool;
-      tool.OwnShared(anent,iter);
+      DeclareAndCast(IGESSolid_SolidOfRevolution,anent,ent);
+      if (anent.IsNull()) break;
+      IGESSolid_ToolSolidOfRevolution tool;
+      return tool.DirChecker(anent);
     }
-      break;
-    default : break;
-  }
-}
-
-
-    IGESData_DirChecker  IGESAppli_GeneralModule::DirChecker
-  (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent) const 
-{
-  switch (CN) {
-    case  1 : {
+    case 20 : {
+      DeclareAndCast(IGESSolid_Sphere,anent,ent);
+      if (anent.IsNull()) break;
+      IGESSolid_ToolSphere tool;
+      return tool.DirChecker(anent);
+    }
+    case 21 : {
+      DeclareAndCast(IGESSolid_SphericalSurface,anent,ent);
+      if (anent.IsNull()) break;
+      IGESSolid_ToolSphericalSurface tool;
+      return tool.DirChecker(anent);
+    }
+    case 22 : {
+      DeclareAndCast(IGESSolid_ToroidalSurface,anent,ent);
+      if (anent.IsNull()) break;
+      IGESSolid_ToolToroidalSurface tool;
+      return tool.DirChecker(anent);
+    }
+    case 23 : {
+      DeclareAndCast(IGESSolid_Torus,anent,ent);
+      if (anent.IsNull()) break;
+      IGESSolid_ToolTorus tool;
+      return tool.DirChecker(anent);
+    }
+    case 24 : {
+      DeclareAndCast(IGESSolid_VertexList,anent,ent);
+      if (anent.IsNull()) break;
+      IGESSolid_ToolVertexList tool;
+      return tool.DirChecker(anent);
+    }
+  // }
+    case 25 : {
       DeclareAndCast(IGESAppli_DrilledHole,anent,ent);
       if (anent.IsNull()) break;
       IGESAppli_ToolDrilledHole tool;
       return tool.DirChecker(anent);
     }
-    case  2 : {
+    case 26 : {
       DeclareAndCast(IGESAppli_ElementResults,anent,ent);
       if (anent.IsNull()) break;
       IGESAppli_ToolElementResults tool;
       return tool.DirChecker(anent);
     }
-    case  3 : {
+    case 27 : {
       DeclareAndCast(IGESAppli_FiniteElement,anent,ent);
       if (anent.IsNull()) break;
       IGESAppli_ToolFiniteElement tool;
       return tool.DirChecker(anent);
     }
-    case  4 : {
+    case 28 : {
       DeclareAndCast(IGESAppli_Flow,anent,ent);
       if (anent.IsNull()) break;
       IGESAppli_ToolFlow tool;
       return tool.DirChecker(anent);
     }
-    case  5 : {
+    case 29 : {
       DeclareAndCast(IGESAppli_FlowLineSpec,anent,ent);
       if (anent.IsNull()) break;
       IGESAppli_ToolFlowLineSpec tool;
       return tool.DirChecker(anent);
     }
-    case  6 : {
+    case 30 : {
       DeclareAndCast(IGESAppli_LevelFunction,anent,ent);
       if (anent.IsNull()) break;
       IGESAppli_ToolLevelFunction tool;
       return tool.DirChecker(anent);
     }
-    case  7 : {
+    case 31 : {
       DeclareAndCast(IGESAppli_LevelToPWBLayerMap,anent,ent);
       if (anent.IsNull()) break;
       IGESAppli_ToolLevelToPWBLayerMap tool;
       return tool.DirChecker(anent);
     }
-    case  8 : {
+    case 32 : {
       DeclareAndCast(IGESAppli_LineWidening,anent,ent);
       if (anent.IsNull()) break;
       IGESAppli_ToolLineWidening tool;
       return tool.DirChecker(anent);
     }
-    case  9 : {
+    case 33 : {
       DeclareAndCast(IGESAppli_NodalConstraint,anent,ent);
       if (anent.IsNull()) break;
       IGESAppli_ToolNodalConstraint tool;
       return tool.DirChecker(anent);
     }
-    case 10 : {
+    case 34 : {
       DeclareAndCast(IGESAppli_NodalDisplAndRot,anent,ent);
       if (anent.IsNull()) break;
       IGESAppli_ToolNodalDisplAndRot tool;
       return tool.DirChecker(anent);
     }
-    case 11 : {
+    case 35 : {
       DeclareAndCast(IGESAppli_NodalResults,anent,ent);
       if (anent.IsNull()) break;
       IGESAppli_ToolNodalResults tool;
       return tool.DirChecker(anent);
     }
-    case 12 : {
+    case 36 : {
       DeclareAndCast(IGESAppli_Node,anent,ent);
       if (anent.IsNull()) break;
       IGESAppli_ToolNode tool;
       return tool.DirChecker(anent);
     }
-    case 13 : {
+    case 37 : {
       DeclareAndCast(IGESAppli_PWBArtworkStackup,anent,ent);
       if (anent.IsNull()) break;
       IGESAppli_ToolPWBArtworkStackup tool;
       return tool.DirChecker(anent);
     }
-    case 14 : {
+    case 38 : {
       DeclareAndCast(IGESAppli_PWBDrilledHole,anent,ent);
       if (anent.IsNull()) break;
       IGESAppli_ToolPWBDrilledHole tool;
       return tool.DirChecker(anent);
     }
-    case 15 : {
+    case 39 : {
       DeclareAndCast(IGESAppli_PartNumber,anent,ent);
       if (anent.IsNull()) break;
       IGESAppli_ToolPartNumber tool;
       return tool.DirChecker(anent);
     }
-    case 16 : {
+    case 40 : {
       DeclareAndCast(IGESAppli_PinNumber,anent,ent);
       if (anent.IsNull()) break;
       IGESAppli_ToolPinNumber tool;
       return tool.DirChecker(anent);
     }
-    case 17 : {
+    case 41 : {
       DeclareAndCast(IGESAppli_PipingFlow,anent,ent);
       if (anent.IsNull()) break;
       IGESAppli_ToolPipingFlow tool;
       return tool.DirChecker(anent);
     }
-    case 18 : {
+    case 42 : {
       DeclareAndCast(IGESAppli_ReferenceDesignator,anent,ent);
       if (anent.IsNull()) break;
       IGESAppli_ToolReferenceDesignator tool;
       return tool.DirChecker(anent);
     }
-    case 19 : {
+    case 43 : {
       DeclareAndCast(IGESAppli_RegionRestriction,anent,ent);
       if (anent.IsNull()) break;
       IGESAppli_ToolRegionRestriction tool;
@@ -337,326 +386,71 @@ IGESAppli_GeneralModule::IGESAppli_GeneralModule ()    {  }
 }
 
 
-    void  IGESAppli_GeneralModule::OwnCheckCase
-  (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent,
-   const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const 
+void IGESAppli_GeneralModule::OwnCheckCase (const Standard_Integer, const Handle(IGESData_IGESEntity)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const
 {
-  switch (CN) {
-    case  1 : {
-      DeclareAndCast(IGESAppli_DrilledHole,anent,ent);
-      if (anent.IsNull()) return;
-      IGESAppli_ToolDrilledHole tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
-    case  2 : {
-      DeclareAndCast(IGESAppli_ElementResults,anent,ent);
-      if (anent.IsNull()) return;
-      IGESAppli_ToolElementResults tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
-    case  3 : {
-      DeclareAndCast(IGESAppli_FiniteElement,anent,ent);
-      if (anent.IsNull()) return;
-      IGESAppli_ToolFiniteElement tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
-    case  4 : {
-      DeclareAndCast(IGESAppli_Flow,anent,ent);
-      if (anent.IsNull()) return;
-      IGESAppli_ToolFlow tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
-    case  5 : {
-      DeclareAndCast(IGESAppli_FlowLineSpec,anent,ent);
-      if (anent.IsNull()) return;
-      IGESAppli_ToolFlowLineSpec tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
-    case  6 : {
-      DeclareAndCast(IGESAppli_LevelFunction,anent,ent);
-      if (anent.IsNull()) return;
-      IGESAppli_ToolLevelFunction tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
-    case  7 : {
-      DeclareAndCast(IGESAppli_LevelToPWBLayerMap,anent,ent);
-      if (anent.IsNull()) return;
-      IGESAppli_ToolLevelToPWBLayerMap tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
-    case  8 : {
-      DeclareAndCast(IGESAppli_LineWidening,anent,ent);
-      if (anent.IsNull()) return;
-      IGESAppli_ToolLineWidening tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
-    case  9 : {
-      DeclareAndCast(IGESAppli_NodalConstraint,anent,ent);
-      if (anent.IsNull()) return;
-      IGESAppli_ToolNodalConstraint tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
-    case 10 : {
-      DeclareAndCast(IGESAppli_NodalDisplAndRot,anent,ent);
-      if (anent.IsNull()) return;
-      IGESAppli_ToolNodalDisplAndRot tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
-    case 11 : {
-      DeclareAndCast(IGESAppli_NodalResults,anent,ent);
-      if (anent.IsNull()) return;
-      IGESAppli_ToolNodalResults tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
-    case 12 : {
-      DeclareAndCast(IGESAppli_Node,anent,ent);
-      if (anent.IsNull()) return;
-      IGESAppli_ToolNode tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
-    case 13 : {
-      DeclareAndCast(IGESAppli_PWBArtworkStackup,anent,ent);
-      if (anent.IsNull()) return;
-      IGESAppli_ToolPWBArtworkStackup tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
-    case 14 : {
-      DeclareAndCast(IGESAppli_PWBDrilledHole,anent,ent);
-      if (anent.IsNull()) return;
-      IGESAppli_ToolPWBDrilledHole tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
-    case 15 : {
-      DeclareAndCast(IGESAppli_PartNumber,anent,ent);
-      if (anent.IsNull()) return;
-      IGESAppli_ToolPartNumber tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
-    case 16 : {
-      DeclareAndCast(IGESAppli_PinNumber,anent,ent);
-      if (anent.IsNull()) return;
-      IGESAppli_ToolPinNumber tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
-    case 17 : {
-      DeclareAndCast(IGESAppli_PipingFlow,anent,ent);
-      if (anent.IsNull()) return;
-      IGESAppli_ToolPipingFlow tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
-    case 18 : {
-      DeclareAndCast(IGESAppli_ReferenceDesignator,anent,ent);
-      if (anent.IsNull()) return;
-      IGESAppli_ToolReferenceDesignator tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
-    case 19 : {
-      DeclareAndCast(IGESAppli_RegionRestriction,anent,ent);
-      if (anent.IsNull()) return;
-      IGESAppli_ToolRegionRestriction tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
-    default : break;
-  }
+  ent->OwnCheck(shares,ach);
 }
 
-    Standard_Boolean  IGESAppli_GeneralModule::NewVoid
-  (const Standard_Integer CN, Handle(Standard_Transient)& ent) const 
+
+Standard_Boolean IGESAppli_GeneralModule::NewVoid (const Standard_Integer CN, Handle(Standard_Transient)& ent) const
 {
+  // For IGESSolid {
   switch (CN) {
-    case  1 : ent = new IGESAppli_DrilledHole; break;
-    case  2 : ent = new IGESAppli_ElementResults;      break;
-    case  3 : ent = new IGESAppli_FiniteElement;       break;
-    case  4 : ent = new IGESAppli_Flow;        break;
-    case  5 : ent = new IGESAppli_FlowLineSpec;        break;
-    case  6 : ent = new IGESAppli_LevelFunction;       break;
-    case  7 : ent = new IGESAppli_LevelToPWBLayerMap;  break;
-    case  8 : ent = new IGESAppli_LineWidening;        break;
-    case  9 : ent = new IGESAppli_NodalConstraint;     break;
-    case 10 : ent = new IGESAppli_NodalDisplAndRot;    break;
-    case 11 : ent = new IGESAppli_NodalResults;        break;
-    case 12 : ent = new IGESAppli_Node;        break;
-    case 13 : ent = new IGESAppli_PWBArtworkStackup;   break;
-    case 14 : ent = new IGESAppli_PWBDrilledHole;      break;
-    case 15 : ent = new IGESAppli_PartNumber;  break;
-    case 16 : ent = new IGESAppli_PinNumber;   break;
-    case 17 : ent = new IGESAppli_PipingFlow;  break;
-    case 18 : ent = new IGESAppli_ReferenceDesignator; break;
-    case 19 : ent = new IGESAppli_RegionRestriction;   break;
+    case  1 : ent = new IGESSolid_Block;       break;
+    case  2 : ent = new IGESSolid_BooleanTree; break;
+    case  3 : ent = new IGESSolid_ConeFrustum; break;
+    case  4 : ent = new IGESSolid_ConicalSurface;      break;
+    case  5 : ent = new IGESSolid_Cylinder;    break;
+    case  6 : ent = new IGESSolid_CylindricalSurface;  break;
+    case  7 : ent = new IGESSolid_EdgeList;    break;
+    case  8 : ent = new IGESSolid_Ellipsoid;   break;
+    case  9 : ent = new IGESSolid_Face;                break;
+    case 10 : ent = new IGESSolid_Loop;                break;
+    case 11 : ent = new IGESSolid_ManifoldSolid;       break;
+    case 12 : ent = new IGESSolid_PlaneSurface;        break;
+    case 13 : ent = new IGESSolid_RightAngularWedge;   break;
+    case 14 : ent = new IGESSolid_SelectedComponent;   break;
+    case 15 : ent = new IGESSolid_Shell;       break;
+    case 16 : ent = new IGESSolid_SolidAssembly;       break;
+    case 17 : ent = new IGESSolid_SolidInstance;       break;
+    case 18 : ent = new IGESSolid_SolidOfLinearExtrusion;      break;
+    case 19 : ent = new IGESSolid_SolidOfRevolution;   break;
+    case 20 : ent = new IGESSolid_Sphere;      break;
+    case 21 : ent = new IGESSolid_SphericalSurface;    break;
+    case 22 : ent = new IGESSolid_ToroidalSurface;     break;
+    case 23 : ent = new IGESSolid_Torus;       break;
+    case 24 : ent = new IGESSolid_VertexList;  break;
+  // }
+    case 25 : ent = new IGESAppli_DrilledHole; break;
+    case 26 : ent = new IGESAppli_ElementResults;      break;
+    case 27 : ent = new IGESAppli_FiniteElement;       break;
+    case 28 : ent = new IGESAppli_Flow;        break;
+    case 29 : ent = new IGESAppli_FlowLineSpec;        break;
+    case 30 : ent = new IGESAppli_LevelFunction;       break;
+    case 31 : ent = new IGESAppli_LevelToPWBLayerMap;  break;
+    case 32 : ent = new IGESAppli_LineWidening;        break;
+    case 33 : ent = new IGESAppli_NodalConstraint;     break;
+    case 34 : ent = new IGESAppli_NodalDisplAndRot;    break;
+    case 35 : ent = new IGESAppli_NodalResults;        break;
+    case 36 : ent = new IGESAppli_Node;        break;
+    case 37 : ent = new IGESAppli_PWBArtworkStackup;   break;
+    case 38 : ent = new IGESAppli_PWBDrilledHole;      break;
+    case 39 : ent = new IGESAppli_PartNumber;  break;
+    case 40 : ent = new IGESAppli_PinNumber;   break;
+    case 41 : ent = new IGESAppli_PipingFlow;  break;
+    case 42 : ent = new IGESAppli_ReferenceDesignator; break;
+    case 43 : ent = new IGESAppli_RegionRestriction;   break;
     default : return Standard_False;    // by default, Failure on Recognize
   }
   return Standard_True;
 }
 
-    void  IGESAppli_GeneralModule::OwnCopyCase
-  (const Standard_Integer CN,
-   const Handle(IGESData_IGESEntity)& entfrom,
-   const Handle(IGESData_IGESEntity)& entto,
-   Interface_CopyTool& TC) const 
-{
-  switch (CN) {
-    case  1 : {
-      DeclareAndCast(IGESAppli_DrilledHole,enfr,entfrom);
-      DeclareAndCast(IGESAppli_DrilledHole,ento,entto);
-      IGESAppli_ToolDrilledHole tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  2 : {
-      DeclareAndCast(IGESAppli_ElementResults,enfr,entfrom);
-      DeclareAndCast(IGESAppli_ElementResults,ento,entto);
-      IGESAppli_ToolElementResults tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  3 : {
-      DeclareAndCast(IGESAppli_FiniteElement,enfr,entfrom);
-      DeclareAndCast(IGESAppli_FiniteElement,ento,entto);
-      IGESAppli_ToolFiniteElement tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  4 : {
-      DeclareAndCast(IGESAppli_Flow,enfr,entfrom);
-      DeclareAndCast(IGESAppli_Flow,ento,entto);
-      IGESAppli_ToolFlow tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  5 : {
-      DeclareAndCast(IGESAppli_FlowLineSpec,enfr,entfrom);
-      DeclareAndCast(IGESAppli_FlowLineSpec,ento,entto);
-      IGESAppli_ToolFlowLineSpec tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  6 : {
-      DeclareAndCast(IGESAppli_LevelFunction,enfr,entfrom);
-      DeclareAndCast(IGESAppli_LevelFunction,ento,entto);
-      IGESAppli_ToolLevelFunction tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  7 : {
-      DeclareAndCast(IGESAppli_LevelToPWBLayerMap,enfr,entfrom);
-      DeclareAndCast(IGESAppli_LevelToPWBLayerMap,ento,entto);
-      IGESAppli_ToolLevelToPWBLayerMap tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  8 : {
-      DeclareAndCast(IGESAppli_LineWidening,enfr,entfrom);
-      DeclareAndCast(IGESAppli_LineWidening,ento,entto);
-      IGESAppli_ToolLineWidening tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  9 : {
-      DeclareAndCast(IGESAppli_NodalConstraint,enfr,entfrom);
-      DeclareAndCast(IGESAppli_NodalConstraint,ento,entto);
-      IGESAppli_ToolNodalConstraint tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 10 : {
-      DeclareAndCast(IGESAppli_NodalDisplAndRot,enfr,entfrom);
-      DeclareAndCast(IGESAppli_NodalDisplAndRot,ento,entto);
-      IGESAppli_ToolNodalDisplAndRot tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 11 : {
-      DeclareAndCast(IGESAppli_NodalResults,enfr,entfrom);
-      DeclareAndCast(IGESAppli_NodalResults,ento,entto);
-      IGESAppli_ToolNodalResults tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 12 : {
-      DeclareAndCast(IGESAppli_Node,enfr,entfrom);
-      DeclareAndCast(IGESAppli_Node,ento,entto);
-      IGESAppli_ToolNode tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 13 : {
-      DeclareAndCast(IGESAppli_PWBArtworkStackup,enfr,entfrom);
-      DeclareAndCast(IGESAppli_PWBArtworkStackup,ento,entto);
-      IGESAppli_ToolPWBArtworkStackup tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 14 : {
-      DeclareAndCast(IGESAppli_PWBDrilledHole,enfr,entfrom);
-      DeclareAndCast(IGESAppli_PWBDrilledHole,ento,entto);
-      IGESAppli_ToolPWBDrilledHole tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 15 : {
-      DeclareAndCast(IGESAppli_PartNumber,enfr,entfrom);
-      DeclareAndCast(IGESAppli_PartNumber,ento,entto);
-      IGESAppli_ToolPartNumber tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 16 : {
-      DeclareAndCast(IGESAppli_PinNumber,enfr,entfrom);
-      DeclareAndCast(IGESAppli_PinNumber,ento,entto);
-      IGESAppli_ToolPinNumber tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 17 : {
-      DeclareAndCast(IGESAppli_PipingFlow,enfr,entfrom);
-      DeclareAndCast(IGESAppli_PipingFlow,ento,entto);
-      IGESAppli_ToolPipingFlow tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 18 : {
-      DeclareAndCast(IGESAppli_ReferenceDesignator,enfr,entfrom);
-      DeclareAndCast(IGESAppli_ReferenceDesignator,ento,entto);
-      IGESAppli_ToolReferenceDesignator tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 19 : {
-      DeclareAndCast(IGESAppli_RegionRestriction,enfr,entfrom);
-      DeclareAndCast(IGESAppli_RegionRestriction,ento,entto);
-      IGESAppli_ToolRegionRestriction tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    default : break;
-  }
-}
-
-
-    Standard_Integer  IGESAppli_GeneralModule::CategoryNumber
-  (const Standard_Integer CN, const Handle(Standard_Transient)& /*ent*/,
-   const Interface_ShareTool& ) const
+Standard_Integer IGESAppli_GeneralModule::CategoryNumber (const Standard_Integer CN, const Handle(Standard_Transient)& /*ent*/, const Interface_ShareTool& ) const
 {
-  if (CN == 4 || CN == 5 || CN == 17) return Interface_Category::Number("Piping");
-  if (CN == 2 || CN == 3 || (CN >= 9 && CN <= 12)) return Interface_Category::Number("FEA");
+  // For IGESSolid {
+  if (CN >= 1 && CN <= 24) return Interface_Category::Number("Shape");
+  // }
+  if (CN == 28 || CN == 29 || CN == 41) return Interface_Category::Number("Piping");
+  if (CN == 26 || CN == 27 || (CN >= 33 && CN <= 36)) return Interface_Category::Number("FEA");
   return Interface_Category::Number("Professional");
 }
index 535bb5b34ad4434e4c63364514f7f2ba01bd3ed1..0cef4f7b6513c0df3ebce6df91e42d0117783e82 100644 (file)
 #ifndef _IGESAppli_GeneralModule_HeaderFile
 #define _IGESAppli_GeneralModule_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
 #include <IGESData_GeneralModule.hxx>
-#include <Standard_Integer.hxx>
-#include <Standard_Boolean.hxx>
-class IGESData_IGESEntity;
-class Interface_EntityIterator;
-class IGESData_DirChecker;
-class Interface_ShareTool;
-class Interface_Check;
-class Standard_Transient;
-class Interface_CopyTool;
 
 
 class IGESAppli_GeneralModule;
@@ -39,12 +27,10 @@ DEFINE_STANDARD_HANDLE(IGESAppli_GeneralModule, IGESData_GeneralModule)
 //! This Services comprise : Shared & Implied Lists, Copy, Check
 class IGESAppli_GeneralModule : public IGESData_GeneralModule
 {
+ public:
 
-public:
-
-  
   //! Creates a GeneralModule from IGESAppli and puts it into GeneralLib
-  Standard_EXPORT IGESAppli_GeneralModule();
+  IGESAppli_GeneralModule() {}
   
   //! Lists the Entities shared by a given IGESEntity <ent>, from
   //! its specific parameters : specific for each type
@@ -61,36 +47,13 @@ public:
   //! Specific creation of a new void entity
   Standard_EXPORT Standard_Boolean NewVoid (const Standard_Integer CN, Handle(Standard_Transient)& entto) const Standard_OVERRIDE;
   
-  //! Copies parameters which are specific of each Type of Entity
-  Standard_EXPORT void OwnCopyCase (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& entfrom, const Handle(IGESData_IGESEntity)& entto, Interface_CopyTool& TC) const Standard_OVERRIDE;
-  
   //! Returns a category number which characterizes an entity
   //! FEA for : ElementResults,FiniteElement,Node&Co
   //! Piping for : Flow & Co
   //! Professional for : others (in fact Schematics)
   Standard_EXPORT virtual Standard_Integer CategoryNumber (const Standard_Integer CN, const Handle(Standard_Transient)& ent, const Interface_ShareTool& shares) const Standard_OVERRIDE;
 
-
-
-
   DEFINE_STANDARD_RTTIEXT(IGESAppli_GeneralModule,IGESData_GeneralModule)
-
-protected:
-
-
-
-
-private:
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESAppli_GeneralModule_HeaderFile
index 62dbb193ee625f570e9073f07baa542883b30dc3..104ae9d2cdd489faa13f248657f4aa22c4e02c0d 100644 (file)
 //--------------------------------------------------------------------
 
 #include <IGESAppli_LevelFunction.hxx>
-#include <Standard_Type.hxx>
 #include <TCollection_HAsciiString.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_LevelFunction,IGESData_IGESEntity)
 
-IGESAppli_LevelFunction::IGESAppli_LevelFunction ()    {  }
-
-
     void  IGESAppli_LevelFunction::Init
   (const Standard_Integer nbPropVal,
    const Standard_Integer aCode,
@@ -36,18 +32,8 @@ IGESAppli_LevelFunction::IGESAppli_LevelFunction ()    {  }
   InitTypeAndForm(406,3);
 }
 
-
-    Standard_Integer  IGESAppli_LevelFunction::NbPropertyValues () const
-{
-  return theNbPropertyValues;
-}
-
-    Standard_Integer  IGESAppli_LevelFunction::FuncDescriptionCode () const
-{
-  return theFuncDescripCode;
-}
-
-    Handle(TCollection_HAsciiString) IGESAppli_LevelFunction::FuncDescription () const
+void IGESAppli_LevelFunction::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
 {
-  return theFuncDescrip;
+  if (NbPropertyValues() != 2)
+    theCheck->AddFail("Number of Property Values != 2");
 }
index fd98e0def37a340f9f57e29899c9fc5766766079..0ef994fc7c63a745c3f3625cf61747835a30d17f 100644 (file)
 #ifndef _IGESAppli_LevelFunction_HeaderFile
 #define _IGESAppli_LevelFunction_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
-#include <Standard_Integer.hxx>
 #include <IGESData_IGESEntity.hxx>
 class TCollection_HAsciiString;
 
@@ -34,11 +30,9 @@ DEFINE_STANDARD_HANDLE(IGESAppli_LevelFunction, IGESData_IGESEntity)
 //! in the sending system
 class IGESAppli_LevelFunction : public IGESData_IGESEntity
 {
+ public:
 
-public:
-
-  
-  Standard_EXPORT IGESAppli_LevelFunction();
+  IGESAppli_LevelFunction() {}
   
   //! This method is used to set the fields of the class
   //! LevelFunction
@@ -50,39 +44,24 @@ public:
   Standard_EXPORT void Init (const Standard_Integer nbPropVal, const Standard_Integer aCode, const Handle(TCollection_HAsciiString)& aFuncDescrip);
   
   //! is always 2
-  Standard_EXPORT Standard_Integer NbPropertyValues() const;
-  
+  Standard_Integer NbPropertyValues() const { return theNbPropertyValues; }
+
   //! returns the function description code . Default = 0
-  Standard_EXPORT Standard_Integer FuncDescriptionCode() const;
-  
+  Standard_Integer FuncDescriptionCode() const { return theFuncDescripCode; }
+
   //! returns the function description
   //! Default = null string
-  Standard_EXPORT Handle(TCollection_HAsciiString) FuncDescription() const;
-
-
+  const Handle(TCollection_HAsciiString) & FuncDescription() const { return theFuncDescrip; }
 
+  Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
 
   DEFINE_STANDARD_RTTIEXT(IGESAppli_LevelFunction,IGESData_IGESEntity)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   Standard_Integer theNbPropertyValues;
   Standard_Integer theFuncDescripCode;
   Handle(TCollection_HAsciiString) theFuncDescrip;
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESAppli_LevelFunction_HeaderFile
index 8aa1e1cdff4ed2cf5e380dbdfbf4ca4565c7a2e1..f5aa1aa9398a14ba01e078e5ab9e5f1ac124d655 100644 (file)
 #include <IGESAppli_LevelToPWBLayerMap.hxx>
 #include <Standard_DimensionMismatch.hxx>
 #include <Standard_OutOfRange.hxx>
-#include <Standard_Type.hxx>
 #include <TCollection_HAsciiString.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_LevelToPWBLayerMap,IGESData_IGESEntity)
 
-IGESAppli_LevelToPWBLayerMap::IGESAppli_LevelToPWBLayerMap ()    {  }
-
-
-    void  IGESAppli_LevelToPWBLayerMap::Init
+void IGESAppli_LevelToPWBLayerMap::Init
   (const Standard_Integer nbPropVal,
    const Handle(TColStd_HArray1OfInteger)& allExchLevels,
    const Handle(Interface_HArray1OfHAsciiString)& allNativeLevels,
@@ -48,36 +44,27 @@ IGESAppli_LevelToPWBLayerMap::IGESAppli_LevelToPWBLayerMap ()    {  }
   InitTypeAndForm(406,24);
 }
 
-    Standard_Integer  IGESAppli_LevelToPWBLayerMap::NbPropertyValues () const
-{
-  return theNbPropertyValues;
-}
-
-    Standard_Integer  IGESAppli_LevelToPWBLayerMap::NbLevelToLayerDefs () const
+Standard_Integer IGESAppli_LevelToPWBLayerMap::NbLevelToLayerDefs () const
 {
   return theExchangeFileLevelNumber->Length();
 }
 
-    Standard_Integer  IGESAppli_LevelToPWBLayerMap::ExchangeFileLevelNumber
-  (const Standard_Integer Index) const
+Standard_Integer IGESAppli_LevelToPWBLayerMap::ExchangeFileLevelNumber (const Standard_Integer Index) const
 {
   return theExchangeFileLevelNumber->Value(Index);
 }
 
-    Handle(TCollection_HAsciiString)  IGESAppli_LevelToPWBLayerMap::NativeLevel
-  (const Standard_Integer Index) const
+const Handle(TCollection_HAsciiString) & IGESAppli_LevelToPWBLayerMap::NativeLevel (const Standard_Integer Index) const
 {
   return theNativeLevel->Value(Index);
 }
 
-    Standard_Integer  IGESAppli_LevelToPWBLayerMap::PhysicalLayerNumber
-  (const Standard_Integer Index) const
+Standard_Integer IGESAppli_LevelToPWBLayerMap::PhysicalLayerNumber (const Standard_Integer Index) const
 {
   return thePhysicalLayerNumber->Value(Index);
 }
 
-    Handle(TCollection_HAsciiString)  IGESAppli_LevelToPWBLayerMap::ExchangeFileLevelIdent
-  (const Standard_Integer Index) const
+const Handle(TCollection_HAsciiString) & IGESAppli_LevelToPWBLayerMap::ExchangeFileLevelIdent (const Standard_Integer Index) const
 {
   return theExchangeFileLevelIdent->Value(Index);
 }
index 66aaddd1a1139f7f620b726f790ec927567a15b3..d34f24007def06c5bba17bdf5aff94c67bed75b0 100644 (file)
 #ifndef _IGESAppli_LevelToPWBLayerMap_HeaderFile
 #define _IGESAppli_LevelToPWBLayerMap_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
-#include <Standard_Integer.hxx>
 #include <TColStd_HArray1OfInteger.hxx>
 #include <Interface_HArray1OfHAsciiString.hxx>
 #include <IGESData_IGESEntity.hxx>
-class Standard_DimensionMismatch;
-class Standard_OutOfRange;
 class TCollection_HAsciiString;
 
 
@@ -40,11 +34,9 @@ DEFINE_STANDARD_HANDLE(IGESAppli_LevelToPWBLayerMap, IGESData_IGESEntity)
 //! identification
 class IGESAppli_LevelToPWBLayerMap : public IGESData_IGESEntity
 {
+ public:
 
-public:
-
-  
-  Standard_EXPORT IGESAppli_LevelToPWBLayerMap();
+  IGESAppli_LevelToPWBLayerMap() {}
   
   //! This method is used to set the fields of the class
   //! LevelToPWBLayerMap
@@ -58,8 +50,8 @@ public:
   Standard_EXPORT void Init (const Standard_Integer nbPropVal, const Handle(TColStd_HArray1OfInteger)& allExchLevels, const Handle(Interface_HArray1OfHAsciiString)& allNativeLevels, const Handle(TColStd_HArray1OfInteger)& allPhysLevels, const Handle(Interface_HArray1OfHAsciiString)& allExchIdents);
   
   //! returns number of property values
-  Standard_EXPORT Standard_Integer NbPropertyValues() const;
-  
+  Standard_Integer NbPropertyValues() const { return theNbPropertyValues; }
+
   //! returns number of level to layer definitions
   Standard_EXPORT Standard_Integer NbLevelToLayerDefs() const;
   
@@ -69,40 +61,23 @@ public:
   
   //! returns Native Level Identification
   //! raises exception if Index <= 0 or Index > NbLevelToLayerDefs
-  Standard_EXPORT Handle(TCollection_HAsciiString) NativeLevel (const Standard_Integer Index) const;
+  Standard_EXPORT const Handle(TCollection_HAsciiString) & NativeLevel (const Standard_Integer Index) const;
   
   //! returns Physical Layer Number
   //! raises exception if Index <= 0 or Index > NbLevelToLayerDefs
   Standard_EXPORT Standard_Integer PhysicalLayerNumber (const Standard_Integer Index) const;
   
-  Standard_EXPORT Handle(TCollection_HAsciiString) ExchangeFileLevelIdent (const Standard_Integer Index) const;
-
-
-
+  Standard_EXPORT const Handle(TCollection_HAsciiString) & ExchangeFileLevelIdent (const Standard_Integer Index) const;
 
   DEFINE_STANDARD_RTTIEXT(IGESAppli_LevelToPWBLayerMap,IGESData_IGESEntity)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   Standard_Integer theNbPropertyValues;
   Handle(TColStd_HArray1OfInteger) theExchangeFileLevelNumber;
   Handle(Interface_HArray1OfHAsciiString) theNativeLevel;
   Handle(TColStd_HArray1OfInteger) thePhysicalLayerNumber;
   Handle(Interface_HArray1OfHAsciiString) theExchangeFileLevelIdent;
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESAppli_LevelToPWBLayerMap_HeaderFile
index 5f36d2d9af9fd60358b75be98847666881079917..0356b3f2b1829eb935642548a7eb9a40642d07c2 100644 (file)
 
 #include <IGESAppli_LineWidening.hxx>
 #include <IGESData_LevelListEntity.hxx>
-#include <Standard_Type.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_LineWidening,IGESData_IGESEntity)
 
-IGESAppli_LineWidening::IGESAppli_LineWidening ()    {  }
-
-
-    void  IGESAppli_LineWidening::Init
+void IGESAppli_LineWidening::Init
   (const Standard_Integer nbPropVal,
    const Standard_Real    aWidth,    const Standard_Integer aCornering,
    const Standard_Integer aExtnFlag, const Standard_Integer aJustifFlag,
@@ -40,33 +36,18 @@ IGESAppli_LineWidening::IGESAppli_LineWidening ()    {  }
   InitTypeAndForm(406,5);
 }
 
-
-    Standard_Integer  IGESAppli_LineWidening::NbPropertyValues () const
-{
-  return theNbPropertyValues;
-}
-
-    Standard_Real  IGESAppli_LineWidening::WidthOfMetalization () const
-{
-  return theWidth;
-}
-
-    Standard_Integer  IGESAppli_LineWidening::CorneringCode () const
-{
-  return theCorneringCode;
-}
-
-    Standard_Integer  IGESAppli_LineWidening::ExtensionFlag () const
-{
-  return theExtensionFlag;
-}
-
-    Standard_Integer  IGESAppli_LineWidening::JustificationFlag () const
-{
-  return theJustificationFlag;
-}
-
-    Standard_Real  IGESAppli_LineWidening::ExtensionValue () const
+void IGESAppli_LineWidening::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
 {
-  return theExtensionValue;
+  if (SubordinateStatus() != 0)
+    if (DefLevel() == IGESData_DefOne ||
+           DefLevel() == IGESData_DefSeveral)
+      theCheck->AddWarning("Level type: defined while ignored");
+  if (NbPropertyValues() != 5)
+    theCheck->AddFail("Number of Property Values != 5");
+  if (CorneringCode() != 0 && CorneringCode() != 1)
+    theCheck->AddFail("Cornering Code incorrect");
+  if (ExtensionFlag() < 0 || ExtensionFlag() > 2)
+    theCheck->AddFail("Extension Flag value incorrect");
+  if (JustificationFlag() < 0 || JustificationFlag() > 2)
+    theCheck->AddFail("Justification Flag value incorrect");
 }
index f2457351a357769b3e2b0f3c83c31b4de8613511..b0f7e578da0c1c65abbf4a2fac22d9f7463261bf 100644 (file)
 #ifndef _IGESAppli_LineWidening_HeaderFile
 #define _IGESAppli_LineWidening_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
-#include <Standard_Integer.hxx>
-#include <Standard_Real.hxx>
 #include <IGESData_IGESEntity.hxx>
 
-
 class IGESAppli_LineWidening;
 DEFINE_STANDARD_HANDLE(IGESAppli_LineWidening, IGESData_IGESEntity)
 
@@ -34,11 +28,9 @@ DEFINE_STANDARD_HANDLE(IGESAppli_LineWidening, IGESData_IGESEntity)
 //! used to define locations of items.
 class IGESAppli_LineWidening : public IGESData_IGESEntity
 {
+ public:
 
-public:
-
-  
-  Standard_EXPORT IGESAppli_LineWidening();
+  IGESAppli_LineWidening() {}
   
   //! This method is used to set the fields of the class
   //! LineWidening
@@ -60,43 +52,36 @@ public:
   
   //! returns the number of property values
   //! is always 5
-  Standard_EXPORT Standard_Integer NbPropertyValues() const;
-  
+  Standard_Integer NbPropertyValues() const { return theNbPropertyValues; }
+
   //! returns the width of metallization
-  Standard_EXPORT Standard_Real WidthOfMetalization() const;
-  
+  Standard_Real WidthOfMetalization() const { return theWidth; }
+
   //! returns the cornering code
   //! 0 = Rounded  /   1 = Squared
-  Standard_EXPORT Standard_Integer CorneringCode() const;
-  
+  Standard_Integer CorneringCode() const { return theCorneringCode; }
+
   //! returns the extension flag
   //! 0 = No extension
   //! 1 = One-half width extension
   //! 2 = Extension set by theExtnVal
-  Standard_EXPORT Standard_Integer ExtensionFlag() const;
-  
+  Standard_Integer ExtensionFlag() const { return theExtensionFlag; }
+
   //! returns the justification flag
   //! 0 = Centre justified
   //! 1 = Left justified
   //! 2 = Right justified
-  Standard_EXPORT Standard_Integer JustificationFlag() const;
-  
+  Standard_Integer JustificationFlag() const { return theJustificationFlag; }
+
   //! returns the Extension Value
   //! Present only if theExtnFlag = 2
-  Standard_EXPORT Standard_Real ExtensionValue() const;
-
-
+  Standard_Real ExtensionValue() const { return theExtensionValue; }
 
+  Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
 
   DEFINE_STANDARD_RTTIEXT(IGESAppli_LineWidening,IGESData_IGESEntity)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   Standard_Integer theNbPropertyValues;
   Standard_Real theWidth;
@@ -104,14 +89,6 @@ private:
   Standard_Integer theExtensionFlag;
   Standard_Integer theJustificationFlag;
   Standard_Real theExtensionValue;
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESAppli_LineWidening_HeaderFile
index 7a97892b226c3d6fec4d801927b2df048685844c..31239808c8cb4d789dbedfe89cfcdd71f861a65c 100644 (file)
 #include <IGESDefs_TabularData.hxx>
 #include <Standard_DimensionMismatch.hxx>
 #include <Standard_OutOfRange.hxx>
-#include <Standard_Type.hxx>
+#include <Interface_EntityIterator.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_NodalConstraint,IGESData_IGESEntity)
 
-IGESAppli_NodalConstraint::IGESAppli_NodalConstraint ()    {  }
-
-
-    void  IGESAppli_NodalConstraint::Init
+void IGESAppli_NodalConstraint::Init
   (const Standard_Integer aType,
    const Handle(IGESAppli_Node)& aNode,
    const Handle(IGESDefs_HArray1OfTabularData)& allTabData)
@@ -41,23 +38,26 @@ IGESAppli_NodalConstraint::IGESAppli_NodalConstraint ()    {  }
   InitTypeAndForm(418,0);
 }
 
-    Standard_Integer  IGESAppli_NodalConstraint::NbCases () const
+Standard_Integer IGESAppli_NodalConstraint::NbCases () const
 {
   return theTabularDataProps->Length();
 }
 
-    Standard_Integer  IGESAppli_NodalConstraint::Type () const
+const Handle(IGESDefs_TabularData) & IGESAppli_NodalConstraint::TabularData (const Standard_Integer Index) const
 {
-  return theType;
+  return theTabularDataProps->Value(Index);
 }
 
-    Handle(IGESAppli_Node)  IGESAppli_NodalConstraint::NodeEntity () const
+void IGESAppli_NodalConstraint::OwnShared(Interface_EntityIterator &theIter) const
 {
-  return theNode;
+  theIter.GetOneItem(NodeEntity());
+  const Standard_Integer num = NbCases();
+  for ( Standard_Integer i = 1; i <= num; i++ )
+    theIter.GetOneItem(TabularData(i));
 }
 
-    Handle(IGESDefs_TabularData)  IGESAppli_NodalConstraint::TabularData
-  (const Standard_Integer Index) const
+void IGESAppli_NodalConstraint::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
 {
-  return theTabularDataProps->Value(Index);
+  if ((Type() != 1) && (Type() != 2))
+    theCheck->AddFail("Type of Constraint != 1,2");
 }
index db54f948e7e7c9745a424c7ecbc563a28331ae23..5a31a6ccdb6c69affd2a2f8853ab6a53a614c20a 100644 (file)
 #ifndef _IGESAppli_NodalConstraint_HeaderFile
 #define _IGESAppli_NodalConstraint_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
-#include <Standard_Integer.hxx>
 #include <IGESDefs_HArray1OfTabularData.hxx>
 #include <IGESData_IGESEntity.hxx>
 class IGESAppli_Node;
-class Standard_OutOfRange;
 class IGESDefs_TabularData;
 
 
@@ -39,11 +34,9 @@ DEFINE_STANDARD_HANDLE(IGESAppli_NodalConstraint, IGESData_IGESEntity)
 //! the load or constraint data
 class IGESAppli_NodalConstraint : public IGESData_IGESEntity
 {
+ public:
 
-public:
-
-  
-  Standard_EXPORT IGESAppli_NodalConstraint();
+  IGESAppli_NodalConstraint() {}
   
   //! This method is used to set the fields of the class
   //! NodalConstraint
@@ -57,39 +50,26 @@ public:
   Standard_EXPORT Standard_Integer NbCases() const;
   
   //! returns whether Loads (1) or Constraints (2)
-  Standard_EXPORT Standard_Integer Type() const;
-  
+  Standard_Integer Type() const { return theType; }
+
   //! returns the Node
-  Standard_EXPORT Handle(IGESAppli_Node) NodeEntity() const;
-  
+  const Handle(IGESAppli_Node) & NodeEntity() const { return theNode; }
+
   //! returns Tabular Data Property carrying load or constraint vector
   //! raises exception if Index <= 0 or Index > NbCases
-  Standard_EXPORT Handle(IGESDefs_TabularData) TabularData (const Standard_Integer Index) const;
-
+  Standard_EXPORT const Handle(IGESDefs_TabularData) & TabularData (const Standard_Integer Index) const;
 
+  Standard_EXPORT virtual void OwnShared(Interface_EntityIterator &theIter) const Standard_OVERRIDE;
 
+  Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
 
   DEFINE_STANDARD_RTTIEXT(IGESAppli_NodalConstraint,IGESData_IGESEntity)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   Standard_Integer theType;
   Handle(IGESAppli_Node) theNode;
   Handle(IGESDefs_HArray1OfTabularData) theTabularDataProps;
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESAppli_NodalConstraint_HeaderFile
index 046b39625f0f01ee947b49e5caab0b02224d4053..86eee184f184878bdf7f27a70a9cbfc1493185a5 100644 (file)
 #include <IGESDimen_GeneralNote.hxx>
 #include <Standard_DimensionMismatch.hxx>
 #include <Standard_OutOfRange.hxx>
-#include <Standard_Type.hxx>
+#include <Interface_EntityIterator.hxx>
 #include <TColgp_HArray1OfXYZ.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_NodalDisplAndRot,IGESData_IGESEntity)
 
-IGESAppli_NodalDisplAndRot::IGESAppli_NodalDisplAndRot ()    {  }
-
-
-    void  IGESAppli_NodalDisplAndRot::Init
+void IGESAppli_NodalDisplAndRot::Init
   (const Handle(IGESDimen_HArray1OfGeneralNote)& allNotes,
    const Handle(TColStd_HArray1OfInteger)& allIdentifiers,
    const Handle(IGESAppli_HArray1OfNode)&  allNodes,
@@ -66,43 +63,48 @@ IGESAppli_NodalDisplAndRot::IGESAppli_NodalDisplAndRot ()    {  }
   InitTypeAndForm(138,0);
 }
 
-    Standard_Integer  IGESAppli_NodalDisplAndRot::NbCases () const
+Standard_Integer IGESAppli_NodalDisplAndRot::NbCases () const
 {
   return theNotes->Length();
 }
 
-    Standard_Integer  IGESAppli_NodalDisplAndRot::NbNodes () const
+Standard_Integer IGESAppli_NodalDisplAndRot::NbNodes () const
 {
   return theNodes->Length();
 }
 
-    Handle(IGESDimen_GeneralNote)  IGESAppli_NodalDisplAndRot::Note
-  (const Standard_Integer Index) const
+const Handle(IGESDimen_GeneralNote) & IGESAppli_NodalDisplAndRot::Note (const Standard_Integer Index) const
 {
   return theNotes->Value(Index);
 }
 
-    Standard_Integer  IGESAppli_NodalDisplAndRot::NodeIdentifier
-  (const Standard_Integer Index) const
+Standard_Integer IGESAppli_NodalDisplAndRot::NodeIdentifier (const Standard_Integer Index) const
 {
   return theNodeIdentifiers->Value(Index);
 }
 
-    Handle(IGESAppli_Node)  IGESAppli_NodalDisplAndRot::Node
-  (const Standard_Integer Index) const
+const Handle(IGESAppli_Node) & IGESAppli_NodalDisplAndRot::Node (const Standard_Integer Index) const
 {
   return theNodes->Value(Index);
 }
 
-    gp_XYZ  IGESAppli_NodalDisplAndRot::TranslationParameter
-  (const Standard_Integer NodeNum, const Standard_Integer CaseNum) const
+const gp_XYZ & IGESAppli_NodalDisplAndRot::TranslationParameter (const Standard_Integer NodeNum, const Standard_Integer CaseNum) const
 {
   return theTransParam->Value(NodeNum)->Value(CaseNum);
 }
 
-    gp_XYZ  IGESAppli_NodalDisplAndRot::RotationalParameter
-  (const Standard_Integer NodeNum, const Standard_Integer CaseNum) const
+const gp_XYZ & IGESAppli_NodalDisplAndRot::RotationalParameter (const Standard_Integer NodeNum, const Standard_Integer CaseNum) const
 {
   return theRotParam->Value(NodeNum)->Value(CaseNum);
 }
 
+void IGESAppli_NodalDisplAndRot::OwnShared(Interface_EntityIterator &theIter) const
+{
+  const Standard_Integer nbcases = theNotes->Length();
+  const Standard_Integer nbnodes = theNodes->Length();
+
+  for (Standard_Integer i = 1; i <= nbcases; i ++)
+    theIter.GetOneItem(theNotes->Value(i));
+  for (Standard_Integer j = 1; j <= nbnodes; j ++)
+    theIter.GetOneItem(theNodes->Value(j));
+}
index 7e9f7e064bd0f876b86b690fb6ec35450a395cae..881f7712705883dbb11530b108e63a661bad84e2 100644 (file)
 #ifndef _IGESAppli_NodalDisplAndRot_HeaderFile
 #define _IGESAppli_NodalDisplAndRot_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
 #include <IGESDimen_HArray1OfGeneralNote.hxx>
 #include <TColStd_HArray1OfInteger.hxx>
 #include <IGESAppli_HArray1OfNode.hxx>
 #include <IGESData_IGESEntity.hxx>
-#include <Standard_Integer.hxx>
 class IGESBasic_HArray1OfHArray1OfXYZ;
-class Standard_DimensionMismatch;
-class Standard_OutOfRange;
 class IGESDimen_GeneralNote;
 class IGESAppli_Node;
 class gp_XYZ;
@@ -42,11 +36,9 @@ DEFINE_STANDARD_HANDLE(IGESAppli_NodalDisplAndRot, IGESData_IGESEntity)
 //! data.
 class IGESAppli_NodalDisplAndRot : public IGESData_IGESEntity
 {
+ public:
 
-public:
-
-  
-  Standard_EXPORT IGESAppli_NodalDisplAndRot();
+  IGESAppli_NodalDisplAndRot() {}
   
   //! This method is used to set the fields of the class
   //! NodalDisplAndRot
@@ -72,7 +64,7 @@ public:
   
   //! returns the General Note that describes the Index analysis case
   //! raises exception if Index <= 0 or Index > NbCases
-  Standard_EXPORT Handle(IGESDimen_GeneralNote) Note (const Standard_Integer Index) const;
+  Standard_EXPORT const Handle(IGESDimen_GeneralNote) & Note (const Standard_Integer Index) const;
   
   //! returns the node identifier as specified by the Index
   //! raises exception if Index <= 0 or Index > NbNodes
@@ -80,44 +72,29 @@ public:
   
   //! returns the node as specified by the Index
   //! raises exception if Index <= 0 or Index > NbNodes
-  Standard_EXPORT Handle(IGESAppli_Node) Node (const Standard_Integer Index) const;
+  Standard_EXPORT const Handle(IGESAppli_Node) & Node (const Standard_Integer Index) const;
   
   //! returns the Translational Parameters for the particular Index
   //! Exception raised if NodeNum <= 0 or NodeNum > NbNodes()
   //! or CaseNum <= 0 or CaseNum > NbCases()
-  Standard_EXPORT gp_XYZ TranslationParameter (const Standard_Integer NodeNum, const Standard_Integer CaseNum) const;
+  Standard_EXPORT const gp_XYZ & TranslationParameter (const Standard_Integer NodeNum, const Standard_Integer CaseNum) const;
   
   //! returns the Rotational Parameters for Index
   //! Exception raised if NodeNum <= 0 or NodeNum > NbNodes()
   //! or CaseNum <= 0 or CaseNum > NbCases()
-  Standard_EXPORT gp_XYZ RotationalParameter (const Standard_Integer NodeNum, const Standard_Integer CaseNum) const;
-
-
+  Standard_EXPORT const gp_XYZ & RotationalParameter (const Standard_Integer NodeNum, const Standard_Integer CaseNum) const;
 
+  Standard_EXPORT virtual void OwnShared(Interface_EntityIterator &theIter) const Standard_OVERRIDE;
 
   DEFINE_STANDARD_RTTIEXT(IGESAppli_NodalDisplAndRot,IGESData_IGESEntity)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   Handle(IGESDimen_HArray1OfGeneralNote) theNotes;
   Handle(TColStd_HArray1OfInteger) theNodeIdentifiers;
   Handle(IGESAppli_HArray1OfNode) theNodes;
   Handle(IGESBasic_HArray1OfHArray1OfXYZ) theTransParam;
   Handle(IGESBasic_HArray1OfHArray1OfXYZ) theRotParam;
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESAppli_NodalDisplAndRot_HeaderFile
index 525222cfd22824bc939c695aa5d90d149ed13405..dd6112782de87897ff77bd3cfcdfd084c77b1ab5 100644 (file)
 #include <IGESDimen_GeneralNote.hxx>
 #include <Standard_DimensionMismatch.hxx>
 #include <Standard_OutOfRange.hxx>
-#include <Standard_Type.hxx>
+#include <Interface_EntityIterator.hxx>
 #include <TColStd_HArray1OfReal.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_NodalResults,IGESData_IGESEntity)
 
-IGESAppli_NodalResults::IGESAppli_NodalResults ()    {  }
-
-
 // Data : Col -> // Nodes.  Row : Data per Node
 
-    void  IGESAppli_NodalResults::Init
+void IGESAppli_NodalResults::Init
   (const Handle(IGESDimen_GeneralNote)&    aNote,
    const Standard_Integer aNumber, const Standard_Real aTime,
    const Handle(TColStd_HArray1OfInteger)& allNodeIdentifiers,
@@ -53,53 +50,88 @@ IGESAppli_NodalResults::IGESAppli_NodalResults ()    {  }
 // FormNumber -> Type of the Results
 }
 
-    void  IGESAppli_NodalResults::SetFormNumber (const Standard_Integer form)
+void IGESAppli_NodalResults::SetFormNumber (const Standard_Integer form)
 {
   if (form < 0 || form > 34) Standard_OutOfRange::Raise
     ("IGESAppli_NodalResults : SetFormNumber");
   InitTypeAndForm(146,form);
 }
 
-
-    Handle(IGESDimen_GeneralNote)  IGESAppli_NodalResults::Note () const
-{
-  return theNote;
-}
-
-    Handle(IGESAppli_Node)  IGESAppli_NodalResults::Node
-  (const Standard_Integer Index) const
+const Handle(IGESAppli_Node) & IGESAppli_NodalResults::Node (const Standard_Integer Index) const
 {
   return theNodes->Value(Index);
 }
 
-    Standard_Integer  IGESAppli_NodalResults::NbNodes () const
+Standard_Integer IGESAppli_NodalResults::NbNodes () const
 {
   return theNodes->Length();
 }
 
-    Standard_Integer  IGESAppli_NodalResults::SubCaseNumber () const
+Standard_Integer IGESAppli_NodalResults::NbData () const
 {
-  return theSubCaseNum;
+  return theData->RowLength();
 }
 
-    Standard_Real  IGESAppli_NodalResults::Time () const
+Standard_Integer IGESAppli_NodalResults::NodeIdentifier (const Standard_Integer Index) const
 {
-  return theTime;
+  return theNodeIdentifiers->Value(Index);
 }
 
-    Standard_Integer  IGESAppli_NodalResults::NbData () const
+Standard_Real IGESAppli_NodalResults::Data (const Standard_Integer NodeNum, const Standard_Integer DataNum) const
 {
-  return theData->RowLength();
+  return theData->Value(NodeNum,DataNum);
 }
 
-    Standard_Integer  IGESAppli_NodalResults::NodeIdentifier
-  (const Standard_Integer Index) const
+void IGESAppli_NodalResults::OwnShared(Interface_EntityIterator &theIter) const
 {
-  return theNodeIdentifiers->Value(Index);
+  theIter.GetOneItem(Note());
+  const Standard_Integer nbnodes = NbNodes();
+  for (Standard_Integer i = 1; i <= nbnodes; i++)
+    theIter.GetOneItem(Node(i));
 }
 
-    Standard_Real  IGESAppli_NodalResults::Data
-  (const Standard_Integer NodeNum, const Standard_Integer DataNum) const
+void IGESAppli_NodalResults::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
 {
-  return theData->Value(NodeNum,DataNum);
+  const Standard_Integer FormNum = FormNumber();
+  const Standard_Integer nv = NbData();
+  Standard_Boolean OK = Standard_True;
+  switch (FormNum) {
+    case  0 : if (nv <  0) OK = Standard_False;  break;
+    case  1 : if (nv != 1) OK = Standard_False;  break;
+    case  2 : if (nv != 1) OK = Standard_False;  break;
+    case  3 : if (nv != 3) OK = Standard_False;  break;
+    case  4 : if (nv != 6) OK = Standard_False;  break;
+    case  5 : if (nv != 3) OK = Standard_False;  break;
+    case  6 : if (nv != 3) OK = Standard_False;  break;
+    case  7 : if (nv != 3) OK = Standard_False;  break;
+    case  8 : if (nv != 3) OK = Standard_False;  break;
+    case  9 : if (nv != 3) OK = Standard_False;  break;
+    case 10 : if (nv != 1) OK = Standard_False;  break;
+    case 11 : if (nv != 1) OK = Standard_False;  break;
+    case 12 : if (nv != 3) OK = Standard_False;  break;
+    case 13 : if (nv != 1) OK = Standard_False;  break;
+    case 14 : if (nv != 1) OK = Standard_False;  break;
+    case 15 : if (nv != 3) OK = Standard_False;  break;
+    case 16 : if (nv != 1) OK = Standard_False;  break;
+    case 17 : if (nv != 3) OK = Standard_False;  break;
+    case 18 : if (nv != 3) OK = Standard_False;  break;
+    case 19 : if (nv != 3) OK = Standard_False;  break;
+    case 20 : if (nv != 3) OK = Standard_False;  break;
+    case 21 : if (nv != 3) OK = Standard_False;  break;
+    case 22 : if (nv != 3) OK = Standard_False;  break;
+    case 23 : if (nv != 6) OK = Standard_False;  break;
+    case 24 : if (nv != 6) OK = Standard_False;  break;
+    case 25 : if (nv != 6) OK = Standard_False;  break;
+    case 26 : if (nv != 6) OK = Standard_False;  break;
+    case 27 : if (nv != 6) OK = Standard_False;  break;
+    case 28 : if (nv != 6) OK = Standard_False;  break;
+    case 29 : if (nv != 9) OK = Standard_False;  break;
+    case 30 : if (nv != 9) OK = Standard_False;  break;
+    case 31 : if (nv != 9) OK = Standard_False;  break;
+    case 32 : if (nv != 9) OK = Standard_False;  break;
+    case 33 : if (nv != 9) OK = Standard_False;  break;
+    case 34 : if (nv != 9) OK = Standard_False;  break;
+    default : theCheck->AddFail("Incorrect Form Number");    break;
+  }
+  if (!OK) theCheck->AddFail("Incorrect count of real values in array V for FEM node");
 }
index 43315cc724cf56ab985377ef71aade73cdbd9d56..9f7a2d0cfc0ecaf36823ee664562d6c2954d061c 100644 (file)
 #ifndef _IGESAppli_NodalResults_HeaderFile
 #define _IGESAppli_NodalResults_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
-#include <Standard_Integer.hxx>
-#include <Standard_Real.hxx>
 #include <TColStd_HArray1OfInteger.hxx>
 #include <IGESAppli_HArray1OfNode.hxx>
 #include <TColStd_HArray2OfReal.hxx>
 #include <IGESData_IGESEntity.hxx>
 class IGESDimen_GeneralNote;
-class Standard_DimensionMismatch;
-class Standard_OutOfRange;
 class IGESAppli_Node;
 
 
@@ -40,11 +33,9 @@ DEFINE_STANDARD_HANDLE(IGESAppli_NodalResults, IGESData_IGESEntity)
 //! Used to store the Analysis Data results per FEM Node
 class IGESAppli_NodalResults : public IGESData_IGESEntity
 {
+ public:
 
-public:
-
-  
-  Standard_EXPORT IGESAppli_NodalResults();
+  IGESAppli_NodalResults() {}
   
   //! This method is used to set the fields of the class
   //! NodalResults
@@ -65,16 +56,16 @@ public:
   Standard_EXPORT void SetFormNumber (const Standard_Integer form);
   
   //! returns the General Note Entity that describes the analysis case
-  Standard_EXPORT Handle(IGESDimen_GeneralNote) Note() const;
-  
+  const Handle(IGESDimen_GeneralNote) & Note() const { return theNote; }
+
   //! returns zero if there is no subcase
-  Standard_EXPORT Standard_Integer SubCaseNumber() const;
-  
+  Standard_Integer SubCaseNumber() const { return theSubCaseNum; }
+
   //! returns the Analysis time value for this subcase. It is the time
   //! at which transient analysis results occur in the mathematical
   //! FEM model.
-  Standard_EXPORT Standard_Real Time() const;
-  
+  Standard_Real Time() const { return theTime; }
+
   //! returns number of real values in array V for a FEM node
   Standard_EXPORT Standard_Integer NbData() const;
   
@@ -87,25 +78,20 @@ public:
   
   //! returns the node as specified by the Index
   //! raises exception if Index <= 0 or Index > NbNodes
-  Standard_EXPORT Handle(IGESAppli_Node) Node (const Standard_Integer Index) const;
+  Standard_EXPORT const Handle(IGESAppli_Node) & Node (const Standard_Integer Index) const;
   
   //! returns the finite element analysis result value
   //! raises exception if (NodeNum <= 0 or NodeNum > NbNodes()) or
   //! if (DataNum <=0 or DataNum > NbData())
   Standard_EXPORT Standard_Real Data (const Standard_Integer NodeNum, const Standard_Integer DataNum) const;
 
+  Standard_EXPORT virtual void OwnShared(Interface_EntityIterator &theIter) const Standard_OVERRIDE;
 
-
+  Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
 
   DEFINE_STANDARD_RTTIEXT(IGESAppli_NodalResults,IGESData_IGESEntity)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   Handle(IGESDimen_GeneralNote) theNote;
   Standard_Integer theSubCaseNum;
@@ -113,14 +99,6 @@ private:
   Handle(TColStd_HArray1OfInteger) theNodeIdentifiers;
   Handle(IGESAppli_HArray1OfNode) theNodes;
   Handle(TColStd_HArray2OfReal) theData;
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESAppli_NodalResults_HeaderFile
index 4ba0822c03d776a7cb1ac20502ac32c66b1a6f2f..5f6b7b2e0d30c558229fe3ce7a92c6e1aeede316 100644 (file)
 
 #include <gp_GTrsf.hxx>
 #include <gp_Pnt.hxx>
-#include <gp_XYZ.hxx>
 #include <IGESAppli_Node.hxx>
 #include <IGESData_TransfEntity.hxx>
 #include <IGESGeom_TransformationMatrix.hxx>
 #include <Interface_Macros.hxx>
-#include <Standard_Type.hxx>
+#include <Interface_EntityIterator.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_Node,IGESData_IGESEntity)
 
-IGESAppli_Node::IGESAppli_Node ()    {  }
-
-
-    void  IGESAppli_Node::Init
+void IGESAppli_Node::Init
   (const gp_XYZ& aCoord,
    const Handle(IGESGeom_TransformationMatrix)& aCoordSystem)
 {
@@ -39,28 +35,43 @@ IGESAppli_Node::IGESAppli_Node ()    {  }
   InitTypeAndForm(134,0);
 }
 
-    gp_Pnt  IGESAppli_Node::Coord () const
+gp_Pnt IGESAppli_Node::Coord () const
 {
   return  gp_Pnt(theCoord);
 }
 
-    Handle(IGESData_TransfEntity)  IGESAppli_Node::System () const
+Handle(IGESData_TransfEntity) IGESAppli_Node::System () const
 {
   //if Null, Global Cartesian Coordinate System
   return Handle(IGESData_TransfEntity)(theSystem);
 }
 
-    Standard_Integer  IGESAppli_Node::SystemType () const
+Standard_Integer IGESAppli_Node::SystemType () const
 {
   if (theSystem.IsNull()) return 0;      // 0 Global Cartesien
   return (theSystem->FormNumber() - 9);  // 1 Cartesien, 2 Cylind. 3 Spher.
 }
 
-
-    gp_Pnt IGESAppli_Node::TransformedNodalCoord () const
+gp_Pnt IGESAppli_Node::TransformedNodalCoord () const
 {
   gp_XYZ tempCoord = Coord().XYZ();
   Handle(IGESData_TransfEntity) temp = System();
   if (!temp.IsNull())    temp->Value().Transforms(tempCoord);
   return gp_Pnt(tempCoord);
 }
+
+void IGESAppli_Node::OwnShared(Interface_EntityIterator &theIter) const
+{
+  theIter.GetOneItem(System());
+}
+
+void IGESAppli_Node::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
+{
+  if (!HasSubScriptNumber())
+    theCheck->AddFail("SubScript Number expected (for Node Number) not present");
+  if (!HasTransf())
+    theCheck->AddFail("Transformation Matrix expected, not present");
+  if (!System().IsNull())
+    if (System()->FormNumber() < 10)
+      theCheck->AddFail("System : Incorrect FormNumber (not 10-11-12)");
+}
index 5cfd9a16af30d9f580174b20fecaccfdb5c4a415..1a0bf3ece7637934d86be4a8998c8eccc944b47b 100644 (file)
 #ifndef _IGESAppli_Node_HeaderFile
 #define _IGESAppli_Node_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
 #include <gp_XYZ.hxx>
 #include <IGESData_IGESEntity.hxx>
-#include <Standard_Integer.hxx>
 class IGESGeom_TransformationMatrix;
-class gp_XYZ;
 class gp_Pnt;
 class IGESData_TransfEntity;
 
@@ -37,11 +32,9 @@ DEFINE_STANDARD_HANDLE(IGESAppli_Node, IGESData_IGESEntity)
 //! Geometric point used in the definition of a finite element.
 class IGESAppli_Node : public IGESData_IGESEntity
 {
+ public:
 
-public:
-
-  
-  Standard_EXPORT IGESAppli_Node();
+  IGESAppli_Node() {}
   
   //! This method is used to set the fields of the class Node
   //! - aCoord       : Nodal Coordinates
@@ -65,29 +58,16 @@ public:
   //! returns the Nodal coordinates after transformation
   Standard_EXPORT gp_Pnt TransformedNodalCoord() const;
 
+  Standard_EXPORT virtual void OwnShared(Interface_EntityIterator &theIter) const Standard_OVERRIDE;
 
-
+  Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
 
   DEFINE_STANDARD_RTTIEXT(IGESAppli_Node,IGESData_IGESEntity)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   gp_XYZ theCoord;
   Handle(IGESGeom_TransformationMatrix) theSystem;
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESAppli_Node_HeaderFile
index 3bcab5a8b033765be14102dce3467e262542394c..f7b5cb6dac08832c599f2f1663eb7a0b4f4c0c8c 100644 (file)
 #include <IGESAppli_PWBArtworkStackup.hxx>
 #include <Standard_DimensionMismatch.hxx>
 #include <Standard_OutOfRange.hxx>
-#include <Standard_Type.hxx>
 #include <TCollection_HAsciiString.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_PWBArtworkStackup,IGESData_IGESEntity)
 
-IGESAppli_PWBArtworkStackup::IGESAppli_PWBArtworkStackup ()    {  }
-
-
-    void  IGESAppli_PWBArtworkStackup::Init
+void IGESAppli_PWBArtworkStackup::Init
   (const Standard_Integer nbPropVal,
    const Handle(TCollection_HAsciiString)& anArtIdent,
    const Handle(TColStd_HArray1OfInteger)& allLevelNums)
@@ -40,23 +36,12 @@ IGESAppli_PWBArtworkStackup::IGESAppli_PWBArtworkStackup ()    {  }
   InitTypeAndForm(406,25);
 }
 
-    Standard_Integer  IGESAppli_PWBArtworkStackup::NbPropertyValues () const
-{
-  return theNbPropertyValues;
-}
-
-    Handle(TCollection_HAsciiString)  IGESAppli_PWBArtworkStackup::Identification () const
-{
-  return theArtworkStackupIdent;
-}
-
-    Standard_Integer  IGESAppli_PWBArtworkStackup::NbLevelNumbers () const
+Standard_Integer IGESAppli_PWBArtworkStackup::NbLevelNumbers () const
 {
   return theLevelNumbers->Length();
 }
 
-    Standard_Integer  IGESAppli_PWBArtworkStackup::LevelNumber
-  (const Standard_Integer Index) const
+Standard_Integer IGESAppli_PWBArtworkStackup::LevelNumber (const Standard_Integer Index) const
 {
   return theLevelNumbers->Value(Index);
 }
index bc97bc7f35c5d6e3a9bd02c84ed2686888059ae2..7988f5a91747af9c9efeefbcc850f2f1abdb9660 100644 (file)
 #ifndef _IGESAppli_PWBArtworkStackup_HeaderFile
 #define _IGESAppli_PWBArtworkStackup_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
-#include <Standard_Integer.hxx>
 #include <TColStd_HArray1OfInteger.hxx>
 #include <IGESData_IGESEntity.hxx>
 class TCollection_HAsciiString;
-class Standard_OutOfRange;
 
 
 class IGESAppli_PWBArtworkStackup;
@@ -40,11 +35,9 @@ DEFINE_STANDARD_HANDLE(IGESAppli_PWBArtworkStackup, IGESData_IGESEntity)
 //! property should stand alone in the file.
 class IGESAppli_PWBArtworkStackup : public IGESData_IGESEntity
 {
+ public:
 
-public:
-
-  
-  Standard_EXPORT IGESAppli_PWBArtworkStackup();
+  IGESAppli_PWBArtworkStackup() {}
   
   //! This method is used to set the fields of the class
   //! PWBArtworkStackup
@@ -54,11 +47,11 @@ public:
   Standard_EXPORT void Init (const Standard_Integer nbPropVal, const Handle(TCollection_HAsciiString)& anArtIdent, const Handle(TColStd_HArray1OfInteger)& allLevelNums);
   
   //! returns number of property values
-  Standard_EXPORT Standard_Integer NbPropertyValues() const;
-  
+  Standard_Integer NbPropertyValues() const { return theNbPropertyValues; }
+
   //! returns Artwork Stackup Identification
-  Standard_EXPORT Handle(TCollection_HAsciiString) Identification() const;
-  
+  const Handle(TCollection_HAsciiString) & Identification() const { return theArtworkStackupIdent; }
+
   //! returns total number of Level Numbers
   Standard_EXPORT Standard_Integer NbLevelNumbers() const;
   
@@ -66,30 +59,13 @@ public:
   //! raises exception if Index <= 0 or Index > NbLevelNumbers
   Standard_EXPORT Standard_Integer LevelNumber (const Standard_Integer Index) const;
 
-
-
-
   DEFINE_STANDARD_RTTIEXT(IGESAppli_PWBArtworkStackup,IGESData_IGESEntity)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   Standard_Integer theNbPropertyValues;
   Handle(TCollection_HAsciiString) theArtworkStackupIdent;
   Handle(TColStd_HArray1OfInteger) theLevelNumbers;
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESAppli_PWBArtworkStackup_HeaderFile
index 88be618ad13e0491d38d86e589575c78e5ad3ee6..01bd038bd00cb70eb414e6b7d6782908e6e39468 100644 (file)
 //--------------------------------------------------------------------
 
 #include <IGESAppli_PWBDrilledHole.hxx>
-#include <Standard_Type.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_PWBDrilledHole,IGESData_IGESEntity)
 
-IGESAppli_PWBDrilledHole::IGESAppli_PWBDrilledHole ()    {  }
-
-
-    void  IGESAppli_PWBDrilledHole::Init
+void IGESAppli_PWBDrilledHole::Init
   (const Standard_Integer nbPropVal,
    const Standard_Real aDrillDia, const Standard_Real aFinishDia,
    const Standard_Integer aCode)
@@ -36,23 +32,12 @@ IGESAppli_PWBDrilledHole::IGESAppli_PWBDrilledHole ()    {  }
   InitTypeAndForm(406,26);
 }
 
-
-    Standard_Integer  IGESAppli_PWBDrilledHole::NbPropertyValues () const
-{
-  return theNbPropertyValues;
-}
-
-    Standard_Real  IGESAppli_PWBDrilledHole::DrillDiameterSize () const
-{
-  return theDrillDiameter;
-}
-
-    Standard_Real  IGESAppli_PWBDrilledHole::FinishDiameterSize () const
-{
-  return theFinishDiameter;
-}
-
-    Standard_Integer  IGESAppli_PWBDrilledHole::FunctionCode () const
+void IGESAppli_PWBDrilledHole::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
 {
-  return theFunctionCode;
+  if (NbPropertyValues() != 3)
+    theCheck->AddFail("Number of property values != 3");
+  if ( (FunctionCode() < 1) ||
+      ((FunctionCode() > 5) && (FunctionCode() < 5001)) ||
+      (FunctionCode() > 9999))
+    theCheck->AddFail("Drilled Hole Function Code != 1-5,5001-9999");
 }
index 12e74f0ad7fe7e97b79da4a7bde51905095b6dfe..a307e4f124626601095c61aa994afdd76e0634ef 100644 (file)
 #ifndef _IGESAppli_PWBDrilledHole_HeaderFile
 #define _IGESAppli_PWBDrilledHole_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
-#include <Standard_Integer.hxx>
-#include <Standard_Real.hxx>
 #include <IGESData_IGESEntity.hxx>
 
-
 class IGESAppli_PWBDrilledHole;
 DEFINE_STANDARD_HANDLE(IGESAppli_PWBDrilledHole, IGESData_IGESEntity)
 
@@ -34,11 +28,9 @@ DEFINE_STANDARD_HANDLE(IGESAppli_PWBDrilledHole, IGESData_IGESEntity)
 //! and to specify the characteristics of the drilled hole
 class IGESAppli_PWBDrilledHole : public IGESData_IGESEntity
 {
+ public:
 
-public:
-
-  
-  Standard_EXPORT IGESAppli_PWBDrilledHole();
+  IGESAppli_PWBDrilledHole() {}
   
   //! This method is used to set the fields of the class
   //! PWBDrilledHole
@@ -49,43 +41,28 @@ public:
   Standard_EXPORT void Init (const Standard_Integer nbPropVal, const Standard_Real aDrillDia, const Standard_Real aFinishDia, const Standard_Integer aCode);
   
   //! returns number of property values, always = 3
-  Standard_EXPORT Standard_Integer NbPropertyValues() const;
-  
+  Standard_Integer NbPropertyValues() const { return theNbPropertyValues; }
+
   //! returns Drill diameter size
-  Standard_EXPORT Standard_Real DrillDiameterSize() const;
-  
+  Standard_Real DrillDiameterSize() const { return theDrillDiameter; }
+
   //! returns Finish diameter size
-  Standard_EXPORT Standard_Real FinishDiameterSize() const;
-  
+  Standard_Real FinishDiameterSize() const { return theFinishDiameter; }
+
   //! returns Function code for drilled hole
   //! is 0, 1, 2, 3, 4, 5 or 5001-9999
-  Standard_EXPORT Standard_Integer FunctionCode() const;
-
-
+  Standard_Integer FunctionCode() const { return theFunctionCode; }
 
+  Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
 
   DEFINE_STANDARD_RTTIEXT(IGESAppli_PWBDrilledHole,IGESData_IGESEntity)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   Standard_Integer theNbPropertyValues;
   Standard_Real theDrillDiameter;
   Standard_Real theFinishDiameter;
   Standard_Integer theFunctionCode;
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESAppli_PWBDrilledHole_HeaderFile
index cde32148ad06ff2504a7ffb452d56e9b00562ab0..8b543ecfbd635b0ba9cc01842e6512dcaa4a9620 100644 (file)
 //--------------------------------------------------------------------
 
 #include <IGESAppli_PartNumber.hxx>
-#include <Standard_Type.hxx>
 #include <TCollection_HAsciiString.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_PartNumber,IGESData_IGESEntity)
 
-IGESAppli_PartNumber::IGESAppli_PartNumber ()    {  }
-
-
-    void  IGESAppli_PartNumber::Init
+void IGESAppli_PartNumber::Init
   (const Standard_Integer nbPropVal,
    const Handle(TCollection_HAsciiString)& aGenName,
    const Handle(TCollection_HAsciiString)& aMilName,
@@ -40,28 +36,8 @@ IGESAppli_PartNumber::IGESAppli_PartNumber ()    {  }
   InitTypeAndForm(406,9);
 }
 
-
-    Standard_Integer  IGESAppli_PartNumber::NbPropertyValues () const
-{
-  return theNbPropertyValues;
-}
-
-    Handle(TCollection_HAsciiString)  IGESAppli_PartNumber::GenericNumber () const
-{
-  return theGenericNumber;
-}
-
-    Handle(TCollection_HAsciiString)  IGESAppli_PartNumber::MilitaryNumber () const
-{
-  return theMilitaryNumber;
-}
-
-    Handle(TCollection_HAsciiString)  IGESAppli_PartNumber::VendorNumber () const
-{
-  return theVendorNumber;
-}
-
-    Handle(TCollection_HAsciiString)  IGESAppli_PartNumber::InternalNumber () const
+void IGESAppli_PartNumber::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
 {
-  return theInternalNumber;
+  if (NbPropertyValues() != 4)
+    theCheck->AddFail("Number of property values != 4");
 }
index b2767e3df69574d66449f14fa4f564a4bf0bfbfc..c7782d1f75249a40e1a92868309a98668746defd 100644 (file)
 #ifndef _IGESAppli_PartNumber_HeaderFile
 #define _IGESAppli_PartNumber_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
-#include <Standard_Integer.hxx>
 #include <IGESData_IGESEntity.hxx>
 class TCollection_HAsciiString;
 
@@ -35,11 +31,9 @@ DEFINE_STANDARD_HANDLE(IGESAppli_PartNumber, IGESData_IGESEntity)
 //! physical component
 class IGESAppli_PartNumber : public IGESData_IGESEntity
 {
+ public:
 
-public:
-
-  
-  Standard_EXPORT IGESAppli_PartNumber();
+  IGESAppli_PartNumber() {}
   
   //! This method is used to set the fields of the class
   //! PartNumber
@@ -51,46 +45,31 @@ public:
   Standard_EXPORT void Init (const Standard_Integer nbPropVal, const Handle(TCollection_HAsciiString)& aGenName, const Handle(TCollection_HAsciiString)& aMilName, const Handle(TCollection_HAsciiString)& aVendName, const Handle(TCollection_HAsciiString)& anIntName);
   
   //! returns number of property values, always = 4
-  Standard_EXPORT Standard_Integer NbPropertyValues() const;
-  
+  Standard_Integer NbPropertyValues() const { return theNbPropertyValues; }
+
   //! returns Generic part number or name
-  Standard_EXPORT Handle(TCollection_HAsciiString) GenericNumber() const;
-  
+  const Handle(TCollection_HAsciiString) & GenericNumber() const { return theGenericNumber; }
+
   //! returns Military Standard (MIL-STD) part number
-  Standard_EXPORT Handle(TCollection_HAsciiString) MilitaryNumber() const;
-  
-  //! returns Vendor part number or name
-  Standard_EXPORT Handle(TCollection_HAsciiString) VendorNumber() const;
-  
-  //! returns Internal part number
-  Standard_EXPORT Handle(TCollection_HAsciiString) InternalNumber() const;
+  const Handle(TCollection_HAsciiString) & MilitaryNumber() const { return theMilitaryNumber; }
 
+  //! returns Vendor part number or name
+  const Handle(TCollection_HAsciiString) & VendorNumber() const { return theVendorNumber; }
 
+  //! returns Internal part number
+  const Handle(TCollection_HAsciiString) & InternalNumber() const { return theInternalNumber; }
 
+  Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
 
   DEFINE_STANDARD_RTTIEXT(IGESAppli_PartNumber,IGESData_IGESEntity)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   Standard_Integer theNbPropertyValues;
   Handle(TCollection_HAsciiString) theGenericNumber;
   Handle(TCollection_HAsciiString) theMilitaryNumber;
   Handle(TCollection_HAsciiString) theVendorNumber;
   Handle(TCollection_HAsciiString) theInternalNumber;
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESAppli_PartNumber_HeaderFile
index 309640cfd5224b54c956449081a5dd0c8dbf7c03..2fe181f2e5d7fd9ac683bb905ec570daa60d5ce2 100644 (file)
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_PinNumber,IGESData_IGESEntity)
 
-IGESAppli_PinNumber::IGESAppli_PinNumber ()    {  }
-
-
-    void  IGESAppli_PinNumber::Init
+void IGESAppli_PinNumber::Init
   (const Standard_Integer nbPropVal,
    const Handle(TCollection_HAsciiString)& aValue)
 {
@@ -34,13 +31,14 @@ IGESAppli_PinNumber::IGESAppli_PinNumber ()    {  }
   InitTypeAndForm(406,8);
 }
 
-
-    Standard_Integer  IGESAppli_PinNumber::NbPropertyValues () const
-{
-  return theNbPropertyValues;
-}
-
-    Handle(TCollection_HAsciiString)  IGESAppli_PinNumber::PinNumberVal () const
+void IGESAppli_PinNumber::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
 {
-  return thePinNumber;
+  if (SubordinateStatus() != 0)
+    if (DefLevel() != IGESData_DefOne &&
+           DefLevel() != IGESData_DefSeveral)
+      theCheck->AddFail("Level type: Incorrect");
+  if (NbPropertyValues() != 1)
+    theCheck->AddFail("Number of Property Values != 1");
+  //UNFINISHED
+  //Level to be ignored if the property is subordinate -- queried
 }
index 3b7c5024b0ae300f839f14103618a946e8a66e12..b1b5283a3875173d2e65b63b142ec46cefa8eb00 100644 (file)
 #ifndef _IGESAppli_PinNumber_HeaderFile
 #define _IGESAppli_PinNumber_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
-#include <Standard_Integer.hxx>
 #include <IGESData_IGESEntity.hxx>
 class TCollection_HAsciiString;
 
@@ -35,11 +31,9 @@ DEFINE_STANDARD_HANDLE(IGESAppli_PinNumber, IGESData_IGESEntity)
 //! electrical component's pin
 class IGESAppli_PinNumber : public IGESData_IGESEntity
 {
+ public:
 
-public:
-
-  
-  Standard_EXPORT IGESAppli_PinNumber();
+  IGESAppli_PinNumber() {}
   
   //! This method is used to set the fields of the class
   //! PinNumber
@@ -49,34 +43,19 @@ public:
   
   //! returns the number of property values
   //! is always 1
-  Standard_EXPORT Standard_Integer NbPropertyValues() const;
-  
-  //! returns the pin number value
-  Standard_EXPORT Handle(TCollection_HAsciiString) PinNumberVal() const;
-
+  Standard_Integer NbPropertyValues() const { return theNbPropertyValues; }
 
+  //! returns the pin number value
+  const Handle(TCollection_HAsciiString) & PinNumberVal() const { return thePinNumber; }
 
+  Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
 
   DEFINE_STANDARD_RTTIEXT(IGESAppli_PinNumber,IGESData_IGESEntity)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   Standard_Integer theNbPropertyValues;
   Handle(TCollection_HAsciiString) thePinNumber;
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESAppli_PinNumber_HeaderFile
index 0ce3be28e1e41de3ef7f15eaa77494f57523dad9..4c4b6ca07b97aab81aac9280e457e1bf1a882663 100644 (file)
 #include <IGESGraph_TextDisplayTemplate.hxx>
 #include <Standard_DimensionMismatch.hxx>
 #include <Standard_OutOfRange.hxx>
-#include <Standard_Type.hxx>
+#include <Interface_EntityIterator.hxx>
 #include <TCollection_HAsciiString.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_PipingFlow,IGESData_IGESEntity)
 
-IGESAppli_PipingFlow::IGESAppli_PipingFlow ()    {  }
-
-
-    void  IGESAppli_PipingFlow::Init
+void IGESAppli_PipingFlow::Init
   (const Standard_Integer nbContextFlags,
    const Standard_Integer aFlowType,
    const Handle(IGESData_HArray1OfIGESEntity)& allFlowAssocs,
@@ -58,86 +55,92 @@ IGESAppli_PipingFlow::IGESAppli_PipingFlow ()    {  }
   InitTypeAndForm(402,20);
 }
 
-    Standard_Boolean  IGESAppli_PipingFlow::OwnCorrect ()
+Standard_Boolean IGESAppli_PipingFlow::OwnCorrect ()
 {
   if (theNbContextFlags == 1) return Standard_False;
   theNbContextFlags = 1;
   return Standard_True;
 }
 
-
-    Standard_Integer  IGESAppli_PipingFlow::NbContextFlags () const
-{
-  return theNbContextFlags;
-}
-
-    Standard_Integer  IGESAppli_PipingFlow::NbFlowAssociativities () const
+Standard_Integer IGESAppli_PipingFlow::NbFlowAssociativities () const
 {
   return theFlowAssociativities->Length();
 }
 
-    Standard_Integer  IGESAppli_PipingFlow::NbConnectPoints () const
+Standard_Integer IGESAppli_PipingFlow::NbConnectPoints () const
 {
   return theConnectPoints->Length();
 }
 
-    Standard_Integer  IGESAppli_PipingFlow::NbJoins () const
+Standard_Integer IGESAppli_PipingFlow::NbJoins () const
 {
   return theJoins->Length();
 }
 
-    Standard_Integer  IGESAppli_PipingFlow::NbFlowNames () const
+Standard_Integer IGESAppli_PipingFlow::NbFlowNames () const
 {
   return theFlowNames->Length();
 }
 
-    Standard_Integer  IGESAppli_PipingFlow::NbTextDisplayTemplates () const
+Standard_Integer IGESAppli_PipingFlow::NbTextDisplayTemplates () const
 {
   return theTextDisplayTemplates->Length();
 }
 
-    Standard_Integer  IGESAppli_PipingFlow::NbContFlowAssociativities () const
+Standard_Integer IGESAppli_PipingFlow::NbContFlowAssociativities () const
 {
   return theContFlowAssociativities->Length();
 }
 
-    Standard_Integer  IGESAppli_PipingFlow::TypeOfFlow () const
-{
-  return theTypeOfFlow;
-}
-
-    Handle(IGESData_IGESEntity)  IGESAppli_PipingFlow::FlowAssociativity
-  (const Standard_Integer Index) const
+const Handle(IGESData_IGESEntity) & IGESAppli_PipingFlow::FlowAssociativity (const Standard_Integer Index) const
 {
   return theFlowAssociativities->Value(Index);
 }
 
-    Handle(IGESDraw_ConnectPoint)  IGESAppli_PipingFlow::ConnectPoint
-  (const Standard_Integer Index) const
+const Handle(IGESDraw_ConnectPoint) & IGESAppli_PipingFlow::ConnectPoint (const Standard_Integer Index) const
 {
   return theConnectPoints->Value(Index);
 }
 
-    Handle(IGESData_IGESEntity)  IGESAppli_PipingFlow::Join
-  (const Standard_Integer Index) const
+const Handle(IGESData_IGESEntity) & IGESAppli_PipingFlow::Join (const Standard_Integer Index) const
 {
   return theJoins->Value(Index);
 }
 
-    Handle(TCollection_HAsciiString)  IGESAppli_PipingFlow::FlowName
-  (const Standard_Integer Index) const
+const Handle(TCollection_HAsciiString) & IGESAppli_PipingFlow::FlowName (const Standard_Integer Index) const
 {
   return theFlowNames->Value(Index);
 }
 
-    Handle(IGESGraph_TextDisplayTemplate)  IGESAppli_PipingFlow::TextDisplayTemplate
-  (const Standard_Integer Index) const
+const Handle(IGESGraph_TextDisplayTemplate) & IGESAppli_PipingFlow::TextDisplayTemplate (const Standard_Integer Index) const
 {
   return theTextDisplayTemplates->Value(Index);
 }
 
-    Handle(IGESData_IGESEntity)  IGESAppli_PipingFlow::ContFlowAssociativity
-  (const Standard_Integer Index) const
+const Handle(IGESData_IGESEntity) & IGESAppli_PipingFlow::ContFlowAssociativity (const Standard_Integer Index) const
 {
   return theContFlowAssociativities->Value(Index);
 }
+
+void IGESAppli_PipingFlow::OwnShared(Interface_EntityIterator &theIter) const
+{
+  Standard_Integer i, num;
+  for ( num = NbFlowAssociativities(), i = 1; i <= num; i++ )
+    theIter.GetOneItem(FlowAssociativity(i));
+  for ( num = NbConnectPoints(), i = 1; i <= num; i++ )
+    theIter.GetOneItem(ConnectPoint(i));
+  for ( num = NbJoins(), i = 1; i <= num; i++ )
+    theIter.GetOneItem(Join(i));
+  for ( num = NbTextDisplayTemplates(), i = 1; i <= num; i++ )
+    theIter.GetOneItem(TextDisplayTemplate(i));
+  for ( num = NbContFlowAssociativities(), i = 1; i <= num; i++ )
+    theIter.GetOneItem(ContFlowAssociativity(i));
+}
+
+void IGESAppli_PipingFlow::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
+{
+  if (NbContextFlags() != 1)
+    theCheck->AddFail("Number of Context Flags != 1");
+  if ((TypeOfFlow() < 0) || (TypeOfFlow() > 2))
+    theCheck->AddFail("Type of Flow != 0,1,2");
+}
index 46f1f52886a7e0c6d8a32628251bb06c8b01ca86..137f78816e9f42d5e3e7a1ed20bf59dd750aa993 100644 (file)
 #ifndef _IGESAppli_PipingFlow_HeaderFile
 #define _IGESAppli_PipingFlow_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
-#include <Standard_Integer.hxx>
 #include <IGESData_HArray1OfIGESEntity.hxx>
 #include <IGESDraw_HArray1OfConnectPoint.hxx>
 #include <Interface_HArray1OfHAsciiString.hxx>
 #include <IGESGraph_HArray1OfTextDisplayTemplate.hxx>
 #include <IGESData_IGESEntity.hxx>
-#include <Standard_Boolean.hxx>
-class Standard_OutOfRange;
 class IGESData_IGESEntity;
 class IGESDraw_ConnectPoint;
 class TCollection_HAsciiString;
@@ -42,11 +36,9 @@ DEFINE_STANDARD_HANDLE(IGESAppli_PipingFlow, IGESData_IGESEntity)
 //! Represents a single fluid flow path
 class IGESAppli_PipingFlow : public IGESData_IGESEntity
 {
+ public:
 
-public:
-
-  
-  Standard_EXPORT IGESAppli_PipingFlow();
+  IGESAppli_PipingFlow() {}
   
   //! This method is used to set the fields of the class
   //! PipingFlow
@@ -64,8 +56,8 @@ public:
   Standard_EXPORT Standard_Boolean OwnCorrect();
   
   //! returns number of Count of Context Flags, always = 1
-  Standard_EXPORT Standard_Integer NbContextFlags() const;
-  
+  Standard_Integer NbContextFlags() const { return theNbContextFlags; }
+
   //! returns number of Piping Flow Associativity Entities
   Standard_EXPORT Standard_Integer NbFlowAssociativities() const;
   
@@ -87,44 +79,39 @@ public:
   //! returns Type of Flow = 0 : Not specified,
   //! 1 : Logical,
   //! 2 : Physical
-  Standard_EXPORT Standard_Integer TypeOfFlow() const;
-  
+  Standard_Integer TypeOfFlow() const { return theTypeOfFlow; }
+
   //! returns Piping Flow Associativity Entity
   //! raises exception if Index <= 0 or Index > NbFlowAssociativities()
-  Standard_EXPORT Handle(IGESData_IGESEntity) FlowAssociativity (const Standard_Integer Index) const;
+  Standard_EXPORT const Handle(IGESData_IGESEntity) & FlowAssociativity (const Standard_Integer Index) const;
   
   //! returns Connect Point Entity
   //! raises exception if Index <= 0 or Index > NbConnectPoints()
-  Standard_EXPORT Handle(IGESDraw_ConnectPoint) ConnectPoint (const Standard_Integer Index) const;
+  Standard_EXPORT const Handle(IGESDraw_ConnectPoint) & ConnectPoint (const Standard_Integer Index) const;
   
   //! returns Join Entity
   //! raises exception if Index <= 0 or Index > NbJoins()
-  Standard_EXPORT Handle(IGESData_IGESEntity) Join (const Standard_Integer Index) const;
+  Standard_EXPORT const Handle(IGESData_IGESEntity) & Join (const Standard_Integer Index) const;
   
   //! returns Flow Name
   //! raises exception if Index <= 0 or Index > NbFlowNames()
-  Standard_EXPORT Handle(TCollection_HAsciiString) FlowName (const Standard_Integer Index) const;
+  Standard_EXPORT const Handle(TCollection_HAsciiString) & FlowName (const Standard_Integer Index) const;
   
   //! returns Text Display Template Entity
   //! raises exception if Index <= 0 or Index > NbTextDisplayTemplates()
-  Standard_EXPORT Handle(IGESGraph_TextDisplayTemplate) TextDisplayTemplate (const Standard_Integer Index) const;
+  Standard_EXPORT const Handle(IGESGraph_TextDisplayTemplate) & TextDisplayTemplate (const Standard_Integer Index) const;
   
   //! returns Continuation Piping Flow Associativity Entity
   //! raises exception if Index <= 0 or Index > NbContFlowAssociativities()
-  Standard_EXPORT Handle(IGESData_IGESEntity) ContFlowAssociativity (const Standard_Integer Index) const;
-
+  Standard_EXPORT const Handle(IGESData_IGESEntity) & ContFlowAssociativity (const Standard_Integer Index) const;
 
+  Standard_EXPORT virtual void OwnShared(Interface_EntityIterator &theIter) const Standard_OVERRIDE;
 
+  Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
 
   DEFINE_STANDARD_RTTIEXT(IGESAppli_PipingFlow,IGESData_IGESEntity)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   Standard_Integer theNbContextFlags;
   Standard_Integer theTypeOfFlow;
@@ -134,14 +121,6 @@ private:
   Handle(Interface_HArray1OfHAsciiString) theFlowNames;
   Handle(IGESGraph_HArray1OfTextDisplayTemplate) theTextDisplayTemplates;
   Handle(IGESData_HArray1OfIGESEntity) theContFlowAssociativities;
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESAppli_PipingFlow_HeaderFile
index aeab6021abcf916cfbfd7da87a9071774b74ce24..8bffeb63064db86691f33b32110d7a68a4611cda 100644 (file)
 // commercial license or contractual agreement.
 
 
+#include <IGESSolid_Block.hxx>
+#include <IGESSolid_BooleanTree.hxx>
+#include <IGESSolid_ConeFrustum.hxx>
+#include <IGESSolid_ConicalSurface.hxx>
+#include <IGESSolid_Cylinder.hxx>
+#include <IGESSolid_CylindricalSurface.hxx>
+#include <IGESSolid_EdgeList.hxx>
+#include <IGESSolid_Ellipsoid.hxx>
+#include <IGESSolid_Face.hxx>
+#include <IGESSolid_Loop.hxx>
+#include <IGESSolid_ManifoldSolid.hxx>
+#include <IGESSolid_PlaneSurface.hxx>
+#include <IGESSolid_RightAngularWedge.hxx>
+#include <IGESSolid_SelectedComponent.hxx>
+#include <IGESSolid_Shell.hxx>
+#include <IGESSolid_SolidAssembly.hxx>
+#include <IGESSolid_SolidInstance.hxx>
+#include <IGESSolid_SolidOfLinearExtrusion.hxx>
+#include <IGESSolid_SolidOfRevolution.hxx>
+#include <IGESSolid_Sphere.hxx>
+#include <IGESSolid_SphericalSurface.hxx>
+#include <IGESSolid_ToroidalSurface.hxx>
+#include <IGESSolid_Torus.hxx>
+#include <IGESSolid_VertexList.hxx>
+
 #include <IGESAppli_DrilledHole.hxx>
 #include <IGESAppli_ElementResults.hxx>
 #include <IGESAppli_FiniteElement.hxx>
 #include <IGESAppli_PWBDrilledHole.hxx>
 #include <IGESAppli_ReferenceDesignator.hxx>
 #include <IGESAppli_RegionRestriction.hxx>
+
+
+#include <IGESGeom.hxx>
+#include <IGESGeom_Protocol.hxx>
 #include <IGESDefs.hxx>
 #include <IGESDefs_Protocol.hxx>
 #include <IGESDraw.hxx>
 #include <IGESDraw_Protocol.hxx>
-#include <Interface_Protocol.hxx>
-#include <Standard_Type.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_Protocol,IGESData_Protocol)
 
-static int deja = 0;
-static Handle(Standard_Type) atype01,atype02,atype03,atype04,atype05,atype06,
+/*static Handle(Standard_Type) atype01,atype02,atype03,atype04,atype05,atype06,
   atype07,atype08,atype09,atype10,atype11,atype12,atype13,atype14,atype15,
-  atype16,atype17,atype18,atype19;
+  atype16,atype17,atype18,atype19;*/
+static Handle(Standard_Type) gTypes[43+1];
 
-    IGESAppli_Protocol::IGESAppli_Protocol ()
+IGESAppli_Protocol::IGESAppli_Protocol ()
 {
-  if (deja) return;  deja = 1;
-  atype01 = STANDARD_TYPE(IGESAppli_DrilledHole);
-  atype02 = STANDARD_TYPE(IGESAppli_ElementResults);
-  atype03 = STANDARD_TYPE(IGESAppli_FiniteElement);
-  atype04 = STANDARD_TYPE(IGESAppli_Flow);
-  atype05 = STANDARD_TYPE(IGESAppli_FlowLineSpec);
-  atype06 = STANDARD_TYPE(IGESAppli_LevelFunction);
-  atype07 = STANDARD_TYPE(IGESAppli_LevelToPWBLayerMap);
-  atype08 = STANDARD_TYPE(IGESAppli_LineWidening);
-  atype09 = STANDARD_TYPE(IGESAppli_NodalConstraint);
-  atype10 = STANDARD_TYPE(IGESAppli_NodalDisplAndRot);
-  atype11 = STANDARD_TYPE(IGESAppli_NodalResults);
-  atype12 = STANDARD_TYPE(IGESAppli_Node);
-  atype13 = STANDARD_TYPE(IGESAppli_PWBArtworkStackup);
-  atype14 = STANDARD_TYPE(IGESAppli_PWBDrilledHole);
-  atype15 = STANDARD_TYPE(IGESAppli_PartNumber);
-  atype16 = STANDARD_TYPE(IGESAppli_PinNumber);
-  atype17 = STANDARD_TYPE(IGESAppli_PipingFlow);
-  atype18 = STANDARD_TYPE(IGESAppli_ReferenceDesignator);
-  atype19 = STANDARD_TYPE(IGESAppli_RegionRestriction);
+  static int deja = 0;
+  if (!deja) {
+    deja = 1;
+    // For IGESSolid {
+    gTypes[ 1] = STANDARD_TYPE(IGESSolid_Block);
+    gTypes[ 2] = STANDARD_TYPE(IGESSolid_BooleanTree);
+    gTypes[ 3] = STANDARD_TYPE(IGESSolid_ConeFrustum);
+    gTypes[ 4] = STANDARD_TYPE(IGESSolid_ConicalSurface);
+    gTypes[ 5] = STANDARD_TYPE(IGESSolid_Cylinder);
+    gTypes[ 6] = STANDARD_TYPE(IGESSolid_CylindricalSurface);
+    gTypes[ 7] = STANDARD_TYPE(IGESSolid_EdgeList);
+    gTypes[ 8] = STANDARD_TYPE(IGESSolid_Ellipsoid);
+    gTypes[ 9] = STANDARD_TYPE(IGESSolid_Face);
+    gTypes[10] = STANDARD_TYPE(IGESSolid_Loop);
+    gTypes[11] = STANDARD_TYPE(IGESSolid_ManifoldSolid);
+    gTypes[12] = STANDARD_TYPE(IGESSolid_PlaneSurface);
+    gTypes[13] = STANDARD_TYPE(IGESSolid_RightAngularWedge);
+    gTypes[14] = STANDARD_TYPE(IGESSolid_SelectedComponent);
+    gTypes[15] = STANDARD_TYPE(IGESSolid_Shell);
+    gTypes[16] = STANDARD_TYPE(IGESSolid_SolidAssembly);
+    gTypes[17] = STANDARD_TYPE(IGESSolid_SolidInstance);
+    gTypes[18] = STANDARD_TYPE(IGESSolid_SolidOfLinearExtrusion);
+    gTypes[19] = STANDARD_TYPE(IGESSolid_SolidOfRevolution);
+    gTypes[20] = STANDARD_TYPE(IGESSolid_Sphere);
+    gTypes[21] = STANDARD_TYPE(IGESSolid_SphericalSurface);
+    gTypes[22] = STANDARD_TYPE(IGESSolid_ToroidalSurface);
+    gTypes[23] = STANDARD_TYPE(IGESSolid_Torus);
+    gTypes[24] = STANDARD_TYPE(IGESSolid_VertexList);
+    // }
+    gTypes[25] = STANDARD_TYPE(IGESAppli_DrilledHole);
+    gTypes[26] = STANDARD_TYPE(IGESAppli_ElementResults);
+    gTypes[27] = STANDARD_TYPE(IGESAppli_FiniteElement);
+    gTypes[28] = STANDARD_TYPE(IGESAppli_Flow);
+    gTypes[29] = STANDARD_TYPE(IGESAppli_FlowLineSpec);
+    gTypes[30] = STANDARD_TYPE(IGESAppli_LevelFunction);
+    gTypes[31] = STANDARD_TYPE(IGESAppli_LevelToPWBLayerMap);
+    gTypes[32] = STANDARD_TYPE(IGESAppli_LineWidening);
+    gTypes[33] = STANDARD_TYPE(IGESAppli_NodalConstraint);
+    gTypes[34] = STANDARD_TYPE(IGESAppli_NodalDisplAndRot);
+    gTypes[35] = STANDARD_TYPE(IGESAppli_NodalResults);
+    gTypes[36] = STANDARD_TYPE(IGESAppli_Node);
+    gTypes[37] = STANDARD_TYPE(IGESAppli_PWBArtworkStackup);
+    gTypes[38] = STANDARD_TYPE(IGESAppli_PWBDrilledHole);
+    gTypes[39] = STANDARD_TYPE(IGESAppli_PartNumber);
+    gTypes[40] = STANDARD_TYPE(IGESAppli_PinNumber);
+    gTypes[41] = STANDARD_TYPE(IGESAppli_PipingFlow);
+    gTypes[42] = STANDARD_TYPE(IGESAppli_ReferenceDesignator);
+    gTypes[43] = STANDARD_TYPE(IGESAppli_RegionRestriction);
+  }
 }
 
-    Standard_Integer IGESAppli_Protocol::NbResources () const
-      {  return 2;  }
+Standard_Integer IGESAppli_Protocol::NbResources () const
+{  return 3;  }
 
-    Handle(Interface_Protocol) IGESAppli_Protocol::Resource
-  (const Standard_Integer num) const
+Handle(Interface_Protocol) IGESAppli_Protocol::Resource (const Standard_Integer num) const
 {
-  if (num == 1) return IGESDefs::Protocol();
-  if (num == 2) return IGESDraw::Protocol();
+  if (num == 1) return IGESGeom::Protocol();
+  if (num == 2) return IGESDefs::Protocol();
+  if (num == 3) return IGESDraw::Protocol();
   return NULL;
 }
 
-    Standard_Integer IGESAppli_Protocol::TypeNumber
-  (const Handle(Standard_Type)& atype) const
+Standard_Integer IGESAppli_Protocol::TypeNumber (const Handle(Standard_Type)& atype) const
 {
+  for (Standard_Integer i = 1; i < sizeof(gTypes) / sizeof(Handle(Standard_Type)); i++)
+  {
+    if (atype == gTypes[i]) return i;
+  }
+  /*
+  // For IGESSolid {
   if      (atype == atype01) return  1;
   else if (atype == atype02) return  2;
   else if (atype == atype03) return  3;
@@ -103,5 +164,30 @@ static Handle(Standard_Type) atype01,atype02,atype03,atype04,atype05,atype06,
   else if (atype == atype17) return 17;
   else if (atype == atype18) return 18;
   else if (atype == atype19) return 19;
+  else if (atype == atype20) return 20;
+  else if (atype == atype21) return 21;
+  else if (atype == atype22) return 22;
+  else if (atype == atype23) return 23;
+  else if (atype == atype24) return 24;
+  // }
+  else if (atype == atype01) return 25;
+  else if (atype == atype02) return 26;
+  else if (atype == atype03) return 27;
+  else if (atype == atype04) return 28;
+  else if (atype == atype05) return 29;
+  else if (atype == atype06) return 30;
+  else if (atype == atype07) return 31;
+  else if (atype == atype08) return 32;
+  else if (atype == atype09) return 33;
+  else if (atype == atype10) return 34;
+  else if (atype == atype11) return 35;
+  else if (atype == atype12) return 36;
+  else if (atype == atype13) return 37;
+  else if (atype == atype14) return 38;
+  else if (atype == atype15) return 39;
+  else if (atype == atype16) return 40;
+  else if (atype == atype17) return 41;
+  else if (atype == atype18) return 42;
+  else if (atype == atype19) return 43;*/
   return 0;
 }
index 09c80a659bc80d28b503a2e54f2a509c6314a0f7..c9031fbc84c4d2badaed4d3a54a3c884ab2b9d06 100644 (file)
 #ifndef _IGESAppli_Protocol_HeaderFile
 #define _IGESAppli_Protocol_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
 #include <IGESData_Protocol.hxx>
-#include <Standard_Integer.hxx>
-#include <Standard_Type.hxx>
-class Interface_Protocol;
-
 
 class IGESAppli_Protocol;
 DEFINE_STANDARD_HANDLE(IGESAppli_Protocol, IGESData_Protocol)
@@ -32,10 +25,8 @@ DEFINE_STANDARD_HANDLE(IGESAppli_Protocol, IGESData_Protocol)
 //! Description of Protocol for IGESAppli
 class IGESAppli_Protocol : public IGESData_Protocol
 {
+ public:
 
-public:
-
-  
   Standard_EXPORT IGESAppli_Protocol();
   
   //! Gives the count of direct Resource Protocol. Here, two
@@ -52,27 +43,7 @@ public:
   //! consider the same Type as the Protocol defines)
   Standard_EXPORT virtual Standard_Integer TypeNumber (const Handle(Standard_Type)& atype) const Standard_OVERRIDE;
 
-
-
-
   DEFINE_STANDARD_RTTIEXT(IGESAppli_Protocol,IGESData_Protocol)
-
-protected:
-
-
-
-
-private:
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESAppli_Protocol_HeaderFile
index 8a3f85a503473a78a3025c31ae05576b86438a3d..6660824117e6a52d2efe862ac462a636e561bf21 100644 (file)
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_ReadWriteModule,IGESData_ReadWriteModule)
 
-//  Each Module is attached to a Protocol : it must interprete Case Numbers
-//  (arguments <CN> of various methods) in accordance to values returned by
-//  the method TypeNumber from this Protocol
-IGESAppli_ReadWriteModule::IGESAppli_ReadWriteModule ()    {  }
-
 
     Standard_Integer  IGESAppli_ReadWriteModule::CaseIGES
   (const Standard_Integer typenum, const Standard_Integer formnum) const 
index 31a31bdd771cb08948936022e9dc533fd73512e7..4dadb5690d9ea4085f9c83fb59e6deb391f69099 100644 (file)
@@ -37,12 +37,10 @@ DEFINE_STANDARD_HANDLE(IGESAppli_ReadWriteModule, IGESData_ReadWriteModule)
 //! an IGESEntity.
 class IGESAppli_ReadWriteModule : public IGESData_ReadWriteModule
 {
+ public:
 
-public:
-
-  
   //! Creates a ReadWriteModule & puts it into ReaderLib & WriterLib
-  Standard_EXPORT IGESAppli_ReadWriteModule();
+  IGESAppli_ReadWriteModule() {}
   
   //! Defines Case Numbers for Entities of IGESAppli
   Standard_EXPORT Standard_Integer CaseIGES (const Standard_Integer typenum, const Standard_Integer formnum) const Standard_OVERRIDE;
@@ -53,27 +51,7 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, IGESData_IGESWriter& IW) const Standard_OVERRIDE;
 
-
-
-
   DEFINE_STANDARD_RTTIEXT(IGESAppli_ReadWriteModule,IGESData_ReadWriteModule)
-
-protected:
-
-
-
-
-private:
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESAppli_ReadWriteModule_HeaderFile
index 5bf4489e1b17e4f5a58381925baa3223fedf7dab..8969690e23f789b38f3df8b5e3dce1d2c42c50eb 100644 (file)
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_ReferenceDesignator,IGESData_IGESEntity)
 
-IGESAppli_ReferenceDesignator::IGESAppli_ReferenceDesignator ()    {  }
-
-
-    void  IGESAppli_ReferenceDesignator::Init
+void IGESAppli_ReferenceDesignator::Init
   (const Standard_Integer nbPropVal,
    const Handle(TCollection_HAsciiString)& aText)
 {
@@ -35,14 +32,15 @@ IGESAppli_ReferenceDesignator::IGESAppli_ReferenceDesignator ()    {  }
   InitTypeAndForm(406,7);
 }
 
-
-    Standard_Integer  IGESAppli_ReferenceDesignator::NbPropertyValues () const
-{
-  return theNbPropertyValues;
-}
-
-    Handle(TCollection_HAsciiString)
-    IGESAppli_ReferenceDesignator::RefDesignatorText () const
+void IGESAppli_ReferenceDesignator::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
 {
-  return theRefDesigText;
+  if (SubordinateStatus() != 0)
+    //the level is ignored if this property is subordinate
+    if (DefLevel() != IGESData_DefOne &&
+           DefLevel() != IGESData_DefSeveral)
+      theCheck->AddFail("Level type: Not value/reference");
+  if (NbPropertyValues() != 1)
+    theCheck->AddFail("Number of Property Values != 1");
+  //UNFINISHED
+  //the level is ignored if this property is subordinate -- queried
 }
index e8995223628328057a04a655ef359490d249c61e..5863d9cf95b7b20571acb09431122d7d44204f5d 100644 (file)
 #ifndef _IGESAppli_ReferenceDesignator_HeaderFile
 #define _IGESAppli_ReferenceDesignator_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
-#include <Standard_Integer.hxx>
 #include <IGESData_IGESEntity.hxx>
 class TCollection_HAsciiString;
 
@@ -35,11 +31,9 @@ DEFINE_STANDARD_HANDLE(IGESAppli_ReferenceDesignator, IGESData_IGESEntity)
 //! used to represent a component.
 class IGESAppli_ReferenceDesignator : public IGESData_IGESEntity
 {
+ public:
 
-public:
-
-  
-  Standard_EXPORT IGESAppli_ReferenceDesignator();
+  IGESAppli_ReferenceDesignator() {}
   
   //! This method is used to set the fields of the class
   //! ReferenceDesignator
@@ -49,34 +43,19 @@ public:
   
   //! returns the number of property values
   //! is always 1
-  Standard_EXPORT Standard_Integer NbPropertyValues() const;
-  
-  //! returns the Reference designator text
-  Standard_EXPORT Handle(TCollection_HAsciiString) RefDesignatorText() const;
-
+  Standard_Integer NbPropertyValues() const { return theNbPropertyValues; }
 
+  //! returns the Reference designator text
+  const Handle(TCollection_HAsciiString) & RefDesignatorText() const { return theRefDesigText; }
 
+  Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
 
   DEFINE_STANDARD_RTTIEXT(IGESAppli_ReferenceDesignator,IGESData_IGESEntity)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   Standard_Integer theNbPropertyValues;
   Handle(TCollection_HAsciiString) theRefDesigText;
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESAppli_ReferenceDesignator_HeaderFile
index 9160fd0485b0578ba7ede38eecb9440034399309..b591f41c8131d33e813a314a7adf6f6486b99990 100644 (file)
 //--------------------------------------------------------------------
 
 #include <IGESAppli_RegionRestriction.hxx>
-#include <Standard_Type.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_RegionRestriction,IGESData_IGESEntity)
 
-IGESAppli_RegionRestriction::IGESAppli_RegionRestriction ()    {  }
-
-
-    void  IGESAppli_RegionRestriction::Init
+void IGESAppli_RegionRestriction::Init
   (const Standard_Integer nbPropVal,  const Standard_Integer aViasRest,
    const Standard_Integer aCompoRest, const Standard_Integer aCktRest)
 {
@@ -35,24 +31,20 @@ IGESAppli_RegionRestriction::IGESAppli_RegionRestriction ()    {  }
   InitTypeAndForm(406,2);
 }
 
-
-    Standard_Integer  IGESAppli_RegionRestriction::NbPropertyValues () const
-{
-  return theNbPropertyValues;
-}
-
-    Standard_Integer IGESAppli_RegionRestriction::ElectricalViasRestriction () const
-{
-  return theElectViasRestrict;
-}
-
-    Standard_Integer IGESAppli_RegionRestriction::ElectricalComponentRestriction
-  () const
-{
-  return theElectCompRestrict;
-}
-
-    Standard_Integer IGESAppli_RegionRestriction::ElectricalCktRestriction () const
+void IGESAppli_RegionRestriction::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
 {
-  return theElectCktRestrict;
+  if (SubordinateStatus() != 0)
+    if (DefLevel() != IGESData_DefOne &&
+           DefLevel() != IGESData_DefSeveral)
+      theCheck->AddFail("Level type: Not value/reference");
+  if (NbPropertyValues() != 3)
+    theCheck->AddFail("Number of Property Values != 3");
+  if (ElectricalViasRestriction() < 0 || ElectricalViasRestriction() > 2)
+    theCheck->AddFail("Incorrect value for Electrical Vias Restriction");
+  if (ElectricalComponentRestriction() < 0 || ElectricalComponentRestriction() > 2)
+    theCheck->AddFail("Incorrect value for Electrical Component Restriction");
+  if (ElectricalCktRestriction() < 0 || ElectricalCktRestriction() > 2)
+    theCheck->AddFail("Incorrect value for Electrical Circuit Restriction");
+  //UNFINISHED
+  //level ignored if this property is subordinate -- queried
 }
index 8f952f6722edf8e5d8502b43d0805ba759ac9b8f..c4d31b29b9c9a23202a587fb2029a416bda87a1d 100644 (file)
 #ifndef _IGESAppli_RegionRestriction_HeaderFile
 #define _IGESAppli_RegionRestriction_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
-#include <Standard_Integer.hxx>
 #include <IGESData_IGESEntity.hxx>
 
-
 class IGESAppli_RegionRestriction;
 DEFINE_STANDARD_HANDLE(IGESAppli_RegionRestriction, IGESData_IGESEntity)
 
@@ -33,11 +28,9 @@ DEFINE_STANDARD_HANDLE(IGESAppli_RegionRestriction, IGESData_IGESEntity)
 //! over a region.
 class IGESAppli_RegionRestriction : public IGESData_IGESEntity
 {
+ public:
 
-public:
-
-  
-  Standard_EXPORT IGESAppli_RegionRestriction();
+  IGESAppli_RegionRestriction() {}
   
   //! This method is used to set the fields of the class
   //! RegionRestriction
@@ -48,45 +41,30 @@ public:
   Standard_EXPORT void Init (const Standard_Integer nbPropVal, const Standard_Integer aViasRest, const Standard_Integer aCompoRest, const Standard_Integer aCktRest);
   
   //! is always 3
-  Standard_EXPORT Standard_Integer NbPropertyValues() const;
-  
+  Standard_Integer NbPropertyValues() const { return theNbPropertyValues; }
+
   //! returns the Electrical vias restriction
   //! is 0, 1 or 2
-  Standard_EXPORT Standard_Integer ElectricalViasRestriction() const;
-  
+  Standard_Integer ElectricalViasRestriction() const { return theElectViasRestrict; }
+
   //! returns the Electrical components restriction
   //! is 0, 1 or 2
-  Standard_EXPORT Standard_Integer ElectricalComponentRestriction() const;
-  
+  Standard_Integer ElectricalComponentRestriction() const { return theElectCompRestrict; }
+
   //! returns the Electrical circuitry restriction
   //! is 0, 1 or 2
-  Standard_EXPORT Standard_Integer ElectricalCktRestriction() const;
-
-
+  Standard_Integer ElectricalCktRestriction() const { return theElectCktRestrict; }
 
+  Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
 
   DEFINE_STANDARD_RTTIEXT(IGESAppli_RegionRestriction,IGESData_IGESEntity)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   Standard_Integer theNbPropertyValues;
   Standard_Integer theElectViasRestrict;
   Standard_Integer theElectCompRestrict;
   Standard_Integer theElectCktRestrict;
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESAppli_RegionRestriction_HeaderFile
index 373122bfadcf654842c999af6eb82d885004088a..b01f4957eb805ce26a1cdc8299aeba32fae61848 100644 (file)
 #include <IGESData_ParamCursor.hxx>
 #include <IGESData_ParamReader.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESAppli_ToolDrilledHole::IGESAppli_ToolDrilledHole ()    {  }
-
 
 void  IGESAppli_ToolDrilledHole::ReadOwnParams
   (const Handle(IGESAppli_DrilledHole)& ent,
@@ -71,21 +68,6 @@ void  IGESAppli_ToolDrilledHole::WriteOwnParams
   IW.Send(ent->NbHigherLayer());
 }
 
-void  IGESAppli_ToolDrilledHole::OwnShared
-  (const Handle(IGESAppli_DrilledHole)& /*ent*/, Interface_EntityIterator& /*iter*/) const
-{
-}
-
-void  IGESAppli_ToolDrilledHole::OwnCopy
-  (const Handle(IGESAppli_DrilledHole)& another,
-   const Handle(IGESAppli_DrilledHole)& ent, Interface_CopyTool& /*TC*/) const
-{
-  ent->Init
-    (5,another->DrillDiaSize(),another->FinishDiaSize(),
-     (another->IsPlating() ? 1 : 0),
-     another->NbLowerLayer(),another->NbHigherLayer());
-}
-
 
 Standard_Boolean  IGESAppli_ToolDrilledHole::OwnCorrect
   (const Handle(IGESAppli_DrilledHole)& ent) const
@@ -114,18 +96,6 @@ IGESData_DirChecker  IGESAppli_ToolDrilledHole::DirChecker
   return DC;
 }
 
-void  IGESAppli_ToolDrilledHole::OwnCheck
-  (const Handle(IGESAppli_DrilledHole)& ent,
-   const Interface_ShareTool& , Handle(Interface_Check)& ach) const
-{
-  if (ent->SubordinateStatus() != 0)
-    if (ent->DefLevel() != IGESData_DefOne &&
-       ent->DefLevel() != IGESData_DefSeveral)
-      ach->AddFail("Level type : Not value/reference");
-  if (ent->NbPropertyValues() != 5)
-    ach->AddFail("Number of Property Values != 5");
-}
-
 void  IGESAppli_ToolDrilledHole::OwnDump
   (const Handle(IGESAppli_DrilledHole)& ent, const IGESData_IGESDumper& /*dumper*/,
    const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
index 3b46f8f90a019dadf4cb6506610a31e8e0030423..d2d15164c875c3ea924952a4d3fcd1306c109eb9 100644 (file)
@@ -32,7 +32,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -41,13 +40,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESAppli_ToolDrilledHole 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolDrilledHole, ready to work
-  Standard_EXPORT IGESAppli_ToolDrilledHole();
+  IGESAppli_ToolDrilledHole() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -56,10 +54,6 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESAppli_DrilledHole)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a DrilledHole <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESAppli_DrilledHole)& ent, Interface_EntityIterator& iter) const;
-  
   //! Sets automatic unambiguous Correction on a DrilledHole
   //! (NbPropertyValues forced to 5, Level cleared if Subordinate != 0)
   Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESAppli_DrilledHole)& ent) const;
@@ -67,36 +61,8 @@ public:
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESAppli_DrilledHole)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESAppli_DrilledHole)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESAppli_DrilledHole)& entfrom, const Handle(IGESAppli_DrilledHole)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESAppli_DrilledHole)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESAppli_ToolDrilledHole_HeaderFile
index b77e84aa0f6143ea77b511f99e368a2a277ea631..9c9dfd5a4ce215ed21e517222ae11ea15dc26997 100644 (file)
@@ -32,7 +32,6 @@
 #include <IGESData_ParamReader.hxx>
 #include <IGESDimen_GeneralNote.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -42,7 +41,6 @@
 #include <TColStd_HArray1OfReal.hxx>
 
 #include <stdio.h>
-IGESAppli_ToolElementResults::IGESAppli_ToolElementResults ()    {  }
 
      
 void  IGESAppli_ToolElementResults::ReadOwnParams
@@ -145,72 +143,6 @@ void  IGESAppli_ToolElementResults::WriteOwnParams
   }
 }
 
-void  IGESAppli_ToolElementResults::OwnShared
-  (const Handle(IGESAppli_ElementResults)& ent, Interface_EntityIterator& iter) const
-{
-  Standard_Integer i; Standard_Integer num = ent->NbElements();
-  iter.GetOneItem(ent->Note());
-  for ( i = 1; i <= num; i++ )
-    iter.GetOneItem(ent->Element(i));
-}
-
-void  IGESAppli_ToolElementResults::OwnCopy
-  (const Handle(IGESAppli_ElementResults)& another,
-   const Handle(IGESAppli_ElementResults)& ent, Interface_CopyTool& TC) const
-{
-  Standard_Integer i,j;
-  Standard_Integer num = another->NbElements();
-  DeclareAndCast(IGESDimen_GeneralNote,aNote,TC.Transferred(another->Note()));
-  Standard_Integer aSubcaseNumber = another->SubCaseNumber();
-  Standard_Real    aTime = another->Time();
-  Standard_Integer nv    = another->NbResultValues();
-  Standard_Integer aResultReportFlag = another->ResultReportFlag();
-
-  Handle(TColStd_HArray1OfInteger) allElementIdentifiers;
-  Handle(IGESAppli_HArray1OfFiniteElement)    allElements;
-  Handle(TColStd_HArray1OfInteger) allElementTopologyType;
-  Handle(TColStd_HArray1OfInteger) allNbLayers;
-  Handle(TColStd_HArray1OfInteger) allDataLayerFlag;
-  Handle(TColStd_HArray1OfInteger) allNbResultDataLocs;
-  Handle(IGESBasic_HArray1OfHArray1OfInteger) allResultDataLoc;
-  Handle(IGESBasic_HArray1OfHArray1OfReal)    allResultData;
-  if (num > 0) {
-    allElementIdentifiers  = new TColStd_HArray1OfInteger(1, num);
-    allElements            = new IGESAppli_HArray1OfFiniteElement(1, num);
-    allElementTopologyType = new TColStd_HArray1OfInteger(1, num);
-    allNbLayers            = new TColStd_HArray1OfInteger(1, num);
-    allDataLayerFlag       = new TColStd_HArray1OfInteger(1, num);
-    allNbResultDataLocs    = new TColStd_HArray1OfInteger(1, num);
-    allResultDataLoc       = new IGESBasic_HArray1OfHArray1OfInteger(1, num);
-    allResultData          = new IGESBasic_HArray1OfHArray1OfReal(1, num);
-  }
-  for (i = 1; i <= num; i ++) {
-    Standard_Integer nl,nrl,numv;
-    allElementIdentifiers->SetValue(i,another->ElementIdentifier(i));
-    allElements->SetValue
-      (i,GetCasted(IGESAppli_FiniteElement,TC.Transferred(another->Element(i))));
-    allElementTopologyType->SetValue(i,another->ElementTopologyType(i));
-    nl   = another->NbLayers(i);
-    allNbLayers->SetValue(i,nl);
-    allDataLayerFlag->SetValue(i,another->DataLayerFlag(i));
-    nrl  = another->NbResultDataLocs(i);
-    allNbResultDataLocs->SetValue(i,nrl);
-    Handle(TColStd_HArray1OfInteger) rdrl = new TColStd_HArray1OfInteger(1,nrl);
-    allResultDataLoc->SetValue(i,rdrl);
-    for (j = 1; j <= nrl; j ++) rdrl->SetValue(j,another->ResultDataLoc(i,j));
-    numv = another->NbResults(i);
-    Handle(TColStd_HArray1OfReal) vres = new TColStd_HArray1OfReal(1,numv);
-    for (j = 1; j <= numv; j ++) vres->SetValue(j,another->ResultData(i,j));
-    allResultData->SetValue(i,vres);
-  }
-  ent->Init
-    (aNote, aSubcaseNumber, aTime, nv, aResultReportFlag,
-     allElementIdentifiers, allElements, allElementTopologyType,
-     allNbLayers, allDataLayerFlag, allNbResultDataLocs,
-     allResultDataLoc, allResultData);
-  ent->SetFormNumber(another->FormNumber());
-}
-
 
 IGESData_DirChecker  IGESAppli_ToolElementResults::DirChecker
   (const Handle(IGESAppli_ElementResults)& /* ent  */) const
@@ -227,80 +159,6 @@ IGESData_DirChecker  IGESAppli_ToolElementResults::DirChecker
   return DC;
 }
 
-void  IGESAppli_ToolElementResults::OwnCheck
-  (const Handle(IGESAppli_ElementResults)& ent,
-   const Interface_ShareTool& , Handle(Interface_Check)& ach) const
-  // UNFINISHED
-{
-  Standard_Integer rrf = ent->ResultReportFlag();
-  if (rrf < 0 || rrf > 3) ach->AddFail("Result Report Flag not in [0-3]");
-  Standard_Integer nv = ent->NbResultValues();
-  Standard_Boolean OK = Standard_True;
-  switch (ent->FormNumber()) {
-    case  0 : if (nv <  0) OK = Standard_False;  break;
-    case  1 : if (nv != 1) OK = Standard_False;  break;
-    case  2 : if (nv != 1) OK = Standard_False;  break;
-    case  3 : if (nv != 3) OK = Standard_False;  break;
-    case  4 : if (nv != 6) OK = Standard_False;  break;
-    case  5 : if (nv != 3) OK = Standard_False;  break;
-    case  6 : if (nv != 3) OK = Standard_False;  break;
-    case  7 : if (nv != 3) OK = Standard_False;  break;
-    case  8 : if (nv != 3) OK = Standard_False;  break;
-    case  9 : if (nv != 3) OK = Standard_False;  break;
-    case 10 : if (nv != 1) OK = Standard_False;  break;
-    case 11 : if (nv != 1) OK = Standard_False;  break;
-    case 12 : if (nv != 3) OK = Standard_False;  break;
-    case 13 : if (nv != 1) OK = Standard_False;  break;
-    case 14 : if (nv != 1) OK = Standard_False;  break;
-    case 15 : if (nv != 3) OK = Standard_False;  break;
-    case 16 : if (nv != 1) OK = Standard_False;  break;
-    case 17 : if (nv != 3) OK = Standard_False;  break;
-    case 18 : if (nv != 3) OK = Standard_False;  break;
-    case 19 : if (nv != 3) OK = Standard_False;  break;
-    case 20 : if (nv != 3) OK = Standard_False;  break;
-    case 21 : if (nv != 3) OK = Standard_False;  break;
-    case 22 : if (nv != 3) OK = Standard_False;  break;
-    case 23 : if (nv != 6) OK = Standard_False;  break;
-    case 24 : if (nv != 6) OK = Standard_False;  break;
-    case 25 : if (nv != 6) OK = Standard_False;  break;
-    case 26 : if (nv != 6) OK = Standard_False;  break;
-    case 27 : if (nv != 6) OK = Standard_False;  break;
-    case 28 : if (nv != 6) OK = Standard_False;  break;
-    case 29 : if (nv != 9) OK = Standard_False;  break;
-    case 30 : if (nv != 9) OK = Standard_False;  break;
-    case 31 : if (nv != 9) OK = Standard_False;  break;
-    case 32 : if (nv != 9) OK = Standard_False;  break;
-    case 33 : if (nv != 9) OK = Standard_False;  break;
-    case 34 : if (nv != 9) OK = Standard_False;  break;
-    default : ach->AddFail("Incorrect Form Number");    break;
-  }
-  if (!OK) ach->AddFail
-    ("Incorrect count of real values in array V for FEM node");
-  Standard_Integer ne = ent->NbElements();
-  for (Standard_Integer i = 1; i <= ne; i ++) {
-    char mess[100];
-    Standard_Integer dlf = ent->DataLayerFlag(i);
-    Standard_Integer nl  = ent->NbLayers(i);
-    Standard_Integer nrl = ent->NbResultDataLocs(i);
-    if (dlf < 0 || dlf > 4)
-      ach->AddFail("One of the Data Layer Flags not in [0-4]");
-    if (dlf < 4 && ent->NbLayers(i) != 1) {
-      sprintf(mess,"Nb. of Layers n0.%d not ONE while Data Layer Flag is in [0-3]",i);
-      ach->AddFail(mess);
-    }
-    if (rrf == 1 || rrf == 2)
-      if (nrl != 1 || ent->ResultDataLoc(i,1) != 0) {
-       sprintf(mess,"Result Data Locs n0.%d incorrect for Result Report = 1 or 2",i);
-       ach->AddFail(mess);
-      }
-    if (ent->NbResults(i) != (nv*nl*nrl)) {
-      sprintf(mess,"Nb. of results for Element n0.%d incorrect, should be %d",
-             i,nv*nl*nrl);
-      ach->AddFail(mess);
-    }
-  }
-}
-
 void  IGESAppli_ToolElementResults::OwnDump
   (const Handle(IGESAppli_ElementResults)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const // UNFINISHED
index 02e7dad33ec787c8579f97bc8320d70489650d17..7aff73f667dbaaa5cd236e24e213cc48c2cb6169 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESAppli_ToolElementResults 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolElementResults, ready to work
-  Standard_EXPORT IGESAppli_ToolElementResults();
+  IGESAppli_ToolElementResults() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESAppli_ElementResults)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a ElementResults <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESAppli_ElementResults)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESAppli_ElementResults)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESAppli_ElementResults)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESAppli_ElementResults)& entfrom, const Handle(IGESAppli_ElementResults)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESAppli_ElementResults)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESAppli_ToolElementResults_HeaderFile
index 789df892e446d232a26a91e17be1f31f2f9c022f..6df5864cfe84467a0941ead1890bc98cecccff7b 100644 (file)
@@ -28,7 +28,6 @@
 #include <IGESData_ParamCursor.hxx>
 #include <IGESData_ParamReader.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -36,8 +35,6 @@
 #include <Standard_DomainError.hxx>
 #include <TCollection_HAsciiString.hxx>
 
-IGESAppli_ToolFiniteElement::IGESAppli_ToolFiniteElement ()    {  }
-
 
 void  IGESAppli_ToolFiniteElement::ReadOwnParams
   (const Handle(IGESAppli_FiniteElement)& ent,
@@ -77,32 +74,6 @@ void  IGESAppli_ToolFiniteElement::WriteOwnParams
   IW.Send(ent->Name());
 }
 
-void  IGESAppli_ToolFiniteElement::OwnShared
-  (const Handle(IGESAppli_FiniteElement)& ent, Interface_EntityIterator& iter) const
-{
-  Standard_Integer upper = ent->NbNodes();
-  for (Standard_Integer i= 1; i <= upper ; i ++)
-    iter.GetOneItem(ent->Node(i));
-}
-
-void  IGESAppli_ToolFiniteElement::OwnCopy
-  (const Handle(IGESAppli_FiniteElement)& another,
-   const Handle(IGESAppli_FiniteElement)& ent, Interface_CopyTool& TC) const
-{
-  Standard_Integer aTopology = another->Topology();
-  Handle(TCollection_HAsciiString) aName =
-    new TCollection_HAsciiString(another->Name());
-  Standard_Integer nbval = another->NbNodes();
-  Handle(IGESAppli_HArray1OfNode) aList = new
-    IGESAppli_HArray1OfNode(1,nbval);
-  for (Standard_Integer i=1;i <=nbval;i++)
-    {
-      DeclareAndCast(IGESAppli_Node,aEntity,TC.Transferred(another->Node(i)));
-      aList->SetValue(i,aEntity);
-    }
-  ent->Init(aTopology,aList,aName);
-}
-
 IGESData_DirChecker  IGESAppli_ToolFiniteElement::DirChecker
   (const Handle(IGESAppli_FiniteElement)& /* ent */ ) const
 {
@@ -118,12 +89,6 @@ IGESData_DirChecker  IGESAppli_ToolFiniteElement::DirChecker
   return DC;
 }
 
-void  IGESAppli_ToolFiniteElement::OwnCheck
-  (const Handle(IGESAppli_FiniteElement)& /* ent */,
-   const Interface_ShareTool& , Handle(Interface_Check)& /* ach */) const
-{
-}
-
 void  IGESAppli_ToolFiniteElement::OwnDump
   (const Handle(IGESAppli_FiniteElement)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
index ac0848b82e6aaeef5e9e5d8e6b7a5a2831cee92c..0752463977cf01eb5c6caf2fd53e1c0af5ee4d08 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESAppli_ToolFiniteElement 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolFiniteElement, ready to work
-  Standard_EXPORT IGESAppli_ToolFiniteElement();
+  IGESAppli_ToolFiniteElement() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESAppli_FiniteElement)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a FiniteElement <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESAppli_FiniteElement)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESAppli_FiniteElement)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESAppli_FiniteElement)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESAppli_FiniteElement)& entfrom, const Handle(IGESAppli_FiniteElement)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESAppli_FiniteElement)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESAppli_ToolFiniteElement_HeaderFile
index 02286efc2b156d3a1151f3b6a5e91dd1e135d230..9e9ad7a1198a83c211f6538555478eccbaa37769 100644 (file)
@@ -32,7 +32,6 @@
 #include <IGESGraph_HArray1OfTextDisplayTemplate.hxx>
 #include <IGESGraph_TextDisplayTemplate.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_HArray1OfHAsciiString.hxx>
 #include <Interface_Macros.hxx>
@@ -41,8 +40,6 @@
 #include <Standard_DomainError.hxx>
 #include <TCollection_HAsciiString.hxx>
 
-IGESAppli_ToolFlow::IGESAppli_ToolFlow ()    {  }
-
 
 void  IGESAppli_ToolFlow::ReadOwnParams
   (const Handle(IGESAppli_Flow)& ent,
@@ -172,94 +169,6 @@ void  IGESAppli_ToolFlow::WriteOwnParams
     IW.Send(ent->ContFlowAssociativity(i));
 }
 
-void  IGESAppli_ToolFlow::OwnShared
-  (const Handle(IGESAppli_Flow)& ent, Interface_EntityIterator& iter) const
-{
-  Standard_Integer i, num;
-  for ( num = ent->NbFlowAssociativities(), i = 1; i <= num; i++ )
-    iter.GetOneItem(ent->FlowAssociativity(i));
-  for ( num = ent->NbConnectPoints(), i = 1; i <= num; i++ )
-    iter.GetOneItem(ent->ConnectPoint(i));
-  for ( num = ent->NbJoins(), i = 1; i <= num; i++ )
-    iter.GetOneItem(ent->Join(i));
-  for ( num = ent->NbTextDisplayTemplates(), i = 1; i <= num; i++ )
-    iter.GetOneItem(ent->TextDisplayTemplate(i));
-  for ( num = ent->NbContFlowAssociativities(), i = 1; i <= num; i++ )
-    iter.GetOneItem(ent->ContFlowAssociativity(i));
-}
-
-void  IGESAppli_ToolFlow::OwnCopy
-  (const Handle(IGESAppli_Flow)& another,
-   const Handle(IGESAppli_Flow)& ent, Interface_CopyTool& TC) const
-{
-  Standard_Integer tempNbContextFlags = another->NbContextFlags();
-  Standard_Integer tempTypeOfFlow = another->TypeOfFlow();
-  Standard_Integer tempFunctionFlag = another->FunctionFlag();
-  Standard_Integer i, num;
-
-  num = another->NbFlowAssociativities();
-  Handle(IGESData_HArray1OfIGESEntity) tempFlowAssocs;
-  if (num > 0) tempFlowAssocs    = new IGESData_HArray1OfIGESEntity(1, num);
-  for ( i = 1; i <= num; i++ )
-    {
-      DeclareAndCast(IGESData_IGESEntity, new_item,
-                    TC.Transferred(another->FlowAssociativity(i)));
-      tempFlowAssocs->SetValue(i, new_item);
-    }
-
-  num = another->NbConnectPoints();
-  Handle(IGESDraw_HArray1OfConnectPoint) tempConnectPoints;
-  if (num > 0) tempConnectPoints = new IGESDraw_HArray1OfConnectPoint(1, num);
-  for ( i = 1; i <= num; i++ )
-    {
-      DeclareAndCast(IGESDraw_ConnectPoint, new_item,
-                    TC.Transferred(another->ConnectPoint(i)));
-      tempConnectPoints->SetValue(i, new_item);
-    }
-
-  num = another->NbJoins();
-  Handle(IGESData_HArray1OfIGESEntity) tempJoins;
-  if (num > 0) tempJoins         = new IGESData_HArray1OfIGESEntity(1, num);
-  for ( i = 1; i <= num; i++ )
-    {
-      DeclareAndCast(IGESData_IGESEntity, new_item,
-                    TC.Transferred(another->Join(i)));
-      tempJoins->SetValue(i, new_item);
-    }
-
-  num = another->NbFlowNames();
-  Handle(Interface_HArray1OfHAsciiString) tempFlowNames;
-  if (num > 0) tempFlowNames     = new Interface_HArray1OfHAsciiString(1, num);
-  for ( i = 1; i <= num; i++ )
-    tempFlowNames->SetValue
-      (i, new TCollection_HAsciiString(another->FlowName(i)));
-
-  num = another->NbTextDisplayTemplates();
-  Handle(IGESGraph_HArray1OfTextDisplayTemplate) tempTextDisplayTemplates;
-  if (num > 0) tempTextDisplayTemplates =
-    new IGESGraph_HArray1OfTextDisplayTemplate(1, num);
-  for ( i = 1; i <= num; i++ )
-    {
-      DeclareAndCast(IGESGraph_TextDisplayTemplate, new_item,
-                    TC.Transferred(another->TextDisplayTemplate(i)));
-      tempTextDisplayTemplates->SetValue(i, new_item);
-    }
-
-  num = another->NbContFlowAssociativities();
-  Handle(IGESData_HArray1OfIGESEntity) tempContFlowAssocs;
-  if (num > 0) tempContFlowAssocs = new IGESData_HArray1OfIGESEntity(1, num);
-  for ( i = 1; i <= num; i++ )
-    {
-      DeclareAndCast(IGESData_IGESEntity, new_item,
-                    TC.Transferred(another->ContFlowAssociativity(i)));
-      tempContFlowAssocs->SetValue(i, new_item);
-    }
-
-  ent->Init (tempNbContextFlags, tempTypeOfFlow, tempFunctionFlag,
-            tempFlowAssocs, tempConnectPoints, tempJoins, tempFlowNames,
-            tempTextDisplayTemplates, tempContFlowAssocs);
-}
-
 Standard_Boolean  IGESAppli_ToolFlow::OwnCorrect
   (const Handle(IGESAppli_Flow)& ent) const
 {
@@ -281,18 +190,6 @@ IGESData_DirChecker  IGESAppli_ToolFlow::DirChecker
   return DC;
 }
 
-void  IGESAppli_ToolFlow::OwnCheck
-  (const Handle(IGESAppli_Flow)& ent,
-   const Interface_ShareTool& , Handle(Interface_Check)& ach) const
-{
-  if (ent->NbContextFlags() != 2)
-    ach->AddFail("Number of Context Flags != 2");
-  if ((ent->TypeOfFlow() < 0) || (ent->TypeOfFlow() > 2))
-    ach->AddFail("Type of Flow != 0,1,2");
-  if ((ent->FunctionFlag() < 0) || (ent->FunctionFlag() > 2))
-    ach->AddFail("Function Flag != 0,1,2");
-}
-
 void  IGESAppli_ToolFlow::OwnDump
   (const Handle(IGESAppli_Flow)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
index 0bc31f50157005aab07ff3450a53c67e5985b2fd..9d92ed6b4f501d68bf1e6bd1d394bed0af58bd3d 100644 (file)
@@ -32,7 +32,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -41,13 +40,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESAppli_ToolFlow 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolFlow, ready to work
-  Standard_EXPORT IGESAppli_ToolFlow();
+  IGESAppli_ToolFlow() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -56,10 +54,6 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESAppli_Flow)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a Flow <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESAppli_Flow)& ent, Interface_EntityIterator& iter) const;
-  
   //! Sets automatic unambiguous Correction on a Flow
   //! (NbContextFlags forced to 2)
   Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESAppli_Flow)& ent) const;
@@ -67,36 +61,9 @@ public:
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESAppli_Flow)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESAppli_Flow)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESAppli_Flow)& entfrom, const Handle(IGESAppli_Flow)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESAppli_Flow)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
 
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESAppli_ToolFlow_HeaderFile
index 203326726330984948deb259e7633c3c591d4b40..324cfaae2ebcd49a6f56c1a8489053f6477df14b 100644 (file)
@@ -26,7 +26,6 @@
 #include <IGESData_ParamCursor.hxx>
 #include <IGESData_ParamReader.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_HArray1OfHAsciiString.hxx>
 #include <Interface_Macros.hxx>
@@ -35,8 +34,6 @@
 #include <Standard_DomainError.hxx>
 #include <TCollection_HAsciiString.hxx>
 
-IGESAppli_ToolFlowLineSpec::IGESAppli_ToolFlowLineSpec ()    {  }
-
 
 void  IGESAppli_ToolFlowLineSpec::ReadOwnParams
   (const Handle(IGESAppli_FlowLineSpec)& ent,
@@ -65,24 +62,6 @@ void  IGESAppli_ToolFlowLineSpec::WriteOwnParams
     IW.Send(ent->Modifier(i));
 }
 
-void  IGESAppli_ToolFlowLineSpec::OwnShared
-  (const Handle(IGESAppli_FlowLineSpec)& /* ent */, Interface_EntityIterator& /* iter */) const
-{
-}
-
-void  IGESAppli_ToolFlowLineSpec::OwnCopy
-  (const Handle(IGESAppli_FlowLineSpec)& another,
-   const Handle(IGESAppli_FlowLineSpec)& ent, Interface_CopyTool& /* TC */) const
-{
-  Standard_Integer num = another->NbPropertyValues();
-  Handle(Interface_HArray1OfHAsciiString) tempNameAndModifiers =
-    new Interface_HArray1OfHAsciiString(1, num);
-  for ( Standard_Integer i = 1; i <= num; i++ )
-    tempNameAndModifiers->SetValue
-      (i, new TCollection_HAsciiString(another->Modifier(i)));
-  ent->Init(tempNameAndModifiers);
-}
-
 IGESData_DirChecker  IGESAppli_ToolFlowLineSpec::DirChecker
   (const Handle(IGESAppli_FlowLineSpec)& /* ent */ ) const
 {
@@ -98,12 +77,6 @@ IGESData_DirChecker  IGESAppli_ToolFlowLineSpec::DirChecker
   return DC;
 }
 
-void  IGESAppli_ToolFlowLineSpec::OwnCheck
-  (const Handle(IGESAppli_FlowLineSpec)& /* ent */,
-   const Interface_ShareTool& , Handle(Interface_Check)& /* ach */) const
-{
-}
-
 void  IGESAppli_ToolFlowLineSpec::OwnDump
   (const Handle(IGESAppli_FlowLineSpec)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
index c9b101fa37d11db6dc8a88ff95e401446a7db83b..1023c44129966c8082eda1ce60f2b31187490a5b 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESAppli_ToolFlowLineSpec 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolFlowLineSpec, ready to work
-  Standard_EXPORT IGESAppli_ToolFlowLineSpec();
+  IGESAppli_ToolFlowLineSpec() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESAppli_FlowLineSpec)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a FlowLineSpec <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESAppli_FlowLineSpec)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESAppli_FlowLineSpec)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESAppli_FlowLineSpec)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESAppli_FlowLineSpec)& entfrom, const Handle(IGESAppli_FlowLineSpec)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESAppli_FlowLineSpec)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESAppli_ToolFlowLineSpec_HeaderFile
index bd8b9fda08dfd3d5576eb21f2e9e081a6dd4fb95..0f767d4d05b42adc4d143ad19c5f44bb3c6aefdd 100644 (file)
@@ -26,7 +26,6 @@
 #include <IGESData_ParamCursor.hxx>
 #include <IGESData_ParamReader.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -34,8 +33,6 @@
 #include <Standard_DomainError.hxx>
 #include <TCollection_HAsciiString.hxx>
 
-IGESAppli_ToolLevelFunction::IGESAppli_ToolLevelFunction ()    {  }
-
 
 void  IGESAppli_ToolLevelFunction::ReadOwnParams
   (const Handle(IGESAppli_LevelFunction)& ent,
@@ -70,25 +67,6 @@ void  IGESAppli_ToolLevelFunction::WriteOwnParams
   else IW.Send(ent->FuncDescription());
 }
 
-void  IGESAppli_ToolLevelFunction::OwnShared
-  (const Handle(IGESAppli_LevelFunction)& /* ent */, Interface_EntityIterator& /* iter */) const
-{
-}
-
-void  IGESAppli_ToolLevelFunction::OwnCopy
-  (const Handle(IGESAppli_LevelFunction)& another,
-   const Handle(IGESAppli_LevelFunction)& ent, Interface_CopyTool& /* TC */) const
-{
-  Standard_Integer aNbPropertyValues, code;
-  Handle(TCollection_HAsciiString) descrip;
-  if (!another->FuncDescription().IsNull()) descrip =
-    new TCollection_HAsciiString(another->FuncDescription());
-  code = another->FuncDescriptionCode();
-  aNbPropertyValues = another->NbPropertyValues();
-
-  ent->Init(aNbPropertyValues,code,descrip);
-}
-
 Standard_Boolean  IGESAppli_ToolLevelFunction::OwnCorrect
   (const Handle(IGESAppli_LevelFunction)& ent) const
 {
@@ -110,14 +88,6 @@ IGESData_DirChecker  IGESAppli_ToolLevelFunction::DirChecker
   return DC;
 }
 
-void  IGESAppli_ToolLevelFunction::OwnCheck
-  (const Handle(IGESAppli_LevelFunction)& ent,
-   const Interface_ShareTool& , Handle(Interface_Check)& ach) const
-{
-  if (ent->NbPropertyValues() != 2)
-    ach->AddFail("Number of Property Values != 2");
-}
-
 void  IGESAppli_ToolLevelFunction::OwnDump
   (const Handle(IGESAppli_LevelFunction)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
index ec6c801a4c94012195eda5e62bcf831d7c7689ff..c9ae7721e8496233f927974889541606da5b06ab 100644 (file)
@@ -32,7 +32,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -41,13 +40,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESAppli_ToolLevelFunction 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolLevelFunction, ready to work
-  Standard_EXPORT IGESAppli_ToolLevelFunction();
+  IGESAppli_ToolLevelFunction() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -56,10 +54,6 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESAppli_LevelFunction)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a LevelFunction <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESAppli_LevelFunction)& ent, Interface_EntityIterator& iter) const;
-  
   //! Sets automatic unambiguous Correction on a LevelFunction
   //! (NbPropertyValues forced to 2)
   Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESAppli_LevelFunction)& ent) const;
@@ -67,36 +61,8 @@ public:
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESAppli_LevelFunction)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESAppli_LevelFunction)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESAppli_LevelFunction)& entfrom, const Handle(IGESAppli_LevelFunction)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESAppli_LevelFunction)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESAppli_ToolLevelFunction_HeaderFile
index 3367fb2c4cbfaba132fcae3c8c21c962ff16a228..6d92ec7d11736e6cd9fe9c394b6c59230164e312 100644 (file)
@@ -26,7 +26,6 @@
 #include <IGESData_ParamCursor.hxx>
 #include <IGESData_ParamReader.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_HArray1OfHAsciiString.hxx>
 #include <Interface_Macros.hxx>
@@ -36,8 +35,6 @@
 #include <TCollection_HAsciiString.hxx>
 #include <TColStd_HArray1OfInteger.hxx>
 
-IGESAppli_ToolLevelToPWBLayerMap::IGESAppli_ToolLevelToPWBLayerMap ()    {  }
-
 
 void  IGESAppli_ToolLevelToPWBLayerMap::ReadOwnParams
   (const Handle(IGESAppli_LevelToPWBLayerMap)& ent,
@@ -102,39 +99,6 @@ void  IGESAppli_ToolLevelToPWBLayerMap::WriteOwnParams
     }
 }
 
-void  IGESAppli_ToolLevelToPWBLayerMap::OwnShared
-  (const Handle(IGESAppli_LevelToPWBLayerMap)& /* ent */, Interface_EntityIterator& /* iter */) const
-{
-}
-
-void  IGESAppli_ToolLevelToPWBLayerMap::OwnCopy
-  (const Handle(IGESAppli_LevelToPWBLayerMap)& another,
-   const Handle(IGESAppli_LevelToPWBLayerMap)& ent, Interface_CopyTool& /* TC */) const
-{
-  Standard_Integer tempNbPropertyValues = another->NbPropertyValues();
-  Standard_Integer num = another->NbLevelToLayerDefs();
-  Handle(TColStd_HArray1OfInteger) tempExchangeFileLevelNumber =
-    new TColStd_HArray1OfInteger(1, num);
-  Handle(Interface_HArray1OfHAsciiString) tempNativeLevel =
-    new Interface_HArray1OfHAsciiString(1, num);
-  Handle(TColStd_HArray1OfInteger) tempPhysicalLayerNumber =
-    new TColStd_HArray1OfInteger(1, num);
-  Handle(Interface_HArray1OfHAsciiString) tempExchangeFileLevelIdent =
-    new Interface_HArray1OfHAsciiString(1, num);
-  for ( Standard_Integer i = 1; i <= num; i++ )
-    {
-      tempExchangeFileLevelNumber->SetValue(i,another->ExchangeFileLevelNumber(i));
-      tempNativeLevel->SetValue
-       (i, new TCollection_HAsciiString(another->NativeLevel(i)));
-      tempPhysicalLayerNumber->SetValue(i, another->PhysicalLayerNumber(i));
-      tempExchangeFileLevelIdent->SetValue
-       (i,new TCollection_HAsciiString
-        (another->ExchangeFileLevelIdent(i)));
-    }
-  ent->Init (tempNbPropertyValues, tempExchangeFileLevelNumber, tempNativeLevel,
-            tempPhysicalLayerNumber, tempExchangeFileLevelIdent);
-}
-
 IGESData_DirChecker  IGESAppli_ToolLevelToPWBLayerMap::DirChecker
   (const Handle(IGESAppli_LevelToPWBLayerMap)& /* ent */ ) const
 {
@@ -150,12 +114,6 @@ IGESData_DirChecker  IGESAppli_ToolLevelToPWBLayerMap::DirChecker
   return DC;
 }
 
-void  IGESAppli_ToolLevelToPWBLayerMap::OwnCheck
-  (const Handle(IGESAppli_LevelToPWBLayerMap)& /* ent */,
-   const Interface_ShareTool& , Handle(Interface_Check)& /* ach */) const
-{
-}
-
 void  IGESAppli_ToolLevelToPWBLayerMap::OwnDump
   (const Handle(IGESAppli_LevelToPWBLayerMap)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
index 055b43868e75290a2a6f017a7c591461bc2c5cff..e132973921f860a7244e44f2e955b9c83099707e 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESAppli_ToolLevelToPWBLayerMap 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolLevelToPWBLayerMap, ready to work
-  Standard_EXPORT IGESAppli_ToolLevelToPWBLayerMap();
+  IGESAppli_ToolLevelToPWBLayerMap() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESAppli_LevelToPWBLayerMap)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a LevelToPWBLayerMap <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESAppli_LevelToPWBLayerMap)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESAppli_LevelToPWBLayerMap)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESAppli_LevelToPWBLayerMap)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESAppli_LevelToPWBLayerMap)& entfrom, const Handle(IGESAppli_LevelToPWBLayerMap)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESAppli_LevelToPWBLayerMap)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESAppli_ToolLevelToPWBLayerMap_HeaderFile
index d4e9a44617f693ed7ffef40780899c710bbd6e98..e358835a847e8d3f666e8ec54ab2653e9c1b218e 100644 (file)
 #include <IGESData_ParamCursor.hxx>
 #include <IGESData_ParamReader.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESAppli_ToolLineWidening::IGESAppli_ToolLineWidening ()    {  }
-
 
 void  IGESAppli_ToolLineWidening::ReadOwnParams
   (const Handle(IGESAppli_LineWidening)& ent,
@@ -74,21 +71,6 @@ void  IGESAppli_ToolLineWidening::WriteOwnParams
   IW.Send(ent->ExtensionValue());
 }
 
-void  IGESAppli_ToolLineWidening::OwnShared
-  (const Handle(IGESAppli_LineWidening)& /*ent*/, Interface_EntityIterator& /*iter*/) const
-{
-}
-
-void  IGESAppli_ToolLineWidening::OwnCopy
-  (const Handle(IGESAppli_LineWidening)& another,
-   const Handle(IGESAppli_LineWidening)& ent, Interface_CopyTool& /*TC*/) const
-{
-  ent->Init
-    (5,another->WidthOfMetalization(),another->CorneringCode(),
-     another->ExtensionFlag(),another->JustificationFlag(),
-     another->ExtensionValue());
-}
-
 Standard_Boolean  IGESAppli_ToolLineWidening::OwnCorrect
   (const Handle(IGESAppli_LineWidening)& ent) const
 {
@@ -116,24 +98,6 @@ IGESData_DirChecker  IGESAppli_ToolLineWidening::DirChecker
   return DC;
 }
 
-void  IGESAppli_ToolLineWidening::OwnCheck
-  (const Handle(IGESAppli_LineWidening)& ent,
-   const Interface_ShareTool& , Handle(Interface_Check)& ach) const
-{
-  if (ent->SubordinateStatus() != 0)
-    if (ent->DefLevel() == IGESData_DefOne ||
-       ent->DefLevel() == IGESData_DefSeveral)
-      ach->AddWarning("Level type: defined while ignored");
-  if (ent->NbPropertyValues() != 5)
-    ach->AddFail("Number of Property Values != 5");
-  if (ent->CorneringCode() != 0 && ent->CorneringCode() != 1)
-    ach->AddFail("Cornering Code incorrect");
-  if (ent->ExtensionFlag() < 0 || ent->ExtensionFlag() > 2)
-    ach->AddFail("Extension Flag value incorrect");
-  if (ent->JustificationFlag() < 0 || ent->JustificationFlag() > 2)
-    ach->AddFail("Justification Flag value incorrect");
-}
-
 void  IGESAppli_ToolLineWidening::OwnDump
   (const Handle(IGESAppli_LineWidening)& ent, const IGESData_IGESDumper& /*dumper*/,
    const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
index a1d37b26d69e2a6f1431cd0694629d8c09636b60..b731e646c0b5bfa52a570ef1f723cd1aef422332 100644 (file)
@@ -32,7 +32,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -41,13 +40,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESAppli_ToolLineWidening 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolLineWidening, ready to work
-  Standard_EXPORT IGESAppli_ToolLineWidening();
+  IGESAppli_ToolLineWidening() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -56,10 +54,6 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESAppli_LineWidening)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a LineWidening <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESAppli_LineWidening)& ent, Interface_EntityIterator& iter) const;
-  
   //! Sets automatic unambiguous Correction on a LineWidening
   //! (NbPropertyValues forced to 5, Level cleared if Subordinate != 0)
   Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESAppli_LineWidening)& ent) const;
@@ -67,36 +61,8 @@ public:
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESAppli_LineWidening)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESAppli_LineWidening)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESAppli_LineWidening)& entfrom, const Handle(IGESAppli_LineWidening)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESAppli_LineWidening)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESAppli_ToolLineWidening_HeaderFile
index 7b4f2fbbed9e8c4f8fca939209a57d17de19821a..7c64e00eb5c3b0654fd2f7d42af905e5d176a0cc 100644 (file)
 #include <IGESDefs_HArray1OfTabularData.hxx>
 #include <IGESDefs_TabularData.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESAppli_ToolNodalConstraint::IGESAppli_ToolNodalConstraint ()    {  }
-
 
 void  IGESAppli_ToolNodalConstraint::ReadOwnParams
   (const Handle(IGESAppli_NodalConstraint)& ent,
@@ -79,34 +76,6 @@ void  IGESAppli_ToolNodalConstraint::WriteOwnParams
     IW.Send(ent->TabularData(i));
 }
 
-void  IGESAppli_ToolNodalConstraint::OwnShared
-  (const Handle(IGESAppli_NodalConstraint)& ent, Interface_EntityIterator& iter) const
-{
-  Standard_Integer i, num;
-  iter.GetOneItem(ent->NodeEntity());
-  for ( num = ent->NbCases(), i = 1; i <= num; i++ )
-    iter.GetOneItem(ent->TabularData(i));
-}
-
-void  IGESAppli_ToolNodalConstraint::OwnCopy
-  (const Handle(IGESAppli_NodalConstraint)& another,
-   const Handle(IGESAppli_NodalConstraint)& ent, Interface_CopyTool& TC) const
-{
-  Standard_Integer num = another->NbCases();
-  Standard_Integer tempType = another->Type();
-  DeclareAndCast(IGESAppli_Node, tempNode,
-                TC.Transferred(another->NodeEntity()));
-  Handle(IGESDefs_HArray1OfTabularData) tempTabularDataProps =
-    new IGESDefs_HArray1OfTabularData(1, num);
-  for ( Standard_Integer i = 1; i <= num; i++ )
-    {
-      DeclareAndCast(IGESDefs_TabularData, new_item,
-                    TC.Transferred(another->TabularData(i)));
-      tempTabularDataProps->SetValue(i, new_item);
-    }
-  ent->Init(tempType, tempNode, tempTabularDataProps);
-}
-
 IGESData_DirChecker  IGESAppli_ToolNodalConstraint::DirChecker
   (const Handle(IGESAppli_NodalConstraint)& /* ent */ ) const
 {
@@ -120,14 +89,6 @@ IGESData_DirChecker  IGESAppli_ToolNodalConstraint::DirChecker
   return DC;
 }
 
-void  IGESAppli_ToolNodalConstraint::OwnCheck
-  (const Handle(IGESAppli_NodalConstraint)& ent,
-   const Interface_ShareTool& , Handle(Interface_Check)& ach) const
-{
-  if ((ent->Type() != 1) && (ent->Type() != 2))
-    ach->AddFail("Type of Constraint != 1,2");
-}
-
 void  IGESAppli_ToolNodalConstraint::OwnDump
   (const Handle(IGESAppli_NodalConstraint)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
index 33cd7e58fe773be6d17860767f60b3121b3d9bf3..7b59359adc36225e39cf27ac0e3c3f6d4bc1e54f 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESAppli_ToolNodalConstraint 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolNodalConstraint, ready to work
-  Standard_EXPORT IGESAppli_ToolNodalConstraint();
+  IGESAppli_ToolNodalConstraint() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESAppli_NodalConstraint)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a NodalConstraint <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESAppli_NodalConstraint)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESAppli_NodalConstraint)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESAppli_NodalConstraint)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESAppli_NodalConstraint)& entfrom, const Handle(IGESAppli_NodalConstraint)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESAppli_NodalConstraint)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESAppli_ToolNodalConstraint_HeaderFile
index d90e1d33a93d89d1a4e9b870a09b4ae04810e8e1..d8a33a99694b561ccb544377834bcb71e7681b0f 100644 (file)
@@ -32,7 +32,6 @@
 #include <IGESDimen_GeneralNote.hxx>
 #include <IGESDimen_HArray1OfGeneralNote.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -41,8 +40,6 @@
 #include <TColgp_HArray1OfXYZ.hxx>
 #include <TColStd_HArray1OfInteger.hxx>
 
-IGESAppli_ToolNodalDisplAndRot::IGESAppli_ToolNodalDisplAndRot ()    {  }
-
 
 void  IGESAppli_ToolNodalDisplAndRot::ReadOwnParams
   (const Handle(IGESAppli_NodalDisplAndRot)& ent,
@@ -130,65 +127,6 @@ void  IGESAppli_ToolNodalDisplAndRot::WriteOwnParams
     }
 }
 
-void  IGESAppli_ToolNodalDisplAndRot::OwnShared
-  (const Handle(IGESAppli_NodalDisplAndRot)& ent, Interface_EntityIterator& iter) const
-{
-  Standard_Integer nbcases = ent->NbCases();
-  Standard_Integer nbnodes = ent->NbNodes();
-
-  for (Standard_Integer i = 1; i <= nbcases; i ++)
-    iter.GetOneItem(ent->Note(i));
-  for (Standard_Integer j = 1; j <= nbnodes; j ++)
-    iter.GetOneItem(ent->Node(j));
-}
-
-void  IGESAppli_ToolNodalDisplAndRot::OwnCopy
-  (const Handle(IGESAppli_NodalDisplAndRot)& another,
-   const Handle(IGESAppli_NodalDisplAndRot)& ent, Interface_CopyTool& TC) const
-{
-  Standard_Integer nbcases = another->NbCases();
-  Standard_Integer nbnodes = another->NbNodes();
-  Handle(IGESDimen_HArray1OfGeneralNote) aNotes =
-    new IGESDimen_HArray1OfGeneralNote(1,nbcases);
-  Handle(TColStd_HArray1OfInteger) aNodeIdentifiers =
-    new TColStd_HArray1OfInteger(1,nbnodes);
-  Handle(IGESAppli_HArray1OfNode) aNodes =
-    new IGESAppli_HArray1OfNode(1,nbnodes);
-  Handle(IGESBasic_HArray1OfHArray1OfXYZ) aTransParam =
-    new IGESBasic_HArray1OfHArray1OfXYZ(1, nbnodes);
-  Handle(IGESBasic_HArray1OfHArray1OfXYZ) aRotParam =
-    new IGESBasic_HArray1OfHArray1OfXYZ(1, nbnodes);
-
-  for (Standard_Integer i=1 ;i <=nbnodes; i++)
-    {
-      aNodeIdentifiers->SetValue(i,(another->NodeIdentifier(i)));
-      DeclareAndCast(IGESAppli_Node,anitem,TC.Transferred(another->Node(i)));
-      aNodes->SetValue(i,anitem);
-    }
-  for (Standard_Integer j=1 ;j <=nbcases; j++)
-    {
-      DeclareAndCast
-       (IGESDimen_GeneralNote,anitem,TC.Transferred(another->Note(j)));
-      aNotes->SetValue(j,anitem);
-    }
-  for (Standard_Integer n=1 ;n <=nbnodes; n++)
-    {
-      Handle(TColgp_HArray1OfXYZ) tempArray1 = new
-       TColgp_HArray1OfXYZ(1,nbcases);
-      Handle(TColgp_HArray1OfXYZ) tempArray2 = new
-       TColgp_HArray1OfXYZ(1,nbcases);
-      for (Standard_Integer k=1;k<= nbcases;k++)
-       {
-          tempArray1->SetValue(k,another->TranslationParameter(n,k));
-          tempArray2->SetValue(k,another->RotationalParameter(n,k));
-       }
-      aTransParam->SetValue(n,tempArray1);
-      aRotParam->SetValue(n,tempArray2);
-    }
-
-  ent->Init(aNotes,aNodeIdentifiers,aNodes,aRotParam,aTransParam);
-}
-
 IGESData_DirChecker  IGESAppli_ToolNodalDisplAndRot::DirChecker
   (const Handle(IGESAppli_NodalDisplAndRot)& /* ent */ ) const
 {
@@ -199,12 +137,6 @@ IGESData_DirChecker  IGESAppli_ToolNodalDisplAndRot::DirChecker
   return DC;
 }
 
-void  IGESAppli_ToolNodalDisplAndRot::OwnCheck
-  (const Handle(IGESAppli_NodalDisplAndRot)& /* ent */,
-   const Interface_ShareTool& , Handle(Interface_Check)& /* ach */) const
-{
-}
-
 void  IGESAppli_ToolNodalDisplAndRot::OwnDump
   (const Handle(IGESAppli_NodalDisplAndRot)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
index 19222da1dd008189880ba07266c2f554f3198744..0ee5c939ad2b60580cb36673c8f081cbeaf5a30b 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESAppli_ToolNodalDisplAndRot 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolNodalDisplAndRot, ready to work
-  Standard_EXPORT IGESAppli_ToolNodalDisplAndRot();
+  IGESAppli_ToolNodalDisplAndRot() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESAppli_NodalDisplAndRot)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a NodalDisplAndRot <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESAppli_NodalDisplAndRot)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESAppli_NodalDisplAndRot)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESAppli_NodalDisplAndRot)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESAppli_NodalDisplAndRot)& entfrom, const Handle(IGESAppli_NodalDisplAndRot)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESAppli_NodalDisplAndRot)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESAppli_ToolNodalDisplAndRot_HeaderFile
index 06e81596186f545321ab28736c089c7de59830d1..50ae39a96be926dd6f8ea6edcc9a730885216599 100644 (file)
@@ -29,7 +29,6 @@
 #include <IGESData_ParamReader.hxx>
 #include <IGESDimen_GeneralNote.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -39,8 +38,6 @@
 #include <TColStd_HArray1OfReal.hxx>
 #include <TColStd_HArray2OfReal.hxx>
 
-IGESAppli_ToolNodalResults::IGESAppli_ToolNodalResults ()    {  }
-
 
 void  IGESAppli_ToolNodalResults::ReadOwnParams
   (const Handle(IGESAppli_NodalResults)& ent,
@@ -108,45 +105,6 @@ void  IGESAppli_ToolNodalResults::WriteOwnParams
     }
 }
 
-void  IGESAppli_ToolNodalResults::OwnShared
-  (const Handle(IGESAppli_NodalResults)& ent, Interface_EntityIterator& iter) const
-{
-  Standard_Integer nbnodes = ent->NbNodes();
-  iter.GetOneItem(ent->Note());
-  for (Standard_Integer i = 1; i <= nbnodes; i++)
-    iter.GetOneItem(ent->Node(i));
-}
-
-void  IGESAppli_ToolNodalResults::OwnCopy
-  (const Handle(IGESAppli_NodalResults)& another,
-   const Handle(IGESAppli_NodalResults)& ent, Interface_CopyTool& TC) const
-{
-  DeclareAndCast(IGESDimen_GeneralNote,aNote,TC.Transferred(another->Note()));
-  Standard_Integer aSubCaseNum = another->SubCaseNumber();
-  Standard_Real aTime = another->Time();
-  Standard_Integer nbnodes = another->NbNodes();
-  Standard_Integer nbval = another->NbData();
-  Handle(TColStd_HArray1OfInteger) aNodeIdentifiers =
-    new TColStd_HArray1OfInteger(1,nbnodes);
-  Handle(IGESAppli_HArray1OfNode) aNodes =
-    new IGESAppli_HArray1OfNode(1,nbnodes);
-  Handle(TColStd_HArray2OfReal) aData =
-    new TColStd_HArray2OfReal(1,nbnodes,1,nbval);
-
-  for (Standard_Integer i=1; i <= nbnodes; i++)
-    {
-      Standard_Integer aItem = another->NodeIdentifier(i);
-      aNodeIdentifiers->SetValue(i,aItem);
-      DeclareAndCast(IGESAppli_Node,anentity,TC.Transferred(another->Node(i)));
-      aNodes->SetValue(i,anentity);
-      for (Standard_Integer j=1; j <= nbval; j++)
-       aData->SetValue(i,j, another->Data(i,j));
-    }
-
-  ent->Init(aNote,aSubCaseNum,aTime,aNodeIdentifiers,aNodes,aData);
-  ent->SetFormNumber(another->FormNumber());
-}
-
 IGESData_DirChecker  IGESAppli_ToolNodalResults::DirChecker
   (const Handle(IGESAppli_NodalResults)& /* ent */ ) const
 {
@@ -161,55 +119,6 @@ IGESData_DirChecker  IGESAppli_ToolNodalResults::DirChecker
   return DC;
 }
 
-void  IGESAppli_ToolNodalResults::OwnCheck
-  (const Handle(IGESAppli_NodalResults)& ent,
-   const Interface_ShareTool& , Handle(Interface_Check)& ach) const
-{
-  Standard_Integer FormNum = ent->FormNumber();
-  Standard_Integer nv = ent->NbData();
-  Standard_Boolean OK = Standard_True;
-  switch (FormNum) {
-    case  0 : if (nv <  0) OK = Standard_False;  break;
-    case  1 : if (nv != 1) OK = Standard_False;  break;
-    case  2 : if (nv != 1) OK = Standard_False;  break;
-    case  3 : if (nv != 3) OK = Standard_False;  break;
-    case  4 : if (nv != 6) OK = Standard_False;  break;
-    case  5 : if (nv != 3) OK = Standard_False;  break;
-    case  6 : if (nv != 3) OK = Standard_False;  break;
-    case  7 : if (nv != 3) OK = Standard_False;  break;
-    case  8 : if (nv != 3) OK = Standard_False;  break;
-    case  9 : if (nv != 3) OK = Standard_False;  break;
-    case 10 : if (nv != 1) OK = Standard_False;  break;
-    case 11 : if (nv != 1) OK = Standard_False;  break;
-    case 12 : if (nv != 3) OK = Standard_False;  break;
-    case 13 : if (nv != 1) OK = Standard_False;  break;
-    case 14 : if (nv != 1) OK = Standard_False;  break;
-    case 15 : if (nv != 3) OK = Standard_False;  break;
-    case 16 : if (nv != 1) OK = Standard_False;  break;
-    case 17 : if (nv != 3) OK = Standard_False;  break;
-    case 18 : if (nv != 3) OK = Standard_False;  break;
-    case 19 : if (nv != 3) OK = Standard_False;  break;
-    case 20 : if (nv != 3) OK = Standard_False;  break;
-    case 21 : if (nv != 3) OK = Standard_False;  break;
-    case 22 : if (nv != 3) OK = Standard_False;  break;
-    case 23 : if (nv != 6) OK = Standard_False;  break;
-    case 24 : if (nv != 6) OK = Standard_False;  break;
-    case 25 : if (nv != 6) OK = Standard_False;  break;
-    case 26 : if (nv != 6) OK = Standard_False;  break;
-    case 27 : if (nv != 6) OK = Standard_False;  break;
-    case 28 : if (nv != 6) OK = Standard_False;  break;
-    case 29 : if (nv != 9) OK = Standard_False;  break;
-    case 30 : if (nv != 9) OK = Standard_False;  break;
-    case 31 : if (nv != 9) OK = Standard_False;  break;
-    case 32 : if (nv != 9) OK = Standard_False;  break;
-    case 33 : if (nv != 9) OK = Standard_False;  break;
-    case 34 : if (nv != 9) OK = Standard_False;  break;
-    default : ach->AddFail("Incorrect Form Number");    break;
-  }
-  if (!OK) ach->AddFail
-    ("Incorrect count of real values in array V for FEM node");
-}
-
 void  IGESAppli_ToolNodalResults::OwnDump
   (const Handle(IGESAppli_NodalResults)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
index 5ad236c8c690c2cba1285d126917c22acd9066e9..6aa7802e995d74c2464911235354dc76a76bd902 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESAppli_ToolNodalResults 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolNodalResults, ready to work
-  Standard_EXPORT IGESAppli_ToolNodalResults();
+  IGESAppli_ToolNodalResults() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESAppli_NodalResults)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a NodalResults <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESAppli_NodalResults)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESAppli_NodalResults)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESAppli_NodalResults)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESAppli_NodalResults)& entfrom, const Handle(IGESAppli_NodalResults)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESAppli_NodalResults)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESAppli_ToolNodalResults_HeaderFile
index ef02017fe64b2896c355eb10bc94649c96254d60..e3eb11ff79f86ff65d0ab7d7e2f855450f49908d 100644 (file)
 #include <IGESData_ParamReader.hxx>
 #include <IGESGeom_TransformationMatrix.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESAppli_ToolNode::IGESAppli_ToolNode ()    {  }
-
 
 void  IGESAppli_ToolNode::ReadOwnParams
   (const Handle(IGESAppli_Node)& ent,
@@ -66,23 +63,6 @@ void  IGESAppli_ToolNode::WriteOwnParams
   IW.Send(ent->System());
 }
 
-void  IGESAppli_ToolNode::OwnShared
-  (const Handle(IGESAppli_Node)& ent, Interface_EntityIterator& iter) const
-{
-  iter.GetOneItem(ent->System());
-}
-
-void  IGESAppli_ToolNode::OwnCopy
-  (const Handle(IGESAppli_Node)& another,
-   const Handle(IGESAppli_Node)& ent, Interface_CopyTool& TC) const
-{
-  gp_XYZ aCoord = (another->Coord()).XYZ();
-  DeclareAndCast(IGESGeom_TransformationMatrix,aSystem,
-                TC.Transferred(another->System()));
-
-  ent->Init(aCoord,aSystem);
-}
-
 IGESData_DirChecker  IGESAppli_ToolNode::DirChecker
   (const Handle(IGESAppli_Node)& /*ent*/ ) const
 {
@@ -95,19 +75,6 @@ IGESData_DirChecker  IGESAppli_ToolNode::DirChecker
   return DC;
 }
 
-void  IGESAppli_ToolNode::OwnCheck
-  (const Handle(IGESAppli_Node)& ent,
-   const Interface_ShareTool& , Handle(Interface_Check)& ach) const
-{
-  if (!ent->HasSubScriptNumber())
-    ach->AddFail("SubScript Number expected (for Node Number) not present");
-  if (!ent->HasTransf())
-    ach->AddFail("Transformation Matrix expected, not present");
-  if (!ent->System().IsNull())
-    if (ent->System()->FormNumber() < 10)
-      ach->AddFail("System : Incorrect FormNumber (not 10-11-12)");
-}
-
 void  IGESAppli_ToolNode::OwnDump
   (const Handle(IGESAppli_Node)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
index e31b1b9feb98b86d62545696f0e351003a9b6f2d..91e6d8f8ef5b804350ac62bc374a857da977a03d 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESAppli_ToolNode 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolNode, ready to work
-  Standard_EXPORT IGESAppli_ToolNode();
+  IGESAppli_ToolNode() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESAppli_Node)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a Node <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESAppli_Node)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESAppli_Node)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESAppli_Node)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESAppli_Node)& entfrom, const Handle(IGESAppli_Node)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESAppli_Node)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESAppli_ToolNode_HeaderFile
index 0b29ab98c75d76ea4b7d482b410f93891579e14d..9ad3a18789eafa49b50677ded3b23ce4387aa954 100644 (file)
@@ -26,7 +26,6 @@
 #include <IGESData_ParamCursor.hxx>
 #include <IGESData_ParamReader.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -35,8 +34,6 @@
 #include <TCollection_HAsciiString.hxx>
 #include <TColStd_HArray1OfInteger.hxx>
 
-IGESAppli_ToolPWBArtworkStackup::IGESAppli_ToolPWBArtworkStackup ()    {  }
-
 
 void  IGESAppli_ToolPWBArtworkStackup::ReadOwnParams
   (const Handle(IGESAppli_PWBArtworkStackup)& ent,
@@ -71,26 +68,6 @@ void  IGESAppli_ToolPWBArtworkStackup::WriteOwnParams
     IW.Send(ent->LevelNumber(i));
 }
 
-void  IGESAppli_ToolPWBArtworkStackup::OwnShared
-  (const Handle(IGESAppli_PWBArtworkStackup)& /* ent */, Interface_EntityIterator& /* iter */) const
-{
-}
-
-void  IGESAppli_ToolPWBArtworkStackup::OwnCopy
-  (const Handle(IGESAppli_PWBArtworkStackup)& another,
-   const Handle(IGESAppli_PWBArtworkStackup)& ent, Interface_CopyTool& /* TC */) const
-{
-  Standard_Integer num = another->NbLevelNumbers();
-  Standard_Integer tempNbPropertyValues = another->NbPropertyValues();
-  Handle(TCollection_HAsciiString) tempArtworkStackupIdent =
-    new TCollection_HAsciiString(another->Identification());
-  Handle(TColStd_HArray1OfInteger) tempLevelNumbers =
-    new TColStd_HArray1OfInteger(1, num);
-  for ( Standard_Integer i = 1; i <= num; i++ )
-    tempLevelNumbers->SetValue(i, another->LevelNumber(i));
-  ent->Init(tempNbPropertyValues, tempArtworkStackupIdent, tempLevelNumbers);
-}
-
 IGESData_DirChecker  IGESAppli_ToolPWBArtworkStackup::DirChecker
   (const Handle(IGESAppli_PWBArtworkStackup)& /* ent */ ) const
 {
@@ -106,12 +83,6 @@ IGESData_DirChecker  IGESAppli_ToolPWBArtworkStackup::DirChecker
   return DC;
 }
 
-void  IGESAppli_ToolPWBArtworkStackup::OwnCheck
-  (const Handle(IGESAppli_PWBArtworkStackup)& /* ent */,
-   const Interface_ShareTool& , Handle(Interface_Check)& /* ach */) const
-{
-}
-
 void  IGESAppli_ToolPWBArtworkStackup::OwnDump
   (const Handle(IGESAppli_PWBArtworkStackup)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
index ea1bcc7f9cc05e22178dba1b6225c8c2768c84e9..3184e395a9a828aa8fcf65ceb6f6e587fd8dd7a8 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESAppli_ToolPWBArtworkStackup 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolPWBArtworkStackup, ready to work
-  Standard_EXPORT IGESAppli_ToolPWBArtworkStackup();
+  IGESAppli_ToolPWBArtworkStackup() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESAppli_PWBArtworkStackup)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a PWBArtworkStackup <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESAppli_PWBArtworkStackup)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESAppli_PWBArtworkStackup)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESAppli_PWBArtworkStackup)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESAppli_PWBArtworkStackup)& entfrom, const Handle(IGESAppli_PWBArtworkStackup)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESAppli_PWBArtworkStackup)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESAppli_ToolPWBArtworkStackup_HeaderFile
index c0a40dea98a7942f0f03d1929017cddfa45e1ddc..8fa90ec251f0d9ed778844f78735742d262ada9a 100644 (file)
 #include <IGESData_ParamCursor.hxx>
 #include <IGESData_ParamReader.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESAppli_ToolPWBDrilledHole::IGESAppli_ToolPWBDrilledHole ()    {  }
-
 
 void  IGESAppli_ToolPWBDrilledHole::ReadOwnParams
   (const Handle(IGESAppli_PWBDrilledHole)& ent,
@@ -66,19 +63,6 @@ void  IGESAppli_ToolPWBDrilledHole::WriteOwnParams
   IW.Send(ent->FunctionCode());
 }
 
-void  IGESAppli_ToolPWBDrilledHole::OwnShared
-  (const Handle(IGESAppli_PWBDrilledHole)& /*ent*/, Interface_EntityIterator& /*iter*/) const
-{
-}
-
-void  IGESAppli_ToolPWBDrilledHole::OwnCopy
-  (const Handle(IGESAppli_PWBDrilledHole)& another,
-   const Handle(IGESAppli_PWBDrilledHole)& ent, Interface_CopyTool& /*TC*/) const
-{
-  ent->Init (3,another->DrillDiameterSize(),another->FinishDiameterSize(),
-            another->FunctionCode());
-}
-
 Standard_Boolean  IGESAppli_ToolPWBDrilledHole::OwnCorrect
   (const Handle(IGESAppli_PWBDrilledHole)& ent) const
 {
@@ -104,18 +88,6 @@ IGESData_DirChecker  IGESAppli_ToolPWBDrilledHole::DirChecker
   return DC;
 }
 
-void  IGESAppli_ToolPWBDrilledHole::OwnCheck
-  (const Handle(IGESAppli_PWBDrilledHole)& ent,
-   const Interface_ShareTool& , Handle(Interface_Check)& ach) const
-{
-  if (ent->NbPropertyValues() != 3)
-    ach->AddFail("Number of property values != 3");
-  if ( (ent->FunctionCode() < 1) ||
-      ((ent->FunctionCode() > 5) && (ent->FunctionCode() < 5001)) ||
-      (ent->FunctionCode() > 9999))
-    ach->AddFail("Drilled Hole Function Code != 1-5,5001-9999");
-}
-
 void  IGESAppli_ToolPWBDrilledHole::OwnDump
   (const Handle(IGESAppli_PWBDrilledHole)& ent, const IGESData_IGESDumper& /*dumper*/,
    const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
index cfcb73218712d93c6657547f610bef8614efc723..b68ace770c27fcfb83031f134da91a2abcc29914 100644 (file)
@@ -32,7 +32,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -41,13 +40,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESAppli_ToolPWBDrilledHole 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolPWBDrilledHole, ready to work
-  Standard_EXPORT IGESAppli_ToolPWBDrilledHole();
+  IGESAppli_ToolPWBDrilledHole() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -56,10 +54,6 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESAppli_PWBDrilledHole)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a PWBDrilledHole <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESAppli_PWBDrilledHole)& ent, Interface_EntityIterator& iter) const;
-  
   //! Sets automatic unambiguous Correction on a PWBDrilledHole
   //! (NbPropertyValues forced to 3)
   Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESAppli_PWBDrilledHole)& ent) const;
@@ -67,36 +61,8 @@ public:
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESAppli_PWBDrilledHole)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESAppli_PWBDrilledHole)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESAppli_PWBDrilledHole)& entfrom, const Handle(IGESAppli_PWBDrilledHole)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESAppli_PWBDrilledHole)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESAppli_ToolPWBDrilledHole_HeaderFile
index d09a4fd58e5b245310f2555fe13c85fb7604e2bb..f783e594c0997654153426657fae65179b7facd8 100644 (file)
@@ -26,7 +26,6 @@
 #include <IGESData_ParamCursor.hxx>
 #include <IGESData_ParamReader.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -34,8 +33,6 @@
 #include <Standard_DomainError.hxx>
 #include <TCollection_HAsciiString.hxx>
 
-IGESAppli_ToolPartNumber::IGESAppli_ToolPartNumber ()    {  }
-
 
 void  IGESAppli_ToolPartNumber::ReadOwnParams
   (const Handle(IGESAppli_PartNumber)& ent,
@@ -73,28 +70,6 @@ void  IGESAppli_ToolPartNumber::WriteOwnParams
   IW.Send(ent->InternalNumber());
 }
 
-void  IGESAppli_ToolPartNumber::OwnShared
-  (const Handle(IGESAppli_PartNumber)& /* ent */, Interface_EntityIterator& /* iter */) const
-{
-}
-
-void  IGESAppli_ToolPartNumber::OwnCopy
-  (const Handle(IGESAppli_PartNumber)& another,
-   const Handle(IGESAppli_PartNumber)& ent, Interface_CopyTool& /* TC */) const
-{
-  Standard_Integer tempNbPropertyValues = another->NbPropertyValues();
-  Handle(TCollection_HAsciiString) tempGenericNumber  =
-    new TCollection_HAsciiString(another->GenericNumber());
-  Handle(TCollection_HAsciiString) tempMilitaryNumber =
-    new TCollection_HAsciiString(another->MilitaryNumber());
-  Handle(TCollection_HAsciiString) tempVendorNumber   =
-    new TCollection_HAsciiString(another->VendorNumber());
-  Handle(TCollection_HAsciiString) tempInternalNumber =
-    new TCollection_HAsciiString(another->InternalNumber());
-  ent->Init(tempNbPropertyValues, tempGenericNumber, tempMilitaryNumber,
-           tempVendorNumber,     tempInternalNumber);
-}
-
 Standard_Boolean  IGESAppli_ToolPartNumber::OwnCorrect
   (const Handle(IGESAppli_PartNumber)& ent) const
 {
@@ -120,14 +95,6 @@ IGESData_DirChecker  IGESAppli_ToolPartNumber::DirChecker
   return DC;
 }
 
-void  IGESAppli_ToolPartNumber::OwnCheck
-  (const Handle(IGESAppli_PartNumber)& ent,
-   const Interface_ShareTool& , Handle(Interface_Check)& ach) const
-{
-  if (ent->NbPropertyValues() != 4)
-    ach->AddFail("Number of property values != 4");
-}
-
 void  IGESAppli_ToolPartNumber::OwnDump
   (const Handle(IGESAppli_PartNumber)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
index 78668b8bdc9acaa61b444d5b78f08827875f2231..ac3686569bd3dce60a3480db59587a9d7d2cba25 100644 (file)
@@ -32,7 +32,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -41,13 +40,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESAppli_ToolPartNumber 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolPartNumber, ready to work
-  Standard_EXPORT IGESAppli_ToolPartNumber();
+  IGESAppli_ToolPartNumber() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -56,10 +54,6 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESAppli_PartNumber)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a PartNumber <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESAppli_PartNumber)& ent, Interface_EntityIterator& iter) const;
-  
   //! Sets automatic unambiguous Correction on a PartNumber
   //! (NbPropertyValues forced to 4)
   Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESAppli_PartNumber)& ent) const;
@@ -67,36 +61,8 @@ public:
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESAppli_PartNumber)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESAppli_PartNumber)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESAppli_PartNumber)& entfrom, const Handle(IGESAppli_PartNumber)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESAppli_PartNumber)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESAppli_ToolPartNumber_HeaderFile
index 57804f396e53658035d61f15a684abbcb6ffbf9a..3307179beb825739a87a53396ae4d8f27a7d1609 100644 (file)
@@ -27,7 +27,6 @@
 #include <IGESData_ParamCursor.hxx>
 #include <IGESData_ParamReader.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -35,8 +34,6 @@
 #include <Standard_DomainError.hxx>
 #include <TCollection_HAsciiString.hxx>
 
-IGESAppli_ToolPinNumber::IGESAppli_ToolPinNumber ()    {  }
-
 
 void  IGESAppli_ToolPinNumber::ReadOwnParams
   (const Handle(IGESAppli_PinNumber)& ent,
@@ -61,22 +58,6 @@ void  IGESAppli_ToolPinNumber::WriteOwnParams
   IW.Send(ent->PinNumberVal());
 }
 
-void  IGESAppli_ToolPinNumber::OwnShared
-  (const Handle(IGESAppli_PinNumber)& /* ent */, Interface_EntityIterator& /* iter */) const
-{
-}
-
-void  IGESAppli_ToolPinNumber::OwnCopy
-  (const Handle(IGESAppli_PinNumber)& another,
-   const Handle(IGESAppli_PinNumber)& ent, Interface_CopyTool& /* TC */) const
-{
-  Standard_Integer aNbPropertyValues;
-  Handle(TCollection_HAsciiString) aPinNumber =
-    new TCollection_HAsciiString(another->PinNumberVal());
-  aNbPropertyValues = another->NbPropertyValues();
-  ent->Init(aNbPropertyValues,aPinNumber);
-}
-
 Standard_Boolean  IGESAppli_ToolPinNumber::OwnCorrect
   (const Handle(IGESAppli_PinNumber)& ent) const
 {
@@ -100,20 +81,6 @@ IGESData_DirChecker  IGESAppli_ToolPinNumber::DirChecker
   return DC;
 }
 
-void  IGESAppli_ToolPinNumber::OwnCheck
-  (const Handle(IGESAppli_PinNumber)& ent,
-   const Interface_ShareTool& , Handle(Interface_Check)& ach) const
-{
-  if (ent->SubordinateStatus() != 0)
-    if (ent->DefLevel() != IGESData_DefOne &&
-       ent->DefLevel() != IGESData_DefSeveral)
-      ach->AddFail("Level type: Incorrect");
-  if (ent->NbPropertyValues() != 1)
-    ach->AddFail("Number of Property Values != 1");
-  //UNFINISHED
-  //Level to be ignored if the property is subordinate -- queried
-}
-
 void  IGESAppli_ToolPinNumber::OwnDump
   (const Handle(IGESAppli_PinNumber)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
index 1ef373f48149f36db49b3a147d49cf1236dbdc0e..755dd42d68744ee031772ac475b15beb4e3a08cf 100644 (file)
@@ -32,7 +32,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -41,13 +40,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESAppli_ToolPinNumber 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolPinNumber, ready to work
-  Standard_EXPORT IGESAppli_ToolPinNumber();
+  IGESAppli_ToolPinNumber() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -56,10 +54,6 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESAppli_PinNumber)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a PinNumber <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESAppli_PinNumber)& ent, Interface_EntityIterator& iter) const;
-  
   //! Sets automatic unambiguous Correction on a PinNumber
   //! (Level cleared in D.E. if Subordinate != 0)
   Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESAppli_PinNumber)& ent) const;
@@ -67,36 +61,8 @@ public:
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESAppli_PinNumber)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESAppli_PinNumber)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESAppli_PinNumber)& entfrom, const Handle(IGESAppli_PinNumber)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESAppli_PinNumber)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESAppli_ToolPinNumber_HeaderFile
index 35d9f0951c6ad83e2a69fbd267704a9983b85981..187af27fac26c1089cc0880de3d45206c8d3e0b1 100644 (file)
@@ -32,7 +32,6 @@
 #include <IGESGraph_HArray1OfTextDisplayTemplate.hxx>
 #include <IGESGraph_TextDisplayTemplate.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_HArray1OfHAsciiString.hxx>
 #include <Interface_Macros.hxx>
@@ -41,8 +40,6 @@
 #include <Standard_DomainError.hxx>
 #include <TCollection_HAsciiString.hxx>
 
-IGESAppli_ToolPipingFlow::IGESAppli_ToolPipingFlow ()    {  }
-
 
 void  IGESAppli_ToolPipingFlow::ReadOwnParams
   (const Handle(IGESAppli_PipingFlow)& ent,
@@ -170,85 +167,6 @@ void  IGESAppli_ToolPipingFlow::WriteOwnParams
     IW.Send(ent->ContFlowAssociativity(i));
 }
 
-void  IGESAppli_ToolPipingFlow::OwnShared
-  (const Handle(IGESAppli_PipingFlow)& ent, Interface_EntityIterator& iter) const
-{
-  Standard_Integer i, num;
-  for ( num = ent->NbFlowAssociativities(), i = 1; i <= num; i++ )
-    iter.GetOneItem(ent->FlowAssociativity(i));
-  for ( num = ent->NbConnectPoints(), i = 1; i <= num; i++ )
-    iter.GetOneItem(ent->ConnectPoint(i));
-  for ( num = ent->NbJoins(), i = 1; i <= num; i++ )
-    iter.GetOneItem(ent->Join(i));
-  for ( num = ent->NbTextDisplayTemplates(), i = 1; i <= num; i++ )
-    iter.GetOneItem(ent->TextDisplayTemplate(i));
-  for ( num = ent->NbContFlowAssociativities(), i = 1; i <= num; i++ )
-    iter.GetOneItem(ent->ContFlowAssociativity(i));
-}
-
-void  IGESAppli_ToolPipingFlow::OwnCopy
-  (const Handle(IGESAppli_PipingFlow)& another,
-   const Handle(IGESAppli_PipingFlow)& ent, Interface_CopyTool& TC) const
-{
-  Standard_Integer tempNbContextFlags = another->NbContextFlags();
-  Standard_Integer tempTypeOfFlow = another->TypeOfFlow();
-  Standard_Integer i, num;
-  num = another->NbFlowAssociativities();
-  Handle(IGESData_HArray1OfIGESEntity) tempFlowAssocs =
-    new IGESData_HArray1OfIGESEntity(1, num);
-  for ( i = 1; i <= num; i++ )
-    {
-      DeclareAndCast(IGESData_IGESEntity, new_item,
-                    TC.Transferred(another->FlowAssociativity(i)));
-      tempFlowAssocs->SetValue(i, new_item);
-    }
-  num = another->NbConnectPoints();
-  Handle(IGESDraw_HArray1OfConnectPoint) tempConnectPoints =
-    new IGESDraw_HArray1OfConnectPoint(1, num);
-  for ( i = 1; i <= num; i++ )
-    {
-      DeclareAndCast(IGESDraw_ConnectPoint, new_item,
-                    TC.Transferred(another->ConnectPoint(i)));
-      tempConnectPoints->SetValue(i, new_item);
-    }
-  num = another->NbJoins();
-  Handle(IGESData_HArray1OfIGESEntity) tempJoins =
-    new IGESData_HArray1OfIGESEntity(1, num);
-  for ( i = 1; i <= num; i++ )
-    {
-      DeclareAndCast(IGESData_IGESEntity, new_item,
-                    TC.Transferred(another->Join(i)));
-      tempJoins->SetValue(i, new_item);
-    }
-  num = another->NbFlowNames();
-  Handle(Interface_HArray1OfHAsciiString) tempFlowNames =
-    new Interface_HArray1OfHAsciiString(1, num);
-  for ( i = 1; i <= num; i++ )
-    tempFlowNames->SetValue
-      (i, new TCollection_HAsciiString(another->FlowName(i)));
-  num = another->NbTextDisplayTemplates();
-  Handle(IGESGraph_HArray1OfTextDisplayTemplate) tempTextDisplayTemplates =
-    new IGESGraph_HArray1OfTextDisplayTemplate(1, num);
-  for ( i = 1; i <= num; i++ )
-    {
-      DeclareAndCast(IGESGraph_TextDisplayTemplate, new_item,
-                    TC.Transferred(another->TextDisplayTemplate(i)));
-      tempTextDisplayTemplates->SetValue(i, new_item);
-    }
-  num = another->NbContFlowAssociativities();
-  Handle(IGESData_HArray1OfIGESEntity) tempContFlowAssocs =
-    new IGESData_HArray1OfIGESEntity(1, num);
-  for ( i = 1; i <= num; i++ )
-    {
-      DeclareAndCast(IGESData_IGESEntity, new_item,
-                    TC.Transferred(another->ContFlowAssociativity(i)));
-      tempContFlowAssocs->SetValue(i, new_item);
-    }
-  ent->Init (tempNbContextFlags, tempTypeOfFlow, tempFlowAssocs,
-            tempConnectPoints,  tempJoins, tempFlowNames,
-            tempTextDisplayTemplates, tempContFlowAssocs);
-}
-
 Standard_Boolean  IGESAppli_ToolPipingFlow::OwnCorrect
   (const Handle(IGESAppli_PipingFlow)& ent) const
 {
@@ -270,16 +188,6 @@ IGESData_DirChecker  IGESAppli_ToolPipingFlow::DirChecker
   return DC;
 }
 
-void  IGESAppli_ToolPipingFlow::OwnCheck
-  (const Handle(IGESAppli_PipingFlow)& ent,
-   const Interface_ShareTool& , Handle(Interface_Check)& ach) const
-{
-  if (ent->NbContextFlags() != 1)
-    ach->AddFail("Number of Context Flags != 1");
-  if ((ent->TypeOfFlow() < 0) || (ent->TypeOfFlow() > 2))
-    ach->AddFail("Type of Flow != 0,1,2");
-}
-
 void  IGESAppli_ToolPipingFlow::OwnDump
   (const Handle(IGESAppli_PipingFlow)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
index 3e40b4119c5c626a9bb2861977ade7adb8873f86..de236af0abcdadb7b1c92db261a6c4675b3067d7 100644 (file)
@@ -32,7 +32,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -41,13 +40,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESAppli_ToolPipingFlow 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolPipingFlow, ready to work
-  Standard_EXPORT IGESAppli_ToolPipingFlow();
+  IGESAppli_ToolPipingFlow() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -56,10 +54,6 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESAppli_PipingFlow)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a PipingFlow <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESAppli_PipingFlow)& ent, Interface_EntityIterator& iter) const;
-  
   //! Sets automatic unambiguous Correction on a PipingFlow
   //! (NbContextFlags forced to 1)
   Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESAppli_PipingFlow)& ent) const;
@@ -67,36 +61,8 @@ public:
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESAppli_PipingFlow)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESAppli_PipingFlow)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESAppli_PipingFlow)& entfrom, const Handle(IGESAppli_PipingFlow)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESAppli_PipingFlow)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESAppli_ToolPipingFlow_HeaderFile
index a8d1aaac8420788ea8ff8da6fb8a9b40d2079cc6..4abc29f7fdd76dc28f255bfbefa8151ea60505fb 100644 (file)
@@ -27,7 +27,6 @@
 #include <IGESData_ParamCursor.hxx>
 #include <IGESData_ParamReader.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -35,8 +34,6 @@
 #include <Standard_DomainError.hxx>
 #include <TCollection_HAsciiString.hxx>
 
-IGESAppli_ToolReferenceDesignator::IGESAppli_ToolReferenceDesignator ()    {  }
-
 
 void  IGESAppli_ToolReferenceDesignator::ReadOwnParams
   (const Handle(IGESAppli_ReferenceDesignator)& ent,
@@ -61,22 +58,6 @@ void  IGESAppli_ToolReferenceDesignator::WriteOwnParams
   IW.Send(ent->RefDesignatorText());
 }
 
-void  IGESAppli_ToolReferenceDesignator::OwnShared
-  (const Handle(IGESAppli_ReferenceDesignator)& /* ent */, Interface_EntityIterator& /* iter */) const
-{
-}
-
-void  IGESAppli_ToolReferenceDesignator::OwnCopy
-  (const Handle(IGESAppli_ReferenceDesignator)& another,
-   const Handle(IGESAppli_ReferenceDesignator)& ent, Interface_CopyTool& /* TC */) const
-{
-  Standard_Integer aNbPropertyValues;
-  Handle(TCollection_HAsciiString) aReferenceDesignator =
-    new TCollection_HAsciiString(another->RefDesignatorText());
-  aNbPropertyValues = another->NbPropertyValues();
-  ent->Init(aNbPropertyValues,aReferenceDesignator);
-}
-
 Standard_Boolean  IGESAppli_ToolReferenceDesignator::OwnCorrect
   (const Handle(IGESAppli_ReferenceDesignator)& ent) const
 {
@@ -104,21 +85,6 @@ IGESData_DirChecker  IGESAppli_ToolReferenceDesignator::DirChecker
   return DC;
 }
 
-void  IGESAppli_ToolReferenceDesignator::OwnCheck
-  (const Handle(IGESAppli_ReferenceDesignator)& ent,
-   const Interface_ShareTool& , Handle(Interface_Check)& ach) const
-{
-  if (ent->SubordinateStatus() != 0)
-    //the level is ignored if this property is subordinate
-    if (ent->DefLevel() != IGESData_DefOne &&
-       ent->DefLevel() != IGESData_DefSeveral)
-      ach->AddFail("Level type: Not value/reference");
-  if (ent->NbPropertyValues() != 1)
-    ach->AddFail("Number of Property Values != 1");
-  //UNFINISHED
-  //the level is ignored if this property is subordinate -- queried
-}
-
 void  IGESAppli_ToolReferenceDesignator::OwnDump
   (const Handle(IGESAppli_ReferenceDesignator)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
index c47b8f3b8414950b39af408b882e6f70cc61fb3e..d6b36210b40369791ed6bc38aecf88f22f187e74 100644 (file)
@@ -32,7 +32,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -41,13 +40,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESAppli_ToolReferenceDesignator 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolReferenceDesignator, ready to work
-  Standard_EXPORT IGESAppli_ToolReferenceDesignator();
+  IGESAppli_ToolReferenceDesignator() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -56,10 +54,6 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESAppli_ReferenceDesignator)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a ReferenceDesignator <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESAppli_ReferenceDesignator)& ent, Interface_EntityIterator& iter) const;
-  
   //! Sets automatic unambiguous Correction on a ReferenceDesignator
   //! (NbPropertyValues forced to 1, Level cleared if Subordinate != 0)
   Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESAppli_ReferenceDesignator)& ent) const;
@@ -67,36 +61,8 @@ public:
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESAppli_ReferenceDesignator)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESAppli_ReferenceDesignator)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESAppli_ReferenceDesignator)& entfrom, const Handle(IGESAppli_ReferenceDesignator)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESAppli_ReferenceDesignator)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESAppli_ToolReferenceDesignator_HeaderFile
index eee4441c813dfd4f46cdfdc8e01da240bafd743e..5bd1e5fe263fcb985ee4185d80e27306aab0ad29 100644 (file)
 #include <IGESData_ParamCursor.hxx>
 #include <IGESData_ParamReader.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESAppli_ToolRegionRestriction::IGESAppli_ToolRegionRestriction ()    {  }
-
 
 void  IGESAppli_ToolRegionRestriction::ReadOwnParams
   (const Handle(IGESAppli_RegionRestriction)& ent,
@@ -62,21 +59,6 @@ void  IGESAppli_ToolRegionRestriction::WriteOwnParams
   IW.Send(ent->ElectricalCktRestriction());
 }
 
-void  IGESAppli_ToolRegionRestriction::OwnShared
-  (const Handle(IGESAppli_RegionRestriction)& /*ent*/, Interface_EntityIterator& /*iter*/) const
-{
-}
-
-void  IGESAppli_ToolRegionRestriction::OwnCopy
-  (const Handle(IGESAppli_RegionRestriction)& another,
-   const Handle(IGESAppli_RegionRestriction)& ent, Interface_CopyTool& /*TC*/) const
-{
-  ent->Init
-    (3,another->ElectricalViasRestriction(),
-     another->ElectricalComponentRestriction(),
-     another->ElectricalCktRestriction());    // nbprops = 3
-}
-
 Standard_Boolean  IGESAppli_ToolRegionRestriction::OwnCorrect
   (const Handle(IGESAppli_RegionRestriction)& ent) const
 {
@@ -104,26 +86,6 @@ IGESData_DirChecker  IGESAppli_ToolRegionRestriction::DirChecker
   return DC;
 }
 
-void  IGESAppli_ToolRegionRestriction::OwnCheck
-  (const Handle(IGESAppli_RegionRestriction)& ent,
-   const Interface_ShareTool& , Handle(Interface_Check)& ach) const
-{
-  if (ent->SubordinateStatus() != 0)
-    if (ent->DefLevel() != IGESData_DefOne &&
-       ent->DefLevel() != IGESData_DefSeveral)
-      ach->AddFail("Level type: Not value/reference");
-  if (ent->NbPropertyValues() != 3)
-    ach->AddFail("Number of Property Values != 3");
-  if (ent->ElectricalViasRestriction() < 0 || ent->ElectricalViasRestriction() > 2)
-    ach->AddFail("Incorrect value for Electrical Vias Restriction");
-  if (ent->ElectricalComponentRestriction() < 0 || ent->ElectricalComponentRestriction() > 2)
-    ach->AddFail("Incorrect value for Electrical Component Restriction");
-  if (ent->ElectricalCktRestriction() < 0 || ent->ElectricalCktRestriction() > 2)
-    ach->AddFail("Incorrect value for Electrical Circuit Restriction");
-  //UNFINISHED
-  //level ignored if this property is subordinate -- queried
-}
-
 void  IGESAppli_ToolRegionRestriction::OwnDump
   (const Handle(IGESAppli_RegionRestriction)& ent, const IGESData_IGESDumper& /*dumper*/,
    const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
index 0d12ed28f19e95dd0dbd32fd5ddec4ab3974d554..c86d2ffa3650f07e2df3d69a515ab4b4704a683a 100644 (file)
@@ -32,7 +32,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -41,13 +40,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESAppli_ToolRegionRestriction 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolRegionRestriction, ready to work
-  Standard_EXPORT IGESAppli_ToolRegionRestriction();
+  IGESAppli_ToolRegionRestriction() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -56,10 +54,6 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESAppli_RegionRestriction)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a RegionRestriction <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESAppli_RegionRestriction)& ent, Interface_EntityIterator& iter) const;
-  
   //! Sets automatic unambiguous Correction on a RegionRestriction
   //! (NbPropertyValues forced to 3, Level cleared if Subordinate != 0)
   Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESAppli_RegionRestriction)& ent) const;
@@ -67,36 +61,8 @@ public:
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESAppli_RegionRestriction)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESAppli_RegionRestriction)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESAppli_RegionRestriction)& entfrom, const Handle(IGESAppli_RegionRestriction)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESAppli_RegionRestriction)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESAppli_ToolRegionRestriction_HeaderFile
index 601a043cf976cf1e2ff8f9f4cb428a08156fae34..d4b8fb85db3abc202be2edde5ca686aab8545685 100644 (file)
 #include <Interface_GeneralLib.hxx>
 #include <Interface_ReaderLib.hxx>
 
-//  Ancillary data to work on a Package of IGES Entities with a Protocol
-//  (Modules are created and loaded in appropriate libraries, once by Init)
-static Handle(IGESBasic_Protocol) protocol;
 
-
-    void  IGESBasic::Init ()
+/*void IGESBasic::Init ()
 {
   IGESData::Init();      // usefull for Undefined Type or Erroneous Entities
+  IGESBasic::Protocol();
+}*/
+
+const Handle(IGESBasic_Protocol) & IGESBasic::Protocol ()
+{
+  static Handle(IGESBasic_Protocol) protocol;
   if (protocol.IsNull()) {
     protocol = new IGESBasic_Protocol;
     Interface_GeneralLib::SetGlobal (new IGESBasic_GeneralModule,  protocol);
@@ -38,9 +40,5 @@ static Handle(IGESBasic_Protocol) protocol;
     IGESData_WriterLib::SetGlobal   (new IGESBasic_ReadWriteModule,protocol);
     IGESData_SpecificLib::SetGlobal (new IGESBasic_SpecificModule, protocol);
   }
-}
-
-    Handle(IGESBasic_Protocol)  IGESBasic::Protocol ()
-{
   return protocol;
 }
index 349d64f3265b887446540b667950734d5b0641a5..e75d52083f1ffe195ee9951d52cd53eb7e5c1f99 100644 (file)
 #define _IGESBasic_HeaderFile
 
 #include <Standard.hxx>
-#include <Standard_DefineAlloc.hxx>
 #include <Standard_Handle.hxx>
 
 class IGESBasic_Protocol;
-class IGESBasic_SubfigureDef;
-class IGESBasic_Group;
-class IGESBasic_GroupWithoutBackP;
-class IGESBasic_SingleParent;
-class IGESBasic_ExternalRefFileIndex;
-class IGESBasic_OrderedGroup;
-class IGESBasic_OrderedGroupWithoutBackP;
-class IGESBasic_Hierarchy;
-class IGESBasic_ExternalReferenceFile;
-class IGESBasic_Name;
-class IGESBasic_AssocGroupType;
-class IGESBasic_SingularSubfigure;
-class IGESBasic_ExternalRefFileName;
-class IGESBasic_ExternalRefFile;
-class IGESBasic_ExternalRefName;
-class IGESBasic_ExternalRefLibName;
-class IGESBasic_ToolSubfigureDef;
-class IGESBasic_ToolGroup;
-class IGESBasic_ToolGroupWithoutBackP;
-class IGESBasic_ToolSingleParent;
-class IGESBasic_ToolExternalRefFileIndex;
-class IGESBasic_ToolOrderedGroup;
-class IGESBasic_ToolOrderedGroupWithoutBackP;
-class IGESBasic_ToolHierarchy;
-class IGESBasic_ToolExternalReferenceFile;
-class IGESBasic_ToolName;
-class IGESBasic_ToolAssocGroupType;
-class IGESBasic_ToolSingularSubfigure;
-class IGESBasic_ToolExternalRefFileName;
-class IGESBasic_ToolExternalRefFile;
-class IGESBasic_ToolExternalRefName;
-class IGESBasic_ToolExternalRefLibName;
-class IGESBasic_Protocol;
-class IGESBasic_ReadWriteModule;
-class IGESBasic_GeneralModule;
-class IGESBasic_SpecificModule;
-class IGESBasic_HArray1OfHArray1OfInteger;
-class IGESBasic_HArray1OfHArray1OfReal;
-class IGESBasic_HArray1OfHArray1OfXY;
-class IGESBasic_HArray1OfHArray1OfXYZ;
-class IGESBasic_HArray1OfHArray1OfIGESEntity;
 
 
 //! This package represents basic entities from IGES
 class IGESBasic 
 {
-public:
-
-  DEFINE_STANDARD_ALLOC
+ public:
 
-  
   //! Prepares dynqmic data (Protocol, Modules) for this package
-  Standard_EXPORT static void Init();
+  //Standard_EXPORT static void Init();
   
   //! Returns the Protocol for this Package
-  Standard_EXPORT static Handle(IGESBasic_Protocol) Protocol();
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-friend class IGESBasic_SubfigureDef;
-friend class IGESBasic_Group;
-friend class IGESBasic_GroupWithoutBackP;
-friend class IGESBasic_SingleParent;
-friend class IGESBasic_ExternalRefFileIndex;
-friend class IGESBasic_OrderedGroup;
-friend class IGESBasic_OrderedGroupWithoutBackP;
-friend class IGESBasic_Hierarchy;
-friend class IGESBasic_ExternalReferenceFile;
-friend class IGESBasic_Name;
-friend class IGESBasic_AssocGroupType;
-friend class IGESBasic_SingularSubfigure;
-friend class IGESBasic_ExternalRefFileName;
-friend class IGESBasic_ExternalRefFile;
-friend class IGESBasic_ExternalRefName;
-friend class IGESBasic_ExternalRefLibName;
-friend class IGESBasic_ToolSubfigureDef;
-friend class IGESBasic_ToolGroup;
-friend class IGESBasic_ToolGroupWithoutBackP;
-friend class IGESBasic_ToolSingleParent;
-friend class IGESBasic_ToolExternalRefFileIndex;
-friend class IGESBasic_ToolOrderedGroup;
-friend class IGESBasic_ToolOrderedGroupWithoutBackP;
-friend class IGESBasic_ToolHierarchy;
-friend class IGESBasic_ToolExternalReferenceFile;
-friend class IGESBasic_ToolName;
-friend class IGESBasic_ToolAssocGroupType;
-friend class IGESBasic_ToolSingularSubfigure;
-friend class IGESBasic_ToolExternalRefFileName;
-friend class IGESBasic_ToolExternalRefFile;
-friend class IGESBasic_ToolExternalRefName;
-friend class IGESBasic_ToolExternalRefLibName;
-friend class IGESBasic_Protocol;
-friend class IGESBasic_ReadWriteModule;
-friend class IGESBasic_GeneralModule;
-friend class IGESBasic_SpecificModule;
-friend class IGESBasic_HArray1OfHArray1OfInteger;
-friend class IGESBasic_HArray1OfHArray1OfReal;
-friend class IGESBasic_HArray1OfHArray1OfXY;
-friend class IGESBasic_HArray1OfHArray1OfXYZ;
-friend class IGESBasic_HArray1OfHArray1OfIGESEntity;
-
+  Standard_EXPORT static const Handle(IGESBasic_Protocol) & Protocol();
 };
 
-
-
-
-
-
-
 #endif // _IGESBasic_HeaderFile
index 8f144ddee945e27d25fa30a5ced77c75d71570bd..d00e9be4df9e6e13eadf5ac9ce9728096bde8dac 100644 (file)
 #include <IGESData_IGESEntity.hxx>
 #include <Interface_Category.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
-#include <Standard_Transient.hxx>
-#include <Standard_Type.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESBasic_GeneralModule,IGESData_GeneralModule)
 
-//  Each Module is attached to a Protocol : it must interprete Case Numbers
-//  (arguments <CN> of various methods) in accordance to values returned by
-//  the method TypeNumber from this Protocol
-IGESBasic_GeneralModule::IGESBasic_GeneralModule ()    {  }
-
 
     void  IGESBasic_GeneralModule::OwnSharedCase
   (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent,
    Interface_EntityIterator& iter) const 
 {
   switch (CN) {
-    case  1 : {
-      DeclareAndCast(IGESBasic_AssocGroupType,anent,ent);
-      if (anent.IsNull()) return;
-      IGESBasic_ToolAssocGroupType tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
-    case  2 : {
-      DeclareAndCast(IGESBasic_ExternalRefFile,anent,ent);
-      if (anent.IsNull()) return;
-      IGESBasic_ToolExternalRefFile tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
     case  3 : {
       DeclareAndCast(IGESBasic_ExternalRefFileIndex,anent,ent);
       if (anent.IsNull()) return;
@@ -90,34 +68,6 @@ IGESBasic_GeneralModule::IGESBasic_GeneralModule ()    {  }
       tool.OwnShared(anent,iter);
     }
       break;
-    case  4 : {
-      DeclareAndCast(IGESBasic_ExternalRefFileName,anent,ent);
-      if (anent.IsNull()) return;
-      IGESBasic_ToolExternalRefFileName tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
-    case  5 : {
-      DeclareAndCast(IGESBasic_ExternalRefLibName,anent,ent);
-      if (anent.IsNull()) return;
-      IGESBasic_ToolExternalRefLibName tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
-    case  6 : {
-      DeclareAndCast(IGESBasic_ExternalRefName,anent,ent);
-      if (anent.IsNull()) return;
-      IGESBasic_ToolExternalRefName tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
-    case  7 : {
-      DeclareAndCast(IGESBasic_ExternalReferenceFile,anent,ent);
-      if (anent.IsNull()) return;
-      IGESBasic_ToolExternalReferenceFile tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
     case  8 : {
       DeclareAndCast(IGESBasic_Group,anent,ent);
       if (anent.IsNull()) return;
@@ -132,20 +82,6 @@ IGESBasic_GeneralModule::IGESBasic_GeneralModule ()    {  }
       tool.OwnShared(anent,iter);
     }
       break;
-    case 10 : {
-      DeclareAndCast(IGESBasic_Hierarchy,anent,ent);
-      if (anent.IsNull()) return;
-      IGESBasic_ToolHierarchy tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
-    case 11 : {
-      DeclareAndCast(IGESBasic_Name,anent,ent);
-      if (anent.IsNull()) return;
-      IGESBasic_ToolName tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
     case 12 : {
       DeclareAndCast(IGESBasic_OrderedGroup,anent,ent);
       if (anent.IsNull()) return;
@@ -304,20 +240,6 @@ IGESBasic_GeneralModule::IGESBasic_GeneralModule ()    {  }
       tool.OwnCheck(anent,shares,ach);
     }
       break;
-    case  2 : {
-      DeclareAndCast(IGESBasic_ExternalRefFile,anent,ent);
-      if (anent.IsNull()) return;
-      IGESBasic_ToolExternalRefFile tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
-    case  3 : {
-      DeclareAndCast(IGESBasic_ExternalRefFileIndex,anent,ent);
-      if (anent.IsNull()) return;
-      IGESBasic_ToolExternalRefFileIndex tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
     case  4 : {
       DeclareAndCast(IGESBasic_ExternalRefFileName,anent,ent);
       if (anent.IsNull()) return;
@@ -325,20 +247,6 @@ IGESBasic_GeneralModule::IGESBasic_GeneralModule ()    {  }
       tool.OwnCheck(anent,shares,ach);
     }
       break;
-    case  5 : {
-      DeclareAndCast(IGESBasic_ExternalRefLibName,anent,ent);
-      if (anent.IsNull()) return;
-      IGESBasic_ToolExternalRefLibName tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
-    case  6 : {
-      DeclareAndCast(IGESBasic_ExternalRefName,anent,ent);
-      if (anent.IsNull()) return;
-      IGESBasic_ToolExternalRefName tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
     case  7 : {
       DeclareAndCast(IGESBasic_ExternalReferenceFile,anent,ent);
       if (anent.IsNull()) return;
@@ -395,13 +303,6 @@ IGESBasic_GeneralModule::IGESBasic_GeneralModule ()    {  }
       tool.OwnCheck(anent,shares,ach);
     }
       break;
-    case 15 : {
-      DeclareAndCast(IGESBasic_SingularSubfigure,anent,ent);
-      if (anent.IsNull()) return;
-      IGESBasic_ToolSingularSubfigure tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
     case 16 : {
       DeclareAndCast(IGESBasic_SubfigureDef,anent,ent);
       if (anent.IsNull()) return;
@@ -439,130 +340,6 @@ IGESBasic_GeneralModule::IGESBasic_GeneralModule ()    {  }
   return Standard_True;
 }
 
-
-    void  IGESBasic_GeneralModule::OwnCopyCase
-  (const Standard_Integer CN,
-   const Handle(IGESData_IGESEntity)& entfrom,
-   const Handle(IGESData_IGESEntity)& entto,
-   Interface_CopyTool& TC) const 
-{
-  switch (CN) {
-    case  1 : {
-      DeclareAndCast(IGESBasic_AssocGroupType,enfr,entfrom);
-      DeclareAndCast(IGESBasic_AssocGroupType,ento,entto);
-      IGESBasic_ToolAssocGroupType tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  2 : {
-      DeclareAndCast(IGESBasic_ExternalRefFile,enfr,entfrom);
-      DeclareAndCast(IGESBasic_ExternalRefFile,ento,entto);
-      IGESBasic_ToolExternalRefFile tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  3 : {
-      DeclareAndCast(IGESBasic_ExternalRefFileIndex,enfr,entfrom);
-      DeclareAndCast(IGESBasic_ExternalRefFileIndex,ento,entto);
-      IGESBasic_ToolExternalRefFileIndex tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  4 : {
-      DeclareAndCast(IGESBasic_ExternalRefFileName,enfr,entfrom);
-      DeclareAndCast(IGESBasic_ExternalRefFileName,ento,entto);
-      IGESBasic_ToolExternalRefFileName tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  5 : {
-      DeclareAndCast(IGESBasic_ExternalRefLibName,enfr,entfrom);
-      DeclareAndCast(IGESBasic_ExternalRefLibName,ento,entto);
-      IGESBasic_ToolExternalRefLibName tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  6 : {
-      DeclareAndCast(IGESBasic_ExternalRefName,enfr,entfrom);
-      DeclareAndCast(IGESBasic_ExternalRefName,ento,entto);
-      IGESBasic_ToolExternalRefName tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  7 : {
-      DeclareAndCast(IGESBasic_ExternalReferenceFile,enfr,entfrom);
-      DeclareAndCast(IGESBasic_ExternalReferenceFile,ento,entto);
-      IGESBasic_ToolExternalReferenceFile tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  8 : {
-      DeclareAndCast(IGESBasic_Group,enfr,entfrom);
-      DeclareAndCast(IGESBasic_Group,ento,entto);
-      IGESBasic_ToolGroup tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  9 : {
-      DeclareAndCast(IGESBasic_GroupWithoutBackP,enfr,entfrom);
-      DeclareAndCast(IGESBasic_GroupWithoutBackP,ento,entto);
-      IGESBasic_ToolGroupWithoutBackP tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 10 : {
-      DeclareAndCast(IGESBasic_Hierarchy,enfr,entfrom);
-      DeclareAndCast(IGESBasic_Hierarchy,ento,entto);
-      IGESBasic_ToolHierarchy tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 11 : {
-      DeclareAndCast(IGESBasic_Name,enfr,entfrom);
-      DeclareAndCast(IGESBasic_Name,ento,entto);
-      IGESBasic_ToolName tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 12 : {
-      DeclareAndCast(IGESBasic_OrderedGroup,enfr,entfrom);
-      DeclareAndCast(IGESBasic_OrderedGroup,ento,entto);
-      IGESBasic_ToolOrderedGroup tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 13 : {
-      DeclareAndCast(IGESBasic_OrderedGroupWithoutBackP,enfr,entfrom);
-      DeclareAndCast(IGESBasic_OrderedGroupWithoutBackP,ento,entto);
-      IGESBasic_ToolOrderedGroupWithoutBackP tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 14 : {
-      DeclareAndCast(IGESBasic_SingleParent,enfr,entfrom);
-      DeclareAndCast(IGESBasic_SingleParent,ento,entto);
-      IGESBasic_ToolSingleParent tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 15 : {
-      DeclareAndCast(IGESBasic_SingularSubfigure,enfr,entfrom);
-      DeclareAndCast(IGESBasic_SingularSubfigure,ento,entto);
-      IGESBasic_ToolSingularSubfigure tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 16 : {
-      DeclareAndCast(IGESBasic_SubfigureDef,enfr,entfrom);
-      DeclareAndCast(IGESBasic_SubfigureDef,ento,entto);
-      IGESBasic_ToolSubfigureDef tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    default : break;
-  }
-}
-
     Standard_Integer  IGESBasic_GeneralModule::CategoryNumber
   (const Standard_Integer CN, const Handle(Standard_Transient)& ,
    const Interface_ShareTool& ) const
index d11fe6c0fce68fed24eee1582ed7412615bea5bb..af0a2e79ab0f78f034bfe0165403dec34394e426 100644 (file)
 #ifndef _IGESBasic_GeneralModule_HeaderFile
 #define _IGESBasic_GeneralModule_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
 #include <IGESData_GeneralModule.hxx>
-#include <Standard_Integer.hxx>
-#include <Standard_Boolean.hxx>
-class IGESData_IGESEntity;
-class Interface_EntityIterator;
-class IGESData_DirChecker;
-class Interface_ShareTool;
-class Interface_Check;
-class Standard_Transient;
-class Interface_CopyTool;
-
 
 class IGESBasic_GeneralModule;
 DEFINE_STANDARD_HANDLE(IGESBasic_GeneralModule, IGESData_GeneralModule)
@@ -39,12 +26,10 @@ DEFINE_STANDARD_HANDLE(IGESBasic_GeneralModule, IGESData_GeneralModule)
 //! This Services comprise : Shared & Implied Lists, Copy, Check
 class IGESBasic_GeneralModule : public IGESData_GeneralModule
 {
+ public:
 
-public:
-
-  
   //! Creates a GeneralModule from IGESBasic and puts it into GeneralLib
-  Standard_EXPORT IGESBasic_GeneralModule();
+  IGESBasic_GeneralModule() {}
   
   //! Lists the Entities shared by a given IGESEntity <ent>, from
   //! its specific parameters : specific for each type
@@ -61,36 +46,13 @@ public:
   //! Specific creation of a new void entity
   Standard_EXPORT Standard_Boolean NewVoid (const Standard_Integer CN, Handle(Standard_Transient)& entto) const Standard_OVERRIDE;
   
-  //! Copies parameters which are specific of each Type of Entity
-  Standard_EXPORT void OwnCopyCase (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& entfrom, const Handle(IGESData_IGESEntity)& entto, Interface_CopyTool& TC) const Standard_OVERRIDE;
-  
   //! Returns a category number which characterizes an entity
   //! Structure for Groups, Figures & Co
   //! Description for External Refs
   //! Auxiliary for other
   Standard_EXPORT virtual Standard_Integer CategoryNumber (const Standard_Integer CN, const Handle(Standard_Transient)& ent, const Interface_ShareTool& shares) const Standard_OVERRIDE;
 
-
-
-
   DEFINE_STANDARD_RTTIEXT(IGESBasic_GeneralModule,IGESData_GeneralModule)
-
-protected:
-
-
-
-
-private:
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESBasic_GeneralModule_HeaderFile
index eb5dfdd79cb90e3af0b0a2d2568aaf0c4762b7db..c2c41504a079b66287a8755561f63892aa597259 100644 (file)
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESBasic_ReadWriteModule,IGESData_ReadWriteModule)
 
-//  Each Module is attached to a Protocol : it must interprete Case Numbers
-//  (arguments <CN> of various methods) in accordance to values returned by
-//  the method TypeNumber from this Protocol
-IGESBasic_ReadWriteModule::IGESBasic_ReadWriteModule ()    {  }
-
 
     Standard_Integer  IGESBasic_ReadWriteModule::CaseIGES
   (const Standard_Integer typenum, const Standard_Integer formnum) const 
index 8075ff2e24b2f7d7ca4be10751d6b13e02159677..827146122764180aa8082d2188d7ced054c307ac 100644 (file)
 #ifndef _IGESBasic_ReadWriteModule_HeaderFile
 #define _IGESBasic_ReadWriteModule_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
 #include <IGESData_ReadWriteModule.hxx>
-#include <Standard_Integer.hxx>
-class Standard_DomainError;
 class IGESData_IGESEntity;
 class IGESData_IGESReaderData;
 class IGESData_ParamReader;
@@ -37,12 +32,10 @@ DEFINE_STANDARD_HANDLE(IGESBasic_ReadWriteModule, IGESData_ReadWriteModule)
 //! an IGESEntity.
 class IGESBasic_ReadWriteModule : public IGESData_ReadWriteModule
 {
+ public:
 
-public:
-
-  
   //! Creates a ReadWriteModule & puts it into ReaderLib & WriterLib
-  Standard_EXPORT IGESBasic_ReadWriteModule();
+  IGESBasic_ReadWriteModule() {}
   
   //! Defines Case Numbers for Entities of IGESBasic
   Standard_EXPORT Standard_Integer CaseIGES (const Standard_Integer typenum, const Standard_Integer formnum) const Standard_OVERRIDE;
@@ -53,27 +46,7 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, IGESData_IGESWriter& IW) const Standard_OVERRIDE;
 
-
-
-
   DEFINE_STANDARD_RTTIEXT(IGESBasic_ReadWriteModule,IGESData_ReadWriteModule)
-
-protected:
-
-
-
-
-private:
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESBasic_ReadWriteModule_HeaderFile
index 559293a6a95e807b237aa8312304ba9ae861811b..e5ee16a0c3a31c9a1be3f1eb12ed9db0985f3cec 100644 (file)
@@ -26,7 +26,6 @@
 #include <IGESData_ParamCursor.hxx>
 #include <IGESData_ParamReader.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -34,8 +33,6 @@
 #include <Standard_DomainError.hxx>
 #include <TCollection_HAsciiString.hxx>
 
-IGESBasic_ToolAssocGroupType::IGESBasic_ToolAssocGroupType ()    {  }
-
 
 void  IGESBasic_ToolAssocGroupType::ReadOwnParams
   (const Handle(IGESBasic_AssocGroupType)& ent,
@@ -63,22 +60,6 @@ void  IGESBasic_ToolAssocGroupType::WriteOwnParams
   IW.Send(ent->Name());
 }
 
-void  IGESBasic_ToolAssocGroupType::OwnShared
-  (const Handle(IGESBasic_AssocGroupType)& /* ent */, Interface_EntityIterator& /* iter */) const
-{
-}
-
-void  IGESBasic_ToolAssocGroupType::OwnCopy
-  (const Handle(IGESBasic_AssocGroupType)& another,
-   const Handle(IGESBasic_AssocGroupType)& ent, Interface_CopyTool& /* TC */) const
-{
-  Standard_Integer tempNbData = another->NbData();
-  Standard_Integer tempType = another->AssocType();
-  Handle(TCollection_HAsciiString) tempName =
-    new TCollection_HAsciiString(another->Name());
-  ent->Init(tempNbData, tempType, tempName);
-}
-
 Standard_Boolean  IGESBasic_ToolAssocGroupType::OwnCorrect
   (const Handle(IGESBasic_AssocGroupType)& ent) const
 {
index 49072f61c1e2b2dc56152aaa901dd268517b4a74..a88f8285582e56068c278e0214792e933956ff9f 100644 (file)
@@ -32,7 +32,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -41,13 +40,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESBasic_ToolAssocGroupType 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolAssocGroupType, ready to work
-  Standard_EXPORT IGESBasic_ToolAssocGroupType();
+  IGESBasic_ToolAssocGroupType() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -56,10 +54,6 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESBasic_AssocGroupType)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a AssocGroupType <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESBasic_AssocGroupType)& ent, Interface_EntityIterator& iter) const;
-  
   //! Sets automatic unambiguous Correction on a AssocGroupType
   //! (NbData forced to 2)
   Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESBasic_AssocGroupType)& ent) const;
@@ -70,33 +64,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESBasic_AssocGroupType)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESBasic_AssocGroupType)& entfrom, const Handle(IGESBasic_AssocGroupType)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESBasic_AssocGroupType)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESBasic_ToolAssocGroupType_HeaderFile
index 7f18d5c1428b087120d2a62aad8e5d6851ae7343..e793142ddd855d899fd54134a1312045127e8da6 100644 (file)
@@ -26,7 +26,6 @@
 #include <IGESData_ParamCursor.hxx>
 #include <IGESData_ParamReader.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -34,8 +33,6 @@
 #include <Standard_DomainError.hxx>
 #include <TCollection_HAsciiString.hxx>
 
-IGESBasic_ToolExternalRefFile::IGESBasic_ToolExternalRefFile ()    {  }
-
 
 void  IGESBasic_ToolExternalRefFile::ReadOwnParams
   (const Handle(IGESBasic_ExternalRefFile)& ent,
@@ -56,20 +53,6 @@ void  IGESBasic_ToolExternalRefFile::WriteOwnParams
   IW.Send(ent->FileId());
 }
 
-void  IGESBasic_ToolExternalRefFile::OwnShared
-  (const Handle(IGESBasic_ExternalRefFile)& /* ent */, Interface_EntityIterator& /* iter */) const
-{
-}
-
-void  IGESBasic_ToolExternalRefFile::OwnCopy
-  (const Handle(IGESBasic_ExternalRefFile)& another,
-   const Handle(IGESBasic_ExternalRefFile)& ent, Interface_CopyTool& /* TC */) const
-{
-  Handle(TCollection_HAsciiString) tempFileId =
-    new TCollection_HAsciiString(another->FileId());
-  ent->Init(tempFileId);
-}
-
 IGESData_DirChecker  IGESBasic_ToolExternalRefFile::DirChecker
   (const Handle(IGESBasic_ExternalRefFile)& /* ent */ ) const
 {
@@ -84,12 +67,6 @@ IGESData_DirChecker  IGESBasic_ToolExternalRefFile::DirChecker
   return DC;
 }
 
-void  IGESBasic_ToolExternalRefFile::OwnCheck
-  (const Handle(IGESBasic_ExternalRefFile)& /* ent */,
-   const Interface_ShareTool& , Handle(Interface_Check)& /* ach */) const
-{
-}
-
 void  IGESBasic_ToolExternalRefFile::OwnDump
   (const Handle(IGESBasic_ExternalRefFile)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
index 1cfd0e815b4c9d1194e9ecda04ac689a81149dbb..2be5094dcb2e451e554f0bc2033e81895a6440fc 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESBasic_ToolExternalRefFile 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolExternalRefFile, ready to work
-  Standard_EXPORT IGESBasic_ToolExternalRefFile();
+  IGESBasic_ToolExternalRefFile() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESBasic_ExternalRefFile)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a ExternalRefFile <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESBasic_ExternalRefFile)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESBasic_ExternalRefFile)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESBasic_ExternalRefFile)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESBasic_ExternalRefFile)& entfrom, const Handle(IGESBasic_ExternalRefFile)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESBasic_ExternalRefFile)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESBasic_ToolExternalRefFile_HeaderFile
index 55228d16d0c2634d265f71fc36d5006f1692bb36..57654437f2a2110d4ef2d49898745cb7ba442ee7 100644 (file)
@@ -28,7 +28,6 @@
 #include <IGESData_ParamCursor.hxx>
 #include <IGESData_ParamReader.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_HArray1OfHAsciiString.hxx>
 #include <Interface_Macros.hxx>
@@ -37,8 +36,6 @@
 #include <Standard_DomainError.hxx>
 #include <TCollection_HAsciiString.hxx>
 
-IGESBasic_ToolExternalRefFileIndex::IGESBasic_ToolExternalRefFileIndex ()  {  }
-
 
 void  IGESBasic_ToolExternalRefFileIndex::ReadOwnParams
   (const Handle(IGESBasic_ExternalRefFileIndex)& ent,
@@ -89,26 +86,6 @@ void  IGESBasic_ToolExternalRefFileIndex::OwnShared
     iter.GetOneItem(ent->Entity(i));
 }
 
-void  IGESBasic_ToolExternalRefFileIndex::OwnCopy
-  (const Handle(IGESBasic_ExternalRefFileIndex)& another,
-   const Handle(IGESBasic_ExternalRefFileIndex)& ent, Interface_CopyTool& TC) const
-{
-  Standard_Integer num = another->NbEntries();
-  Handle(Interface_HArray1OfHAsciiString) tempNames =
-    new Interface_HArray1OfHAsciiString(1, num);
-  Handle(IGESData_HArray1OfIGESEntity) tempEntities =
-    new IGESData_HArray1OfIGESEntity(1, num);
-  for ( Standard_Integer i = 1; i <= num; i++ )
-    {
-      tempNames->SetValue(i, new TCollection_HAsciiString
-                         (another->Name(i)));
-      DeclareAndCast(IGESData_IGESEntity, new_item,
-                    TC.Transferred(another->Entity(i)));
-      tempEntities->SetValue(i, new_item);
-    }
-  ent->Init(tempNames, tempEntities);
-}
-
 IGESData_DirChecker  IGESBasic_ToolExternalRefFileIndex::DirChecker
   (const Handle(IGESBasic_ExternalRefFileIndex)& /* ent */ ) const
 {
@@ -124,12 +101,6 @@ IGESData_DirChecker  IGESBasic_ToolExternalRefFileIndex::DirChecker
   return DC;
 }
 
-void  IGESBasic_ToolExternalRefFileIndex::OwnCheck
-  (const Handle(IGESBasic_ExternalRefFileIndex)& /* ent */,
-   const Interface_ShareTool& , Handle(Interface_Check)& /* ach */) const
-{
-}
-
 void  IGESBasic_ToolExternalRefFileIndex::OwnDump
   (const Handle(IGESBasic_ExternalRefFileIndex)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
index a35110182dd943542e22f524552100d3627ed06a..508f8c9a2f2938a4556d5c280fcc4dc4e41f3f23 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESBasic_ToolExternalRefFileIndex 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolExternalRefFileIndex, ready to work
-  Standard_EXPORT IGESBasic_ToolExternalRefFileIndex();
+  IGESBasic_ToolExternalRefFileIndex() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -62,36 +60,8 @@ public:
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESBasic_ExternalRefFileIndex)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESBasic_ExternalRefFileIndex)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESBasic_ExternalRefFileIndex)& entfrom, const Handle(IGESBasic_ExternalRefFileIndex)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESBasic_ExternalRefFileIndex)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESBasic_ToolExternalRefFileIndex_HeaderFile
index 40ccfc3e4b81e3fc2893c6b1aad07699304f08c9..62e1edd229e4566b490a785f32986bd0c27e8fc9 100644 (file)
@@ -26,7 +26,6 @@
 #include <IGESData_ParamCursor.hxx>
 #include <IGESData_ParamReader.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -34,8 +33,6 @@
 #include <Standard_DomainError.hxx>
 #include <TCollection_HAsciiString.hxx>
 
-IGESBasic_ToolExternalRefFileName::IGESBasic_ToolExternalRefFileName ()    {  }
-
 
 void  IGESBasic_ToolExternalRefFileName::ReadOwnParams
   (const Handle(IGESBasic_ExternalRefFileName)& ent,
@@ -60,22 +57,6 @@ void  IGESBasic_ToolExternalRefFileName::WriteOwnParams
   IW.Send(ent->ReferenceName());
 }
 
-void  IGESBasic_ToolExternalRefFileName::OwnShared
-  (const Handle(IGESBasic_ExternalRefFileName)& /* ent */, Interface_EntityIterator& /* iter */) const
-{
-}
-
-void  IGESBasic_ToolExternalRefFileName::OwnCopy
-  (const Handle(IGESBasic_ExternalRefFileName)& another,
-   const Handle(IGESBasic_ExternalRefFileName)& ent, Interface_CopyTool& /* TC */) const
-{
-  Handle(TCollection_HAsciiString) tempFileId  =
-    new TCollection_HAsciiString(another->FileId());
-  Handle(TCollection_HAsciiString) tempRefName =
-    new TCollection_HAsciiString(another->ReferenceName());
-  ent->Init(tempFileId, tempRefName);
-}
-
 IGESData_DirChecker  IGESBasic_ToolExternalRefFileName::DirChecker
   (const Handle(IGESBasic_ExternalRefFileName)& /* ent */ ) const
 {
index d64c188cc0ee818a0693712e5bb65a0a2287ca7f..d8406d8a9cca61404256d78dac9afe5bfae33226 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESBasic_ToolExternalRefFileName 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolExternalRefFileName, ready to work
-  Standard_EXPORT IGESBasic_ToolExternalRefFileName();
+  IGESBasic_ToolExternalRefFileName() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,14 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESBasic_ExternalRefFileName)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a ExternalRefFileName <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESBasic_ExternalRefFileName)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESBasic_ExternalRefFileName)& ent) const;
   
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESBasic_ExternalRefFileName)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESBasic_ExternalRefFileName)& entfrom, const Handle(IGESBasic_ExternalRefFileName)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESBasic_ExternalRefFileName)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESBasic_ToolExternalRefFileName_HeaderFile
index f36b7717cec709d919288478f6d976bbd9a4efff..d3a1bd3bd22a274a22082ee0045c180b3a529555 100644 (file)
@@ -26,7 +26,6 @@
 #include <IGESData_ParamCursor.hxx>
 #include <IGESData_ParamReader.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -34,8 +33,6 @@
 #include <Standard_DomainError.hxx>
 #include <TCollection_HAsciiString.hxx>
 
-IGESBasic_ToolExternalRefLibName::IGESBasic_ToolExternalRefLibName ()    {  }
-
 
 void  IGESBasic_ToolExternalRefLibName::ReadOwnParams
   (const Handle(IGESBasic_ExternalRefLibName)& ent,
@@ -59,22 +56,6 @@ void  IGESBasic_ToolExternalRefLibName::WriteOwnParams
   IW.Send(ent->ReferenceName());
 }
 
-void  IGESBasic_ToolExternalRefLibName::OwnShared
-  (const Handle(IGESBasic_ExternalRefLibName)& /* ent */, Interface_EntityIterator& /* iter */) const
-{
-}
-
-void  IGESBasic_ToolExternalRefLibName::OwnCopy
-  (const Handle(IGESBasic_ExternalRefLibName)& another,
-   const Handle(IGESBasic_ExternalRefLibName)& ent, Interface_CopyTool& /* TC */) const
-{
-  Handle(TCollection_HAsciiString) tempLibName =
-    new TCollection_HAsciiString(another->LibraryName());
-  Handle(TCollection_HAsciiString) tempRefName =
-    new TCollection_HAsciiString(another->ReferenceName());
-  ent->Init(tempLibName, tempRefName);
-}
-
 IGESData_DirChecker  IGESBasic_ToolExternalRefLibName::DirChecker
   (const Handle(IGESBasic_ExternalRefLibName)& /* ent */ ) const
 {
@@ -89,12 +70,6 @@ IGESData_DirChecker  IGESBasic_ToolExternalRefLibName::DirChecker
   return DC;
 }
 
-void  IGESBasic_ToolExternalRefLibName::OwnCheck
-  (const Handle(IGESBasic_ExternalRefLibName)& /* ent */,
-   const Interface_ShareTool& , Handle(Interface_Check)& /* ach */) const
-{
-}
-
 void  IGESBasic_ToolExternalRefLibName::OwnDump
   (const Handle(IGESBasic_ExternalRefLibName)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S,const Standard_Integer /* level */) const
index 59048e373165753062bbb7410863ea37dbd82cb0..3ae4c28f6291f823ef12e56830266fbe16755bd5 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESBasic_ToolExternalRefLibName 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolExternalRefLibName, ready to work
-  Standard_EXPORT IGESBasic_ToolExternalRefLibName();
+  IGESBasic_ToolExternalRefLibName() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESBasic_ExternalRefLibName)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a ExternalRefLibName <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESBasic_ExternalRefLibName)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESBasic_ExternalRefLibName)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESBasic_ExternalRefLibName)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESBasic_ExternalRefLibName)& entfrom, const Handle(IGESBasic_ExternalRefLibName)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESBasic_ExternalRefLibName)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESBasic_ToolExternalRefLibName_HeaderFile
index 398e696af537129e2489bdc8f8973e31a78454e8..d44f8674ad4f8c33122de76b47b14225703f907a 100644 (file)
@@ -26,7 +26,6 @@
 #include <IGESData_ParamCursor.hxx>
 #include <IGESData_ParamReader.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -34,8 +33,6 @@
 #include <Standard_DomainError.hxx>
 #include <TCollection_HAsciiString.hxx>
 
-IGESBasic_ToolExternalRefName::IGESBasic_ToolExternalRefName ()    {  }
-
 
 void  IGESBasic_ToolExternalRefName::ReadOwnParams
   (const Handle(IGESBasic_ExternalRefName)& ent,
@@ -56,20 +53,6 @@ void  IGESBasic_ToolExternalRefName::WriteOwnParams
   IW.Send(ent->ReferenceName());
 }
 
-void  IGESBasic_ToolExternalRefName::OwnShared
-  (const Handle(IGESBasic_ExternalRefName)& /* ent */, Interface_EntityIterator& /* iter */) const
-{
-}
-
-void  IGESBasic_ToolExternalRefName::OwnCopy
-  (const Handle(IGESBasic_ExternalRefName)& another,
-   const Handle(IGESBasic_ExternalRefName)& ent, Interface_CopyTool& /* TC */) const
-{
-  Handle(TCollection_HAsciiString) tempRefName =
-    new TCollection_HAsciiString(another->ReferenceName());
-  ent->Init(tempRefName);
-}
-
 IGESData_DirChecker  IGESBasic_ToolExternalRefName::DirChecker
   (const Handle(IGESBasic_ExternalRefName)& /* ent */ ) const
 {
@@ -84,12 +67,6 @@ IGESData_DirChecker  IGESBasic_ToolExternalRefName::DirChecker
   return DC;
 }
 
-void  IGESBasic_ToolExternalRefName::OwnCheck
-  (const Handle(IGESBasic_ExternalRefName)& /* ent */,
-   const Interface_ShareTool& , Handle(Interface_Check)& /* ach */) const
-{
-}
-
 void  IGESBasic_ToolExternalRefName::OwnDump
   (const Handle(IGESBasic_ExternalRefName)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
index 23aba4f052e9eb5381c007825709953b9b1678ba..6345f2f461ec465b7716d48f71d6b385fe8dd062 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESBasic_ToolExternalRefName 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolExternalRefName, ready to work
-  Standard_EXPORT IGESBasic_ToolExternalRefName();
+  IGESBasic_ToolExternalRefName() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESBasic_ExternalRefName)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a ExternalRefName <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESBasic_ExternalRefName)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESBasic_ExternalRefName)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESBasic_ExternalRefName)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESBasic_ExternalRefName)& entfrom, const Handle(IGESBasic_ExternalRefName)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESBasic_ExternalRefName)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESBasic_ToolExternalRefName_HeaderFile
index 1c453e1dfa1708d1cf4668c5a47ff8c2ab53f6ca..d50844d9a9c01b497d6044c5d2db676e274097ea 100644 (file)
@@ -26,7 +26,6 @@
 #include <IGESData_ParamCursor.hxx>
 #include <IGESData_ParamReader.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_HArray1OfHAsciiString.hxx>
 #include <Interface_Macros.hxx>
@@ -35,8 +34,6 @@
 #include <Standard_DomainError.hxx>
 #include <TCollection_HAsciiString.hxx>
 
-IGESBasic_ToolExternalReferenceFile::IGESBasic_ToolExternalReferenceFile () { }
-
 
 void  IGESBasic_ToolExternalReferenceFile::ReadOwnParams
   (const Handle(IGESBasic_ExternalReferenceFile)& ent,
@@ -64,24 +61,6 @@ void  IGESBasic_ToolExternalReferenceFile::WriteOwnParams
     IW.Send(ent->Name(i));
 }
 
-void  IGESBasic_ToolExternalReferenceFile::OwnShared
-  (const Handle(IGESBasic_ExternalReferenceFile)& /* ent */, Interface_EntityIterator& /* iter */) const
-{
-}
-
-void  IGESBasic_ToolExternalReferenceFile::OwnCopy
-  (const Handle(IGESBasic_ExternalReferenceFile)& another,
-   const Handle(IGESBasic_ExternalReferenceFile)& ent, Interface_CopyTool& /* TC */) const
-{
-  Standard_Integer num = another->NbListEntries();
-  Handle(Interface_HArray1OfHAsciiString) tempNames =
-    new Interface_HArray1OfHAsciiString(1, num);
-  for ( Standard_Integer i = 1; i <= num; i++ )
-    tempNames->SetValue(i, new TCollection_HAsciiString
-                       (another->Name(i)));
-  ent->Init(tempNames);
-}
-
 IGESData_DirChecker  IGESBasic_ToolExternalReferenceFile::DirChecker
   (const Handle(IGESBasic_ExternalReferenceFile)& /* ent */ ) const
 {
index 7e6b423ab8ef9df1dbafebb3b8a51c6310981d1e..5e2caea03cdddb857847292869e96e5722ee7777 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESBasic_ToolExternalReferenceFile 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolExternalReferenceFile, ready to work
-  Standard_EXPORT IGESBasic_ToolExternalReferenceFile();
+  IGESBasic_ToolExternalReferenceFile() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,14 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESBasic_ExternalReferenceFile)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a ExternalReferenceFile <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESBasic_ExternalReferenceFile)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESBasic_ExternalReferenceFile)& ent) const;
   
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESBasic_ExternalReferenceFile)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESBasic_ExternalReferenceFile)& entfrom, const Handle(IGESBasic_ExternalReferenceFile)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESBasic_ExternalReferenceFile)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESBasic_ToolExternalReferenceFile_HeaderFile
index 70f1b5a4591fe77faf547fd6547dd17915a3fdd7..1149fa979f1b3c4c312d460cbe3a3d284dfb1306 100644 (file)
@@ -28,7 +28,6 @@
 #include <IGESData_ParamCursor.hxx>
 #include <IGESData_ParamReader.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -36,9 +35,6 @@
 #include <Message_Msg.hxx>
 #include <Standard_DomainError.hxx>
 
-// MGE 03/08/98
-IGESBasic_ToolGroup::IGESBasic_ToolGroup ()    {  }
-
 
 void IGESBasic_ToolGroup::ReadOwnParams
   (const Handle(IGESBasic_Group)& ent,
@@ -91,24 +87,6 @@ void  IGESBasic_ToolGroup::OwnShared
     iter.GetOneItem(ent->Entity(i));
 }
 
-void  IGESBasic_ToolGroup::OwnCopy
-  (const Handle(IGESBasic_Group)& another,
-   const Handle(IGESBasic_Group)& ent, Interface_CopyTool& TC) const
-{
-  Standard_Integer lower,upper;
-  lower = 1;
-  upper = another->NbEntities();
-  Handle(IGESData_HArray1OfIGESEntity)  EntArray = new
-    IGESData_HArray1OfIGESEntity(lower,upper);
-  for (Standard_Integer i = lower;i <= upper;i++)
-    {
-      DeclareAndCast
-       (IGESData_IGESEntity,myentity,TC.Transferred(another->Entity(i)));
-      EntArray->SetValue(i,myentity);
-    }
-  ent->Init(EntArray);
-}
-
 Standard_Boolean IGESBasic_ToolGroup::OwnCorrect
   (const Handle(IGESBasic_Group)& ent )  const
 {
index be8b3644076f17a7a2d02409ea264eb3efdb056c..cc737892032afedaf65c520bcf3bd8b7b7309d60 100644 (file)
@@ -32,7 +32,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -41,13 +40,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESBasic_ToolGroup 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolGroup, ready to work
-  Standard_EXPORT IGESBasic_ToolGroup();
+  IGESBasic_ToolGroup() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -70,33 +68,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESBasic_Group)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESBasic_Group)& entfrom, const Handle(IGESBasic_Group)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESBasic_Group)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESBasic_ToolGroup_HeaderFile
index 117be5564a7092d9ee3a84fa3b33818942573f94..ec320ce6b6762d50e492032da67fb2dcd5ef77f9 100644 (file)
@@ -28,7 +28,6 @@
 #include <IGESData_ParamCursor.hxx>
 #include <IGESData_ParamReader.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -36,9 +35,6 @@
 #include <Message_Msg.hxx>
 #include <Standard_DomainError.hxx>
 
-// MGE 03/08/98
-IGESBasic_ToolGroupWithoutBackP::IGESBasic_ToolGroupWithoutBackP ()    {  }
-
 
 void  IGESBasic_ToolGroupWithoutBackP::ReadOwnParams
   (const Handle(IGESBasic_GroupWithoutBackP)& ent,
@@ -89,24 +85,6 @@ void  IGESBasic_ToolGroupWithoutBackP::OwnShared
     iter.GetOneItem(ent->Entity(i));
 }
 
-void  IGESBasic_ToolGroupWithoutBackP::OwnCopy
-  (const Handle(IGESBasic_GroupWithoutBackP)& another,
-   const Handle(IGESBasic_GroupWithoutBackP)& ent, Interface_CopyTool& TC) const
-{
-  Standard_Integer lower,upper;
-  lower = 1;
-  upper = another->NbEntities();
-  Handle(IGESData_HArray1OfIGESEntity)  EntArray = new
-    IGESData_HArray1OfIGESEntity(lower,upper);
-  for (Standard_Integer i = lower;i <= upper;i++)
-    {
-      DeclareAndCast
-       (IGESData_IGESEntity,myentity,TC.Transferred(another->Entity(i)));
-      EntArray->SetValue(i,myentity);
-    }
-  ent->Init(EntArray);
-}
-
 Standard_Boolean IGESBasic_ToolGroupWithoutBackP::OwnCorrect
   (const Handle(IGESBasic_GroupWithoutBackP)& ent )  const
 {
index ca8dd4a1e47ad0a56760aa9fa4d0b033076caf6b..07cdeaf80555aca179678185ce5d02f646c5d27a 100644 (file)
@@ -32,7 +32,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -41,13 +40,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESBasic_ToolGroupWithoutBackP 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolGroupWithoutBackP, ready to work
-  Standard_EXPORT IGESBasic_ToolGroupWithoutBackP();
+  IGESBasic_ToolGroupWithoutBackP() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -70,33 +68,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESBasic_GroupWithoutBackP)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESBasic_GroupWithoutBackP)& entfrom, const Handle(IGESBasic_GroupWithoutBackP)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESBasic_GroupWithoutBackP)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESBasic_ToolGroupWithoutBackP_HeaderFile
index 03c1a7d64a7b8341fb721a746452437adf15be3b..6be2369fb22f28fda50cfd9ed8c3c2b72811befd 100644 (file)
 #include <IGESData_ParamCursor.hxx>
 #include <IGESData_ParamReader.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESBasic_ToolHierarchy::IGESBasic_ToolHierarchy ()    {  }
-
 
 void  IGESBasic_ToolHierarchy::ReadOwnParams
   (const Handle(IGESBasic_Hierarchy)& ent,
@@ -73,20 +70,6 @@ void  IGESBasic_ToolHierarchy::WriteOwnParams
   IW.Send(ent->NewColorNum());
 }
 
-void  IGESBasic_ToolHierarchy::OwnShared
-  (const Handle(IGESBasic_Hierarchy)& /*ent*/, Interface_EntityIterator& /*iter*/) const
-{
-}
-
-void  IGESBasic_ToolHierarchy::OwnCopy
-  (const Handle(IGESBasic_Hierarchy)& another,
-   const Handle(IGESBasic_Hierarchy)& ent, Interface_CopyTool& /*TC*/) const
-{
-  ent->Init(6,another->NewLineFont(), another->NewView(),
-           another->NewEntityLevel(),another->NewBlankStatus(),
-           another->NewLineWeight(), another->NewColorNum());
-}
-
 Standard_Boolean  IGESBasic_ToolHierarchy::OwnCorrect
   (const Handle(IGESBasic_Hierarchy)& ent) const
 {
index 560c9c600b12178f84bc89354a829b8e60567e20..c825f48225c6a5165f75ec97d464528b52594182 100644 (file)
@@ -32,7 +32,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -41,13 +40,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESBasic_ToolHierarchy 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolHierarchy, ready to work
-  Standard_EXPORT IGESBasic_ToolHierarchy();
+  IGESBasic_ToolHierarchy() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -56,10 +54,6 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESBasic_Hierarchy)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a Hierarchy <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESBasic_Hierarchy)& ent, Interface_EntityIterator& iter) const;
-  
   //! Sets automatic unambiguous Correction on a Hierarchy
   //! (NbPropertyValues forced to 6)
   Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESBasic_Hierarchy)& ent) const;
@@ -70,33 +64,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESBasic_Hierarchy)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESBasic_Hierarchy)& entfrom, const Handle(IGESBasic_Hierarchy)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESBasic_Hierarchy)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESBasic_ToolHierarchy_HeaderFile
index 1c628021663ce51ba029ae3d9cd74dbe06150fc5..a9eeaf066a963921154573d78fbafc2dd397d774 100644 (file)
@@ -26,7 +26,6 @@
 #include <IGESData_ParamCursor.hxx>
 #include <IGESData_ParamReader.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -34,8 +33,6 @@
 #include <Standard_DomainError.hxx>
 #include <TCollection_HAsciiString.hxx>
 
-IGESBasic_ToolName::IGESBasic_ToolName ()    {  }
-
 
 void  IGESBasic_ToolName::ReadOwnParams
   (const Handle(IGESBasic_Name)& ent,
@@ -59,22 +56,6 @@ void  IGESBasic_ToolName::WriteOwnParams
   IW.Send(ent->Value());
 }
 
-void  IGESBasic_ToolName::OwnShared
-  (const Handle(IGESBasic_Name)& /* ent */, Interface_EntityIterator& /* iter */) const
-{
-}
-
-void  IGESBasic_ToolName::OwnCopy
-  (const Handle(IGESBasic_Name)& another,
-   const Handle(IGESBasic_Name)& ent, Interface_CopyTool& /* TC */) const
-{
-  Standard_Integer aNbPropertyValues;
-  Handle(TCollection_HAsciiString) aName;
-  aName = new TCollection_HAsciiString(another->Value());
-  aNbPropertyValues = another->NbPropertyValues();
-  ent->Init(aNbPropertyValues,aName);
-}
-
 Standard_Boolean  IGESBasic_ToolName::OwnCorrect
   (const Handle(IGESBasic_Name)& ent) const
 {
index 18021c2e3cb4e7266f217c1045ad7d3187d0a589..94f9397ac8a1009a67fcc4773407b10f3c86904e 100644 (file)
@@ -32,7 +32,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -41,13 +40,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESBasic_ToolName 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolName, ready to work
-  Standard_EXPORT IGESBasic_ToolName();
+  IGESBasic_ToolName() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -56,10 +54,6 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESBasic_Name)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a Name <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESBasic_Name)& ent, Interface_EntityIterator& iter) const;
-  
   //! Sets automatic unambiguous Correction on a Name
   //! (NbPropertyValues forced to 1)
   Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESBasic_Name)& ent) const;
@@ -70,33 +64,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESBasic_Name)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESBasic_Name)& entfrom, const Handle(IGESBasic_Name)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESBasic_Name)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESBasic_ToolName_HeaderFile
index 276e3b8fe9034c4aafe866fd861a0d8e79fc12ea..bc96253b51255452a1a04c65521650b3220102ef 100644 (file)
 #include <IGESData_ParamCursor.hxx>
 #include <IGESData_ParamReader.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESBasic_ToolOrderedGroup::IGESBasic_ToolOrderedGroup ()    {  }
-
 
 void  IGESBasic_ToolOrderedGroup::ReadOwnParams
   (const Handle(IGESBasic_OrderedGroup)& ent,
@@ -79,24 +76,6 @@ void  IGESBasic_ToolOrderedGroup::OwnShared
     iter.GetOneItem(ent->Entity(i));
 }
 
-void  IGESBasic_ToolOrderedGroup::OwnCopy
-  (const Handle(IGESBasic_OrderedGroup)& another,
-   const Handle(IGESBasic_OrderedGroup)& ent, Interface_CopyTool& TC) const
-{
-  Standard_Integer lower,upper;
-  lower = 1;
-  upper = another->NbEntities();
-  Handle(IGESData_HArray1OfIGESEntity)  EntArray = new
-    IGESData_HArray1OfIGESEntity(lower,upper);
-  for (Standard_Integer i = lower;i <= upper;i++)
-    {
-      DeclareAndCast
-       (IGESData_IGESEntity,myentity,TC.Transferred(another->Entity(i)));
-      EntArray->SetValue(i,myentity);
-    }
-  ent->Init(EntArray);
-}
-
 Standard_Boolean IGESBasic_ToolOrderedGroup::OwnCorrect
   (const Handle(IGESBasic_OrderedGroup)& ent )  const
 {
index 1a3a7bc5c07911e5fcf5d4ca7bd91776df0aaa89..99702d3eaa85381fe1bb52e32cbf58d33b5147bf 100644 (file)
@@ -32,7 +32,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -41,13 +40,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESBasic_ToolOrderedGroup 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolOrderedGroup, ready to work
-  Standard_EXPORT IGESBasic_ToolOrderedGroup();
+  IGESBasic_ToolOrderedGroup() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -70,33 +68,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESBasic_OrderedGroup)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESBasic_OrderedGroup)& entfrom, const Handle(IGESBasic_OrderedGroup)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESBasic_OrderedGroup)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESBasic_ToolOrderedGroup_HeaderFile
index ac8373a7c7e474ac5d5c5287c2dbceeefbb48209..b92280a9415b0292a2edbb699428b78d4575b974 100644 (file)
 #include <IGESData_ParamCursor.hxx>
 #include <IGESData_ParamReader.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESBasic_ToolOrderedGroupWithoutBackP::IGESBasic_ToolOrderedGroupWithoutBackP()
-      {  }
-
 
 void  IGESBasic_ToolOrderedGroupWithoutBackP::ReadOwnParams
   (const Handle(IGESBasic_OrderedGroupWithoutBackP)& ent,
@@ -80,24 +76,6 @@ void  IGESBasic_ToolOrderedGroupWithoutBackP::OwnShared
     iter.GetOneItem(ent->Entity(i));
 }
 
-void  IGESBasic_ToolOrderedGroupWithoutBackP::OwnCopy
-  (const Handle(IGESBasic_OrderedGroupWithoutBackP)& another,
-   const Handle(IGESBasic_OrderedGroupWithoutBackP)& ent, Interface_CopyTool& TC) const
-{
-  Standard_Integer lower,upper;
-  lower = 1;
-  upper = another->NbEntities();
-  Handle(IGESData_HArray1OfIGESEntity)  EntArray = new
-    IGESData_HArray1OfIGESEntity(lower,upper);
-  for (Standard_Integer i = lower;i <= upper;i++)
-    {
-      DeclareAndCast
-       (IGESData_IGESEntity,myentity,TC.Transferred(another->Entity(i)));
-      EntArray->SetValue(i,myentity);
-    }
-  ent->Init(EntArray);
-}
-
 Standard_Boolean IGESBasic_ToolOrderedGroupWithoutBackP::OwnCorrect
   (const Handle(IGESBasic_OrderedGroupWithoutBackP)& ent )  const
 {
index ccc9c4d4a0d1dbe349a1ff7b5132fe32b9c636ce..a920c27998ec479fb5c26ad9718910b4a054b8dc 100644 (file)
@@ -32,7 +32,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -41,13 +40,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESBasic_ToolOrderedGroupWithoutBackP 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolOrderedGroupWithoutBackP, ready to work
-  Standard_EXPORT IGESBasic_ToolOrderedGroupWithoutBackP();
+  IGESBasic_ToolOrderedGroupWithoutBackP() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -70,33 +68,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESBasic_OrderedGroupWithoutBackP)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESBasic_OrderedGroupWithoutBackP)& entfrom, const Handle(IGESBasic_OrderedGroupWithoutBackP)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESBasic_OrderedGroupWithoutBackP)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESBasic_ToolOrderedGroupWithoutBackP_HeaderFile
index 0d724d13cfd8ac5edfae12eea5818fd2852f764e..314e9b768a220e74cd723cdb0bd3256bce6ab627 100644 (file)
@@ -29,7 +29,6 @@
 #include <IGESData_ParamReader.hxx>
 #include <IGESData_Status.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -37,9 +36,6 @@
 #include <Message_Msg.hxx>
 #include <Standard_DomainError.hxx>
 
-// MGE 03/08/98
-IGESBasic_ToolSingleParent::IGESBasic_ToolSingleParent ()    {  }
-
 
 void  IGESBasic_ToolSingleParent::ReadOwnParams
   (const Handle(IGESBasic_SingleParent)& ent,
@@ -116,25 +112,6 @@ void  IGESBasic_ToolSingleParent::OwnShared
     iter.GetOneItem(ent->Child(i));
 }
 
-void  IGESBasic_ToolSingleParent::OwnCopy
-  (const Handle(IGESBasic_SingleParent)& another,
-   const Handle(IGESBasic_SingleParent)& ent, Interface_CopyTool& TC) const
-{
-  Standard_Integer aNbParentEntities = another->NbParentEntities();
-  DeclareAndCast(IGESData_IGESEntity,aparent,
-                TC.Transferred(another->SingleParent()));
-  Standard_Integer upper = another->NbChildren();
-  Handle(IGESData_HArray1OfIGESEntity)  EntArray = new
-    IGESData_HArray1OfIGESEntity(1,upper);
-  for (Standard_Integer i = 1; i <= upper; i ++)
-    {
-      DeclareAndCast
-       (IGESData_IGESEntity,myentity,TC.Transferred(another->Child(i)));
-      EntArray->SetValue(i,myentity);
-    }
-  ent->Init(aNbParentEntities,aparent,EntArray);
-}
-
 Standard_Boolean  IGESBasic_ToolSingleParent::OwnCorrect
   (const Handle(IGESBasic_SingleParent)& ent) const
 {
index 852dfb4306d18dd48a0e432789a65df568c64549..6dd009f42bb2bd020730e45b34ec9302954b74bf 100644 (file)
@@ -32,7 +32,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -41,13 +40,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESBasic_ToolSingleParent 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolSingleParent, ready to work
-  Standard_EXPORT IGESBasic_ToolSingleParent();
+  IGESBasic_ToolSingleParent() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -70,33 +68,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESBasic_SingleParent)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESBasic_SingleParent)& entfrom, const Handle(IGESBasic_SingleParent)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESBasic_SingleParent)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESBasic_ToolSingleParent_HeaderFile
index 3987156134ea4975643d792a3d544af7961eb971..2697e101c4acdc6921a6757e78ee0cf2cb750b0a 100644 (file)
@@ -30,7 +30,6 @@
 #include <IGESData_ParamReader.hxx>
 #include <IGESData_Status.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -38,9 +37,6 @@
 #include <Message_Msg.hxx>
 #include <Standard_DomainError.hxx>
 
-// MGE 03/08/98
-IGESBasic_ToolSingularSubfigure::IGESBasic_ToolSingularSubfigure ()    {  }
-
 
 void  IGESBasic_ToolSingularSubfigure::ReadOwnParams
   (const Handle(IGESBasic_SingularSubfigure)& ent,
@@ -124,23 +120,6 @@ void  IGESBasic_ToolSingularSubfigure::OwnShared
   iter.GetOneItem(ent->Subfigure());
 }
 
-void  IGESBasic_ToolSingularSubfigure::OwnCopy
-  (const Handle(IGESBasic_SingularSubfigure)& another,
-   const Handle(IGESBasic_SingularSubfigure)& ent, Interface_CopyTool& TC) const
-{
-  gp_XYZ aTranslation;
-  Standard_Boolean ahasScale;
-  Standard_Real aScale;
-
-  DeclareAndCast
-    (IGESBasic_SubfigureDef,aSubfigureDef,TC.Transferred(another->Subfigure()));
-  aTranslation  = another->Translation();
-  ahasScale     = another->HasScaleFactor();
-  aScale        = another->ScaleFactor();
-
-  ent->Init(aSubfigureDef,aTranslation,ahasScale,aScale);
-}
-
 IGESData_DirChecker  IGESBasic_ToolSingularSubfigure::DirChecker
   (const Handle(IGESBasic_SingularSubfigure)& ent ) const
 {
@@ -151,12 +130,6 @@ IGESData_DirChecker  IGESBasic_ToolSingularSubfigure::DirChecker
   return DC;
 }
 
-void  IGESBasic_ToolSingularSubfigure::OwnCheck
-  (const Handle(IGESBasic_SingularSubfigure)& /* ent */,
-   const Interface_ShareTool& , Handle(Interface_Check)& /* ach */) const
-{
-}
-
 void  IGESBasic_ToolSingularSubfigure::OwnDump
   (const Handle(IGESBasic_SingularSubfigure)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
index 4f2e5962a3b77f0781c106be1c6df166990ea049..2c37044fefc78fbdc9e52a827b06c6aad66f6f8d 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESBasic_ToolSingularSubfigure 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolSingularSubfigure, ready to work
-  Standard_EXPORT IGESBasic_ToolSingularSubfigure();
+  IGESBasic_ToolSingularSubfigure() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -62,36 +60,8 @@ public:
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESBasic_SingularSubfigure)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESBasic_SingularSubfigure)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESBasic_SingularSubfigure)& entfrom, const Handle(IGESBasic_SingularSubfigure)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESBasic_SingularSubfigure)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESBasic_ToolSingularSubfigure_HeaderFile
index 98ac5b025a60f4693889f7521339cbbd919c398e..db097a2aba90d6e6422e3ebeccac64574a21f763 100644 (file)
@@ -28,7 +28,6 @@
 #include <IGESData_ParamCursor.hxx>
 #include <IGESData_ParamReader.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -37,9 +36,6 @@
 #include <Standard_DomainError.hxx>
 #include <TCollection_HAsciiString.hxx>
 
-// MGE 03/08/98
-IGESBasic_ToolSubfigureDef::IGESBasic_ToolSubfigureDef ()    {  }
-
 
 void  IGESBasic_ToolSubfigureDef::ReadOwnParams
   (const Handle(IGESBasic_SubfigureDef)& ent,
@@ -97,28 +93,6 @@ void  IGESBasic_ToolSubfigureDef::OwnShared
     iter.GetOneItem(ent->AssociatedEntity(i));
 }
 
-void  IGESBasic_ToolSubfigureDef::OwnCopy
-  (const Handle(IGESBasic_SubfigureDef)& another,
-   const Handle(IGESBasic_SubfigureDef)& ent, Interface_CopyTool& TC) const
-{
-  Standard_Integer lower,upper;
-  Standard_Integer aDepth = another->Depth();
-  Handle(TCollection_HAsciiString) aName =
-    new TCollection_HAsciiString(another->Name());
-
-  lower = 1;
-  upper = another->NbEntities();
-  Handle(IGESData_HArray1OfIGESEntity)  EntArray = new
-    IGESData_HArray1OfIGESEntity(lower,upper);
-  for (Standard_Integer i = lower;i <= upper;i++)
-    {
-      DeclareAndCast(IGESData_IGESEntity,myentity,
-                     TC.Transferred(another->AssociatedEntity(i)));
-      EntArray->SetValue(i,myentity);
-    }
-  ent->Init(aDepth,aName,EntArray);
-}
-
 IGESData_DirChecker  IGESBasic_ToolSubfigureDef::DirChecker
   (const Handle(IGESBasic_SubfigureDef)& ent ) const
 {
index b1356b21792c1cd46dbb225f305f6aa8e950b13b..049583e31e7348f6cf9bf18838696a487f20a693 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESBasic_ToolSubfigureDef 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolSubfigureDef, ready to work
-  Standard_EXPORT IGESBasic_ToolSubfigureDef();
+  IGESBasic_ToolSubfigureDef() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -65,33 +63,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESBasic_SubfigureDef)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESBasic_SubfigureDef)& entfrom, const Handle(IGESBasic_SubfigureDef)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESBasic_SubfigureDef)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESBasic_ToolSubfigureDef_HeaderFile
index e626a50ab360fda0b1eb994446bde7de4df12eec..27c9f178387c0114a43e9728d4ff917d7949a03b 100644 (file)
@@ -35,7 +35,6 @@
 #include <IGESData_IGESWriter.hxx>
 #include <IGESData_Protocol.hxx>
 #include <IGESData_FileProtocol.hxx>
-#include <IGESDefs.hxx>
 #include <IGESFile_Read.hxx>
 #include <IGESSolid.hxx>
 #include <IGESSolid_Protocol.hxx>
@@ -316,9 +315,8 @@ void IGESControl_Controller::Init ()
     gInitMutex.Lock();
     if (!gInitDone)
     {
-      IGESSolid::Init();
+      //szv_c1:IGESSolid::Init();
       IGESAppli::Init();
-      IGESDefs::Init();
 
       Handle(IGESControl_Controller) aController = new IGESControl_Controller(Standard_False);
       aController->AutoRecord();
@@ -334,7 +332,7 @@ void IGESControl_Controller::Init ()
 }
 
 //=======================================================================
-//function : Init
+//function : DefineProtocol
 //purpose  : 
 //=======================================================================
 
@@ -342,10 +340,10 @@ const Handle(IGESData_Protocol) & IGESControl_Controller::DefineProtocol ()
 {
   static Handle(IGESData_FileProtocol) gIGESProto;
   if (gIGESProto.IsNull()) {
-    Handle(IGESData_Protocol) aIGESProto1 = IGESSolid::Protocol();
-    Handle(IGESData_Protocol) aIGESProto2 = IGESAppli::Protocol();
-    gIGESProto  = new IGESData_FileProtocol;
-    gIGESProto->Add(aIGESProto1);
+    //const Handle(IGESData_Protocol) &aIGESProto1 = IGESSolid::Protocol();
+    const Handle(IGESData_Protocol) &aIGESProto2 = IGESAppli::Protocol();
+    gIGESProto = new IGESData_FileProtocol;
+    //gIGESProto->Add(aIGESProto1);
     gIGESProto->Add(aIGESProto2);
   }
   return gIGESProto;
index 305c363a7e473f169b8cf1bdab69be71e4950362..ddd97e6b20b2ee2b46e81391181f1105d56e3745 100644 (file)
@@ -16,7 +16,6 @@
 
 #include <IGESControl_Controller.hxx>
 #include <IGESControl_Reader.hxx>
-#include <IGESData_FileProtocol.hxx>
 #include <IGESData_IGESEntity.hxx>
 #include <IGESData_IGESModel.hxx>
 #include <Interface_InterfaceModel.hxx>
index 3bf406b44dcac7c0d9f11eda6b7a9be52afac097..eebb70e74bec9000708aed92f01ec940724c1beb 100755 (executable)
@@ -19,8 +19,6 @@ IGESData_DirPart.hxx
 IGESData_Dump.hxx
 IGESData_FileProtocol.cxx
 IGESData_FileProtocol.hxx
-IGESData_FileRecognizer.hxx
-IGESData_FileRecognizer_0.cxx
 IGESData_FreeFormatEntity.cxx
 IGESData_FreeFormatEntity.hxx
 IGESData_GeneralModule.cxx
index 4576785537bbbb54e769aca4c4ac917f458a3cf9..c9aac2aeca4198e56e9603ae52e80c67e580f54a 100644 (file)
 #include <IGESData_Protocol.hxx>
 #include <IGESData_UndefinedEntity.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_GeneralLib.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Interface_UndefinedContent.hxx>
-#include <Standard_Transient.hxx>
-#include <Standard_Type.hxx>
 #include <TColStd_HSequenceOfInteger.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESData_DefaultGeneral,IGESData_GeneralModule)
@@ -70,26 +67,3 @@ IGESData_DefaultGeneral::IGESData_DefaultGeneral ()
   if (CN == 2) entto = new IGESData_FreeFormatEntity;
   return (!entto.IsNull());
 }
-
-    void  IGESData_DefaultGeneral::OwnCopyCase
-  (const Standard_Integer CN,
-   const Handle(IGESData_IGESEntity)& entfrom,
-   const Handle(IGESData_IGESEntity)& entto,
-   Interface_CopyTool& TC) const 
-{
-  if (CN == 0) return;
-  DeclareAndCast(IGESData_UndefinedEntity,enfr,entfrom);
-  DeclareAndCast(IGESData_UndefinedEntity,ento,entto);
-//  ShallowCopy aura passe DirStatus
-//  transmettre les contenus des UndefinedContents
-  Handle(Interface_UndefinedContent) cont = new Interface_UndefinedContent;
-  cont->GetFromAnother(enfr->UndefinedContent(),TC);
-  ento->SetNewContent (cont);
-//  FreeFormat, encore des choses
-  if (enfr->IsKind(STANDARD_TYPE(IGESData_FreeFormatEntity))) {
-    DeclareAndCast(IGESData_FreeFormatEntity,enf,entfrom);
-    DeclareAndCast(IGESData_FreeFormatEntity,ent,entto);
-    ent->ClearNegativePointers();
-    ent->AddNegativePointers(enf->NegativePointers());
-  }
-}
index 2621a84862e5a85fae179478904021a7e0f3457d..0e224cadc187e6548a131addb4efd9f5bd074127 100644 (file)
 #ifndef _IGESData_DefaultGeneral_HeaderFile
 #define _IGESData_DefaultGeneral_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
 #include <IGESData_GeneralModule.hxx>
-#include <Standard_Integer.hxx>
-#include <Standard_Boolean.hxx>
-class IGESData_IGESEntity;
-class Interface_EntityIterator;
-class IGESData_DirChecker;
-class Interface_ShareTool;
-class Interface_Check;
-class Standard_Transient;
-class Interface_CopyTool;
 
 
 class IGESData_DefaultGeneral;
@@ -39,10 +27,8 @@ DEFINE_STANDARD_HANDLE(IGESData_DefaultGeneral, IGESData_GeneralModule)
 //! (Case Number 1)
 class IGESData_DefaultGeneral : public IGESData_GeneralModule
 {
+ public:
 
-public:
-
-  
   //! Creates a DefaultGeneral and puts it into GeneralLib,
   //! bound with a Protocol from IGESData
   Standard_EXPORT IGESData_DefaultGeneral();
@@ -61,31 +47,8 @@ public:
   
   //! Specific creation of a new void entity (UndefinedEntity only)
   Standard_EXPORT Standard_Boolean NewVoid (const Standard_Integer CN, Handle(Standard_Transient)& entto) const Standard_OVERRIDE;
-  
-  //! Copies parameters which are specific of each Type of Entity
-  Standard_EXPORT void OwnCopyCase (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& entfrom, const Handle(IGESData_IGESEntity)& entto, Interface_CopyTool& TC) const Standard_OVERRIDE;
-
-
-
 
   DEFINE_STANDARD_RTTIEXT(IGESData_DefaultGeneral,IGESData_GeneralModule)
-
-protected:
-
-
-
-
-private:
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESData_DefaultGeneral_HeaderFile
index f5cc6afca946e224740baa75acc5cfa3c000a009..510260c116a04ba49f76bd0c4232894277c624a0 100644 (file)
 
 
 #include <IGESData_FileProtocol.hxx>
-#include <IGESData_Protocol.hxx>
-#include <Interface_Protocol.hxx>
-#include <Standard_Type.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESData_FileProtocol,IGESData_Protocol)
 
-IGESData_FileProtocol::IGESData_FileProtocol ()    {  }
-
-    void  IGESData_FileProtocol::Add (const Handle(IGESData_Protocol)& protocol)
+void IGESData_FileProtocol::Add (const Handle(IGESData_Protocol)& theProtocol)
 {
-  if      (theresource.IsNull()) theresource = protocol;
-  else if (theresource->IsInstance(protocol->DynamicType())) return; // passer
-  else if (!thenext.IsNull()) thenext->Add(protocol);
-  else {
-    thenext = new IGESData_FileProtocol;
-    thenext->Add(protocol);
+  NCollection_Vector<Handle(IGESData_Protocol)>::Iterator itr(myResources);
+  for (; itr.More(); itr.Next())
+  {
+    if (itr.Value()->IsInstance(theProtocol->DynamicType())) return; // passer
   }
+  myResources.Append(theProtocol);
 }
 
-    Standard_Integer  IGESData_FileProtocol::NbResources () const
+Standard_Integer IGESData_FileProtocol::NbResources () const
 {
-  Standard_Integer nb = (theresource.IsNull() ? 0 : 1);
-  if (!thenext.IsNull()) nb += thenext->NbResources();
-  return nb;
+  return myResources.Length();
 }
 
-    Handle(Interface_Protocol) IGESData_FileProtocol::Resource
-  (const Standard_Integer num) const
+Handle(Interface_Protocol) IGESData_FileProtocol::Resource (const Standard_Integer num) const
 {
-  Handle(IGESData_Protocol) res;
-  if (num == 1) return Handle(Interface_Protocol) (theresource);
-  else if (!thenext.IsNull()) return thenext->Resource(num-1);
-  return res;  // Null
+  return (num > 0 && num <= myResources.Length())? myResources(num-1) : NULL;
 }
index c1eaf7481df105d26489f33151b90f73debd5431..dbbd5ef6ebb39213efa7113989fb0741db9fbee0 100644 (file)
 #ifndef _IGESData_FileProtocol_HeaderFile
 #define _IGESData_FileProtocol_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
 #include <IGESData_Protocol.hxx>
-#include <Standard_Integer.hxx>
-class IGESData_Protocol;
-class Interface_Protocol;
-
+#include <NCollection_Vector.hxx>
 
 class IGESData_FileProtocol;
 DEFINE_STANDARD_HANDLE(IGESData_FileProtocol, IGESData_Protocol)
@@ -36,45 +30,25 @@ DEFINE_STANDARD_HANDLE(IGESData_FileProtocol, IGESData_Protocol)
 //! UndefinedEntity too
 class IGESData_FileProtocol : public IGESData_Protocol
 {
+ public:
 
-public:
-
-  
   //! Returns an empty FileProtocol
-  Standard_EXPORT IGESData_FileProtocol();
+  IGESData_FileProtocol() {}
   
   //! Adds a resource
-  Standard_EXPORT void Add (const Handle(IGESData_Protocol)& protocol);
+  Standard_EXPORT void Add (const Handle(IGESData_Protocol)& theProtocol);
   
   //! Gives the count of Resources : the count of Added Protocols
   Standard_EXPORT virtual Standard_Integer NbResources() const Standard_OVERRIDE;
   
   //! Returns a Resource, given a rank (rank of call to Add)
-  Standard_EXPORT virtual Handle(Interface_Protocol) Resource (const Standard_Integer num) const Standard_OVERRIDE;
-
-
-
+  Standard_EXPORT virtual Handle(Interface_Protocol) Resource (const Standard_Integer theIndex) const Standard_OVERRIDE;
 
   DEFINE_STANDARD_RTTIEXT(IGESData_FileProtocol,IGESData_Protocol)
 
-protected:
-
-
-
-
-private:
-
-
-  Handle(IGESData_Protocol) theresource;
-  Handle(IGESData_FileProtocol) thenext;
-
+ private:
 
+  NCollection_Vector<Handle(IGESData_Protocol)> myResources;
 };
 
-
-
-
-
-
-
 #endif // _IGESData_FileProtocol_HeaderFile
diff --git a/src/IGESData/IGESData_FileRecognizer.hxx b/src/IGESData/IGESData_FileRecognizer.hxx
deleted file mode 100644 (file)
index fcd84bd..0000000
+++ /dev/null
@@ -1,100 +0,0 @@
-// Created on: 1992-04-06
-// Created by: Christian CAILLET
-// Copyright (c) 1992-1999 Matra Datavision
-// Copyright (c) 1999-2014 OPEN CASCADE SAS
-//
-// This file is part of Open CASCADE Technology software library.
-//
-// This library is free software; you can redistribute it and/or modify it under
-// the terms of the GNU Lesser General Public License version 2.1 as published
-// by the Free Software Foundation, with special exception defined in the file
-// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-// distribution for complete text of the license and disclaimer of any warranty.
-//
-// Alternatively, this file may be used under the terms of Open CASCADE
-// commercial license or contractual agreement.
-
-#ifndef _IGESData_FileRecognizer_HeaderFile
-#define _IGESData_FileRecognizer_HeaderFile
-
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
-#include <Standard_Boolean.hxx>
-#include <Standard_Transient.hxx>
-class IGESData_IGESEntity;
-class Standard_NoSuchObject;
-class IGESData_IGESType;
-
-
-class IGESData_FileRecognizer;
-DEFINE_STANDARD_HANDLE(IGESData_FileRecognizer, Standard_Transient)
-
-
-class IGESData_FileRecognizer : public Standard_Transient
-{
-
-public:
-
-  
-  //! Evaluates if recognition has a result, returns it if yes
-  //! In case of success, Returns True and puts result in "res"
-  //! In case of Failure, simply Returns False
-  //! Works by calling deferred method Eval, and in case of failure,
-  //! looks for Added Recognizers to work
-  Standard_EXPORT Standard_Boolean Evaluate (const IGESData_IGESType& akey, Handle(IGESData_IGESEntity)& res);
-  
-  //! Returns result of last recognition (call of Evaluate)
-  Standard_EXPORT Handle(IGESData_IGESEntity) Result() const;
-  
-  //! Adds a new Recognizer to the Compound, at the end
-  //! Several calls to Add work by adding in the order of calls :
-  //! Hence, when Eval has failed to recognize, Evaluate will call
-  //! Evaluate from the first added Recognizer if there is one,
-  //! and to the second if there is still no result, and so on
-  Standard_EXPORT void Add (const Handle(IGESData_FileRecognizer)& reco);
-
-
-
-
-  DEFINE_STANDARD_RTTI_INLINE(IGESData_FileRecognizer,Standard_Transient)
-
-protected:
-
-  
-  //! Assumes that no result has yet been recognized
-  Standard_EXPORT IGESData_FileRecognizer();
-  
-  //! Records the result of the recognition. Called by specific
-  //! method Eval to record a result : after calling it, Eval has
-  //! finished and can return
-  Standard_EXPORT void SetOK (const Handle(IGESData_IGESEntity)& aresult);
-  
-  //! Records that recognition gives no result
-  Standard_EXPORT void SetKO();
-  
-  //! THIS METHOD DEFINES THE RECOGNITION PROTOCOL, it is proper to
-  //! each precise type of Recognizer
-  //! For a suitable type of akey, it calls SetOK(result) where
-  //! result is an empty result of appropriate type, then returns
-  Standard_EXPORT virtual void Eval (const IGESData_IGESType& akey) = 0;
-
-
-
-private:
-
-
-  Handle(IGESData_IGESEntity) theres;
-  Standard_Boolean hasnext;
-  Handle(IGESData_FileRecognizer) thenext;
-
-
-};
-
-
-
-
-
-
-
-#endif // _IGESData_FileRecognizer_HeaderFile
diff --git a/src/IGESData/IGESData_FileRecognizer_0.cxx b/src/IGESData/IGESData_FileRecognizer_0.cxx
deleted file mode 100644 (file)
index 5a87d0d..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-// Created on: 1992-04-06
-// Created by: Christian CAILLET
-// Copyright (c) 1992-1999 Matra Datavision
-// Copyright (c) 1999-2014 OPEN CASCADE SAS
-//
-// This file is part of Open CASCADE Technology software library.
-//
-// This library is free software; you can redistribute it and/or modify it under
-// the terms of the GNU Lesser General Public License version 2.1 as published
-// by the Free Software Foundation, with special exception defined in the file
-// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-// distribution for complete text of the license and disclaimer of any warranty.
-//
-// Alternatively, this file may be used under the terms of Open CASCADE
-// commercial license or contractual agreement.
-
-#include <IGESData_FileRecognizer.hxx>
-
-#include <Standard_Type.hxx>
-
-#include <IGESData_IGESEntity.hxx>
-#include <IGESData_FileRecognizer.hxx>
-#include <Standard_NoSuchObject.hxx>
-#include <IGESData_IGESType.hxx>
-
-
-
-
-
-
-
-
-
-#define TheKey IGESData_IGESType
-#define TheKey_hxx <IGESData_IGESType.hxx>
-#define Handle_TheResul Handle(IGESData_IGESEntity)
-#define TheResul IGESData_IGESEntity
-#define TheResul_hxx <IGESData_IGESEntity.hxx>
-#define Interface_Recognizer IGESData_FileRecognizer
-#define Interface_Recognizer_hxx <IGESData_FileRecognizer.hxx>
-#define Handle_Interface_Recognizer Handle(IGESData_FileRecognizer)
-#include <Interface_Recognizer.gxx>
-
index e480f669bb136a3ff36a7319347afd62340523e5..81e126dd083ae726b529497cbbaed1500a26048f 100644 (file)
@@ -24,7 +24,6 @@
 #include <IGESData_TransfEntity.hxx>
 #include <IGESData_ViewKindEntity.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_GeneralLib.hxx>
 #include <Interface_Macros.hxx>
@@ -89,115 +88,6 @@ void  IGESData_GeneralModule::FillSharedCase
 }
 
 
-    Standard_Boolean  IGESData_GeneralModule::CanCopy
-  (const Standard_Integer /*CN*/, const Handle(Standard_Transient)& /*ent*/) const
-      {  return Standard_True;  }
-
-    void  IGESData_GeneralModule::CopyCase
-  (const Standard_Integer CN, const Handle(Standard_Transient)& entfrom,
-   const Handle(Standard_Transient)& entto, Interface_CopyTool& TC) const 
-{
-  DeclareAndCast(IGESData_IGESEntity,ento,entto);
-  DeclareAndCast(IGESData_IGESEntity,enfr,entfrom);
-////  ento->Clear();
-
-// ...                Reprendre entete                ...
-//?  ento->InitTypeAndForm (enfr->TypeNumber(), enfr->FormNumber());ShallowCopy
-  
-  if (enfr->DefLineFont() == IGESData_DefReference) ento->InitLineFont
-    (GetCasted(IGESData_LineFontEntity,    TC.Transferred(enfr->LineFont())));
-  else ento->InitLineFont (enfr->LineFont() , enfr->RankLineFont());
-
-  if (enfr->DefLevel() == IGESData_DefSeveral) ento->InitLevel
-    (GetCasted(IGESData_LevelListEntity,TC.Transferred(enfr->LevelList())),-1);
-  else ento->InitLevel (enfr->LevelList() , enfr->Level());
-
-  if (enfr->DefView() != IGESData_DefNone) ento->InitView
-    (GetCasted(IGESData_ViewKindEntity,    TC.Transferred(enfr->View())));
-
-  if (enfr->HasTransf()) ento->InitTransf
-    (GetCasted(IGESData_TransfEntity,      TC.Transferred(enfr->Transf())));
-
-  ento->InitStatus (enfr->BlankStatus() ,
-                   enfr->SubordinateStatus() ,
-                   enfr->UseFlag() ,
-                   enfr->HierarchyStatus() );
-
-  if (enfr->DefColor() == IGESData_DefReference) ento->InitColor
-    (GetCasted(IGESData_ColorEntity,TC.Transferred(enfr->Color())));
-  else ento->InitColor (enfr->Color() , enfr->RankColor());
-
-  if (enfr->HasShortLabel()) ento->SetLabel
-    (new TCollection_HAsciiString(enfr->ShortLabel()),
-     enfr->SubScriptNumber());
-  else ento->SetLabel (enfr->ShortLabel() , enfr->SubScriptNumber());
-
-//  Directory Part : Miscellaneous
-  Handle(IGESData_IGESEntity) Structure;
-  if (enfr->HasStructure()) Structure =
-    GetCasted(IGESData_IGESEntity,         TC.Transferred(enfr->Structure()));
-  if (enfr->HasLabelDisplay()) ento->InitMisc
-    (Structure,
-     GetCasted(IGESData_LabelDisplayEntity,TC.Transferred(enfr->LabelDisplay())),
-     enfr->LineWeightNumber());
-  else ento->InitMisc
-    (Structure , enfr->LabelDisplay() , enfr->LineWeightNumber());
-
-//  LineWeightValue, Res1, Res2 : through action of ShallowCopy ?
-
-  OwnCopyCase (CN,enfr,ento,TC);
-
-//  ..  Properties
-  if (enfr->NbProperties() != 0) {
-    for (Interface_EntityIterator iter = enfr->Properties();
-        iter.More(); iter.Next()) {
-      ento->AddProperty
-       (GetCasted(IGESData_IGESEntity,TC.Transferred(iter.Value())));
-    }
-  }
-}
-
-    void  IGESData_GeneralModule::RenewImpliedCase
-  (const Standard_Integer CN, const Handle(Standard_Transient)& entfrom,
-   const Handle(Standard_Transient)& entto, const Interface_CopyTool& TC) const
-{
-  DeclareAndCast(IGESData_IGESEntity,ento,entto);
-  DeclareAndCast(IGESData_IGESEntity,enfr,entfrom);
-
-  OwnRenewCase (CN,enfr,ento,TC);
-
-//  .. Associativities
-  if (enfr->NbAssociativities() != 0) {
-    for (Interface_EntityIterator iter = enfr->Associativities();
-        iter.More(); iter.Next()) {
-      Handle(Standard_Transient) anent = iter.Value();
-      Handle(Standard_Transient) newent;
-      if (TC.Search(anent,newent)) ento->AddAssociativity
-       (GetCasted(IGESData_IGESEntity,newent));
-    }
-  }
-}
-
-    void  IGESData_GeneralModule::OwnRenewCase
-  (const Standard_Integer , const Handle(IGESData_IGESEntity)& ,
-   const Handle(IGESData_IGESEntity)& , const Interface_CopyTool& ) const
-     {  }
-
-    void  IGESData_GeneralModule::WhenDeleteCase
-  (const Standard_Integer CN, const Handle(Standard_Transient)& ent,
-   const Standard_Boolean ) const    // dispatched : ignored
-{
-  DeclareAndCast(IGESData_IGESEntity,anent,ent);
-  if (anent.IsNull()) return;
-  anent->Clear();
-  OwnDeleteCase (CN,anent);
-}
-
-    void  IGESData_GeneralModule::OwnDeleteCase
-  (const Standard_Integer , const Handle(IGESData_IGESEntity)& ) const
-      {  }  // par defaut, rien  (redefinissable)
-
-
     Handle(TCollection_HAsciiString)  IGESData_GeneralModule::Name
   (const Standard_Integer , const Handle(Standard_Transient)& ent,
    const Interface_ShareTool& ) const
index fcf88a2fd1d67bf01a18e749dff4f1e706817a8e..c9389ee9d80c692dea72bfd71da9bdc9db28343b 100644 (file)
@@ -29,7 +29,6 @@ class IGESData_IGESEntity;
 class Interface_ShareTool;
 class Interface_Check;
 class IGESData_DirChecker;
-class Interface_CopyTool;
 class TCollection_HAsciiString;
 
 
@@ -79,42 +78,9 @@ public:
   //! Performs Specific Semantic Check for each type of Entity
   Standard_EXPORT virtual void OwnCheckCase (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const = 0;
   
-  //! Specific answer to the question "is Copy properly implemented"
-  //! For IGES, answer is always True
-  Standard_EXPORT virtual Standard_Boolean CanCopy (const Standard_Integer CN, const Handle(Standard_Transient)& ent) const Standard_OVERRIDE;
-  
   //! Specific creation of a new void entity
   Standard_EXPORT virtual Standard_Boolean NewVoid (const Standard_Integer CN, Handle(Standard_Transient)& entto) const Standard_OVERRIDE = 0;
   
-  //! Copy ("Deep") from <entfrom> to <entto> (same type)
-  //! by using a CopyTool which provides its working Map.
-  //! For IGESEntities, Copies general data (Directory Part, List of
-  //! Properties) and call OwnCopyCase
-  Standard_EXPORT void CopyCase (const Standard_Integer CN, const Handle(Standard_Transient)& entfrom, const Handle(Standard_Transient)& entto, Interface_CopyTool& TC) const Standard_OVERRIDE;
-  
-  //! Copies parameters which are specific of each Type of Entity
-  Standard_EXPORT virtual void OwnCopyCase (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& entfrom, const Handle(IGESData_IGESEntity)& entto, Interface_CopyTool& TC) const = 0;
-  
-  //! Renewing of Implied References.
-  //! For IGESEntities, Copies general data(List of Associativities)
-  //! and calls OwnRenewCase
-  Standard_EXPORT virtual void RenewImpliedCase (const Standard_Integer CN, const Handle(Standard_Transient)& entfrom, const Handle(Standard_Transient)& entto, const Interface_CopyTool& TC) const Standard_OVERRIDE;
-  
-  //! Renews parameters which are specific of each Type of Entity :
-  //! the provided default does nothing, but this method may be
-  //! redefined as required
-  Standard_EXPORT virtual void OwnRenewCase (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& entfrom, const Handle(IGESData_IGESEntity)& entto, const Interface_CopyTool& TC) const;
-  
-  //! Prepares an IGES Entity for delete : works on directory part
-  //! then calls OwnDeleteCase
-  //! While dispatch requires to copy the entities, <dispatched> is
-  //! ignored, entities are cleared in any case
-  Standard_EXPORT virtual void WhenDeleteCase (const Standard_Integer CN, const Handle(Standard_Transient)& ent, const Standard_Boolean dispatched) const Standard_OVERRIDE;
-  
-  //! Specific preparation for delete, acts on own parameters
-  //! Default does nothing, to be redefined as required
-  Standard_EXPORT virtual void OwnDeleteCase (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent) const;
-  
   //! Returns the name of an IGES Entity (its NameValue)
   //! Can be redefined for an even more specific case ...
   Standard_EXPORT virtual Handle(TCollection_HAsciiString) Name (const Standard_Integer CN, const Handle(Standard_Transient)& ent, const Interface_ShareTool& shares) const Standard_OVERRIDE;
index c60e0f5e23879b289ff31f77874405e0348dfa69..e2b43da7d935faca431f8f655f2f9a47c49a65b7 100644 (file)
@@ -15,9 +15,7 @@
 #include <gp_GTrsf.hxx>
 #include <IGESData_ColorEntity.hxx>
 #include <IGESData_DirChecker.hxx>
-#include <IGESData_GeneralModule.hxx>
 #include <IGESData_IGESEntity.hxx>
-#include <IGESData_IGESReaderTool.hxx>
 #include <IGESData_IGESType.hxx>
 #include <IGESData_LabelDisplayEntity.hxx>
 #include <IGESData_LevelListEntity.hxx>
index 663451668dcc1320b457dbd51d6ca586f7045109..6d19c311757a0dc3c56ca951933376a7306d5299 100644 (file)
 #include <Standard.hxx>
 #include <Standard_Type.hxx>
 
-#include <Standard_Integer.hxx>
-#include <IGESData_DefSwitch.hxx>
-#include <Standard_Real.hxx>
-#include <Standard_Character.hxx>
-#include <Interface_EntityList.hxx>
 #include <MMgt_TShared.hxx>
-#include <Standard_Boolean.hxx>
+#include <Interface_Check.hxx>
+#include <Interface_EntityList.hxx>
+#include <Interface_ShareTool.hxx>
 #include <IGESData_DefType.hxx>
 #include <IGESData_DefList.hxx>
-#include <Standard_CString.hxx>
-#include <Standard_Type.hxx>
+#include <IGESData_DefSwitch.hxx>
 class TCollection_HAsciiString;
 class Interface_InterfaceError;
 class IGESData_ReadWriteModule;
@@ -56,9 +52,7 @@ DEFINE_STANDARD_HANDLE(IGESData_IGESEntity, MMgt_TShared)
 //! Part, lists of (optionnal) Properties and Associativities
 class IGESData_IGESEntity : public MMgt_TShared
 {
-
-public:
-
+ public:
   
   //! gives IGES typing info (includes "Type" and "Form" data)
   Standard_EXPORT IGESData_IGESType IGESType() const;
@@ -323,18 +317,21 @@ public:
   //! or sets it to defw (Default) if LineWeightNumber is null
   Standard_EXPORT void SetLineWeight (const Standard_Real defw, const Standard_Real maxw, const Standard_Integer gradw);
 
-
 friend class IGESData_ReadWriteModule;
 friend class IGESData_GeneralModule;
 friend class IGESData_IGESReaderTool;
 friend class IGESData_DirChecker;
 
+  //! Lists the Entities shared by <this>, from its specific (own) parameters
+  Standard_EXPORT virtual void OwnShared(Interface_EntityIterator &) const {}
+  
+  //! Performs Specific Semantic Check
+  Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const {}
 
   DEFINE_STANDARD_RTTIEXT(IGESData_IGESEntity,MMgt_TShared)
 
-protected:
+ protected:
 
-  
   //! prepares lists of optionnal data, set values to defaults
   Standard_EXPORT IGESData_IGESEntity();
   
@@ -353,11 +350,8 @@ protected:
   //! Removes all properties in once
   Standard_EXPORT void ClearProperties();
 
+ private:
 
-
-private:
-
-  
   //! Clears specific IGES data
   Standard_EXPORT void Clear();
   
@@ -391,14 +385,6 @@ private:
   Standard_Integer theSubScriptN;
   Interface_EntityList theAssocs;
   Interface_EntityList theProps;
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESData_IGESEntity_HeaderFile
index b0d5a2715cc89f84cd798d16a221344418d32450..c60a480efc37c2fa7380febf33dc4369cb467ffe 100644 (file)
@@ -14,7 +14,6 @@
 
 #include <IGESData_ColorEntity.hxx>
 #include <IGESData_DirPart.hxx>
-#include <IGESData_FileRecognizer.hxx>
 #include <IGESData_IGESEntity.hxx>
 #include <IGESData_IGESModel.hxx>
 #include <IGESData_IGESReaderData.hxx>
 IGESData_IGESReaderTool::IGESData_IGESReaderTool
   (const Handle(IGESData_IGESReaderData)& reader,
    const Handle(IGESData_Protocol)& protocol)
-      : theglib(protocol) , therlib(protocol)
-      {  SetData (reader,protocol);  }
+: Interface_FileReaderTool(protocol)
+{  SetData (reader,protocol);  }
 
 
 //  ###########################################################################
 //  ########                        PREPARATION                        ########
 
-    void IGESData_IGESReaderTool::Prepare
-  (const Handle(IGESData_FileRecognizer)& reco)
+void IGESData_IGESReaderTool::Prepare ()
 {
   DeclareAndCast(IGESData_IGESReaderData,igesdat,Data());
   igesdat->SetEntityNumbers();
-  thereco = reco;
   SetEntities();
   thelist = igesdat->Params(0);
 }
 
 
-    Standard_Boolean IGESData_IGESReaderTool::Recognize
-  (const Standard_Integer num, Handle(Interface_Check)& ach,
-   Handle(Standard_Transient)& ent)
+Standard_Boolean IGESData_IGESReaderTool::Recognize (const Standard_Integer num, Handle(Standard_Transient)& ent)
 {
   DeclareAndCast(IGESData_IGESReaderData,igesdat,Data());
   thecnum = num;  thectyp = igesdat->DirType(num);
-  Handle(IGESData_IGESEntity) anent;
-  Standard_Boolean res = Standard_False;
-
-//  Recognizer -> Liste limitative
-  if (!thereco.IsNull()) res = thereco->Evaluate(thectyp,anent);
-  if (res) ent = anent;
-//  Sinon, Library
-  else res = RecognizeByLib (num,theglib,therlib,ach,ent);
-  return res;
+  return RecognizeByLib (num,ent);
 }
 
 
@@ -86,8 +73,7 @@ IGESData_IGESReaderTool::IGESData_IGESReaderTool
 
 //    (Elements enchaines par la classe de base Interface_FileReaderTool)
 
-    void IGESData_IGESReaderTool::BeginRead
-  (const Handle(Interface_InterfaceModel)& amodel)
+void IGESData_IGESReaderTool::BeginRead (const Handle(Interface_InterfaceModel)& amodel)
 {
   DeclareAndCast(IGESData_IGESModel,amod,amodel);
   DeclareAndCast(IGESData_IGESReaderData,igesdat,Data());
@@ -106,11 +92,8 @@ IGESData_IGESReaderTool::IGESData_IGESReaderTool
 
 
 // Manquent les procedures de reprise sur erreur en cours de route ...
-    Standard_Boolean  IGESData_IGESReaderTool::AnalyseRecord
-  (const Standard_Integer num, const Handle(Standard_Transient)& anent,
-   Handle(Interface_Check)& ach)
+Standard_Boolean IGESData_IGESReaderTool::AnalyseRecord (const Standard_Integer num, const Handle(Standard_Transient)& anent, Handle(Interface_Check)& ach)
 {
-
   Handle(TCollection_HAsciiString) lab;
 
   DeclareAndCast(IGESData_IGESEntity,ent,anent);
@@ -173,11 +156,6 @@ IGESData_IGESReaderTool::IGESData_IGESReaderTool
   return (!ach->HasFailed());
 }
 
-    void IGESData_IGESReaderTool::EndRead
-  (const Handle(Interface_InterfaceModel)& /* amodel */)
-{
-}
-
 
 
 //  ###########################################################################
index 4cf6f1718aacc3778d5d1c755123d8bfe955f2e1..99558bbb5b1f3a723b84590a4b5ef1bb521fa6d5 100644 (file)
 #include <Standard_DefineAlloc.hxx>
 #include <Standard_Handle.hxx>
 
-#include <Interface_GeneralLib.hxx>
-#include <Interface_ReaderLib.hxx>
-#include <Standard_Integer.hxx>
 #include <IGESData_IGESType.hxx>
 #include <IGESData_ReadStage.hxx>
-#include <Standard_Real.hxx>
 #include <Interface_FileReaderTool.hxx>
-#include <Standard_Boolean.hxx>
 class Interface_ParamList;
-class IGESData_FileRecognizer;
 class Interface_Check;
 class IGESData_IGESReaderData;
 class IGESData_Protocol;
@@ -58,12 +52,12 @@ class IGESData_IGESReaderTool  : public Interface_FileReaderTool
   //! (from IGESData) stored and later used
   //! RQ : Actually, sets DNum into IGES Entities
   //! Also loads the list of parameters for ParamReader
-  Standard_EXPORT void Prepare (const Handle(IGESData_FileRecognizer)& reco);
+  Standard_EXPORT void Prepare ();
 
  private:
   
   //! recognizes records by asking Protocol (on data of DirType)
-  Standard_EXPORT virtual Standard_Boolean Recognize (const Standard_Integer num, Handle(Interface_Check)& ach, Handle(Standard_Transient)& ent) Standard_OVERRIDE;
+  Standard_EXPORT virtual Standard_Boolean Recognize (const Standard_Integer num, Handle(Standard_Transient)& ent) Standard_OVERRIDE;
   
   //! fills model's header, that is, its GlobalSection
   Standard_EXPORT virtual void BeginRead (const Handle(Interface_InterfaceModel)& amodel) Standard_OVERRIDE;
@@ -74,9 +68,6 @@ class IGESData_IGESReaderTool  : public Interface_FileReaderTool
   //! Returns True if no fail has been recorded
   Standard_EXPORT virtual Standard_Boolean AnalyseRecord (const Standard_Integer num, const Handle(Standard_Transient)& anent, Handle(Interface_Check)& acheck) Standard_OVERRIDE;
   
-  //! after reading entities, true line weights can be computed
-  Standard_EXPORT virtual void EndRead (const Handle(Interface_InterfaceModel)& amodel) Standard_OVERRIDE;
-  
   //! Reads directory part componants from file; DP is the litteral
   //! directory part, IR detains entities referenced by DP
   Standard_EXPORT void ReadDir (const Handle(IGESData_IGESEntity)& ent, const Handle(IGESData_IGESReaderData)& IR, const IGESData_DirPart& DP, Handle(Interface_Check)& ach) const;
@@ -103,9 +94,6 @@ class IGESData_IGESReaderTool  : public Interface_FileReaderTool
   Standard_EXPORT void ReadAssocs (const Handle(IGESData_IGESEntity)& ent, const Handle(IGESData_IGESReaderData)& IR, IGESData_ParamReader& PR) const;
 
   Handle(Interface_ParamList) thelist;
-  Handle(IGESData_FileRecognizer) thereco;
-  Interface_GeneralLib theglib;
-  Interface_ReaderLib therlib;
   Standard_Integer thecnum;
   IGESData_IGESType thectyp;
   IGESData_ReadStage thestep;
index 781700125157cf2b30d95af955aeeaa2b159c896..fc8a5e11f1eb8bc1bfcc6f872e8f501eeecd1590 100644 (file)
@@ -36,10 +36,6 @@ IMPLEMENT_STANDARD_RTTIEXT(IGESData_Protocol,Interface_Protocol)
     Handle(Interface_InterfaceModel) IGESData_Protocol::NewModel () const
       {  return new IGESData_IGESModel;  }
 
-    Standard_Boolean IGESData_Protocol::IsSuitableModel
-  (const Handle(Interface_InterfaceModel)& model) const
-      {  return model->IsKind(STANDARD_TYPE(IGESData_IGESModel));  }
-
     Handle(Standard_Transient) IGESData_Protocol::UnknownEntity () const
       {  return new IGESData_UndefinedEntity;  }
 
index 9d9e59b10ec1419db93e58a033a1098a209f4c7c..88e7c5706ef4741a0cdd682e378e5db3660a6505 100644 (file)
 #include <Standard_Type.hxx>
 
 #include <Interface_Protocol.hxx>
-#include <Standard_Integer.hxx>
-#include <Standard_Type.hxx>
-#include <Standard_Boolean.hxx>
-class Interface_Protocol;
 class Interface_InterfaceModel;
-class Standard_Transient;
 
 
 class IGESData_Protocol;
@@ -48,9 +43,6 @@ class IGESData_Protocol : public Interface_Protocol
   //! Creates an empty Model for IGES Norm
   Standard_EXPORT Handle(Interface_InterfaceModel) NewModel() const Standard_OVERRIDE;
   
-  //! Returns True if <model> is a Model of IGES Norm
-  Standard_EXPORT Standard_Boolean IsSuitableModel (const Handle(Interface_InterfaceModel)& model) const Standard_OVERRIDE;
-  
   //! Creates a new Unknown Entity for IGES (UndefinedEntity)
   Standard_EXPORT Handle(Standard_Transient) UnknownEntity() const Standard_OVERRIDE;
   
@@ -58,27 +50,7 @@ class IGESData_Protocol : public Interface_Protocol
   //! Type UndefinedEntity, status Unknown
   Standard_EXPORT Standard_Boolean IsUnknownEntity (const Handle(Standard_Transient)& ent) const Standard_OVERRIDE;
 
-
-
-
   DEFINE_STANDARD_RTTIEXT(IGESData_Protocol,Interface_Protocol)
-
-protected:
-
-
-
-
-private:
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESData_Protocol_HeaderFile
index a4a0154e71545b0ef4b4f4db4c7320349f309ed1..becf33c547f42a7d461e7f5d1567f1c32e3dfa44 100644 (file)
@@ -22,8 +22,6 @@
 #include <Interface_FileReaderData.hxx>
 #include <Interface_Macros.hxx>
 #include <Standard_DomainError.hxx>
-#include <Standard_Transient.hxx>
-#include <Standard_Type.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESData_ReadWriteModule,Interface_ReaderModule)
 
@@ -36,13 +34,10 @@ Standard_Integer  IGESData_ReadWriteModule::CaseNum
 }
 
 
-void  IGESData_ReadWriteModule::Read
+void IGESData_ReadWriteModule::Read
   (const Standard_Integer ,
    const Handle(Interface_FileReaderData)& , const Standard_Integer ,
    Handle(Interface_Check)& , const Handle(Standard_Transient)& ) const 
 {
-#ifdef OCCT_DEBUG
-  cout<<"IGESData_ReadWriteModule, Read called"<<endl;
-#endif
-}
   // IGESReaderTool fait tout
+}
index 0cee336436f6a10b8ead2caf6048cd0eb3cf0332..f2a10b724f01772f54f3c17f2bc2349878e81ade 100644 (file)
 #ifndef _IGESData_ReadWriteModule_HeaderFile
 #define _IGESData_ReadWriteModule_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
 #include <Interface_ReaderModule.hxx>
-#include <Standard_Integer.hxx>
-class Standard_DomainError;
 class Interface_FileReaderData;
 class Interface_Check;
-class Standard_Transient;
 class IGESData_IGESEntity;
 class IGESData_IGESReaderData;
 class IGESData_ParamReader;
@@ -55,10 +49,8 @@ DEFINE_STANDARD_HANDLE(IGESData_ReadWriteModule, Interface_ReaderModule)
 //! Warning : Works with an IGESReaderData which stores "DE parts" of Items
 class IGESData_ReadWriteModule : public Interface_ReaderModule
 {
+ public:
 
-public:
-
-  
   //! Translates the Type of record <num> in <data> to a positive
   //! Case Number, or 0 if failed.
   //! Works with IGESReaderData which provides Type & Form Numbers,
@@ -90,27 +82,7 @@ public:
   //! WriteIGES, must not be sent by this method
   Standard_EXPORT virtual void WriteOwnParams (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, IGESData_IGESWriter& IW) const = 0;
 
-
-
-
   DEFINE_STANDARD_RTTIEXT(IGESData_ReadWriteModule,Interface_ReaderModule)
-
-protected:
-
-
-
-
-private:
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESData_ReadWriteModule_HeaderFile
index 8eb81a33cc77ca4c1393f77aa2f24c4f6b23dcdd..03ebfc8ea33a3bc9005724a02a996c7b53414304 100644 (file)
@@ -21,8 +21,6 @@
 #include <Standard_Type.hxx>
 
 #include <Standard_Transient.hxx>
-#include <Standard_Integer.hxx>
-#include <Standard_Boolean.hxx>
 class IGESData_IGESEntity;
 class IGESData_IGESDumper;
 class Message_Messenger;
@@ -35,10 +33,8 @@ DEFINE_STANDARD_HANDLE(IGESData_SpecificModule, Standard_Transient)
 //! attached to IGES Entities : Dump
 class IGESData_SpecificModule : public Standard_Transient
 {
+ public:
 
-public:
-
-  
   //! Specific Dump for each type of IGES Entity : it concerns only
   //! own parameters, the general data (Directory Part, Lists) are
   //! taken into account by the IGESDumper
@@ -65,27 +61,7 @@ public:
   //! procedure attached, this method can be redefined
   Standard_EXPORT virtual Standard_Boolean OwnCorrect (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent) const;
 
-
-
-
   DEFINE_STANDARD_RTTIEXT(IGESData_SpecificModule,Standard_Transient)
-
-protected:
-
-
-
-
-private:
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESData_SpecificModule_HeaderFile
index f065366ea0cd1be6009e76b945ae4a55b862c697..3910d5f3aed9d01d71621ab5e1f047180e55b88e 100644 (file)
 #include <Interface_GeneralLib.hxx>
 #include <Interface_ReaderLib.hxx>
 
-//  Ancillary data to work on a Package of IGES Entities with a Protocol
-//  (Modules are created and loaded in appropriate libraries, once by Init)
-static Handle(IGESDefs_Protocol) protocol;
 
-
-    void  IGESDefs::Init ()
+/*void IGESDefs::Init ()
 {
   IGESGraph::Init();
+  IGESDefs::Protocol();
+}*/
+
+const Handle(IGESDefs_Protocol) & IGESDefs::Protocol ()
+{
+  static Handle(IGESDefs_Protocol) protocol;
   if (protocol.IsNull()) {
     protocol = new IGESDefs_Protocol;
     Interface_GeneralLib::SetGlobal (new IGESDefs_GeneralModule,  protocol);
@@ -38,9 +40,5 @@ static Handle(IGESDefs_Protocol) protocol;
     IGESData_WriterLib::SetGlobal   (new IGESDefs_ReadWriteModule,protocol);
     IGESData_SpecificLib::SetGlobal (new IGESDefs_SpecificModule, protocol);
   }
-}
-
-    Handle(IGESDefs_Protocol)  IGESDefs::Protocol ()
-{
   return protocol;
 }
index 6490014167ed346f17c31abad517c4c2d0d59284..4c54abf6b618e9442d1696da7ca9a6b78386c2f1 100644 (file)
 #define _IGESDefs_HeaderFile
 
 #include <Standard.hxx>
-#include <Standard_DefineAlloc.hxx>
 #include <Standard_Handle.hxx>
 
 class IGESDefs_Protocol;
-class IGESDefs_AssociativityDef;
-class IGESDefs_MacroDef;
-class IGESDefs_UnitsData;
-class IGESDefs_AttributeDef;
-class IGESDefs_TabularData;
-class IGESDefs_GenericData;
-class IGESDefs_AttributeTable;
-class IGESDefs_ToolAssociativityDef;
-class IGESDefs_ToolMacroDef;
-class IGESDefs_ToolUnitsData;
-class IGESDefs_ToolAttributeDef;
-class IGESDefs_ToolTabularData;
-class IGESDefs_ToolGenericData;
-class IGESDefs_ToolAttributeTable;
-class IGESDefs_Protocol;
-class IGESDefs_ReadWriteModule;
-class IGESDefs_GeneralModule;
-class IGESDefs_SpecificModule;
-class IGESDefs_HArray1OfHArray1OfTextDisplayTemplate;
 
 
 //! To embody general definitions of Entities
 //! (Parameters, Tables ...)
 class IGESDefs 
 {
-public:
-
-  DEFINE_STANDARD_ALLOC
+ public:
 
-  
   //! Prepares dynamic data (Protocol, Modules) for this package
-  Standard_EXPORT static void Init();
+  //Standard_EXPORT static void Init();
   
   //! Returns the Protocol for this Package
-  Standard_EXPORT static Handle(IGESDefs_Protocol) Protocol();
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-friend class IGESDefs_AssociativityDef;
-friend class IGESDefs_MacroDef;
-friend class IGESDefs_UnitsData;
-friend class IGESDefs_AttributeDef;
-friend class IGESDefs_TabularData;
-friend class IGESDefs_GenericData;
-friend class IGESDefs_AttributeTable;
-friend class IGESDefs_ToolAssociativityDef;
-friend class IGESDefs_ToolMacroDef;
-friend class IGESDefs_ToolUnitsData;
-friend class IGESDefs_ToolAttributeDef;
-friend class IGESDefs_ToolTabularData;
-friend class IGESDefs_ToolGenericData;
-friend class IGESDefs_ToolAttributeTable;
-friend class IGESDefs_Protocol;
-friend class IGESDefs_ReadWriteModule;
-friend class IGESDefs_GeneralModule;
-friend class IGESDefs_SpecificModule;
-friend class IGESDefs_HArray1OfHArray1OfTextDisplayTemplate;
-
+  Standard_EXPORT static const Handle(IGESDefs_Protocol) & Protocol();
 };
 
-
-
-
-
-
-
 #endif // _IGESDefs_HeaderFile
index f87e672e95a19b54f8ce9d2b24604f2129e5ef21..2f053e01cc0523dc4c25bcece235d41dc8ed642a 100644 (file)
 #include <IGESDefs_UnitsData.hxx>
 #include <Interface_Category.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
-#include <Standard_Transient.hxx>
-#include <Standard_Type.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESDefs_GeneralModule,IGESData_GeneralModule)
 
-//  Each Module is attached to a Protocol : it must interprete Case Numbers
-//  (arguments <CN> of various methods) in accordance to values returned by
-//  the method TypeNumber from this Protocol
-IGESDefs_GeneralModule::IGESDefs_GeneralModule ()    {  }
-
 
     void  IGESDefs_GeneralModule::OwnSharedCase
   (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent,
    Interface_EntityIterator& iter) const 
 {
   switch (CN) {
-    case  1 : {
-      DeclareAndCast(IGESDefs_AssociativityDef,anent,ent);
-      if (anent.IsNull()) return;
-      IGESDefs_ToolAssociativityDef tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
     case  2 : {
       DeclareAndCast(IGESDefs_AttributeDef,anent,ent);
       if (anent.IsNull()) return;
@@ -79,27 +64,6 @@ IGESDefs_GeneralModule::IGESDefs_GeneralModule ()    {  }
       tool.OwnShared(anent,iter);
     }
       break;
-    case  5 : {
-      DeclareAndCast(IGESDefs_MacroDef,anent,ent);
-      if (anent.IsNull()) return;
-      IGESDefs_ToolMacroDef tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
-    case  6 : {
-      DeclareAndCast(IGESDefs_TabularData,anent,ent);
-      if (anent.IsNull()) return;
-      IGESDefs_ToolTabularData tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
-    case  7 : {
-      DeclareAndCast(IGESDefs_UnitsData,anent,ent);
-      if (anent.IsNull()) return;
-      IGESDefs_ToolUnitsData tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
     default : break;
   }
 }
@@ -162,13 +126,6 @@ IGESDefs_GeneralModule::IGESDefs_GeneralModule ()    {  }
    const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const 
 {
   switch (CN) {
-    case  1 : {
-      DeclareAndCast(IGESDefs_AssociativityDef,anent,ent);
-      if (anent.IsNull()) return;
-      IGESDefs_ToolAssociativityDef tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
     case  2 : {
       DeclareAndCast(IGESDefs_AttributeDef,anent,ent);
       if (anent.IsNull()) return;
@@ -190,27 +147,6 @@ IGESDefs_GeneralModule::IGESDefs_GeneralModule ()    {  }
       tool.OwnCheck(anent,shares,ach);
     }
       break;
-    case  5 : {
-      DeclareAndCast(IGESDefs_MacroDef,anent,ent);
-      if (anent.IsNull()) return;
-      IGESDefs_ToolMacroDef tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
-    case  6 : {
-      DeclareAndCast(IGESDefs_TabularData,anent,ent);
-      if (anent.IsNull()) return;
-      IGESDefs_ToolTabularData tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
-    case  7 : {
-      DeclareAndCast(IGESDefs_UnitsData,anent,ent);
-      if (anent.IsNull()) return;
-      IGESDefs_ToolUnitsData tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
     default : break;
   }
 }
@@ -233,67 +169,6 @@ IGESDefs_GeneralModule::IGESDefs_GeneralModule ()    {  }
 }
 
 
-    void  IGESDefs_GeneralModule::OwnCopyCase
-  (const Standard_Integer CN,
-   const Handle(IGESData_IGESEntity)& entfrom,
-   const Handle(IGESData_IGESEntity)& entto,
-   Interface_CopyTool& TC) const 
-{
-  switch (CN) {
-    case  1 : {
-      DeclareAndCast(IGESDefs_AssociativityDef,enfr,entfrom);
-      DeclareAndCast(IGESDefs_AssociativityDef,ento,entto);
-      IGESDefs_ToolAssociativityDef tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  2 : {
-      DeclareAndCast(IGESDefs_AttributeDef,enfr,entfrom);
-      DeclareAndCast(IGESDefs_AttributeDef,ento,entto);
-      IGESDefs_ToolAttributeDef tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  3 : {
-      DeclareAndCast(IGESDefs_AttributeTable,enfr,entfrom);
-      DeclareAndCast(IGESDefs_AttributeTable,ento,entto);
-      IGESDefs_ToolAttributeTable tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  4 : {
-      DeclareAndCast(IGESDefs_GenericData,enfr,entfrom);
-      DeclareAndCast(IGESDefs_GenericData,ento,entto);
-      IGESDefs_ToolGenericData tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  5 : {
-      DeclareAndCast(IGESDefs_MacroDef,enfr,entfrom);
-      DeclareAndCast(IGESDefs_MacroDef,ento,entto);
-      IGESDefs_ToolMacroDef tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  6 : {
-      DeclareAndCast(IGESDefs_TabularData,enfr,entfrom);
-      DeclareAndCast(IGESDefs_TabularData,ento,entto);
-      IGESDefs_ToolTabularData tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  7 : {
-      DeclareAndCast(IGESDefs_UnitsData,enfr,entfrom);
-      DeclareAndCast(IGESDefs_UnitsData,ento,entto);
-      IGESDefs_ToolUnitsData tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    default : break;
-  }
-}
-
-
     Standard_Integer  IGESDefs_GeneralModule::CategoryNumber
   (const Standard_Integer /*CN*/, const Handle(Standard_Transient)& /*ent*/,
    const Interface_ShareTool& ) const
index bcc00c72de2ed5e78548f0b48772c15576687372..6506314ef03f9a5af9296c402e736918fdfebdb4 100644 (file)
 #ifndef _IGESDefs_GeneralModule_HeaderFile
 #define _IGESDefs_GeneralModule_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
 #include <IGESData_GeneralModule.hxx>
-#include <Standard_Integer.hxx>
-#include <Standard_Boolean.hxx>
-class IGESData_IGESEntity;
-class Interface_EntityIterator;
-class IGESData_DirChecker;
-class Interface_ShareTool;
-class Interface_Check;
-class Standard_Transient;
-class Interface_CopyTool;
 
 
 class IGESDefs_GeneralModule;
@@ -39,12 +27,10 @@ DEFINE_STANDARD_HANDLE(IGESDefs_GeneralModule, IGESData_GeneralModule)
 //! This Services comprise : Shared & Implied Lists, Copy, Check
 class IGESDefs_GeneralModule : public IGESData_GeneralModule
 {
+ public:
 
-public:
-
-  
   //! Creates a GeneralModule from IGESDefs and puts it into GeneralLib
-  Standard_EXPORT IGESDefs_GeneralModule();
+  IGESDefs_GeneralModule() {}
   
   //! Lists the Entities shared by a given IGESEntity <ent>, from
   //! its specific parameters : specific for each type
@@ -61,34 +47,11 @@ public:
   //! Specific creation of a new void entity
   Standard_EXPORT Standard_Boolean NewVoid (const Standard_Integer CN, Handle(Standard_Transient)& entto) const Standard_OVERRIDE;
   
-  //! Copies parameters which are specific of each Type of Entity
-  Standard_EXPORT void OwnCopyCase (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& entfrom, const Handle(IGESData_IGESEntity)& entto, Interface_CopyTool& TC) const Standard_OVERRIDE;
-  
   //! Returns a category number which characterizes an entity
   //! Auxiliary for all
   Standard_EXPORT virtual Standard_Integer CategoryNumber (const Standard_Integer CN, const Handle(Standard_Transient)& ent, const Interface_ShareTool& shares) const Standard_OVERRIDE;
 
-
-
-
   DEFINE_STANDARD_RTTIEXT(IGESDefs_GeneralModule,IGESData_GeneralModule)
-
-protected:
-
-
-
-
-private:
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDefs_GeneralModule_HeaderFile
index 845fa9715b35d8759d4a2eeea22201297bf21320..744bce0a8e30a16369dee643f785b9821d6f79e7 100644 (file)
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESDefs_ReadWriteModule,IGESData_ReadWriteModule)
 
-//  Each Module is attached to a Protocol : it must interprete Case Numbers
-//  (arguments <CN> of various methods) in accordance to values returned by
-//  the method TypeNumber from this Protocol
-IGESDefs_ReadWriteModule::IGESDefs_ReadWriteModule ()    {  }
-
 
     Standard_Integer  IGESDefs_ReadWriteModule::CaseIGES
   (const Standard_Integer typenum, const Standard_Integer formnum) const 
index 6e1617e5a8ef656fa4012222ffb9c58d2d6c6a06..455faae6e3b70fccfcdbdef14718f3465e3bb336 100644 (file)
 #ifndef _IGESDefs_ReadWriteModule_HeaderFile
 #define _IGESDefs_ReadWriteModule_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
 #include <IGESData_ReadWriteModule.hxx>
-#include <Standard_Integer.hxx>
-class Standard_DomainError;
 class IGESData_IGESEntity;
 class IGESData_IGESReaderData;
 class IGESData_ParamReader;
@@ -37,12 +32,10 @@ DEFINE_STANDARD_HANDLE(IGESDefs_ReadWriteModule, IGESData_ReadWriteModule)
 //! an IGESEntity.
 class IGESDefs_ReadWriteModule : public IGESData_ReadWriteModule
 {
+ public:
 
-public:
-
-  
   //! Creates a ReadWriteModule & puts it into ReaderLib & WriterLib
-  Standard_EXPORT IGESDefs_ReadWriteModule();
+  IGESDefs_ReadWriteModule() {}
   
   //! Defines Case Numbers for Entities of IGESDefs
   Standard_EXPORT Standard_Integer CaseIGES (const Standard_Integer typenum, const Standard_Integer formnum) const Standard_OVERRIDE;
@@ -53,27 +46,7 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, IGESData_IGESWriter& IW) const Standard_OVERRIDE;
 
-
-
-
   DEFINE_STANDARD_RTTIEXT(IGESDefs_ReadWriteModule,IGESData_ReadWriteModule)
-
-protected:
-
-
-
-
-private:
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDefs_ReadWriteModule_HeaderFile
index 56fd0977f801ed5a56ec43acb13ba07220979006..5c02092029b8b0a6b32448627b98371616f980ec 100644 (file)
@@ -27,7 +27,6 @@
 #include <IGESDefs_AssociativityDef.hxx>
 #include <IGESDefs_ToolAssociativityDef.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -35,8 +34,6 @@
 #include <Standard_DomainError.hxx>
 #include <TColStd_HArray1OfInteger.hxx>
 
-IGESDefs_ToolAssociativityDef::IGESDefs_ToolAssociativityDef ()    {  }
-
 
 void  IGESDefs_ToolAssociativityDef::ReadOwnParams
   (const Handle(IGESDefs_AssociativityDef)& ent,
@@ -110,50 +107,6 @@ void  IGESDefs_ToolAssociativityDef::WriteOwnParams
   }
 }
 
-void  IGESDefs_ToolAssociativityDef::OwnShared
-  (const Handle(IGESDefs_AssociativityDef)& /* ent */, Interface_EntityIterator& /* iter */) const
-{
-}
-
-void  IGESDefs_ToolAssociativityDef::OwnCopy
-  (const Handle(IGESDefs_AssociativityDef)& another,
-   const Handle(IGESDefs_AssociativityDef)& ent, Interface_CopyTool& /* TC */) const
-{ 
-
-  Handle(TColStd_HArray1OfInteger) requirements;
-  Handle(TColStd_HArray1OfInteger) orders;
-  Handle(TColStd_HArray1OfInteger) numItems;
-  Handle(IGESBasic_HArray1OfHArray1OfInteger) items;
-
-  Standard_Integer nbval = another->NbClassDefs();
-
-  requirements = new TColStd_HArray1OfInteger(1, nbval);
-  orders = new TColStd_HArray1OfInteger(1, nbval);
-  numItems = new TColStd_HArray1OfInteger(1, nbval);
-  items = new IGESBasic_HArray1OfHArray1OfInteger(1, nbval);
-
-  for (Standard_Integer i = 1; i <= nbval; i++)
-    {
-      Standard_Integer requirement = another->BackPointerReq(i);
-      requirements->SetValue(i, requirement);
-      Standard_Integer order = another->ClassOrder(i);
-      orders->SetValue(i, order);
-      Standard_Integer numItem = another->NbItemsPerClass(i);
-      numItems->SetValue(i, numItem);
-      Handle(TColStd_HArray1OfInteger) item;
-      item = new TColStd_HArray1OfInteger(1, numItem);
-
-      for (Standard_Integer j = 1; j <= numItem; j++)
-       {
-          Standard_Integer temp = another->Item(i, j);
-          item->SetValue(j, temp);
-       }
-      items->SetValue(i, item);
-    }
-  ent->Init(requirements, orders, numItems, items);
-  ent->SetFormNumber (another->FormNumber());
-}
-
 IGESData_DirChecker  IGESDefs_ToolAssociativityDef::DirChecker
   (const Handle(IGESDefs_AssociativityDef)& /* ent */ ) const 
 { 
@@ -169,12 +122,6 @@ IGESData_DirChecker  IGESDefs_ToolAssociativityDef::DirChecker
   return DC;
 }
 
-void  IGESDefs_ToolAssociativityDef::OwnCheck
-  (const Handle(IGESDefs_AssociativityDef)& /* ent */,
-   const Interface_ShareTool& , Handle(Interface_Check)& /* ach */) const 
-{
-}
-
 void  IGESDefs_ToolAssociativityDef::OwnDump
   (const Handle(IGESDefs_AssociativityDef)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const 
index 27b93e0e2e569820b6b79c6124795291162adcfa..b729d9f077c17d2139fe94be56b8524407c44aaf 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESDefs_ToolAssociativityDef 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolAssociativityDef, ready to work
-  Standard_EXPORT IGESDefs_ToolAssociativityDef();
+  IGESDefs_ToolAssociativityDef() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESDefs_AssociativityDef)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a AssociativityDef <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESDefs_AssociativityDef)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESDefs_AssociativityDef)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESDefs_AssociativityDef)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESDefs_AssociativityDef)& entfrom, const Handle(IGESDefs_AssociativityDef)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESDefs_AssociativityDef)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDefs_ToolAssociativityDef_HeaderFile
index 6464087915210c211e1e28a85916bef9bb7a0bcf..d10b01dce067c82d3dd5d1dd79f462561d8a8245 100644 (file)
@@ -31,7 +31,6 @@
 #include <IGESGraph_HArray1OfTextDisplayTemplate.hxx>
 #include <IGESGraph_TextDisplayTemplate.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_HArray1OfHAsciiString.hxx>
 #include <Interface_Macros.hxx>
@@ -44,8 +43,6 @@
 #include <TColStd_HArray1OfTransient.hxx>
 
 #include <stdio.h>
-IGESDefs_ToolAttributeDef::IGESDefs_ToolAttributeDef ()    {  }
-
 
 void IGESDefs_ToolAttributeDef::ReadOwnParams
   (const Handle(IGESDefs_AttributeDef)& ent,
@@ -258,105 +255,6 @@ void  IGESDefs_ToolAttributeDef::OwnShared
     }
 }
 
-
-void IGESDefs_ToolAttributeDef::OwnCopy
-  (const Handle(IGESDefs_AttributeDef)& another,
-   const Handle(IGESDefs_AttributeDef)& ent, Interface_CopyTool& TC) const
-{
-  Handle(TCollection_HAsciiString) aName;
-  if (!another->TableName().IsNull()) aName =
-    new TCollection_HAsciiString(another->TableName());
-  Standard_Integer aListType = another->ListType();
-
-  Handle(TColStd_HArray1OfInteger) attrTypes;
-  Handle(TColStd_HArray1OfInteger) attrValueDataTypes;
-  Handle(TColStd_HArray1OfInteger) attrValueCounts;
-  Handle(TColStd_HArray1OfTransient) attrValues;
-  Handle(IGESDefs_HArray1OfHArray1OfTextDisplayTemplate)  attrValuePointers;
-  Standard_Integer nbval = another->NbAttributes();
-
-  attrTypes = new TColStd_HArray1OfInteger(1, nbval);
-  attrValueDataTypes = new TColStd_HArray1OfInteger(1, nbval);
-  attrValueCounts = new TColStd_HArray1OfInteger(1, nbval);
-  if (another->HasValues()) attrValues =
-    new TColStd_HArray1OfTransient(1, nbval);
-  if (another->HasTextDisplay()) attrValuePointers =
-    new IGESDefs_HArray1OfHArray1OfTextDisplayTemplate(1, nbval);
-
-  for (Standard_Integer i = 1; i <= nbval; i++)
-    {
-      Standard_Integer attrType = another->AttributeType(i);
-      attrTypes->SetValue(i, attrType);
-      Standard_Integer attrValueDataType = another->AttributeValueDataType(i);
-      attrValueDataTypes->SetValue(i, attrValueDataType);
-      Standard_Integer avc               = another->AttributeValueCount(i);
-      attrValueCounts->SetValue(i, avc);
-      Handle(IGESGraph_HArray1OfTextDisplayTemplate) attrValuePointer;
-
-      if (another->HasTextDisplay()) attrValuePointer =
-       new IGESGraph_HArray1OfTextDisplayTemplate(1, avc);
-
-      if (another->HasValues())
-       {
-         Handle(TColStd_HArray1OfInteger)        attrInt;
-         Handle(TColStd_HArray1OfReal)           attrReal;
-         Handle(Interface_HArray1OfHAsciiString) attrStr;
-         Handle(IGESData_HArray1OfIGESEntity)    attrEnt;
-         switch (attrValueDataType) {
-           case 1 : attrInt  = new TColStd_HArray1OfInteger       (1,avc);
-             attrValues->SetValue(i,attrInt);  break;
-           case 2 : attrReal = new TColStd_HArray1OfReal          (1,avc);
-             attrValues->SetValue(i,attrReal); break;
-           case 3 : attrStr  = new Interface_HArray1OfHAsciiString(1,avc);
-             attrValues->SetValue(i,attrStr);  break;
-           case 4 : attrEnt  = new IGESData_HArray1OfIGESEntity   (1,avc);
-             attrValues->SetValue(i,attrEnt);  break;
-           case 6 : attrInt  = new TColStd_HArray1OfInteger       (1,avc);
-             attrValues->SetValue(i,attrInt);  break;
-           default : break;
-         }
-          for (Standard_Integer j = 1; j <= avc; j ++)
-           {
-              switch(attrValueDataType)
-               {
-               case 0:
-                 break;
-               case 1: attrInt->SetValue(j,another->AttributeAsInteger(i,j));
-                 break;
-               case 2: attrReal->SetValue(j,another->AttributeAsReal(i,j));
-                 break;
-               case 3: attrStr->SetValue(j,new TCollection_HAsciiString
-                                          (another->AttributeAsString(i,j)));
-                 break;
-               case 4: {
-                 DeclareAndCast(IGESData_IGESEntity,Ent,TC.Transferred
-                                (another->AttributeAsEntity(i,j)));
-                 attrEnt->SetValue(j,Ent);
-               }
-                 break;
-               case 5:
-                 break;
-               case 6: attrInt->SetValue
-                 (j,(another->AttributeAsLogical(i,j) ? 1 : 0));
-                 break;
-               default : break;
-               }
-              if (another->HasTextDisplay())
-               {
-                  DeclareAndCast(IGESGraph_TextDisplayTemplate, temptext,
-                                TC.Transferred(another->AttributeTextDisplay(i,j)));
-                  attrValuePointer->SetValue (j, temptext);
-               }
-           }
-          if (another->HasTextDisplay())
-           attrValuePointers->SetValue(i, attrValuePointer);
-       }
-    }
-  ent->Init
-    (aName, aListType, attrTypes, attrValueDataTypes, attrValueCounts,
-     attrValues, attrValuePointers);
-}
-
 IGESData_DirChecker  IGESDefs_ToolAttributeDef::DirChecker
   (const Handle(IGESDefs_AttributeDef)& /* ent */ ) const
 {
index b0eea36f09083d6f43821616c3e39bd792c94b02..a40a145be9a719d6f70337d7585a6cd0685c2a06 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESDefs_ToolAttributeDef 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolAttributeDef, ready to work
-  Standard_EXPORT IGESDefs_ToolAttributeDef();
+  IGESDefs_ToolAttributeDef() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -65,33 +63,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESDefs_AttributeDef)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESDefs_AttributeDef)& entfrom, const Handle(IGESDefs_AttributeDef)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESDefs_AttributeDef)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDefs_ToolAttributeDef_HeaderFile
index a8840d5ac1128f5e0d9cffc4cf0b57d3024aa9b8..1bd3bf92fcbbc58d1483735c826a37e94cbc9510 100644 (file)
@@ -28,7 +28,6 @@
 #include <IGESDefs_AttributeTable.hxx>
 #include <IGESDefs_ToolAttributeTable.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_HArray1OfHAsciiString.hxx>
 #include <Interface_Macros.hxx>
@@ -40,8 +39,6 @@
 #include <TColStd_HArray1OfReal.hxx>
 #include <TColStd_HArray2OfTransient.hxx>
 
-IGESDefs_ToolAttributeTable::IGESDefs_ToolAttributeTable ()    {  }
-
 
 void  IGESDefs_ToolAttributeTable::ReadOwnParams
   (const Handle(IGESDefs_AttributeTable)& ent,
@@ -192,87 +189,6 @@ void  IGESDefs_ToolAttributeTable::OwnShared
     }
 }
 
-void  IGESDefs_ToolAttributeTable::OwnCopy
-  (const Handle(IGESDefs_AttributeTable)& another,
-   const Handle(IGESDefs_AttributeTable)& ent, Interface_CopyTool& TC) const
-{ 
-  Standard_Integer j = 1;
-  Handle(IGESDefs_AttributeDef) ab = another->Definition();
-  Standard_Integer na = another->NbAttributes();
-  Standard_Integer nr = another->NbRows();
-  Handle(TColStd_HArray2OfTransient) list2 =
-    new TColStd_HArray2OfTransient(1,na,1,nr);
-  for (Standard_Integer k = 1; k <= nr; k ++)
-    {
-      for (Standard_Integer i = 1; i <= na; i ++)
-       {
-         Standard_Integer avc   = ab->AttributeValueCount(i);
-         Standard_Integer atype = ab->AttributeValueDataType(i);
-         switch (atype)
-           {
-            case 0 : ////    list2->SetValue(i,k,NULL);    par defaut
-             break;
-            case 1 : {
-             DeclareAndCast(TColStd_HArray1OfInteger,otherInt,
-                            another->AttributeList(i,k));
-             Handle(TColStd_HArray1OfInteger) attrInt  =
-               new TColStd_HArray1OfInteger (1,avc);
-             list2->SetValue(i,k,attrInt);
-             for (j = 1; j <= avc; j++)
-               attrInt->SetValue(j,otherInt->Value(j));
-           }
-             break;
-            case 2 : {
-             DeclareAndCast(TColStd_HArray1OfReal,otherReal,
-                            another->AttributeList(i,k));
-             Handle(TColStd_HArray1OfReal) attrReal  =
-               new TColStd_HArray1OfReal (1,avc);
-             list2->SetValue(i,k,attrReal);
-             for (j = 1; j <= avc; j++)
-               attrReal->SetValue(j,otherReal->Value(j));
-           }
-             break;
-           case 3 : {
-             DeclareAndCast(Interface_HArray1OfHAsciiString,otherStr,
-                            another->AttributeList(i,k));
-             Handle(Interface_HArray1OfHAsciiString) attrStr  =
-               new Interface_HArray1OfHAsciiString (1,avc);
-             list2->SetValue(i,k,attrStr);
-             for (j = 1; j <= avc; j++)
-               attrStr->SetValue
-                 (j,new TCollection_HAsciiString(otherStr->Value(j)));
-           }
-             break;
-           case 4 : {
-             DeclareAndCast(IGESData_HArray1OfIGESEntity,otherEnt,
-                            another->AttributeList(i,k));
-             Handle(IGESData_HArray1OfIGESEntity) attrEnt  =
-               new IGESData_HArray1OfIGESEntity (1,avc);
-             list2->SetValue(i,k,attrEnt);
-             for (j = 1; j <= avc; j++)
-               attrEnt->SetValue(j,GetCasted(IGESData_IGESEntity,
-                                             TC.Transferred(otherEnt->Value(j))));
-           }
-             break;
-           case 5 : /////            list2->SetValue(i,k,NULL);    par defaut
-             break;
-           case 6 :{    // Here item takes value 0 or 1
-             DeclareAndCast(TColStd_HArray1OfInteger,otherInt,
-                            another->AttributeList(i,k));
-             Handle(TColStd_HArray1OfInteger) attrInt  =
-               new TColStd_HArray1OfInteger (1,avc);
-             list2->SetValue(i,k,attrInt);
-             for (j = 1; j <= avc; j++)
-               attrInt->SetValue(j,otherInt->Value(j));
-           }
-             break;
-              default : break;
-           }
-       }
-    }
-  ent->Init(list2);
-}
-
 IGESData_DirChecker  IGESDefs_ToolAttributeTable::DirChecker
   (const Handle(IGESDefs_AttributeTable)& /* ent */ ) const 
 { 
index de2a3718559a2ca2bdac66f5810bec69f8985bb4..8533362e97877aba2fc86f23068fe2c631b74045 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESDefs_ToolAttributeTable 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolAttributeTable, ready to work
-  Standard_EXPORT IGESDefs_ToolAttributeTable();
+  IGESDefs_ToolAttributeTable() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -65,33 +63,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESDefs_AttributeTable)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESDefs_AttributeTable)& entfrom, const Handle(IGESDefs_AttributeTable)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESDefs_AttributeTable)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDefs_ToolAttributeTable_HeaderFile
index ecd88badda192507c9ce86cb1ebe715da626512b..0c2007ba1cb592c8e40127810bf07b04f176d2fc 100644 (file)
@@ -28,7 +28,6 @@
 #include <IGESDefs_GenericData.hxx>
 #include <IGESDefs_ToolGenericData.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_HArray1OfHAsciiString.hxx>
 #include <Interface_Macros.hxx>
@@ -40,8 +39,6 @@
 #include <TColStd_HArray1OfReal.hxx>
 #include <TColStd_HArray1OfTransient.hxx>
 
-IGESDefs_ToolGenericData::IGESDefs_ToolGenericData ()    {  }
-
 
 void  IGESDefs_ToolGenericData::ReadOwnParams
   (const Handle(IGESDefs_GenericData)& ent,
@@ -165,70 +162,6 @@ void  IGESDefs_ToolGenericData::OwnShared
     }
 }
 
-void  IGESDefs_ToolGenericData::OwnCopy
-  (const Handle(IGESDefs_GenericData)& another,
-   const Handle(IGESDefs_GenericData)& ent, Interface_CopyTool& TC) const
-{
-  Standard_Integer num = another->NbTypeValuePairs();
-  Standard_Integer tempNbPropVal = another->NbPropertyValues();
-  Handle(TCollection_HAsciiString) tempName =
-    new TCollection_HAsciiString(another->Name());
-  Handle(TColStd_HArray1OfInteger) tempTypes =
-    new TColStd_HArray1OfInteger(1, num);
-  Handle(TColStd_HArray1OfTransient) tempValues =
-    new TColStd_HArray1OfTransient(1, num);
-
-  for (Standard_Integer i = 1; i <= num; i++)
-    {
-      tempTypes->SetValue(i, another->Type(i));
-      switch (another->Type(i))
-       {
-       case 0: // No value
-          break;
-       case 1: // Integer
-          {
-           Handle(TColStd_HArray1OfInteger) tempObj =
-             new TColStd_HArray1OfInteger(1,1);
-           tempObj->SetValue(1,another->ValueAsInteger(i));
-           tempValues->SetValue(i, tempObj);
-          }
-          break;
-       case 2: // Real
-          {
-           Handle(TColStd_HArray1OfReal) tempObj =
-             new TColStd_HArray1OfReal(1,1);
-           tempObj->SetValue(1,another->ValueAsReal(i));
-           tempValues->SetValue(i, tempObj);
-          }
-          break;
-       case 3: // Character string
-          {
-           tempValues->SetValue
-             (i, new TCollection_HAsciiString(another->ValueAsString(i)));
-          }
-          break;
-       case 4: // Pointer
-          {
-           DeclareAndCast(IGESData_IGESEntity, tempObj,
-                          TC.Transferred(another->ValueAsEntity(i)));
-           tempValues->SetValue(i, tempObj);
-          }
-          break;
-       case 5: // Not used
-         break;
-       case 6: // Logical
-          {
-           Handle(TColStd_HArray1OfInteger) tempObj =
-             new TColStd_HArray1OfInteger(1,1);
-           tempObj->SetValue(1, (another->ValueAsLogical(i) ? 1 : 0) );
-           tempValues->SetValue(i, tempObj);
-          }
-          break;
-       }
-    }
-  ent->Init (tempNbPropVal, tempName, tempTypes, tempValues);
-}
-
 IGESData_DirChecker  IGESDefs_ToolGenericData::DirChecker
   (const Handle(IGESDefs_GenericData)& /* ent */ ) const
 {
index abfd855102d544745f35dece5e26d7f5fc8f40d6..f8c68d99eacbece8fbf2062b93f30c8ad2e369b4 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESDefs_ToolGenericData 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolGenericData, ready to work
-  Standard_EXPORT IGESDefs_ToolGenericData();
+  IGESDefs_ToolGenericData() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -65,33 +63,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESDefs_GenericData)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESDefs_GenericData)& entfrom, const Handle(IGESDefs_GenericData)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESDefs_GenericData)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDefs_ToolGenericData_HeaderFile
index 34cb319fa1de379946f7a73fc58b79fcab16c60b..f4e254238b0fcebe8685ce5d3c43cd1a6be1bfdb 100644 (file)
@@ -26,7 +26,6 @@
 #include <IGESDefs_MacroDef.hxx>
 #include <IGESDefs_ToolMacroDef.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_HArray1OfHAsciiString.hxx>
 #include <Interface_Macros.hxx>
@@ -35,8 +34,6 @@
 #include <Standard_DomainError.hxx>
 #include <TCollection_HAsciiString.hxx>
 
-IGESDefs_ToolMacroDef::IGESDefs_ToolMacroDef ()    {  }
-
 
 void  IGESDefs_ToolMacroDef::ReadOwnParams
   (const Handle(IGESDefs_MacroDef)& ent,
@@ -92,34 +89,6 @@ void  IGESDefs_ToolMacroDef::WriteOwnParams
   IW.Send(ent->ENDMACRO());
 }
 
-void  IGESDefs_ToolMacroDef::OwnShared
-  (const Handle(IGESDefs_MacroDef)& /* ent */, Interface_EntityIterator& /* iter */) const
-{
-}
-
-void  IGESDefs_ToolMacroDef::OwnCopy
-  (const Handle(IGESDefs_MacroDef)& another,
-   const Handle(IGESDefs_MacroDef)& ent, Interface_CopyTool& /* TC */) const
-{ 
-
-  Handle(TCollection_HAsciiString) macro =
-    new TCollection_HAsciiString(another->MACRO());
-  Standard_Integer entityTypeID = another->EntityTypeID();
-  Handle(TCollection_HAsciiString) endMacro =
-    new TCollection_HAsciiString(another->ENDMACRO());
-  Handle(Interface_HArray1OfHAsciiString) langStatements;
-  Standard_Integer nbval = another->NbStatements();
-  langStatements = new Interface_HArray1OfHAsciiString(1, nbval);
-
-  for (Standard_Integer i = 1; i <= nbval; i++)
-    {
-      Handle(TCollection_HAsciiString) langStat =
-       new TCollection_HAsciiString(another->LanguageStatement(i));
-      langStatements->SetValue(i, langStat);
-    }
-  ent->Init(macro, entityTypeID, langStatements, endMacro);
-}
-
 IGESData_DirChecker  IGESDefs_ToolMacroDef::DirChecker
   (const Handle(IGESDefs_MacroDef)& /* ent */ ) const 
 { 
@@ -135,12 +104,6 @@ IGESData_DirChecker  IGESDefs_ToolMacroDef::DirChecker
   return DC;
 }
 
-void  IGESDefs_ToolMacroDef::OwnCheck
-  (const Handle(IGESDefs_MacroDef)& /* ent */,
-   const Interface_ShareTool& , Handle(Interface_Check)& /* ach */) const 
-{
-}
-
 void  IGESDefs_ToolMacroDef::OwnDump
   (const Handle(IGESDefs_MacroDef)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const 
index ccb552865a90d1544c138b3513e8fdc3a6686f68..d0576c640420eb215d48239c68a23e633b609800 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESDefs_ToolMacroDef 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolMacroDef, ready to work
-  Standard_EXPORT IGESDefs_ToolMacroDef();
+  IGESDefs_ToolMacroDef() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESDefs_MacroDef)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a MacroDef <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESDefs_MacroDef)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESDefs_MacroDef)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESDefs_MacroDef)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESDefs_MacroDef)& entfrom, const Handle(IGESDefs_MacroDef)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESDefs_MacroDef)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDefs_ToolMacroDef_HeaderFile
index b36ac44d0e64eb2e122f8ab4428262069dc61ded..4bb9f07a1d000d8b0c7a5eba6a8d849310810f15 100644 (file)
@@ -29,7 +29,6 @@
 #include <IGESDefs_TabularData.hxx>
 #include <IGESDefs_ToolTabularData.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -38,8 +37,6 @@
 #include <TColStd_HArray1OfInteger.hxx>
 #include <TColStd_HArray1OfReal.hxx>
 
-IGESDefs_ToolTabularData::IGESDefs_ToolTabularData ()    {  }
-
 
 void IGESDefs_ToolTabularData::ReadOwnParams
   (const Handle(IGESDefs_TabularData)& ent,
@@ -156,50 +153,6 @@ void IGESDefs_ToolTabularData::WriteOwnParams
     */
 }
 
-void  IGESDefs_ToolTabularData::OwnShared
-  (const Handle(IGESDefs_TabularData)& /* ent */, Interface_EntityIterator& /* iter */) const
-{
-}
-
-void IGESDefs_ToolTabularData::OwnCopy
-  (const Handle(IGESDefs_TabularData)& another,
-   const Handle(IGESDefs_TabularData)& ent, Interface_CopyTool& /* TC */) const
-{
-  Standard_Integer nbProps = another->NbPropertyValues();
-  Standard_Integer propType = another->PropertyType();
-  Standard_Integer nbDeps = another->NbDependents();
-  Standard_Integer nbIndeps = another->NbIndependents();
-  Handle(TColStd_HArray1OfInteger) typesInd = new
-    TColStd_HArray1OfInteger(1, nbIndeps);
-  Handle(TColStd_HArray1OfInteger) nbValuesInd = new
-    TColStd_HArray1OfInteger(1, nbIndeps);
-  Handle(IGESBasic_HArray1OfHArray1OfReal) valuesInd = new
-    IGESBasic_HArray1OfHArray1OfReal(1, nbIndeps);
-  Handle(IGESBasic_HArray1OfHArray1OfReal) valuesDep = new
-    IGESBasic_HArray1OfHArray1OfReal(1, nbDeps);
-  Standard_Integer i;
-  for (i=1; i<=nbIndeps; i++)
-    {
-      Standard_Integer j, nval;
-      typesInd->SetValue(i, another->TypeOfIndependents(i));
-      nval = another->NbValues(i);
-      nbValuesInd->SetValue(i, nval);
-      Handle(TColStd_HArray1OfReal) tmparr = new
-       TColStd_HArray1OfReal(1, nval);
-      for (j=1; j<=nval; j++)
-       tmparr->SetValue(j, another->IndependentValue(i, j));
-      valuesInd->SetValue(i, tmparr);
-    }
-  // UNFINISHED
-  /*
-    for (i=1; i<=nbDeps; i++)
-    {
-    }
-    */
-  ent->Init(nbProps, propType, typesInd, nbValuesInd,
-           valuesInd, valuesDep);
-}
-
 IGESData_DirChecker IGESDefs_ToolTabularData::DirChecker
   (const Handle(IGESDefs_TabularData)& /* ent */ ) const
 {
@@ -215,12 +168,6 @@ IGESData_DirChecker IGESDefs_ToolTabularData::DirChecker
   return DC;
 }
 
-void IGESDefs_ToolTabularData::OwnCheck
-  (const Handle(IGESDefs_TabularData)& /* ent */,
-   const Interface_ShareTool& , Handle(Interface_Check)& /* ach */) const
-{
-}
-
 void IGESDefs_ToolTabularData::OwnDump
   (const Handle(IGESDefs_TabularData)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
index 5b156e2706c3506ca074e87ad7bb8aa2037c2bed..e511e2cee83a2a095a2af1a8d66dcc3cf971d5d7 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESDefs_ToolTabularData 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolTabularData, ready to work
-  Standard_EXPORT IGESDefs_ToolTabularData();
+  IGESDefs_ToolTabularData() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESDefs_TabularData)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a TabularData <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESDefs_TabularData)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESDefs_TabularData)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESDefs_TabularData)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESDefs_TabularData)& entfrom, const Handle(IGESDefs_TabularData)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESDefs_TabularData)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDefs_ToolTabularData_HeaderFile
index 70ee924f7791d0cfa5b09a417d36dd6220a67bbf..d619fe38328b1a32d6df95bc70bed1e85edee5c6 100644 (file)
@@ -26,7 +26,6 @@
 #include <IGESDefs_ToolUnitsData.hxx>
 #include <IGESDefs_UnitsData.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_HArray1OfHAsciiString.hxx>
 #include <Interface_Macros.hxx>
@@ -36,8 +35,6 @@
 #include <TCollection_HAsciiString.hxx>
 #include <TColStd_HArray1OfReal.hxx>
 
-IGESDefs_ToolUnitsData::IGESDefs_ToolUnitsData ()    {  }
-
 
 void  IGESDefs_ToolUnitsData::ReadOwnParams
   (const Handle(IGESDefs_UnitsData)& ent,
@@ -97,39 +94,6 @@ void  IGESDefs_ToolUnitsData::WriteOwnParams
     }
 }
 
-void  IGESDefs_ToolUnitsData::OwnShared
-  (const Handle(IGESDefs_UnitsData)& /* ent */, Interface_EntityIterator& /* iter */) const
-{
-}
-
-void  IGESDefs_ToolUnitsData::OwnCopy
-  (const Handle(IGESDefs_UnitsData)& another,
-   const Handle(IGESDefs_UnitsData)& ent, Interface_CopyTool& /* TC */) const
-{
-  Handle(Interface_HArray1OfHAsciiString) unitTypes;
-  Handle(Interface_HArray1OfHAsciiString) unitValues;
-  Handle(TColStd_HArray1OfReal) unitScales;
-
-  Standard_Integer nbval = another->NbUnits();
-
-  unitTypes  = new Interface_HArray1OfHAsciiString(1, nbval); 
-  unitValues = new Interface_HArray1OfHAsciiString(1, nbval); 
-  unitScales = new TColStd_HArray1OfReal(1, nbval); 
-
-  for (Standard_Integer i = 1; i <= nbval; i++)
-    {
-      Handle(TCollection_HAsciiString) unitType =
-       new TCollection_HAsciiString(another->UnitType(i));
-      unitTypes->SetValue(i, unitType);
-      Handle(TCollection_HAsciiString) unitValue =
-       new TCollection_HAsciiString(another->UnitValue(i));
-      unitValues->SetValue(i, unitValue);
-      Standard_Real unitScale = another->ScaleFactor(i);
-      unitScales->SetValue(i, unitScale);
-    }
-  ent->Init(unitTypes, unitValues, unitScales);
-}
-
 IGESData_DirChecker  IGESDefs_ToolUnitsData::DirChecker
   (const Handle(IGESDefs_UnitsData)& /* ent */ ) const 
 { 
@@ -145,12 +109,6 @@ IGESData_DirChecker  IGESDefs_ToolUnitsData::DirChecker
   return DC;
 }
 
-void  IGESDefs_ToolUnitsData::OwnCheck
-  (const Handle(IGESDefs_UnitsData)& /* ent */,
-   const Interface_ShareTool& , Handle(Interface_Check)& /* ach */) const 
-{
-}
-
 void  IGESDefs_ToolUnitsData::OwnDump
   (const Handle(IGESDefs_UnitsData)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const 
index ea5a62992db7e0a93e5613028d47887ac4d1b878..a9dd157bc8cddef3389487d784586ea8a4cd1f1d 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESDefs_ToolUnitsData 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolUnitsData, ready to work
-  Standard_EXPORT IGESDefs_ToolUnitsData();
+  IGESDefs_ToolUnitsData() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESDefs_UnitsData)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a UnitsData <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESDefs_UnitsData)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESDefs_UnitsData)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESDefs_UnitsData)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESDefs_UnitsData)& entfrom, const Handle(IGESDefs_UnitsData)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESDefs_UnitsData)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDefs_ToolUnitsData_HeaderFile
index 5227c9691004144dcb0e4b165d312afde099b1a5..39109099e3d9178c48b8aaefe2b36be3e2123df6 100644 (file)
 #include <Interface_GeneralLib.hxx>
 #include <Interface_ReaderLib.hxx>
 
-//  Ancillary data to work on a Package of IGES Entities with a Protocol
-//  (Modules are created and loaded in appropriate libraries, once by Init)
-static Handle(IGESDimen_Protocol) protocol;
 
-
-    void  IGESDimen::Init ()
+/*void IGESDimen::Init ()
 {
   IGESGeom::Init();
   IGESGraph::Init();
+  IGESDimen::Protocol();
+}*/
+
+const Handle(IGESDimen_Protocol) & IGESDimen::Protocol ()
+{
+  static Handle(IGESDimen_Protocol) protocol;
   if (protocol.IsNull()) {
     protocol = new IGESDimen_Protocol;
     Interface_GeneralLib::SetGlobal (new IGESDimen_GeneralModule,  protocol);
@@ -40,9 +42,5 @@ static Handle(IGESDimen_Protocol) protocol;
     IGESData_WriterLib::SetGlobal   (new IGESDimen_ReadWriteModule,protocol);
     IGESData_SpecificLib::SetGlobal (new IGESDimen_SpecificModule, protocol);
   }
-}
-
-    Handle(IGESDimen_Protocol)  IGESDimen::Protocol ()
-{
   return protocol;
 }
index e53069100aa88840a50c8ece4776a4a43f77a7f5..b3fa53b866639e1d1d4002422963f2fe027afafb 100644 (file)
 #define _IGESDimen_HeaderFile
 
 #include <Standard.hxx>
-#include <Standard_DefineAlloc.hxx>
 #include <Standard_Handle.hxx>
 
 class IGESDimen_Protocol;
-class IGESDimen_CenterLine;
-class IGESDimen_Section;
-class IGESDimen_WitnessLine;
-class IGESDimen_AngularDimension;
-class IGESDimen_CurveDimension;
-class IGESDimen_DiameterDimension;
-class IGESDimen_FlagNote;
-class IGESDimen_GeneralLabel;
-class IGESDimen_GeneralNote;
-class IGESDimen_NewGeneralNote;
-class IGESDimen_LeaderArrow;
-class IGESDimen_LinearDimension;
-class IGESDimen_OrdinateDimension;
-class IGESDimen_PointDimension;
-class IGESDimen_RadiusDimension;
-class IGESDimen_GeneralSymbol;
-class IGESDimen_SectionedArea;
-class IGESDimen_DimensionedGeometry;
-class IGESDimen_NewDimensionedGeometry;
-class IGESDimen_DimensionUnits;
-class IGESDimen_DimensionTolerance;
-class IGESDimen_DimensionDisplayData;
-class IGESDimen_BasicDimension;
-class IGESDimen_ToolCenterLine;
-class IGESDimen_ToolSection;
-class IGESDimen_ToolWitnessLine;
-class IGESDimen_ToolAngularDimension;
-class IGESDimen_ToolCurveDimension;
-class IGESDimen_ToolDiameterDimension;
-class IGESDimen_ToolFlagNote;
-class IGESDimen_ToolGeneralLabel;
-class IGESDimen_ToolGeneralNote;
-class IGESDimen_ToolNewGeneralNote;
-class IGESDimen_ToolLeaderArrow;
-class IGESDimen_ToolLinearDimension;
-class IGESDimen_ToolOrdinateDimension;
-class IGESDimen_ToolPointDimension;
-class IGESDimen_ToolRadiusDimension;
-class IGESDimen_ToolGeneralSymbol;
-class IGESDimen_ToolSectionedArea;
-class IGESDimen_ToolDimensionedGeometry;
-class IGESDimen_ToolNewDimensionedGeometry;
-class IGESDimen_ToolDimensionUnits;
-class IGESDimen_ToolDimensionTolerance;
-class IGESDimen_ToolDimensionDisplayData;
-class IGESDimen_ToolBasicDimension;
-class IGESDimen_Protocol;
-class IGESDimen_ReadWriteModule;
-class IGESDimen_GeneralModule;
-class IGESDimen_SpecificModule;
 
 
 //! This package represents Entities applied to Dimensions
@@ -79,88 +28,13 @@ class IGESDimen_SpecificModule;
 //! Associativities.
 class IGESDimen 
 {
-public:
-
-  DEFINE_STANDARD_ALLOC
+ public:
 
-  
   //! Prepares dynamic data (Protocol, Modules) for this package
-  Standard_EXPORT static void Init();
+  //Standard_EXPORT static void Init();
   
   //! Returns the Protocol for this Package
-  Standard_EXPORT static Handle(IGESDimen_Protocol) Protocol();
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-friend class IGESDimen_CenterLine;
-friend class IGESDimen_Section;
-friend class IGESDimen_WitnessLine;
-friend class IGESDimen_AngularDimension;
-friend class IGESDimen_CurveDimension;
-friend class IGESDimen_DiameterDimension;
-friend class IGESDimen_FlagNote;
-friend class IGESDimen_GeneralLabel;
-friend class IGESDimen_GeneralNote;
-friend class IGESDimen_NewGeneralNote;
-friend class IGESDimen_LeaderArrow;
-friend class IGESDimen_LinearDimension;
-friend class IGESDimen_OrdinateDimension;
-friend class IGESDimen_PointDimension;
-friend class IGESDimen_RadiusDimension;
-friend class IGESDimen_GeneralSymbol;
-friend class IGESDimen_SectionedArea;
-friend class IGESDimen_DimensionedGeometry;
-friend class IGESDimen_NewDimensionedGeometry;
-friend class IGESDimen_DimensionUnits;
-friend class IGESDimen_DimensionTolerance;
-friend class IGESDimen_DimensionDisplayData;
-friend class IGESDimen_BasicDimension;
-friend class IGESDimen_ToolCenterLine;
-friend class IGESDimen_ToolSection;
-friend class IGESDimen_ToolWitnessLine;
-friend class IGESDimen_ToolAngularDimension;
-friend class IGESDimen_ToolCurveDimension;
-friend class IGESDimen_ToolDiameterDimension;
-friend class IGESDimen_ToolFlagNote;
-friend class IGESDimen_ToolGeneralLabel;
-friend class IGESDimen_ToolGeneralNote;
-friend class IGESDimen_ToolNewGeneralNote;
-friend class IGESDimen_ToolLeaderArrow;
-friend class IGESDimen_ToolLinearDimension;
-friend class IGESDimen_ToolOrdinateDimension;
-friend class IGESDimen_ToolPointDimension;
-friend class IGESDimen_ToolRadiusDimension;
-friend class IGESDimen_ToolGeneralSymbol;
-friend class IGESDimen_ToolSectionedArea;
-friend class IGESDimen_ToolDimensionedGeometry;
-friend class IGESDimen_ToolNewDimensionedGeometry;
-friend class IGESDimen_ToolDimensionUnits;
-friend class IGESDimen_ToolDimensionTolerance;
-friend class IGESDimen_ToolDimensionDisplayData;
-friend class IGESDimen_ToolBasicDimension;
-friend class IGESDimen_Protocol;
-friend class IGESDimen_ReadWriteModule;
-friend class IGESDimen_GeneralModule;
-friend class IGESDimen_SpecificModule;
-
+  Standard_EXPORT static const Handle(IGESDimen_Protocol) & Protocol();
 };
 
-
-
-
-
-
-
 #endif // _IGESDimen_HeaderFile
index 493c9f9c069a83156e288145a2aab9882b29a0b6..a796c9e3977cdbaed75669a8c65ccc3dc56663de 100644 (file)
 #include <IGESDimen_WitnessLine.hxx>
 #include <Interface_Category.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
-#include <Standard_Transient.hxx>
-#include <Standard_Type.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESDimen_GeneralModule,IGESData_GeneralModule)
 
-//  Each Module is attached to a Protocol : it must interprete Case Numbers
-//  (arguments <CN> of various methods) in accordance to values returned by
-//  the method TypeNumber from this Protocol
-IGESDimen_GeneralModule::IGESDimen_GeneralModule ()    {  }
-
 
     void  IGESDimen_GeneralModule::OwnSharedCase
   (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent,
@@ -90,20 +82,6 @@ IGESDimen_GeneralModule::IGESDimen_GeneralModule ()    {  }
       tool.OwnShared(anent,iter);
     }
       break;
-    case  2 : {
-      DeclareAndCast(IGESDimen_BasicDimension,anent,ent);
-      if (anent.IsNull()) return;
-      IGESDimen_ToolBasicDimension tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
-    case  3 : {
-      DeclareAndCast(IGESDimen_CenterLine,anent,ent);
-      if (anent.IsNull()) return;
-      IGESDimen_ToolCenterLine tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
     case  4 : {
       DeclareAndCast(IGESDimen_CurveDimension,anent,ent);
       if (anent.IsNull()) return;
@@ -118,27 +96,6 @@ IGESDimen_GeneralModule::IGESDimen_GeneralModule ()    {  }
       tool.OwnShared(anent,iter);
     }
       break;
-    case  6 : {
-      DeclareAndCast(IGESDimen_DimensionDisplayData,anent,ent);
-      if (anent.IsNull()) return;
-      IGESDimen_ToolDimensionDisplayData tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
-    case  7 : {
-      DeclareAndCast(IGESDimen_DimensionTolerance,anent,ent);
-      if (anent.IsNull()) return;
-      IGESDimen_ToolDimensionTolerance tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
-    case  8 : {
-      DeclareAndCast(IGESDimen_DimensionUnits,anent,ent);
-      if (anent.IsNull()) return;
-      IGESDimen_ToolDimensionUnits tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
     case  9 : {
       DeclareAndCast(IGESDimen_DimensionedGeometry,anent,ent);
       if (anent.IsNull()) return;
@@ -174,13 +131,6 @@ IGESDimen_GeneralModule::IGESDimen_GeneralModule ()    {  }
       tool.OwnShared(anent,iter);
     }
       break;
-    case 14 : {
-      DeclareAndCast(IGESDimen_LeaderArrow,anent,ent);
-      if (anent.IsNull()) return;
-      IGESDimen_ToolLeaderArrow tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
     case 15 : {
       DeclareAndCast(IGESDimen_LinearDimension,anent,ent);
       if (anent.IsNull()) return;
@@ -223,13 +173,6 @@ IGESDimen_GeneralModule::IGESDimen_GeneralModule ()    {  }
       tool.OwnShared(anent,iter);
     }
       break;
-    case 21 : {
-      DeclareAndCast(IGESDimen_Section,anent,ent);
-      if (anent.IsNull()) return;
-      IGESDimen_ToolSection tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
     case 22 : {
       DeclareAndCast(IGESDimen_SectionedArea,anent,ent);
       if (anent.IsNull()) return;
@@ -237,13 +180,6 @@ IGESDimen_GeneralModule::IGESDimen_GeneralModule ()    {  }
       tool.OwnShared(anent,iter);
     }
       break;
-    case 23 : {
-      DeclareAndCast(IGESDimen_WitnessLine,anent,ent);
-      if (anent.IsNull()) return;
-      IGESDimen_ToolWitnessLine tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
     default : break;
   }
 }
@@ -402,13 +338,6 @@ IGESDimen_GeneralModule::IGESDimen_GeneralModule ()    {  }
    const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const 
 {
   switch (CN) {
-    case  1 : {
-      DeclareAndCast(IGESDimen_AngularDimension,anent,ent);
-      if (anent.IsNull()) return;
-      IGESDimen_ToolAngularDimension tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
     case  2 : {
       DeclareAndCast(IGESDimen_BasicDimension,anent,ent);
       if (anent.IsNull()) return;
@@ -430,13 +359,6 @@ IGESDimen_GeneralModule::IGESDimen_GeneralModule ()    {  }
       tool.OwnCheck(anent,shares,ach);
     }
       break;
-    case  5 : {
-      DeclareAndCast(IGESDimen_DiameterDimension,anent,ent);
-      if (anent.IsNull()) return;
-      IGESDimen_ToolDiameterDimension tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
     case  6 : {
       DeclareAndCast(IGESDimen_DimensionDisplayData,anent,ent);
       if (anent.IsNull()) return;
@@ -465,13 +387,6 @@ IGESDimen_GeneralModule::IGESDimen_GeneralModule ()    {  }
       tool.OwnCheck(anent,shares,ach);
     }
       break;
-    case 10 : {
-      DeclareAndCast(IGESDimen_FlagNote,anent,ent);
-      if (anent.IsNull()) return;
-      IGESDimen_ToolFlagNote tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
     case 11 : {
       DeclareAndCast(IGESDimen_GeneralLabel,anent,ent);
       if (anent.IsNull()) return;
@@ -493,20 +408,6 @@ IGESDimen_GeneralModule::IGESDimen_GeneralModule ()    {  }
       tool.OwnCheck(anent,shares,ach);
     }
       break;
-    case 14 : {
-      DeclareAndCast(IGESDimen_LeaderArrow,anent,ent);
-      if (anent.IsNull()) return;
-      IGESDimen_ToolLeaderArrow tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
-    case 15 : {
-      DeclareAndCast(IGESDimen_LinearDimension,anent,ent);
-      if (anent.IsNull()) return;
-      IGESDimen_ToolLinearDimension tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
     case 16 : {
       DeclareAndCast(IGESDimen_NewDimensionedGeometry,anent,ent);
       if (anent.IsNull()) return;
@@ -528,13 +429,6 @@ IGESDimen_GeneralModule::IGESDimen_GeneralModule ()    {  }
       tool.OwnCheck(anent,shares,ach);
     }
       break;
-    case 19 : {
-      DeclareAndCast(IGESDimen_PointDimension,anent,ent);
-      if (anent.IsNull()) return;
-      IGESDimen_ToolPointDimension tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
     case 20 : {
       DeclareAndCast(IGESDimen_RadiusDimension,anent,ent);
       if (anent.IsNull()) return;
@@ -549,13 +443,6 @@ IGESDimen_GeneralModule::IGESDimen_GeneralModule ()    {  }
       tool.OwnCheck(anent,shares,ach);
     }
       break;
-    case 22 : {
-      DeclareAndCast(IGESDimen_SectionedArea,anent,ent);
-      if (anent.IsNull()) return;
-      IGESDimen_ToolSectionedArea tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
     case 23 : {
       DeclareAndCast(IGESDimen_WitnessLine,anent,ent);
       if (anent.IsNull()) return;
@@ -601,177 +488,6 @@ IGESDimen_GeneralModule::IGESDimen_GeneralModule ()    {  }
 }
 
 
-    void  IGESDimen_GeneralModule::OwnCopyCase
-  (const Standard_Integer CN,
-   const Handle(IGESData_IGESEntity)& entfrom,
-   const Handle(IGESData_IGESEntity)& entto,
-   Interface_CopyTool& TC) const 
-{
-  switch (CN) {
-    case  1 : {
-      DeclareAndCast(IGESDimen_AngularDimension,enfr,entfrom);
-      DeclareAndCast(IGESDimen_AngularDimension,ento,entto);
-      IGESDimen_ToolAngularDimension tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  2 : {
-      DeclareAndCast(IGESDimen_BasicDimension,enfr,entfrom);
-      DeclareAndCast(IGESDimen_BasicDimension,ento,entto);
-      IGESDimen_ToolBasicDimension tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  3 : {
-      DeclareAndCast(IGESDimen_CenterLine,enfr,entfrom);
-      DeclareAndCast(IGESDimen_CenterLine,ento,entto);
-      IGESDimen_ToolCenterLine tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  4 : {
-      DeclareAndCast(IGESDimen_CurveDimension,enfr,entfrom);
-      DeclareAndCast(IGESDimen_CurveDimension,ento,entto);
-      IGESDimen_ToolCurveDimension tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  5 : {
-      DeclareAndCast(IGESDimen_DiameterDimension,enfr,entfrom);
-      DeclareAndCast(IGESDimen_DiameterDimension,ento,entto);
-      IGESDimen_ToolDiameterDimension tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  6 : {
-      DeclareAndCast(IGESDimen_DimensionDisplayData,enfr,entfrom);
-      DeclareAndCast(IGESDimen_DimensionDisplayData,ento,entto);
-      IGESDimen_ToolDimensionDisplayData tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  7 : {
-      DeclareAndCast(IGESDimen_DimensionTolerance,enfr,entfrom);
-      DeclareAndCast(IGESDimen_DimensionTolerance,ento,entto);
-      IGESDimen_ToolDimensionTolerance tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  8 : {
-      DeclareAndCast(IGESDimen_DimensionUnits,enfr,entfrom);
-      DeclareAndCast(IGESDimen_DimensionUnits,ento,entto);
-      IGESDimen_ToolDimensionUnits tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  9 : {
-      DeclareAndCast(IGESDimen_DimensionedGeometry,enfr,entfrom);
-      DeclareAndCast(IGESDimen_DimensionedGeometry,ento,entto);
-      IGESDimen_ToolDimensionedGeometry tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 10 : {
-      DeclareAndCast(IGESDimen_FlagNote,enfr,entfrom);
-      DeclareAndCast(IGESDimen_FlagNote,ento,entto);
-      IGESDimen_ToolFlagNote tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 11 : {
-      DeclareAndCast(IGESDimen_GeneralLabel,enfr,entfrom);
-      DeclareAndCast(IGESDimen_GeneralLabel,ento,entto);
-      IGESDimen_ToolGeneralLabel tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 12 : {
-      DeclareAndCast(IGESDimen_GeneralNote,enfr,entfrom);
-      DeclareAndCast(IGESDimen_GeneralNote,ento,entto);
-      IGESDimen_ToolGeneralNote tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 13 : {
-      DeclareAndCast(IGESDimen_GeneralSymbol,enfr,entfrom);
-      DeclareAndCast(IGESDimen_GeneralSymbol,ento,entto);
-      IGESDimen_ToolGeneralSymbol tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 14 : {
-      DeclareAndCast(IGESDimen_LeaderArrow,enfr,entfrom);
-      DeclareAndCast(IGESDimen_LeaderArrow,ento,entto);
-      IGESDimen_ToolLeaderArrow tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 15 : {
-      DeclareAndCast(IGESDimen_LinearDimension,enfr,entfrom);
-      DeclareAndCast(IGESDimen_LinearDimension,ento,entto);
-      IGESDimen_ToolLinearDimension tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 16 : {
-      DeclareAndCast(IGESDimen_NewDimensionedGeometry,enfr,entfrom);
-      DeclareAndCast(IGESDimen_NewDimensionedGeometry,ento,entto);
-      IGESDimen_ToolNewDimensionedGeometry tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 17 : {
-      DeclareAndCast(IGESDimen_NewGeneralNote,enfr,entfrom);
-      DeclareAndCast(IGESDimen_NewGeneralNote,ento,entto);
-      IGESDimen_ToolNewGeneralNote tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 18 : {
-      DeclareAndCast(IGESDimen_OrdinateDimension,enfr,entfrom);
-      DeclareAndCast(IGESDimen_OrdinateDimension,ento,entto);
-      IGESDimen_ToolOrdinateDimension tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 19 : {
-      DeclareAndCast(IGESDimen_PointDimension,enfr,entfrom);
-      DeclareAndCast(IGESDimen_PointDimension,ento,entto);
-      IGESDimen_ToolPointDimension tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 20 : {
-      DeclareAndCast(IGESDimen_RadiusDimension,enfr,entfrom);
-      DeclareAndCast(IGESDimen_RadiusDimension,ento,entto);
-      IGESDimen_ToolRadiusDimension tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 21 : {
-      DeclareAndCast(IGESDimen_Section,enfr,entfrom);
-      DeclareAndCast(IGESDimen_Section,ento,entto);
-      IGESDimen_ToolSection tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 22 : {
-      DeclareAndCast(IGESDimen_SectionedArea,enfr,entfrom);
-      DeclareAndCast(IGESDimen_SectionedArea,ento,entto);
-      IGESDimen_ToolSectionedArea tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 23 : {
-      DeclareAndCast(IGESDimen_WitnessLine,enfr,entfrom);
-      DeclareAndCast(IGESDimen_WitnessLine,ento,entto);
-      IGESDimen_ToolWitnessLine tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    default : break;
-  }
-}
 
 
     Standard_Integer  IGESDimen_GeneralModule::CategoryNumber
index 389c749b6efe295c3865659dcb10404dc7b8a6c6..f4f1e8277bac6584b697301aafdc9c1e83f77a46 100644 (file)
 #ifndef _IGESDimen_GeneralModule_HeaderFile
 #define _IGESDimen_GeneralModule_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
 #include <IGESData_GeneralModule.hxx>
-#include <Standard_Integer.hxx>
-#include <Standard_Boolean.hxx>
-class IGESData_IGESEntity;
-class Interface_EntityIterator;
-class IGESData_DirChecker;
-class Interface_ShareTool;
-class Interface_Check;
-class Standard_Transient;
-class Interface_CopyTool;
 
 
 class IGESDimen_GeneralModule;
@@ -39,12 +27,10 @@ DEFINE_STANDARD_HANDLE(IGESDimen_GeneralModule, IGESData_GeneralModule)
 //! This Services comprise : Shared & Implied Lists, Copy, Check
 class IGESDimen_GeneralModule : public IGESData_GeneralModule
 {
+ public:
 
-public:
-
-  
   //! Creates a GeneralModule from IGESDimen and puts it into GeneralLib
-  Standard_EXPORT IGESDimen_GeneralModule();
+  IGESDimen_GeneralModule() {}
   
   //! Lists the Entities shared by a given IGESEntity <ent>, from
   //! its specific parameters : specific for each type
@@ -61,34 +47,11 @@ public:
   //! Specific creation of a new void entity
   Standard_EXPORT Standard_Boolean NewVoid (const Standard_Integer CN, Handle(Standard_Transient)& entto) const Standard_OVERRIDE;
   
-  //! Copies parameters which are specific of each Type of Entity
-  Standard_EXPORT void OwnCopyCase (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& entfrom, const Handle(IGESData_IGESEntity)& entto, Interface_CopyTool& TC) const Standard_OVERRIDE;
-  
   //! Returns a category number which characterizes an entity
   //! Drawing for all
   Standard_EXPORT virtual Standard_Integer CategoryNumber (const Standard_Integer CN, const Handle(Standard_Transient)& ent, const Interface_ShareTool& shares) const Standard_OVERRIDE;
 
-
-
-
   DEFINE_STANDARD_RTTIEXT(IGESDimen_GeneralModule,IGESData_GeneralModule)
-
-protected:
-
-
-
-
-private:
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDimen_GeneralModule_HeaderFile
index be3a30a880cc5ce617a029056cae4d22deabd3bf..906b11394fb1d8cff8fdbf4c413918a94b6ccfb0 100644 (file)
 #include <IGESDimen_ToolAngularDimension.hxx>
 #include <IGESDimen_WitnessLine.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESDimen_ToolAngularDimension::IGESDimen_ToolAngularDimension ()    {  }
-
 
 void  IGESDimen_ToolAngularDimension::ReadOwnParams
   (const Handle(IGESDimen_AngularDimension)& ent,
@@ -103,27 +100,6 @@ void  IGESDimen_ToolAngularDimension::OwnShared
   iter.GetOneItem(ent->SecondLeader());
 }
 
-void  IGESDimen_ToolAngularDimension::OwnCopy
-  (const Handle(IGESDimen_AngularDimension)& another,
-   const Handle(IGESDimen_AngularDimension)& ent, Interface_CopyTool& TC) const
-{
-  DeclareAndCast(IGESDimen_GeneralNote, note, 
-                 TC.Transferred(another->Note()));
-  DeclareAndCast(IGESDimen_WitnessLine, firstWitness, 
-                TC.Transferred(another->FirstWitnessLine()));
-  DeclareAndCast(IGESDimen_WitnessLine, secondWitness, 
-                TC.Transferred(another->SecondWitnessLine()));
-  gp_XY vertex = (another->Vertex()).XY();
-  Standard_Real radius = another->Radius();
-  DeclareAndCast(IGESDimen_LeaderArrow, firstLeader, 
-                TC.Transferred(another->FirstLeader()));
-  DeclareAndCast(IGESDimen_LeaderArrow, secondLeader, 
-                TC.Transferred(another->SecondLeader()));
-
-  ent->Init(note, firstWitness, secondWitness, vertex, radius,
-           firstLeader, secondLeader);
-}
-
 IGESData_DirChecker  IGESDimen_ToolAngularDimension::DirChecker
   (const Handle(IGESDimen_AngularDimension)& /* ent */ ) const 
 { 
@@ -136,11 +112,6 @@ IGESData_DirChecker  IGESDimen_ToolAngularDimension::DirChecker
   return DC;
 }
 
-void  IGESDimen_ToolAngularDimension::OwnCheck
-  (const Handle(IGESDimen_AngularDimension)& /* ent */,
-   const Interface_ShareTool& , Handle(Interface_Check)& /* ach */) const 
-{  }
-
 void  IGESDimen_ToolAngularDimension::OwnDump
   (const Handle(IGESDimen_AngularDimension)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const 
index 3894a253e957b7bebb0eb511e709db11c9fde29b..bd61976fa4b41904a99b9ba28a699f422036c9ac 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESDimen_ToolAngularDimension 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolAngularDimension, ready to work
-  Standard_EXPORT IGESDimen_ToolAngularDimension();
+  IGESDimen_ToolAngularDimension() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -62,36 +60,8 @@ public:
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESDimen_AngularDimension)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESDimen_AngularDimension)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESDimen_AngularDimension)& entfrom, const Handle(IGESDimen_AngularDimension)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESDimen_AngularDimension)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDimen_ToolAngularDimension_HeaderFile
index b68411309ea817c427eed3262b571a265b3ac295..a6188a31c0fb3cc676f0b91db77c1cf4f0afa342 100644 (file)
 #include <IGESDimen_BasicDimension.hxx>
 #include <IGESDimen_ToolBasicDimension.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESDimen_ToolBasicDimension::IGESDimen_ToolBasicDimension ()    {  }
-
 
 void  IGESDimen_ToolBasicDimension::ReadOwnParams
   (const Handle(IGESDimen_BasicDimension)& ent,
@@ -72,20 +69,6 @@ void  IGESDimen_ToolBasicDimension::WriteOwnParams
   IW.Send(ent->UpperLeft().Y());
 }
 
-void  IGESDimen_ToolBasicDimension::OwnShared
-  (const Handle(IGESDimen_BasicDimension)& /* ent */, Interface_EntityIterator& /* iter */) const
-{
-}
-
-void  IGESDimen_ToolBasicDimension::OwnCopy
-  (const Handle(IGESDimen_BasicDimension)& another,
-   const Handle(IGESDimen_BasicDimension)& ent, Interface_CopyTool& /* TC */) const
-{
-  ent->Init
-    (8,another->LowerLeft().XY(),another->LowerRight().XY(),
-     another->UpperRight().XY(),another->UpperLeft().XY());
-}
-
 Standard_Boolean  IGESDimen_ToolBasicDimension::OwnCorrect
   (const Handle(IGESDimen_BasicDimension)& ent) const
 {
index a7ea6531cce2db19ffbe98ac6e7a1470c7e1d93b..730224f8ebb13b9e2d84928e3a5e8c56054c2817 100644 (file)
@@ -32,7 +32,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -41,13 +40,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESDimen_ToolBasicDimension 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolBasicDimension, ready to work
-  Standard_EXPORT IGESDimen_ToolBasicDimension();
+  IGESDimen_ToolBasicDimension() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -56,10 +54,6 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESDimen_BasicDimension)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a BasicDimension <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESDimen_BasicDimension)& ent, Interface_EntityIterator& iter) const;
-  
   //! Sets automatic unambiguous Correction on a BasicDimension
   //! (NbPropertyValues forced to 8)
   Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESDimen_BasicDimension)& ent) const;
@@ -70,33 +64,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESDimen_BasicDimension)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESDimen_BasicDimension)& entfrom, const Handle(IGESDimen_BasicDimension)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESDimen_BasicDimension)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDimen_ToolBasicDimension_HeaderFile
index 8741ecff3a15a4d5e622d9b7f6e081812b39f293..88af0f39bff45a4eef93677db9fe7b9bd88a89fb 100644 (file)
@@ -29,7 +29,6 @@
 #include <IGESDimen_CenterLine.hxx>
 #include <IGESDimen_ToolCenterLine.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -37,8 +36,6 @@
 #include <Standard_DomainError.hxx>
 #include <TColgp_HArray1OfXY.hxx>
 
-IGESDimen_ToolCenterLine::IGESDimen_ToolCenterLine ()    {  }
-
 
 void  IGESDimen_ToolCenterLine::ReadOwnParams
   (const Handle(IGESDimen_CenterLine)& ent,
@@ -86,31 +83,6 @@ void  IGESDimen_ToolCenterLine::WriteOwnParams
     }
 }
 
-void  IGESDimen_ToolCenterLine::OwnShared
-  (const Handle(IGESDimen_CenterLine)& /* ent */, Interface_EntityIterator& /* iter */) const
-{
-}
-
-void  IGESDimen_ToolCenterLine::OwnCopy
-  (const Handle(IGESDimen_CenterLine)& another,
-   const Handle(IGESDimen_CenterLine)& ent, Interface_CopyTool& /* TC */) const
-{
-  Standard_Integer datatype = another->Datatype();
-  Standard_Integer nbval = another->NbPoints();
-  Standard_Real zDisplacement = another->ZDisplacement();
-
-  Handle(TColgp_HArray1OfXY) dataPoints = new TColgp_HArray1OfXY(1, nbval);
-
-  for (Standard_Integer i = 1; i <= nbval; i++)
-    {
-      gp_Pnt tempPnt = (another->Point(i));
-      gp_XY tempPnt2d(tempPnt.X(), tempPnt.Y());
-      dataPoints->SetValue(i, tempPnt2d);
-    }
-  ent->Init(datatype, zDisplacement, dataPoints);
-  ent->SetCrossHair (another->IsCrossHair());
-}
-
 Standard_Boolean  IGESDimen_ToolCenterLine::OwnCorrect
   (const Handle(IGESDimen_CenterLine)& ent) const
 {
index 7211c3100413cc034a9581c8028d9b7aa3c06e9f..0003540d44c72f0e874f20606dc25f3664d3ca6a 100644 (file)
@@ -32,7 +32,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -41,13 +40,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESDimen_ToolCenterLine 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolCenterLine, ready to work
-  Standard_EXPORT IGESDimen_ToolCenterLine();
+  IGESDimen_ToolCenterLine() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -56,10 +54,6 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESDimen_CenterLine)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a CenterLine <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESDimen_CenterLine)& ent, Interface_EntityIterator& iter) const;
-  
   //! Sets automatic unambiguous Correction on a CenterLine
   //! (LineFont forced to Rank = 1, DataType forced to 1)
   Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESDimen_CenterLine)& ent) const;
@@ -70,33 +64,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESDimen_CenterLine)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESDimen_CenterLine)& entfrom, const Handle(IGESDimen_CenterLine)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESDimen_CenterLine)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDimen_ToolCenterLine_HeaderFile
index ec285b584aca2270ed652b615a6fb0c9f0aff429..097f6fb57e5107619412dbd1bc3ad8f904c2958b 100644 (file)
 #include <IGESDimen_WitnessLine.hxx>
 #include <IGESGeom_Line.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESDimen_ToolCurveDimension::IGESDimen_ToolCurveDimension ()    {  }
-
 
 void  IGESDimen_ToolCurveDimension::ReadOwnParams
   (const Handle(IGESDimen_CurveDimension)& ent,
@@ -104,29 +101,6 @@ void  IGESDimen_ToolCurveDimension::OwnShared
   iter.GetOneItem(ent->SecondWitnessLine());
 }
 
-void  IGESDimen_ToolCurveDimension::OwnCopy
-  (const Handle(IGESDimen_CurveDimension)& another,
-   const Handle(IGESDimen_CurveDimension)& ent, Interface_CopyTool& TC) const
-{
-  DeclareAndCast(IGESDimen_GeneralNote, note, 
-                TC.Transferred(another->Note()));
-  DeclareAndCast(IGESData_IGESEntity, firstCurve, 
-                TC.Transferred(another->FirstCurve()));
-  DeclareAndCast(IGESData_IGESEntity, secondCurve, 
-                TC.Transferred(another->SecondCurve()));
-  DeclareAndCast(IGESDimen_LeaderArrow, firstLeader, 
-                TC.Transferred(another->FirstLeader()));
-  DeclareAndCast(IGESDimen_LeaderArrow, secondLeader, 
-                TC.Transferred(another->SecondLeader()));
-  DeclareAndCast(IGESDimen_WitnessLine, firstWitness, 
-                TC.Transferred(another->FirstWitnessLine()));
-  DeclareAndCast(IGESDimen_WitnessLine, secondWitness, 
-                TC.Transferred(another->SecondWitnessLine()));
-
-  ent->Init(note, firstCurve, secondCurve, firstLeader, secondLeader, 
-           firstWitness, secondWitness);
-}
-
 IGESData_DirChecker  IGESDimen_ToolCurveDimension::DirChecker
   (const Handle(IGESDimen_CurveDimension)& /*ent*/) const 
 { 
index 66a9d1b5308076c4b234e52e663f9f407cd211bf..bb7e75320905b38fc43c41c3ffd85c08b1b6bf8e 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESDimen_ToolCurveDimension 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolCurveDimension, ready to work
-  Standard_EXPORT IGESDimen_ToolCurveDimension();
+  IGESDimen_ToolCurveDimension() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -65,33 +63,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESDimen_CurveDimension)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESDimen_CurveDimension)& entfrom, const Handle(IGESDimen_CurveDimension)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESDimen_CurveDimension)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDimen_ToolCurveDimension_HeaderFile
index 7d9e4c1b7b0c86dfac5f3f2dae8d8633485eb228..640b534d3f80354930d9666a94e16ba5dbcd96c0 100644 (file)
 #include <IGESDimen_LeaderArrow.hxx>
 #include <IGESDimen_ToolDiameterDimension.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESDimen_ToolDiameterDimension::IGESDimen_ToolDiameterDimension ()    {  }
-
 
 void  IGESDimen_ToolDiameterDimension::ReadOwnParams
   (const Handle(IGESDimen_DiameterDimension)& ent,
    const Handle(IGESData_IGESReaderData)& IR, IGESData_ParamReader& PR) const
 { 
-  //Standard_Boolean st; //szv#4:S4163:12Mar99 not needed
-
   Handle(IGESDimen_GeneralNote) note; 
   Handle(IGESDimen_LeaderArrow) firstLeader; 
   Handle(IGESDimen_LeaderArrow) secondLeader; 
@@ -84,21 +79,6 @@ void  IGESDimen_ToolDiameterDimension::OwnShared
   iter.GetOneItem(ent->SecondLeader());
 }
 
-void  IGESDimen_ToolDiameterDimension::OwnCopy
-  (const Handle(IGESDimen_DiameterDimension)& another,
-   const Handle(IGESDimen_DiameterDimension)& ent, Interface_CopyTool& TC) const
-{
-  DeclareAndCast(IGESDimen_GeneralNote, note, 
-                TC.Transferred(another->Note()));
-  DeclareAndCast(IGESDimen_LeaderArrow, firstLeader, 
-                TC.Transferred(another->FirstLeader()));
-  DeclareAndCast(IGESDimen_LeaderArrow, secondLeader, 
-                TC.Transferred(another->SecondLeader()));
-  gp_XY center = (another->Center()).XY();
-
-  ent->Init(note, firstLeader, secondLeader, center);
-}
-
 IGESData_DirChecker  IGESDimen_ToolDiameterDimension::DirChecker
   (const Handle(IGESDimen_DiameterDimension)& /* ent */) const 
 { 
@@ -111,12 +91,6 @@ IGESData_DirChecker  IGESDimen_ToolDiameterDimension::DirChecker
   return DC;
 }
 
-void  IGESDimen_ToolDiameterDimension::OwnCheck
-  (const Handle(IGESDimen_DiameterDimension)& /* ent */,
-   const Interface_ShareTool& , Handle(Interface_Check)& /* ach */) const 
-{
-}
-
 void  IGESDimen_ToolDiameterDimension::OwnDump
   (const Handle(IGESDimen_DiameterDimension)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const 
index 14489ee3190a5336033ba08676cfbcf1dcf77fbd..963db125ba7e97a67bb95aea33a16c3354d0fbb8 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESDimen_ToolDiameterDimension 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolDiameterDimension, ready to work
-  Standard_EXPORT IGESDimen_ToolDiameterDimension();
+  IGESDimen_ToolDiameterDimension() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -62,36 +60,8 @@ public:
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESDimen_DiameterDimension)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESDimen_DiameterDimension)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESDimen_DiameterDimension)& entfrom, const Handle(IGESDimen_DiameterDimension)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESDimen_DiameterDimension)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDimen_ToolDiameterDimension_HeaderFile
index 9c0d46e2409b6a7c259af42b4534283876533d05..a1b54266a6b3ac10e68397d78e94c59fc49e05f2 100644 (file)
@@ -26,7 +26,6 @@
 #include <IGESDimen_DimensionDisplayData.hxx>
 #include <IGESDimen_ToolDimensionDisplayData.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -35,8 +34,6 @@
 #include <TCollection_HAsciiString.hxx>
 #include <TColStd_HArray1OfInteger.hxx>
 
-IGESDimen_ToolDimensionDisplayData::IGESDimen_ToolDimensionDisplayData ()  {  }
-
 
 void  IGESDimen_ToolDimensionDisplayData::ReadOwnParams
   (const Handle(IGESDimen_DimensionDisplayData)& ent,
@@ -147,51 +144,6 @@ const
     }
 }
 
-void  IGESDimen_ToolDimensionDisplayData::OwnShared
-  (const Handle(IGESDimen_DimensionDisplayData)& /* ent */, Interface_EntityIterator& /* iter */) const
-{
-}
-
-void  IGESDimen_ToolDimensionDisplayData::OwnCopy
-  (const Handle(IGESDimen_DimensionDisplayData)& another,
-   const Handle(IGESDimen_DimensionDisplayData)& ent, Interface_CopyTool& /* TC */) const
-{
-  Handle(TColStd_HArray1OfInteger) EndList;
-  Handle(TColStd_HArray1OfInteger) StartList;
-  Handle(TColStd_HArray1OfInteger) NotesList;
-
-  Standard_Integer upper = another->NbSupplementaryNotes();
-  if (upper > 0)
-    {
-      EndList = new TColStd_HArray1OfInteger(1,upper);
-      StartList = new TColStd_HArray1OfInteger(1,upper);
-      NotesList = new TColStd_HArray1OfInteger(1,upper);
-      for (Standard_Integer i = 1;i <= upper;i++)
-       {
-          EndList->SetValue(i,another->EndIndex(i));
-          StartList->SetValue(i,another->StartIndex(i));
-          NotesList->SetValue(i,another->SupplementaryNote(i));
-       }
-    }
-  Standard_Integer tempNbPropertyValues = another->NbPropertyValues();
-  Standard_Integer tempDimensionType    = another->DimensionType();
-  Standard_Integer tempLabelPos         = another->LabelPosition();
-  Standard_Integer tempCharSet          = another->CharacterSet();
-  Handle(TCollection_HAsciiString) tempLS =
-    new TCollection_HAsciiString(another->LString());
-  Standard_Integer tempSymbol           = another->DecimalSymbol();
-  Standard_Real    tempAngle            = another->WitnessLineAngle();
-  Standard_Integer tempAlign            = another->TextAlignment();
-  Standard_Integer tempLevel            = another->TextLevel();
-  Standard_Integer tempPlacement        = another->TextPlacement();
-  Standard_Integer tempArrowHead        = another->ArrowHeadOrientation();
-  Standard_Real    tempInitial          = another->InitialValue();
-
-  ent->Init(tempNbPropertyValues, tempDimensionType,tempLabelPos,tempCharSet,
-           tempLS,tempSymbol,tempAngle,tempAlign,tempLevel,tempPlacement,
-           tempArrowHead,tempInitial,NotesList,StartList,EndList);
-}
-
 Standard_Boolean  IGESDimen_ToolDimensionDisplayData::OwnCorrect
   (const Handle(IGESDimen_DimensionDisplayData)& ent) const
 {
index 4da8605a02551a0d67b2ab7ca688ca2b9822bcbd..245065ac0d45e47f8ed78b7509e9be8273d0ab88 100644 (file)
@@ -32,7 +32,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -41,13 +40,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESDimen_ToolDimensionDisplayData 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolDimensionDisplayData, ready to work
-  Standard_EXPORT IGESDimen_ToolDimensionDisplayData();
+  IGESDimen_ToolDimensionDisplayData() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -56,10 +54,6 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESDimen_DimensionDisplayData)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a DimensionDisplayData <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESDimen_DimensionDisplayData)& ent, Interface_EntityIterator& iter) const;
-  
   //! Sets automatic unambiguous Correction on a DimensionDisplayData
   //! (NbPropertyValues forced to 14)
   Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESDimen_DimensionDisplayData)& ent) const;
@@ -70,33 +64,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESDimen_DimensionDisplayData)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESDimen_DimensionDisplayData)& entfrom, const Handle(IGESDimen_DimensionDisplayData)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESDimen_DimensionDisplayData)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDimen_ToolDimensionDisplayData_HeaderFile
index 24887e16ad9738269dc947846eff565160d8521f..24a9499a40acb29cf1e337624a74019ad9862990 100644 (file)
 #include <IGESDimen_DimensionTolerance.hxx>
 #include <IGESDimen_ToolDimensionTolerance.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESDimen_ToolDimensionTolerance::IGESDimen_ToolDimensionTolerance ()    {  }
-
 
 void  IGESDimen_ToolDimensionTolerance::ReadOwnParams
   (const Handle(IGESDimen_DimensionTolerance)& ent,
@@ -90,23 +87,6 @@ void  IGESDimen_ToolDimensionTolerance::WriteOwnParams
   IW.Send(ent->Precision());
 }
 
-void  IGESDimen_ToolDimensionTolerance::OwnShared
-  (const Handle(IGESDimen_DimensionTolerance)& /*ent*/, Interface_EntityIterator& /*iter*/) const
-{
-}
-
-void  IGESDimen_ToolDimensionTolerance::OwnCopy
-  (const Handle(IGESDimen_DimensionTolerance)& another,
-   const Handle(IGESDimen_DimensionTolerance)& ent, Interface_CopyTool& /*TC*/) const
-{
-  ent->Init
-    (8,another->SecondaryToleranceFlag(),another->ToleranceType(),
-     another->TolerancePlacementFlag(),
-     another->UpperTolerance(),another->LowerTolerance(),
-     (another->SignSuppressionFlag() ? 1 : 0),
-     another->FractionFlag(),another->Precision());
-}
-
 Standard_Boolean  IGESDimen_ToolDimensionTolerance::OwnCorrect
   (const Handle(IGESDimen_DimensionTolerance)& ent) const
 {
index 32f0ffe8892640f9aa041d35a7b2abfc6fd8b304..9734f3291afc6de755b7ed02f0819c57f7371e9e 100644 (file)
@@ -32,7 +32,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -41,13 +40,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESDimen_ToolDimensionTolerance 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolDimensionTolerance, ready to work
-  Standard_EXPORT IGESDimen_ToolDimensionTolerance();
+  IGESDimen_ToolDimensionTolerance() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -56,10 +54,6 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESDimen_DimensionTolerance)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a DimensionTolerance <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESDimen_DimensionTolerance)& ent, Interface_EntityIterator& iter) const;
-  
   //! Sets automatic unambiguous Correction on a DimensionTolerance
   //! (NbPropertyValues forced to 8)
   Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESDimen_DimensionTolerance)& ent) const;
@@ -70,33 +64,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESDimen_DimensionTolerance)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESDimen_DimensionTolerance)& entfrom, const Handle(IGESDimen_DimensionTolerance)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESDimen_DimensionTolerance)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDimen_ToolDimensionTolerance_HeaderFile
index 13f2db3b0bc6fd4cb1aaa4687ab39ad65f6a2865..bdc0afc434c4eb4aac95614acbda5f62fd5be2e2 100644 (file)
@@ -26,7 +26,6 @@
 #include <IGESDimen_DimensionUnits.hxx>
 #include <IGESDimen_ToolDimensionUnits.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -34,8 +33,6 @@
 #include <Standard_DomainError.hxx>
 #include <TCollection_HAsciiString.hxx>
 
-IGESDimen_ToolDimensionUnits::IGESDimen_ToolDimensionUnits ()    {  }
-
 
 void  IGESDimen_ToolDimensionUnits::ReadOwnParams
   (const Handle(IGESDimen_DimensionUnits)& ent,
@@ -85,27 +82,6 @@ void  IGESDimen_ToolDimensionUnits::WriteOwnParams
   IW.Send(ent->PrecisionOrDenominator());
 }
 
-void  IGESDimen_ToolDimensionUnits::OwnShared
-  (const Handle(IGESDimen_DimensionUnits)& /* ent */, Interface_EntityIterator& /* iter */) const
-{
-}
-
-void  IGESDimen_ToolDimensionUnits::OwnCopy
-  (const Handle(IGESDimen_DimensionUnits)& another,
-   const Handle(IGESDimen_DimensionUnits)& ent, Interface_CopyTool& /* TC */) const
-{
-  Standard_Integer tempNbProps        = another->NbPropertyValues();
-  Standard_Integer tempSecondDimenPos = another->SecondaryDimenPosition();
-  Standard_Integer tempUnitsIndic     = another->UnitsIndicator();
-  Standard_Integer tempCharSet        = another->CharacterSet();
-  Handle(TCollection_HAsciiString) tempFormatString =
-    new TCollection_HAsciiString(another->FormatString());
-  Standard_Integer tempFracFlag       = another->FractionFlag();
-  Standard_Integer tempPrecision      = another->PrecisionOrDenominator();
-  ent->Init (tempNbProps, tempSecondDimenPos, tempUnitsIndic, tempCharSet,
-            tempFormatString, tempFracFlag, tempPrecision);
-}
-
 Standard_Boolean  IGESDimen_ToolDimensionUnits::OwnCorrect
   (const Handle(IGESDimen_DimensionUnits)& ent) const
 {
index 3ea10e7c5e3b558fae22fb3162cf736a3b40aa74..2af0abbf50f1864fdf1224fe7c7a3711ea7f6490 100644 (file)
@@ -32,7 +32,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -41,13 +40,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESDimen_ToolDimensionUnits 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolDimensionUnits, ready to work
-  Standard_EXPORT IGESDimen_ToolDimensionUnits();
+  IGESDimen_ToolDimensionUnits() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -56,10 +54,6 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESDimen_DimensionUnits)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a DimensionUnits <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESDimen_DimensionUnits)& ent, Interface_EntityIterator& iter) const;
-  
   //! Sets automatic unambiguous Correction on a DimensionUnits
   //! (NbPropertyValues forced to 6)
   Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESDimen_DimensionUnits)& ent) const;
@@ -70,33 +64,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESDimen_DimensionUnits)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESDimen_DimensionUnits)& entfrom, const Handle(IGESDimen_DimensionUnits)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESDimen_DimensionUnits)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDimen_ToolDimensionUnits_HeaderFile
index 70a0266e14240099b7f3ac4604532b0b464af164..fd44edd537db50fbbb2f3a3c1d8eceb099f0289e 100644 (file)
 #include <IGESDimen_DimensionedGeometry.hxx>
 #include <IGESDimen_ToolDimensionedGeometry.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESDimen_ToolDimensionedGeometry::IGESDimen_ToolDimensionedGeometry ()    {  }
-
 
 void  IGESDimen_ToolDimensionedGeometry::ReadOwnParams
   (const Handle(IGESDimen_DimensionedGeometry)& ent,
@@ -93,25 +90,6 @@ void  IGESDimen_ToolDimensionedGeometry::OwnShared
     iter.GetOneItem(ent->GeometryEntity(i));
 }
 
-void  IGESDimen_ToolDimensionedGeometry::OwnCopy
-  (const Handle(IGESDimen_DimensionedGeometry)& another,
-   const Handle(IGESDimen_DimensionedGeometry)& ent, Interface_CopyTool& TC) const
-{ 
-  Standard_Integer nbDim = another->NbDimensions();
-  DeclareAndCast(IGESData_IGESEntity,anentity,
-                TC.Transferred(another->DimensionEntity()));
-  Standard_Integer upper = another->NbGeometryEntities();
-  Handle(IGESData_HArray1OfIGESEntity)  EntArray =
-    new IGESData_HArray1OfIGESEntity(1,upper);
-  for (Standard_Integer i = 1;i <= upper; i ++) 
-    {
-      DeclareAndCast(IGESData_IGESEntity,myentity,
-                     TC.Transferred(another->GeometryEntity(i)));
-      EntArray->SetValue(i,myentity);
-    }
-  ent->Init(nbDim,anentity,EntArray);
-}
-
 Standard_Boolean  IGESDimen_ToolDimensionedGeometry::OwnCorrect
   (const Handle(IGESDimen_DimensionedGeometry)& ent) const
 {
index 5908793944f469f48a0cdd14e697cd1d62008ac6..afe1a9f95bb1aae369aeb8147fab7f8d78a6a363 100644 (file)
@@ -32,7 +32,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -41,13 +40,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESDimen_ToolDimensionedGeometry 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolDimensionedGeometry, ready to work
-  Standard_EXPORT IGESDimen_ToolDimensionedGeometry();
+  IGESDimen_ToolDimensionedGeometry() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -70,33 +68,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESDimen_DimensionedGeometry)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESDimen_DimensionedGeometry)& entfrom, const Handle(IGESDimen_DimensionedGeometry)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESDimen_DimensionedGeometry)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDimen_ToolDimensionedGeometry_HeaderFile
index 39fe4bdda52f244bc64ae02699353e8c8695fb17..aafddc2d56f01243e855f1b5c0fe64f57422d29a 100644 (file)
 #include <IGESDimen_LeaderArrow.hxx>
 #include <IGESDimen_ToolFlagNote.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESDimen_ToolFlagNote::IGESDimen_ToolFlagNote ()    {  }
-
 
 void  IGESDimen_ToolFlagNote::ReadOwnParams
   (const Handle(IGESDimen_FlagNote)& ent,
    const Handle(IGESData_IGESReaderData)& IR, IGESData_ParamReader& PR) const
 { 
-  //Standard_Boolean st; //szv#4:S4163:12Mar99 moved down
-
   gp_XYZ lowerLeft; 
   Standard_Real angle; 
   Handle(IGESDimen_GeneralNote) note;
@@ -103,31 +98,6 @@ void  IGESDimen_ToolFlagNote::OwnShared
     iter.GetOneItem(ent->Leader(i));
 }
 
-void  IGESDimen_ToolFlagNote::OwnCopy
-  (const Handle(IGESDimen_FlagNote)& another,
-   const Handle(IGESDimen_FlagNote)& ent, Interface_CopyTool& TC) const
-{
-  gp_XYZ lowerLeft = (another->LowerLeftCorner()).XYZ();
-  Standard_Real angle = another->Angle();
-  DeclareAndCast(IGESDimen_GeneralNote, note,
-                TC.Transferred(another->Note()));
-  Standard_Integer nbval = another->NbLeaders();
-
-  Handle(IGESDimen_HArray1OfLeaderArrow) leaders;
-
-  if ( nbval > 0 )
-    {
-      leaders = new IGESDimen_HArray1OfLeaderArrow(1, nbval);
-      for (Standard_Integer i = 1; i <= nbval; i++)
-       {
-          DeclareAndCast(IGESDimen_LeaderArrow, new_ent, 
-                        TC.Transferred(another->Leader(i)));
-          leaders->SetValue(i, new_ent);
-       }
-    }
-  ent->Init(lowerLeft, angle, note, leaders);
-}
-
 IGESData_DirChecker  IGESDimen_ToolFlagNote::DirChecker
   (const Handle(IGESDimen_FlagNote)& /* ent */ ) const 
 { 
@@ -140,12 +110,6 @@ IGESData_DirChecker  IGESDimen_ToolFlagNote::DirChecker
   return DC;
 }
 
-void  IGESDimen_ToolFlagNote::OwnCheck
-  (const Handle(IGESDimen_FlagNote)& /* ent */,
-   const Interface_ShareTool& , Handle(Interface_Check)& /* ach */) const 
-{
-}
-
 void  IGESDimen_ToolFlagNote::OwnDump
   (const Handle(IGESDimen_FlagNote)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const 
index 1e9f41ec4b4342829239c69d48848cc26f9008b8..beeef650d235cd08d53cc057c3b930869a0e099a 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESDimen_ToolFlagNote 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolFlagNote, ready to work
-  Standard_EXPORT IGESDimen_ToolFlagNote();
+  IGESDimen_ToolFlagNote() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -62,36 +60,8 @@ public:
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESDimen_FlagNote)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESDimen_FlagNote)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESDimen_FlagNote)& entfrom, const Handle(IGESDimen_FlagNote)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESDimen_FlagNote)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDimen_ToolFlagNote_HeaderFile
index a61b6078e41202099b12e7e971307a76d78edb68..7c580dd6f12d8078446240ac027a6173114f00c6 100644 (file)
 #include <IGESDimen_LeaderArrow.hxx>
 #include <IGESDimen_ToolGeneralLabel.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESDimen_ToolGeneralLabel::IGESDimen_ToolGeneralLabel ()    {  }
-
 
 void  IGESDimen_ToolGeneralLabel::ReadOwnParams
   (const Handle(IGESDimen_GeneralLabel)& ent,
@@ -90,25 +87,6 @@ void  IGESDimen_ToolGeneralLabel::OwnShared
     iter.GetOneItem(ent->Leader(i));
 }
 
-void  IGESDimen_ToolGeneralLabel::OwnCopy
-  (const Handle(IGESDimen_GeneralLabel)& another,
-   const Handle(IGESDimen_GeneralLabel)& ent, Interface_CopyTool& TC) const
-{
-  DeclareAndCast(IGESDimen_GeneralNote, note,
-                TC.Transferred(another->Note()));
-  Standard_Integer nbval = another->NbLeaders();
-
-  Handle(IGESDimen_HArray1OfLeaderArrow) leaders = 
-    new IGESDimen_HArray1OfLeaderArrow(1, nbval);
-  for (Standard_Integer i = 1; i <= nbval; i++)
-    {
-      DeclareAndCast(IGESDimen_LeaderArrow, new_ent, 
-                    TC.Transferred(another->Leader(i)));
-      leaders->SetValue(i, new_ent);
-    }
-  ent->Init(note, leaders);
-}
-
 IGESData_DirChecker  IGESDimen_ToolGeneralLabel::DirChecker
   (const Handle(IGESDimen_GeneralLabel)& /* ent */ ) const 
 { 
index f841d074e26b3426c2fce901b79c8e27ad7f55d9..a00ca33fdca1c0d0f283e42f8a83b292a21bc470 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESDimen_ToolGeneralLabel 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolGeneralLabel, ready to work
-  Standard_EXPORT IGESDimen_ToolGeneralLabel();
+  IGESDimen_ToolGeneralLabel() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -65,33 +63,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESDimen_GeneralLabel)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESDimen_GeneralLabel)& entfrom, const Handle(IGESDimen_GeneralLabel)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESDimen_GeneralLabel)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDimen_ToolGeneralLabel_HeaderFile
index 08cf60d5a01667a856fd57a409afec13b739186d..ebb4f8ac053594cd95128f7bbf1e81f8d1b3dd55 100644 (file)
@@ -30,7 +30,6 @@
 #include <IGESGraph_HArray1OfTextFontDef.hxx>
 #include <IGESGraph_TextFontDef.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_HArray1OfHAsciiString.hxx>
 #include <Interface_Macros.hxx>
@@ -43,8 +42,6 @@
 #include <TColStd_HArray1OfReal.hxx>
 
 #include <stdio.h>
-IGESDimen_ToolGeneralNote::IGESDimen_ToolGeneralNote ()    {  }
-
 
 void  IGESDimen_ToolGeneralNote::ReadOwnParams
   (const Handle(IGESDimen_GeneralNote)& ent,
@@ -208,80 +205,6 @@ void  IGESDimen_ToolGeneralNote::OwnShared
   }
 }
 
-void  IGESDimen_ToolGeneralNote::OwnCopy
-  (const Handle(IGESDimen_GeneralNote)& another,
-   const Handle(IGESDimen_GeneralNote)& ent, Interface_CopyTool& TC) const
-{
-  Standard_Integer nbval = another->NbStrings();
-
-  Handle(TColStd_HArray1OfInteger) nbChars;
-  Handle(TColStd_HArray1OfReal) boxWidths; 
-  Handle(TColStd_HArray1OfReal) boxHeights;
-  Handle(TColStd_HArray1OfInteger) fontCodes; 
-  Handle(IGESGraph_HArray1OfTextFontDef) fontEntities;
-  Handle(TColStd_HArray1OfReal) slantAngles; 
-  Handle(TColStd_HArray1OfReal) rotationAngles;
-  Handle(TColStd_HArray1OfInteger) mirrorFlags; 
-  Handle(TColStd_HArray1OfInteger) rotateFlags;
-  Handle(TColgp_HArray1OfXYZ) startPoints; 
-  Handle(Interface_HArray1OfHAsciiString) texts; 
-
-  nbChars        = new TColStd_HArray1OfInteger(1, nbval);
-  boxWidths      = new TColStd_HArray1OfReal   (1, nbval);
-  boxHeights     = new TColStd_HArray1OfReal   (1, nbval);
-  fontCodes      = new TColStd_HArray1OfInteger(1, nbval);
-  fontEntities   = new IGESGraph_HArray1OfTextFontDef(1, nbval);
-  slantAngles    = new TColStd_HArray1OfReal   (1, nbval);
-  rotationAngles = new TColStd_HArray1OfReal   (1, nbval);
-  mirrorFlags    = new TColStd_HArray1OfInteger(1, nbval);
-  rotateFlags    = new TColStd_HArray1OfInteger(1, nbval);
-  startPoints    = new TColgp_HArray1OfXYZ     (1, nbval);
-  texts          = new Interface_HArray1OfHAsciiString(1, nbval);
-
-  for (Standard_Integer i = 1; i <= nbval; i++)
-    {
-      Standard_Integer nbChar = another->NbCharacters(i);
-      nbChars->SetValue(i, nbChar);
-      Standard_Real boxWidth = another->BoxWidth(i);
-      boxWidths->SetValue(i, boxWidth);
-      Standard_Real boxHeight = another->BoxHeight(i);
-      boxHeights->SetValue(i, boxHeight);
-
-      if (another->IsFontEntity(i))
-       {
-          DeclareAndCast(IGESGraph_TextFontDef, fontEntity, 
-                        TC.Transferred(another->FontEntity(i)));
-          fontEntities->SetValue(i, fontEntity);
-          fontCodes->SetValue(i, -1);
-       }
-      else
-       {
-          Standard_Integer fontCode = another->FontCode(i);
-          fontCodes->SetValue(i, fontCode);
-////          fontEntities->SetValue(i, NULL);    par defaut
-       }
-
-      Standard_Real slantAngle = another->SlantAngle(i);
-      slantAngles->SetValue(i, slantAngle);
-      Standard_Real rotationAngle = another->RotationAngle(i);
-      rotationAngles->SetValue(i, rotationAngle);
-      Standard_Integer mirrorFlag = another->MirrorFlag(i);
-      mirrorFlags->SetValue(i, mirrorFlag);
-      Standard_Integer rotateFlag = another->RotateFlag(i);
-      rotateFlags->SetValue(i, rotateFlag);
-      gp_XYZ startPoint = (another->StartPoint(i)).XYZ();
-      startPoints->SetValue(i, startPoint);
-      Handle(TCollection_HAsciiString) text =
-       new TCollection_HAsciiString(another->Text(i));
-      texts->SetValue(i, text);
-    }
-
-  ent->Init(nbChars, boxWidths, boxHeights, fontCodes, fontEntities,
-           slantAngles, rotationAngles, mirrorFlags, rotateFlags,
-           startPoints, texts);
-  ent->SetFormNumber(another->FormNumber());
-}
-
 IGESData_DirChecker  IGESDimen_ToolGeneralNote::DirChecker
   (const Handle(IGESDimen_GeneralNote)& /* ent */ ) const 
 { 
index c1c0debc7161c2aeb670899911460babda777e71..f94a600a33e7e0c13d4474384bc854311d789368 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESDimen_ToolGeneralNote 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolGeneralNote, ready to work
-  Standard_EXPORT IGESDimen_ToolGeneralNote();
+  IGESDimen_ToolGeneralNote() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -65,33 +63,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESDimen_GeneralNote)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESDimen_GeneralNote)& entfrom, const Handle(IGESDimen_GeneralNote)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESDimen_GeneralNote)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDimen_ToolGeneralNote_HeaderFile
index 83806c59aaff8889e9a99cf5a7cdba715368072b..8c6f963d12da81d39e1f899944ce34500aa85ea4 100644 (file)
 #include <IGESDimen_LeaderArrow.hxx>
 #include <IGESDimen_ToolGeneralSymbol.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESDimen_ToolGeneralSymbol::IGESDimen_ToolGeneralSymbol ()    {  }
-
 
 void  IGESDimen_ToolGeneralSymbol::ReadOwnParams
   (const Handle(IGESDimen_GeneralSymbol)& ent,
@@ -115,38 +112,6 @@ void  IGESDimen_ToolGeneralSymbol::OwnShared
     iter.GetOneItem(ent->LeaderArrow(i));
 }
 
-void  IGESDimen_ToolGeneralSymbol::OwnCopy
-  (const Handle(IGESDimen_GeneralSymbol)& another,
-   const Handle(IGESDimen_GeneralSymbol)& ent, Interface_CopyTool& TC) const
-{
-  DeclareAndCast(IGESDimen_GeneralNote, tempNote,
-                TC.Transferred(another->Note()));
-  Standard_Integer num = another->NbGeomEntities();
-  Handle(IGESData_HArray1OfIGESEntity) tempGeoms =
-    new IGESData_HArray1OfIGESEntity(1, num);
-  Standard_Integer i;
-  for (i = 1; i <= num; i++)
-    {
-      DeclareAndCast(IGESData_IGESEntity, new_item,
-                    TC.Transferred(another->GeomEntity(i)));
-      tempGeoms->SetValue(i, new_item);
-    }
-  Handle(IGESDimen_HArray1OfLeaderArrow) tempLeaders;
-  num = another->NbLeaders();
-  if (num > 0)
-    {
-      tempLeaders = new IGESDimen_HArray1OfLeaderArrow(1, num);
-      for (i = 1; i <= num; i++)
-       {
-          DeclareAndCast(IGESDimen_LeaderArrow, new_item,
-                        TC.Transferred(another->LeaderArrow(i)));
-          tempLeaders->SetValue(i, new_item);
-       }
-    }
-  ent->Init (tempNote, tempGeoms, tempLeaders);
-  ent->SetFormNumber (another->FormNumber());
-}
-
 IGESData_DirChecker  IGESDimen_ToolGeneralSymbol::DirChecker
   (const Handle(IGESDimen_GeneralSymbol)& /* ent */ ) const
 {
index 5c890de71e44d10717d990fdff8db7abc054a8f0..61f0583c175c2f981246e2a471469919ed183c0c 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESDimen_ToolGeneralSymbol 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolGeneralSymbol, ready to work
-  Standard_EXPORT IGESDimen_ToolGeneralSymbol();
+  IGESDimen_ToolGeneralSymbol() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -65,33 +63,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESDimen_GeneralSymbol)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESDimen_GeneralSymbol)& entfrom, const Handle(IGESDimen_GeneralSymbol)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESDimen_GeneralSymbol)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDimen_ToolGeneralSymbol_HeaderFile
index b50373fac757416340539b6f4a298d26a46e27d9..2890d8d631de9edb72deb8af1a71d09d45a37bb1 100644 (file)
@@ -28,7 +28,6 @@
 #include <IGESDimen_LeaderArrow.hxx>
 #include <IGESDimen_ToolLeaderArrow.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -36,8 +35,6 @@
 #include <Standard_DomainError.hxx>
 #include <TColgp_HArray1OfXY.hxx>
 
-IGESDimen_ToolLeaderArrow::IGESDimen_ToolLeaderArrow ()    {  }
-
 
 void  IGESDimen_ToolLeaderArrow::ReadOwnParams
   (const Handle(IGESDimen_LeaderArrow)& ent,
@@ -95,32 +92,6 @@ void  IGESDimen_ToolLeaderArrow::WriteOwnParams
     }
 }
 
-void  IGESDimen_ToolLeaderArrow::OwnShared
-  (const Handle(IGESDimen_LeaderArrow)& /* ent */, Interface_EntityIterator& /* iter */) const
-{
-}
-
-void  IGESDimen_ToolLeaderArrow::OwnCopy
-  (const Handle(IGESDimen_LeaderArrow)& another,
-   const Handle(IGESDimen_LeaderArrow)& ent, Interface_CopyTool& /* TC */) const
-{ 
-  Standard_Integer nbval = another->NbSegments();
-  Standard_Real arrowHeadHeight = another->ArrowHeadHeight();
-  Standard_Real arrowHeadWidth = another->ArrowHeadWidth();
-  Standard_Real zDepth = another->ZDepth();
-  gp_XY arrowHead = another->ArrowHead().XY();
-
-  Handle(TColgp_HArray1OfXY) segmentTails = new TColgp_HArray1OfXY(1, nbval);
-
-  for (Standard_Integer i = 1; i <= nbval; i++)
-    {
-      segmentTails->SetValue(i, (another->SegmentTail(i)).XY());
-    }
-
-  ent->Init(arrowHeadHeight, arrowHeadWidth, zDepth, arrowHead, segmentTails);
-  ent->SetFormNumber (another->FormNumber());
-}
-
 IGESData_DirChecker  IGESDimen_ToolLeaderArrow::DirChecker
   (const Handle(IGESDimen_LeaderArrow)& /* ent */ ) const 
 { 
@@ -134,12 +105,6 @@ IGESData_DirChecker  IGESDimen_ToolLeaderArrow::DirChecker
   return DC;
 }
 
-void  IGESDimen_ToolLeaderArrow::OwnCheck
-  (const Handle(IGESDimen_LeaderArrow)& /* ent */,
-   const Interface_ShareTool& , Handle(Interface_Check)& /* ach */) const 
-{
-}
-
 void  IGESDimen_ToolLeaderArrow::OwnDump
   (const Handle(IGESDimen_LeaderArrow)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const 
index 56dc806a843d80fada159a635b873a460ab1f774..cac3d9e7ccaf66751be3f0d0a1247906f44840f8 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESDimen_ToolLeaderArrow 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolLeaderArrow, ready to work
-  Standard_EXPORT IGESDimen_ToolLeaderArrow();
+  IGESDimen_ToolLeaderArrow() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESDimen_LeaderArrow)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a LeaderArrow <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESDimen_LeaderArrow)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESDimen_LeaderArrow)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESDimen_LeaderArrow)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESDimen_LeaderArrow)& entfrom, const Handle(IGESDimen_LeaderArrow)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESDimen_LeaderArrow)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDimen_ToolLeaderArrow_HeaderFile
index d8cd1bcb5f09fb46f36fc61723549fceb7864d40..87f1643b35c9cfa13420023ca38df449e377e820 100644 (file)
 #include <IGESDimen_ToolLinearDimension.hxx>
 #include <IGESDimen_WitnessLine.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESDimen_ToolLinearDimension::IGESDimen_ToolLinearDimension ()    {  }
-
 
 void  IGESDimen_ToolLinearDimension::ReadOwnParams
   (const Handle(IGESDimen_LinearDimension)& ent,
@@ -91,25 +88,6 @@ void  IGESDimen_ToolLinearDimension::OwnShared
   iter.GetOneItem(ent->SecondWitness());
 }
 
-void  IGESDimen_ToolLinearDimension::OwnCopy
-  (const Handle(IGESDimen_LinearDimension)& another,
-   const Handle(IGESDimen_LinearDimension)& ent, Interface_CopyTool& TC) const
-{
-  DeclareAndCast(IGESDimen_GeneralNote, note, 
-                TC.Transferred(another->Note()));
-  DeclareAndCast(IGESDimen_LeaderArrow, firstLeader, 
-                TC.Transferred(another->FirstLeader()));
-  DeclareAndCast(IGESDimen_LeaderArrow, secondLeader, 
-                TC.Transferred(another->SecondLeader()));
-  DeclareAndCast(IGESDimen_WitnessLine, firstWitness, 
-                TC.Transferred(another->FirstWitness()));
-  DeclareAndCast(IGESDimen_WitnessLine, secondWitness, 
-                TC.Transferred(another->SecondWitness()));
-
-  ent->Init(note, firstLeader, secondLeader, firstWitness, secondWitness);
-  ent->SetFormNumber (another->FormNumber());
-}
-
 IGESData_DirChecker  IGESDimen_ToolLinearDimension::DirChecker
   (const Handle(IGESDimen_LinearDimension)& /*ent*/) const 
 { 
@@ -122,12 +100,6 @@ IGESData_DirChecker  IGESDimen_ToolLinearDimension::DirChecker
   return DC;
 }
 
-void  IGESDimen_ToolLinearDimension::OwnCheck
-  (const Handle(IGESDimen_LinearDimension)& /*ent*/,
-   const Interface_ShareTool& , Handle(Interface_Check)& /*ach*/) const 
-{
-}
-
 void  IGESDimen_ToolLinearDimension::OwnDump
   (const Handle(IGESDimen_LinearDimension)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const 
index 0f33ccede4fb9ceaa06cef0aeb0b3811123e38f0..e3bb85f1e730366f22f2d5bac09dc326a86c5c9f 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESDimen_ToolLinearDimension 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolLinearDimension, ready to work
-  Standard_EXPORT IGESDimen_ToolLinearDimension();
+  IGESDimen_ToolLinearDimension() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -62,36 +60,8 @@ public:
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESDimen_LinearDimension)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESDimen_LinearDimension)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESDimen_LinearDimension)& entfrom, const Handle(IGESDimen_LinearDimension)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESDimen_LinearDimension)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDimen_ToolLinearDimension_HeaderFile
index 3a0763be9ba234fc72b16e95f3514a1f644dcca0..d3ef3b8d4dc0c166e999070d81fe88bd89a91cc7 100644 (file)
@@ -31,7 +31,6 @@
 #include <IGESDimen_NewDimensionedGeometry.hxx>
 #include <IGESDimen_ToolNewDimensionedGeometry.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -40,9 +39,6 @@
 #include <TColgp_HArray1OfXYZ.hxx>
 #include <TColStd_HArray1OfInteger.hxx>
 
-IGESDimen_ToolNewDimensionedGeometry::IGESDimen_ToolNewDimensionedGeometry ()
-      {  }
-
 
 void  IGESDimen_ToolNewDimensionedGeometry::ReadOwnParams
   (const Handle(IGESDimen_NewDimensionedGeometry)& ent,
@@ -128,35 +124,6 @@ void  IGESDimen_ToolNewDimensionedGeometry::OwnShared
     iter.GetOneItem(ent->GeometryEntity(i));
 }
 
-void  IGESDimen_ToolNewDimensionedGeometry::OwnCopy
-  (const Handle(IGESDimen_NewDimensionedGeometry)& another,
-   const Handle(IGESDimen_NewDimensionedGeometry)& ent, Interface_CopyTool& TC) const
-{
-  Standard_Integer num = another->NbGeometries();
-  Standard_Integer tempNbDimens = another->NbDimensions();
-  Standard_Integer tempDimOrientFlag = another->DimensionOrientationFlag();
-  Standard_Real tempAngle = another->AngleValue();
-  DeclareAndCast(IGESData_IGESEntity, tempDimen,
-                TC.Transferred(another->DimensionEntity()));
-
-  Handle(IGESData_HArray1OfIGESEntity) tempGeomEnts =
-    new IGESData_HArray1OfIGESEntity(1, num);
-  Handle(TColStd_HArray1OfInteger) tempDimLocFlags =
-    new TColStd_HArray1OfInteger(1, num);
-  Handle(TColgp_HArray1OfXYZ) tempPoints = new TColgp_HArray1OfXYZ(1, num);
-
-  for (Standard_Integer i = 1; i <= num; i++)
-    {
-      DeclareAndCast(IGESData_IGESEntity, tempEnt,
-                    TC.Transferred(another->GeometryEntity(i)));
-      tempGeomEnts->SetValue(i, tempEnt);
-      tempDimLocFlags->SetValue(i, another->DimensionLocationFlag(i));
-      tempPoints->SetValue(i, another->Point(i).XYZ());
-    }
-  ent->Init (tempNbDimens, tempDimen, tempDimOrientFlag, tempAngle,
-            tempGeomEnts, tempDimLocFlags, tempPoints);
-}
-
 Standard_Boolean  IGESDimen_ToolNewDimensionedGeometry::OwnCorrect
   (const Handle(IGESDimen_NewDimensionedGeometry)& ent) const
 {
index 3095fc81a5cd3cb298fe1db705b26e9187f6d26f..73678dc372b4976363c0a53fcc4f8ab46f58f18e 100644 (file)
@@ -32,7 +32,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -41,13 +40,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESDimen_ToolNewDimensionedGeometry 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolNewDimensionedGeometry, ready to work
-  Standard_EXPORT IGESDimen_ToolNewDimensionedGeometry();
+  IGESDimen_ToolNewDimensionedGeometry() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -70,33 +68,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESDimen_NewDimensionedGeometry)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESDimen_NewDimensionedGeometry)& entfrom, const Handle(IGESDimen_NewDimensionedGeometry)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESDimen_NewDimensionedGeometry)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDimen_ToolNewDimensionedGeometry_HeaderFile
index d6c2ba2e88224d14a3d9cdd37368e5de430bf40c..da16711eec886a5d239987b0c7cda9fd60c48f79 100644 (file)
@@ -29,7 +29,6 @@
 #include <IGESDimen_NewGeneralNote.hxx>
 #include <IGESDimen_ToolNewGeneralNote.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_HArray1OfHAsciiString.hxx>
 #include <Interface_Macros.hxx>
@@ -42,8 +41,6 @@
 #include <TColStd_HArray1OfReal.hxx>
 
 #include <stdio.h>
-IGESDimen_ToolNewGeneralNote::IGESDimen_ToolNewGeneralNote ()    {  }
-
 
 void  IGESDimen_ToolNewGeneralNote::ReadOwnParams
   (const Handle(IGESDimen_NewGeneralNote)& ent,
@@ -297,99 +294,6 @@ void  IGESDimen_ToolNewGeneralNote::OwnShared
     }
 }
 
-void  IGESDimen_ToolNewGeneralNote::OwnCopy
-  (const Handle(IGESDimen_NewGeneralNote)& another,
-   const Handle(IGESDimen_NewGeneralNote)& ent, Interface_CopyTool& TC) const
-{
-  Standard_Real    width                = another->TextWidth();
-  Standard_Real    height               = another->TextHeight();
-  Standard_Integer justifyCode          = another->JustifyCode();
-  gp_XYZ           areaLoc              = (another->AreaLocation()).XYZ();
-  Standard_Real    areaRotationAngle    = another->AreaRotationAngle();
-  gp_XYZ           baseLinePos          = (another->BaseLinePosition()).XYZ();
-  Standard_Real    normalInterlineSpace = another->NormalInterlineSpace();
-  Standard_Integer nbval                = another->NbStrings();
-
-  Handle(TColStd_HArray1OfInteger) charDisplays;
-  Handle(TColStd_HArray1OfReal) charWidths; 
-  Handle(TColStd_HArray1OfReal) charHeights; 
-  Handle(TColStd_HArray1OfReal) interCharSpaces;
-  Handle(TColStd_HArray1OfReal) interlineSpaces; 
-  Handle(TColStd_HArray1OfInteger) fontStyles;
-  Handle(TColStd_HArray1OfReal) charAngles; 
-  Handle(Interface_HArray1OfHAsciiString) controlCodeStrings;
-  Handle(TColStd_HArray1OfInteger) nbChars;
-  Handle(TColStd_HArray1OfReal) boxWidths; 
-  Handle(TColStd_HArray1OfReal) boxHeights;
-  Handle(TColStd_HArray1OfInteger) charSetCodes; 
-  Handle(IGESData_HArray1OfIGESEntity) charSetEntities;
-  Handle(TColStd_HArray1OfReal) slantAngles; 
-  Handle(TColStd_HArray1OfReal) rotationAngles;
-  Handle(TColStd_HArray1OfInteger) mirrorFlags; 
-  Handle(TColStd_HArray1OfInteger) rotateFlags;
-  Handle(TColgp_HArray1OfXYZ) startPoints; 
-  Handle(Interface_HArray1OfHAsciiString) texts; 
-
-  charDisplays         = new TColStd_HArray1OfInteger(1, nbval);
-  charWidths           = new TColStd_HArray1OfReal   (1, nbval);
-  charHeights          = new TColStd_HArray1OfReal   (1, nbval);
-  interCharSpaces      = new TColStd_HArray1OfReal   (1, nbval);
-  interlineSpaces      = new TColStd_HArray1OfReal   (1, nbval);
-  fontStyles           = new TColStd_HArray1OfInteger(1, nbval);
-  charAngles           = new TColStd_HArray1OfReal   (1, nbval);
-  controlCodeStrings   = new Interface_HArray1OfHAsciiString(1, nbval);
-  nbChars              = new TColStd_HArray1OfInteger(1, nbval);
-  boxWidths            = new TColStd_HArray1OfReal   (1, nbval);
-  boxHeights           = new TColStd_HArray1OfReal   (1, nbval);
-  charSetCodes         = new TColStd_HArray1OfInteger(1, nbval);
-  charSetEntities      = new IGESData_HArray1OfIGESEntity(1, nbval);
-  slantAngles          = new TColStd_HArray1OfReal   (1, nbval);
-  rotationAngles       = new TColStd_HArray1OfReal   (1, nbval);
-  mirrorFlags          = new TColStd_HArray1OfInteger(1, nbval);
-  rotateFlags          = new TColStd_HArray1OfInteger(1, nbval);
-  startPoints          = new TColgp_HArray1OfXYZ     (1, nbval);
-  texts                = new Interface_HArray1OfHAsciiString(1, nbval);
-
-  for (Standard_Integer i = 1; i <= nbval; i++)
-    {
-      charDisplays->SetValue    (i, another->CharacterDisplay(i));
-      charWidths->SetValue      (i, another->CharacterWidth(i));
-      charHeights->SetValue     (i, another->CharacterHeight(i));
-      interCharSpaces->SetValue (i, another->InterCharacterSpace(i));
-      interlineSpaces->SetValue (i, another->InterlineSpace(i));
-      fontStyles->SetValue      (i, another->FontStyle(i));
-      charAngles->SetValue      (i, another->CharacterAngle(i));
-      controlCodeStrings->SetValue
-       (i, new TCollection_HAsciiString(another->ControlCodeString(i)));
-      nbChars->SetValue         (i, another->NbCharacters(i));
-      boxWidths->SetValue       (i, another->BoxWidth(i));
-      boxHeights->SetValue      (i, another->BoxHeight(i));
-
-      if (another->IsCharSetEntity(i)) {
-       DeclareAndCast(IGESData_IGESEntity, charSetEntity,
-                      TC.Transferred(another->CharSetEntity(i)));
-       charSetEntities->SetValue(i, charSetEntity);
-      }
-      else  charSetCodes->SetValue(i, another->CharSetCode(i));
-
-      slantAngles->SetValue     (i, another->SlantAngle(i));
-      rotationAngles->SetValue  (i, another->RotationAngle(i));
-      mirrorFlags->SetValue     (i, another->MirrorFlag(i));
-      rotateFlags->SetValue     (i, another->RotateFlag(i));
-      startPoints->SetValue     (i, another->StartPoint(i).XYZ());
-      texts->SetValue
-        (i, new TCollection_HAsciiString(another->Text(i)));
-    }
-
-  ent->Init (width, height, justifyCode, areaLoc, areaRotationAngle, baseLinePos,
-            normalInterlineSpace, charDisplays, charWidths, charHeights, 
-            interCharSpaces, interlineSpaces, fontStyles, charAngles, 
-            controlCodeStrings,nbChars, boxWidths, boxHeights, charSetCodes,
-            charSetEntities, slantAngles, rotationAngles, mirrorFlags,
-            rotateFlags, startPoints, texts);
-  
-}
-
 IGESData_DirChecker  IGESDimen_ToolNewGeneralNote::DirChecker
   (const Handle(IGESDimen_NewGeneralNote)& /* ent */ ) const 
 { 
index 5ac4ce34da37b083c2dec895af7936fdb8990acd..49f2e3bb0321a65f9fd6967ebd8961342d4b51b1 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESDimen_ToolNewGeneralNote 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolNewGeneralNote, ready to work
-  Standard_EXPORT IGESDimen_ToolNewGeneralNote();
+  IGESDimen_ToolNewGeneralNote() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -65,33 +63,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESDimen_NewGeneralNote)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESDimen_NewGeneralNote)& entfrom, const Handle(IGESDimen_NewGeneralNote)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESDimen_NewGeneralNote)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDimen_ToolNewGeneralNote_HeaderFile
index 8b9d2c87660051b1bc11e9c1b55a2c58d87ae692..4b475950a8f50704140942d228cf9a18a7b8c7e5 100644 (file)
 #include <IGESDimen_ToolOrdinateDimension.hxx>
 #include <IGESDimen_WitnessLine.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESDimen_ToolOrdinateDimension::IGESDimen_ToolOrdinateDimension ()    {  }
-
 
 void IGESDimen_ToolOrdinateDimension::ReadOwnParams
   (const Handle(IGESDimen_OrdinateDimension)& theEnt,
@@ -104,19 +101,6 @@ void  IGESDimen_ToolOrdinateDimension::OwnShared
   iter.GetOneItem(ent->Leader());
 }
 
-void IGESDimen_ToolOrdinateDimension::OwnCopy
-  (const Handle(IGESDimen_OrdinateDimension)& another,
-   const Handle(IGESDimen_OrdinateDimension)& ent, Interface_CopyTool& TC) const
-{
-  DeclareAndCast(IGESDimen_GeneralNote, tempNote,
-                TC.Transferred(another->Note()));
-  DeclareAndCast(IGESDimen_WitnessLine, witLine,
-                TC.Transferred(another->WitnessLine()));
-  DeclareAndCast(IGESDimen_LeaderArrow, leadArr,
-                TC.Transferred(another->Leader()));
-  ent->Init(tempNote, another->IsLine(), witLine, leadArr);
-}
-
 IGESData_DirChecker IGESDimen_ToolOrdinateDimension::DirChecker
   (const Handle(IGESDimen_OrdinateDimension)& /*ent*/) const
 {
index fbc8914d706456897a6bb111bcb9534e676052ac..81c9d2442d506fae19464719882b4bc2f5700609 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESDimen_ToolOrdinateDimension 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolOrdinateDimension, ready to work
-  Standard_EXPORT IGESDimen_ToolOrdinateDimension();
+  IGESDimen_ToolOrdinateDimension() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -65,33 +63,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESDimen_OrdinateDimension)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESDimen_OrdinateDimension)& entfrom, const Handle(IGESDimen_OrdinateDimension)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESDimen_OrdinateDimension)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDimen_ToolOrdinateDimension_HeaderFile
index 99aff1ab1b84f00817a1267126c555fa566cb2d2..b07f744c1dadb8adb8f5fcc7f75f30c215689472 100644 (file)
 #include <IGESDimen_PointDimension.hxx>
 #include <IGESDimen_ToolPointDimension.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESDimen_ToolPointDimension::IGESDimen_ToolPointDimension ()    {  }
-
 
 void IGESDimen_ToolPointDimension::ReadOwnParams
   (const Handle(IGESDimen_PointDimension)& ent,
@@ -76,19 +73,6 @@ void  IGESDimen_ToolPointDimension::OwnShared
   iter.GetOneItem(ent->Geom());
 }
 
-void IGESDimen_ToolPointDimension::OwnCopy
-  (const Handle(IGESDimen_PointDimension)& another,
-   const Handle(IGESDimen_PointDimension)& ent, Interface_CopyTool& TC) const
-{
-  DeclareAndCast(IGESDimen_GeneralNote, tempNote,
-                TC.Transferred(another->Note()));
-  DeclareAndCast(IGESDimen_LeaderArrow, tempArrow,
-                TC.Transferred(another->LeaderArrow()));
-  DeclareAndCast(IGESData_IGESEntity, tempGeom,
-                TC.Transferred(another->Geom()));
-  ent->Init(tempNote, tempArrow, tempGeom);
-}
-
 IGESData_DirChecker IGESDimen_ToolPointDimension::DirChecker
   (const Handle(IGESDimen_PointDimension)& /*ent*/) const
 {
@@ -103,12 +87,6 @@ IGESData_DirChecker IGESDimen_ToolPointDimension::DirChecker
   return DC;
 }
 
-void IGESDimen_ToolPointDimension::OwnCheck
-  (const Handle(IGESDimen_PointDimension)& /*ent*/,
-   const Interface_ShareTool& , Handle(Interface_Check)& /*ach*/) const
-{
-}
-
 void IGESDimen_ToolPointDimension::OwnDump
   (const Handle(IGESDimen_PointDimension)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
index 77d6f6d6b2cd2a46257d2cf103f2ba341339fc5a..97377c84ceb403c4e120ac4b141616a68efb9f1f 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESDimen_ToolPointDimension 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolPointDimension, ready to work
-  Standard_EXPORT IGESDimen_ToolPointDimension();
+  IGESDimen_ToolPointDimension() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -62,36 +60,8 @@ public:
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESDimen_PointDimension)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESDimen_PointDimension)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESDimen_PointDimension)& entfrom, const Handle(IGESDimen_PointDimension)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESDimen_PointDimension)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDimen_ToolPointDimension_HeaderFile
index 507266cf91c43b7d8f2238735437b279ebb7e3cd..90db73774d565cdec45ec2297aacda1e117c9bc7 100644 (file)
 #include <IGESDimen_RadiusDimension.hxx>
 #include <IGESDimen_ToolRadiusDimension.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESDimen_ToolRadiusDimension::IGESDimen_ToolRadiusDimension ()    {  }
-
 
 void IGESDimen_ToolRadiusDimension::ReadOwnParams
   (const Handle(IGESDimen_RadiusDimension)& ent,
@@ -85,22 +82,6 @@ void  IGESDimen_ToolRadiusDimension::OwnShared
   iter.GetOneItem(ent->Leader2());
 }
 
-void IGESDimen_ToolRadiusDimension::OwnCopy
-  (const Handle(IGESDimen_RadiusDimension)& another,
-   const Handle(IGESDimen_RadiusDimension)& ent, Interface_CopyTool& TC) const
-{
-  DeclareAndCast(IGESDimen_GeneralNote, tempNote,
-                TC.Transferred(another->Note()));
-  DeclareAndCast(IGESDimen_LeaderArrow, leadArr,
-                TC.Transferred(another->Leader()));
-  gp_XY arcCenter = another->Center().XY();
-  Handle(IGESDimen_LeaderArrow) leadArr2;
-  if (another->HasLeader2()) leadArr2 =
-    GetCasted(IGESDimen_LeaderArrow,TC.Transferred(another->Leader2()));
-  ent->Init(tempNote, leadArr, arcCenter, leadArr2);
-  ent->InitForm (another->FormNumber());
-}
-
 IGESData_DirChecker IGESDimen_ToolRadiusDimension::DirChecker
   (const Handle(IGESDimen_RadiusDimension)& /* ent */ ) const
 {
index 9f5817808ddfb282f1ebc36135913aac0d6dc1cf..cb6482136b7a0160013e7f0d87737e8693a5d7b5 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESDimen_ToolRadiusDimension 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolRadiusDimension, ready to work
-  Standard_EXPORT IGESDimen_ToolRadiusDimension();
+  IGESDimen_ToolRadiusDimension() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -65,33 +63,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESDimen_RadiusDimension)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESDimen_RadiusDimension)& entfrom, const Handle(IGESDimen_RadiusDimension)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESDimen_RadiusDimension)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDimen_ToolRadiusDimension_HeaderFile
index f97842969f9f6a591a5264f4b674a5239c9d85e8..f0099a3a36cb4844c4a39308f27e5c6051353de2 100644 (file)
@@ -29,7 +29,6 @@
 #include <IGESDimen_Section.hxx>
 #include <IGESDimen_ToolSection.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -37,8 +36,6 @@
 #include <Standard_DomainError.hxx>
 #include <TColgp_HArray1OfXY.hxx>
 
-IGESDimen_ToolSection::IGESDimen_ToolSection ()    {  }
-
 
 void  IGESDimen_ToolSection::ReadOwnParams
   (const Handle(IGESDimen_Section)& ent,
@@ -86,31 +83,6 @@ void  IGESDimen_ToolSection::WriteOwnParams
     }
 }
 
-void  IGESDimen_ToolSection::OwnShared
-  (const Handle(IGESDimen_Section)& /* ent */, Interface_EntityIterator& /* iter */) const
-{
-}
-
-void  IGESDimen_ToolSection::OwnCopy
-  (const Handle(IGESDimen_Section)& another,
-   const Handle(IGESDimen_Section)& ent, Interface_CopyTool& /* TC */) const
-{
-  Standard_Integer datatype = another->Datatype();
-  Standard_Integer nbval = another->NbPoints();
-  Standard_Real zDisplacement = another->ZDisplacement();
-
-  Handle(TColgp_HArray1OfXY) dataPoints = new TColgp_HArray1OfXY(1, nbval);
-
-  for (Standard_Integer i = 1; i <= nbval; i++)
-    {
-      gp_Pnt tempPnt = (another->Point(i));
-      gp_XY tempPnt2d(tempPnt.X(), tempPnt.Y());
-      dataPoints->SetValue(i, tempPnt2d);
-    }
-  ent->Init(datatype, zDisplacement, dataPoints);
-  ent->SetFormNumber (another->FormNumber());
-}
-
 Standard_Boolean  IGESDimen_ToolSection::OwnCorrect
   (const Handle(IGESDimen_Section)& ent) const
 {
index 04fa88b7de2cc9ca0cb67a668eaa5d6b4f118f52..59c40d2a3f0661dc1dee72c358ebce302e86e93d 100644 (file)
@@ -32,7 +32,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -41,13 +40,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESDimen_ToolSection 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolSection, ready to work
-  Standard_EXPORT IGESDimen_ToolSection();
+  IGESDimen_ToolSection() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -56,10 +54,6 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESDimen_Section)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a Section <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESDimen_Section)& ent, Interface_EntityIterator& iter) const;
-  
   //! Sets automatic unambiguous Correction on a Section
   //! (LineFont forced to Rank = 1, DataType forced to 1)
   Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESDimen_Section)& ent) const;
@@ -70,33 +64,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESDimen_Section)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESDimen_Section)& entfrom, const Handle(IGESDimen_Section)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESDimen_Section)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDimen_ToolSection_HeaderFile
index addac05d201cb876f1cb4db56d354ed04adbebb0..0b64ae9799080b74653c1a304b8f3b1b84676922 100644 (file)
 #include <IGESDimen_SectionedArea.hxx>
 #include <IGESDimen_ToolSectionedArea.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESDimen_ToolSectionedArea::IGESDimen_ToolSectionedArea ()    {  }
-
 
 void IGESDimen_ToolSectionedArea::ReadOwnParams
   (const Handle(IGESDimen_SectionedArea)& ent,
@@ -107,33 +104,6 @@ void  IGESDimen_ToolSectionedArea::OwnShared
     iter.GetOneItem(ent->IslandCurve(i));
 }
 
-void IGESDimen_ToolSectionedArea::OwnCopy
-  (const Handle(IGESDimen_SectionedArea)& another,
-   const Handle(IGESDimen_SectionedArea)& ent, Interface_CopyTool& TC) const
-{
-  DeclareAndCast(IGESData_IGESEntity, extCurve,
-                TC.Transferred(another->ExteriorCurve()));
-  Standard_Integer tempPattern = another->Pattern();
-  gp_XYZ passPnt = (another->PassingPoint()).XYZ();
-  Standard_Real tempDistance = another->Distance();
-  Standard_Real tempAngle = another->Angle();
-  Handle(IGESData_HArray1OfIGESEntity) tempIslands;
-  Standard_Integer nbislands = another->NbIslands();
-  if (nbislands > 0)
-    {
-      tempIslands = new IGESData_HArray1OfIGESEntity(1, nbislands);
-      for (Standard_Integer i=1; i<=nbislands; i++)
-       {
-          DeclareAndCast(IGESData_IGESEntity, anent,
-                        TC.Transferred(another->IslandCurve(i)));
-          tempIslands->SetValue(i, anent);
-       }
-    }
-  ent->Init(extCurve, tempPattern, passPnt,
-           tempDistance, tempAngle, tempIslands);
-  ent->SetInverted (another->IsInverted());
-}
-
 IGESData_DirChecker IGESDimen_ToolSectionedArea::DirChecker
   (const Handle(IGESDimen_SectionedArea)& /* ent */ ) const
 {
@@ -148,12 +118,6 @@ IGESData_DirChecker IGESDimen_ToolSectionedArea::DirChecker
   return DC;
 }
 
-void IGESDimen_ToolSectionedArea::OwnCheck
-  (const Handle(IGESDimen_SectionedArea)& /* ent */,
-   const Interface_ShareTool& , Handle(Interface_Check)& /* ach */) const
-{
-}
-
 void IGESDimen_ToolSectionedArea::OwnDump
   (const Handle(IGESDimen_SectionedArea)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
index dfe6437c737656bf1bff3a9ab8701e3c69e1d1aa..f97769950beb21429d42812a3982141b59d6b7b1 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESDimen_ToolSectionedArea 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolSectionedArea, ready to work
-  Standard_EXPORT IGESDimen_ToolSectionedArea();
+  IGESDimen_ToolSectionedArea() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -62,36 +60,8 @@ public:
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESDimen_SectionedArea)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESDimen_SectionedArea)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESDimen_SectionedArea)& entfrom, const Handle(IGESDimen_SectionedArea)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESDimen_SectionedArea)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDimen_ToolSectionedArea_HeaderFile
index 84f0527df478eb687ddc4be3b2ccf6c941d4fae6..c68e76b20373eaf7d94c4d53a2c1612cd21354d4 100644 (file)
@@ -29,7 +29,6 @@
 #include <IGESDimen_ToolWitnessLine.hxx>
 #include <IGESDimen_WitnessLine.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -37,8 +36,6 @@
 #include <Standard_DomainError.hxx>
 #include <TColgp_HArray1OfXY.hxx>
 
-IGESDimen_ToolWitnessLine::IGESDimen_ToolWitnessLine ()    {  }
-
 
 void  IGESDimen_ToolWitnessLine::ReadOwnParams
   (const Handle(IGESDimen_WitnessLine)& ent,
@@ -86,30 +83,6 @@ void  IGESDimen_ToolWitnessLine::WriteOwnParams
     }
 }
 
-void  IGESDimen_ToolWitnessLine::OwnShared
-  (const Handle(IGESDimen_WitnessLine)& /* ent */, Interface_EntityIterator& /* iter */) const
-{
-}
-
-void  IGESDimen_ToolWitnessLine::OwnCopy
-  (const Handle(IGESDimen_WitnessLine)& another,
-   const Handle(IGESDimen_WitnessLine)& ent, Interface_CopyTool& /* TC */) const
-{
-  Standard_Integer datatype = another->Datatype();
-  Standard_Integer nbval = another->NbPoints();
-  Standard_Real zDisplacement = another->ZDisplacement();
-
-  Handle(TColgp_HArray1OfXY) dataPoints = new TColgp_HArray1OfXY(1, nbval);
-
-  for (Standard_Integer i = 1; i <= nbval; i++)
-    {
-      gp_Pnt tempPnt = (another->Point(i));
-      gp_XY tempPnt2d(tempPnt.X(), tempPnt.Y());
-      dataPoints->SetValue(i, tempPnt2d);
-    }
-  ent->Init(datatype, zDisplacement, dataPoints);
-}
-
 Standard_Boolean  IGESDimen_ToolWitnessLine::OwnCorrect
   (const Handle(IGESDimen_WitnessLine)& ent) const
 {
index e7edf191a86edb06a7f516718d728d0b8a5734ab..2af848c34bfcaeb6d34816b9e73d19a411ba59a8 100644 (file)
@@ -32,7 +32,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -41,13 +40,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESDimen_ToolWitnessLine 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolWitnessLine, ready to work
-  Standard_EXPORT IGESDimen_ToolWitnessLine();
+  IGESDimen_ToolWitnessLine() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -56,10 +54,6 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESDimen_WitnessLine)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a WitnessLine <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESDimen_WitnessLine)& ent, Interface_EntityIterator& iter) const;
-  
   //! Sets automatic unambiguous Correction on a WitnessLine
   //! (LineFont forced to Rank = 1, DataType forced to 1)
   Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESDimen_WitnessLine)& ent) const;
@@ -70,33 +64,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESDimen_WitnessLine)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESDimen_WitnessLine)& entfrom, const Handle(IGESDimen_WitnessLine)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESDimen_WitnessLine)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDimen_ToolWitnessLine_HeaderFile
index bc64534ece11cb50d8ec3b630bbbbefedacc3e99..9e2bb6b93e6a2d150e48d9538313864f6657e81c 100644 (file)
 #include <Interface_GeneralLib.hxx>
 #include <Interface_ReaderLib.hxx>
 
-//  Ancillary data to work on a Package of IGES Entities with a Protocol
-//  (Modules are created and loaded in appropriate libraries, once by Init)
-static Handle(IGESDraw_Protocol) protocol;
 
-
-    void  IGESDraw::Init ()
+/*void IGESDraw::Init ()
 {
   IGESDimen::Init();
+  IGESDraw::Protocol();
+}*/
+
+const Handle(IGESDraw_Protocol) & IGESDraw::Protocol ()
+{
+  static Handle(IGESDraw_Protocol) protocol;
   if (protocol.IsNull()) {
     protocol = new IGESDraw_Protocol;
     Interface_GeneralLib::SetGlobal (new IGESDraw_GeneralModule,  protocol);
@@ -38,9 +40,5 @@ static Handle(IGESDraw_Protocol) protocol;
     IGESData_WriterLib::SetGlobal   (new IGESDraw_ReadWriteModule,protocol);
     IGESData_SpecificLib::SetGlobal (new IGESDraw_SpecificModule, protocol);
   }
-}
-
-    Handle(IGESDraw_Protocol)  IGESDraw::Protocol ()
-{
   return protocol;
 }
index ad94d2fccf1551969a9b11965f40a8f65c9963e8..b72b963e50a009a1b6c6d75f094706316fbed6bc 100644 (file)
 #define _IGESDraw_HeaderFile
 
 #include <Standard.hxx>
-#include <Standard_DefineAlloc.hxx>
 #include <Standard_Handle.hxx>
 
 class IGESDraw_Protocol;
-class IGESDraw_ConnectPoint;
-class IGESDraw_NetworkSubfigureDef;
-class IGESDraw_ViewsVisible;
-class IGESDraw_ViewsVisibleWithAttr;
-class IGESDraw_LabelDisplay;
-class IGESDraw_Planar;
-class IGESDraw_SegmentedViewsVisible;
-class IGESDraw_Drawing;
-class IGESDraw_DrawingWithRotation;
-class IGESDraw_View;
-class IGESDraw_RectArraySubfigure;
-class IGESDraw_CircArraySubfigure;
-class IGESDraw_NetworkSubfigure;
-class IGESDraw_PerspectiveView;
-class IGESDraw_ToolConnectPoint;
-class IGESDraw_ToolNetworkSubfigureDef;
-class IGESDraw_ToolViewsVisible;
-class IGESDraw_ToolViewsVisibleWithAttr;
-class IGESDraw_ToolLabelDisplay;
-class IGESDraw_ToolPlanar;
-class IGESDraw_ToolSegmentedViewsVisible;
-class IGESDraw_ToolDrawing;
-class IGESDraw_ToolDrawingWithRotation;
-class IGESDraw_ToolView;
-class IGESDraw_ToolRectArraySubfigure;
-class IGESDraw_ToolCircArraySubfigure;
-class IGESDraw_ToolNetworkSubfigure;
-class IGESDraw_ToolPerspectiveView;
-class IGESDraw_Protocol;
-class IGESDraw_ReadWriteModule;
-class IGESDraw_GeneralModule;
-class IGESDraw_SpecificModule;
 
 
 //! This package contains the group of classes necessary for
@@ -61,70 +28,13 @@ class IGESDraw_SpecificModule;
 //! Graphics (Sets for drawing, Drawings and Views).
 class IGESDraw 
 {
-public:
-
-  DEFINE_STANDARD_ALLOC
+ public:
 
-  
   //! Prepares dynamic data (Protocol, Modules) for this package
-  Standard_EXPORT static void Init();
+  //Standard_EXPORT static void Init();
   
   //! Returns the Protocol for this Package
-  Standard_EXPORT static Handle(IGESDraw_Protocol) Protocol();
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-friend class IGESDraw_ConnectPoint;
-friend class IGESDraw_NetworkSubfigureDef;
-friend class IGESDraw_ViewsVisible;
-friend class IGESDraw_ViewsVisibleWithAttr;
-friend class IGESDraw_LabelDisplay;
-friend class IGESDraw_Planar;
-friend class IGESDraw_SegmentedViewsVisible;
-friend class IGESDraw_Drawing;
-friend class IGESDraw_DrawingWithRotation;
-friend class IGESDraw_View;
-friend class IGESDraw_RectArraySubfigure;
-friend class IGESDraw_CircArraySubfigure;
-friend class IGESDraw_NetworkSubfigure;
-friend class IGESDraw_PerspectiveView;
-friend class IGESDraw_ToolConnectPoint;
-friend class IGESDraw_ToolNetworkSubfigureDef;
-friend class IGESDraw_ToolViewsVisible;
-friend class IGESDraw_ToolViewsVisibleWithAttr;
-friend class IGESDraw_ToolLabelDisplay;
-friend class IGESDraw_ToolPlanar;
-friend class IGESDraw_ToolSegmentedViewsVisible;
-friend class IGESDraw_ToolDrawing;
-friend class IGESDraw_ToolDrawingWithRotation;
-friend class IGESDraw_ToolView;
-friend class IGESDraw_ToolRectArraySubfigure;
-friend class IGESDraw_ToolCircArraySubfigure;
-friend class IGESDraw_ToolNetworkSubfigure;
-friend class IGESDraw_ToolPerspectiveView;
-friend class IGESDraw_Protocol;
-friend class IGESDraw_ReadWriteModule;
-friend class IGESDraw_GeneralModule;
-friend class IGESDraw_SpecificModule;
-
+  Standard_EXPORT static const Handle(IGESDraw_Protocol) & Protocol();
 };
 
-
-
-
-
-
-
 #endif // _IGESDraw_HeaderFile
index 8cf2742d50e59e5881446f2e056651f07dbe1593..85fc57a4687e2ffb2eba2b8432880cc7c0a65cbb 100644 (file)
 #include <IGESDraw_ViewsVisibleWithAttr.hxx>
 #include <Interface_Category.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
-#include <Standard_Transient.hxx>
-#include <Standard_Type.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESDraw_GeneralModule,IGESData_GeneralModule)
 
-//  Each Module is attached to a Protocol : it must interprete Case Numbers
-//  (arguments <CN> of various methods) in accordance to values returned by
-//  the method TypeNumber from this Protocol
-IGESDraw_GeneralModule::IGESDraw_GeneralModule ()    {  }
-
 
     void  IGESDraw_GeneralModule::OwnSharedCase
   (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent,
    Interface_EntityIterator& iter) const 
 {
   switch (CN) {
-    case  1 : {
-      DeclareAndCast(IGESDraw_CircArraySubfigure,anent,ent);
-      if (anent.IsNull()) return;
-      IGESDraw_ToolCircArraySubfigure tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
     case  2 : {
       DeclareAndCast(IGESDraw_ConnectPoint,anent,ent);
       if (anent.IsNull()) return;
@@ -114,13 +99,6 @@ IGESDraw_GeneralModule::IGESDraw_GeneralModule ()    {  }
       tool.OwnShared(anent,iter);
     }
       break;
-    case  8 : {
-      DeclareAndCast(IGESDraw_PerspectiveView,anent,ent);
-      if (anent.IsNull()) return;
-      IGESDraw_ToolPerspectiveView tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
     case  9 : {
       DeclareAndCast(IGESDraw_Planar,anent,ent);
       if (anent.IsNull()) return;
@@ -289,13 +267,6 @@ IGESDraw_GeneralModule::IGESDraw_GeneralModule ()    {  }
    const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const 
 {
   switch (CN) {
-    case  1 : {
-      DeclareAndCast(IGESDraw_CircArraySubfigure,anent,ent);
-      if (anent.IsNull()) return;
-      IGESDraw_ToolCircArraySubfigure tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
     case  2 : {
       DeclareAndCast(IGESDraw_ConnectPoint,anent,ent);
       if (anent.IsNull()) return;
@@ -317,13 +288,6 @@ IGESDraw_GeneralModule::IGESDraw_GeneralModule ()    {  }
       tool.OwnCheck(anent,shares,ach);
     }
       break;
-    case  5 : {
-      DeclareAndCast(IGESDraw_LabelDisplay,anent,ent);
-      if (anent.IsNull()) return;
-      IGESDraw_ToolLabelDisplay tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
     case  6 : {
       DeclareAndCast(IGESDraw_NetworkSubfigure,anent,ent);
       if (anent.IsNull()) return;
@@ -352,20 +316,6 @@ IGESDraw_GeneralModule::IGESDraw_GeneralModule ()    {  }
       tool.OwnCheck(anent,shares,ach);
     }
       break;
-    case 10 : {
-      DeclareAndCast(IGESDraw_RectArraySubfigure,anent,ent);
-      if (anent.IsNull()) return;
-      IGESDraw_ToolRectArraySubfigure tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
-    case 11 : {
-      DeclareAndCast(IGESDraw_SegmentedViewsVisible,anent,ent);
-      if (anent.IsNull()) return;
-      IGESDraw_ToolSegmentedViewsVisible tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
     case 12 : {
       DeclareAndCast(IGESDraw_View,anent,ent);
       if (anent.IsNull()) return;
@@ -416,163 +366,6 @@ IGESDraw_GeneralModule::IGESDraw_GeneralModule ()    {  }
 }
 
 
-    void  IGESDraw_GeneralModule::OwnCopyCase
-  (const Standard_Integer CN,
-   const Handle(IGESData_IGESEntity)& entfrom,
-   const Handle(IGESData_IGESEntity)& entto,
-   Interface_CopyTool& TC) const 
-{
-  switch (CN) {
-    case  1 : {
-      DeclareAndCast(IGESDraw_CircArraySubfigure,enfr,entfrom);
-      DeclareAndCast(IGESDraw_CircArraySubfigure,ento,entto);
-      IGESDraw_ToolCircArraySubfigure tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  2 : {
-      DeclareAndCast(IGESDraw_ConnectPoint,enfr,entfrom);
-      DeclareAndCast(IGESDraw_ConnectPoint,ento,entto);
-      IGESDraw_ToolConnectPoint tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  3 : {
-      DeclareAndCast(IGESDraw_Drawing,enfr,entfrom);
-      DeclareAndCast(IGESDraw_Drawing,ento,entto);
-      IGESDraw_ToolDrawing tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  4 : {
-      DeclareAndCast(IGESDraw_DrawingWithRotation,enfr,entfrom);
-      DeclareAndCast(IGESDraw_DrawingWithRotation,ento,entto);
-      IGESDraw_ToolDrawingWithRotation tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  5 : {
-      DeclareAndCast(IGESDraw_LabelDisplay,enfr,entfrom);
-      DeclareAndCast(IGESDraw_LabelDisplay,ento,entto);
-      IGESDraw_ToolLabelDisplay tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  6 : {
-      DeclareAndCast(IGESDraw_NetworkSubfigure,enfr,entfrom);
-      DeclareAndCast(IGESDraw_NetworkSubfigure,ento,entto);
-      IGESDraw_ToolNetworkSubfigure tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  7 : {
-      DeclareAndCast(IGESDraw_NetworkSubfigureDef,enfr,entfrom);
-      DeclareAndCast(IGESDraw_NetworkSubfigureDef,ento,entto);
-      IGESDraw_ToolNetworkSubfigureDef tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  8 : {
-      DeclareAndCast(IGESDraw_PerspectiveView,enfr,entfrom);
-      DeclareAndCast(IGESDraw_PerspectiveView,ento,entto);
-      IGESDraw_ToolPerspectiveView tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  9 : {
-      DeclareAndCast(IGESDraw_Planar,enfr,entfrom);
-      DeclareAndCast(IGESDraw_Planar,ento,entto);
-      IGESDraw_ToolPlanar tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 10 : {
-      DeclareAndCast(IGESDraw_RectArraySubfigure,enfr,entfrom);
-      DeclareAndCast(IGESDraw_RectArraySubfigure,ento,entto);
-      IGESDraw_ToolRectArraySubfigure tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 11 : {
-      DeclareAndCast(IGESDraw_SegmentedViewsVisible,enfr,entfrom);
-      DeclareAndCast(IGESDraw_SegmentedViewsVisible,ento,entto);
-      IGESDraw_ToolSegmentedViewsVisible tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 12 : {
-      DeclareAndCast(IGESDraw_View,enfr,entfrom);
-      DeclareAndCast(IGESDraw_View,ento,entto);
-      IGESDraw_ToolView tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 13 : {
-      DeclareAndCast(IGESDraw_ViewsVisible,enfr,entfrom);
-      DeclareAndCast(IGESDraw_ViewsVisible,ento,entto);
-      IGESDraw_ToolViewsVisible tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 14 : {
-      DeclareAndCast(IGESDraw_ViewsVisibleWithAttr,enfr,entfrom);
-      DeclareAndCast(IGESDraw_ViewsVisibleWithAttr,ento,entto);
-      IGESDraw_ToolViewsVisibleWithAttr tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    default : break;
-  }
-}
-
-
-    void  IGESDraw_GeneralModule::OwnRenewCase
-  (const Standard_Integer CN,
-   const Handle(IGESData_IGESEntity)& entfrom,
-   const Handle(IGESData_IGESEntity)& entto,
-   const Interface_CopyTool& TC) const 
-{
-  switch (CN) {
-    case 13 : {
-      DeclareAndCast(IGESDraw_ViewsVisible,enfr,entfrom);
-      DeclareAndCast(IGESDraw_ViewsVisible,ento,entto);
-      IGESDraw_ToolViewsVisible tool;
-      tool.OwnRenew(enfr,ento,TC);
-    }
-      break;
-    case 14 : {
-      DeclareAndCast(IGESDraw_ViewsVisibleWithAttr,enfr,entfrom);
-      DeclareAndCast(IGESDraw_ViewsVisibleWithAttr,ento,entto);
-      IGESDraw_ToolViewsVisibleWithAttr tool;
-      tool.OwnRenew(enfr,ento,TC);
-    }
-      break;
-    default : break;
-  }
-}
-
-
-    void  IGESDraw_GeneralModule::OwnDeleteCase
-  (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent) const
-{
-  switch (CN) {
-    case 13 : {
-      DeclareAndCast(IGESDraw_ViewsVisible,anent,ent);
-      IGESDraw_ToolViewsVisible tool;
-      tool.OwnWhenDelete(anent);
-    }
-      break;
-    case 14 : {
-      DeclareAndCast(IGESDraw_ViewsVisibleWithAttr,anent,ent);
-      IGESDraw_ToolViewsVisibleWithAttr tool;
-      tool.OwnWhenDelete(anent);
-    }
-      break;
-    default : break;
-  }
-}
-
-
     Standard_Integer  IGESDraw_GeneralModule::CategoryNumber
   (const Standard_Integer CN, const Handle(Standard_Transient)& ,
    const Interface_ShareTool& ) const
index a3d3fe800d9860073bd2eccbaf16e234e598242f..0e0ea16c2d24988f3e6515f44249173f4ee7159d 100644 (file)
 #ifndef _IGESDraw_GeneralModule_HeaderFile
 #define _IGESDraw_GeneralModule_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
 #include <IGESData_GeneralModule.hxx>
-#include <Standard_Integer.hxx>
-#include <Standard_Boolean.hxx>
-class IGESData_IGESEntity;
-class Interface_EntityIterator;
-class IGESData_DirChecker;
-class Interface_ShareTool;
-class Interface_Check;
-class Standard_Transient;
-class Interface_CopyTool;
 
 
 class IGESDraw_GeneralModule;
@@ -39,12 +27,10 @@ DEFINE_STANDARD_HANDLE(IGESDraw_GeneralModule, IGESData_GeneralModule)
 //! This Services comprise : Shared & Implied Lists, Copy, Check
 class IGESDraw_GeneralModule : public IGESData_GeneralModule
 {
+ public:
 
-public:
-
-  
   //! Creates a GeneralModule from IGESDraw and puts it into GeneralLib
-  Standard_EXPORT IGESDraw_GeneralModule();
+  IGESDraw_GeneralModule() {}
   
   //! Lists the Entities shared by a given IGESEntity <ent>, from
   //! its specific parameters : specific for each type
@@ -65,45 +51,13 @@ public:
   //! Specific creation of a new void entity
   Standard_EXPORT Standard_Boolean NewVoid (const Standard_Integer CN, Handle(Standard_Transient)& entto) const Standard_OVERRIDE;
   
-  //! Copies parameters which are specific of each Type of Entity
-  Standard_EXPORT void OwnCopyCase (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& entfrom, const Handle(IGESData_IGESEntity)& entto, Interface_CopyTool& TC) const Standard_OVERRIDE;
-  
-  //! Renews parameters which are specific of each Type of Entity :
-  //! redefined for ViewsVisible ... (takes only the implied ref.s
-  //! which have also been copied)
-  Standard_EXPORT virtual void OwnRenewCase (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& entfrom, const Handle(IGESData_IGESEntity)& entto, const Interface_CopyTool& TC) const Standard_OVERRIDE;
-  
-  //! Clears parameters with can cause looping structures :
-  //! redefined for ViewsVisible ... (clears the implied ref.s)
-  Standard_EXPORT virtual void OwnDeleteCase (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent) const Standard_OVERRIDE;
-  
   //! Returns a category number which characterizes an entity
   //! Planar : Auxiliary
   //! Subfigures and ConnectPoint : Structure
   //! others : Drawing
   Standard_EXPORT virtual Standard_Integer CategoryNumber (const Standard_Integer CN, const Handle(Standard_Transient)& ent, const Interface_ShareTool& shares) const Standard_OVERRIDE;
 
-
-
-
   DEFINE_STANDARD_RTTIEXT(IGESDraw_GeneralModule,IGESData_GeneralModule)
-
-protected:
-
-
-
-
-private:
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDraw_GeneralModule_HeaderFile
index 5822fa68e74b9c1a22e7e6873d3c078f9d20d143..99cb324999625f973e5b4881bf014c1dd14c175d 100644 (file)
@@ -28,7 +28,6 @@
 #include <IGESDraw_CircArraySubfigure.hxx>
 #include <IGESDraw_ToolCircArraySubfigure.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -36,8 +35,6 @@
 #include <Standard_DomainError.hxx>
 #include <TColStd_HArray1OfInteger.hxx>
 
-IGESDraw_ToolCircArraySubfigure::IGESDraw_ToolCircArraySubfigure ()    {  }
-
 
 void IGESDraw_ToolCircArraySubfigure::ReadOwnParams
   (const Handle(IGESDraw_CircArraySubfigure)& ent,
@@ -108,38 +105,6 @@ void IGESDraw_ToolCircArraySubfigure::WriteOwnParams
     IW.Send(ent->ListPosition(I));
 }
 
-void  IGESDraw_ToolCircArraySubfigure::OwnShared
-  (const Handle(IGESDraw_CircArraySubfigure)& /*ent*/, Interface_EntityIterator& /*iter*/) const
-{
-}
-
-void IGESDraw_ToolCircArraySubfigure::OwnCopy
-  (const Handle(IGESDraw_CircArraySubfigure)& another,
-   const Handle(IGESDraw_CircArraySubfigure)& ent, Interface_CopyTool& TC) const
-{
-  DeclareAndCast(IGESData_IGESEntity, tempBase,
-                 TC.Transferred(another->BaseEntity()));
-  Standard_Integer tempNumLocs = another->NbLocations();
-  gp_XYZ tempCenter = (another->CenterPoint()).XYZ();
-  Standard_Real tempRadius = another->CircleRadius();
-  Standard_Real tempStAngle = another->StartAngle();
-  Standard_Real tempDelAngle = another->DeltaAngle();
-  Standard_Integer tempListCount = another->ListCount();
-  Standard_Integer tempFlag = another->DoDontFlag();
-  Handle(TColStd_HArray1OfInteger) tempNumPos;
-  if (! another->DisplayFlag()) {
-    tempNumPos = new TColStd_HArray1OfInteger(1, tempListCount);
-    Standard_Integer I;
-    for (I = 1; I <= tempListCount; I++) {
-      Standard_Integer tempPosition = another->ListPosition(I);
-      tempNumPos->SetValue(I, tempPosition);
-    }
-  }
-
-  ent->Init(tempBase, tempNumLocs, tempCenter, tempRadius,
-           tempStAngle, tempDelAngle, tempFlag, tempNumPos);
-}
-
 IGESData_DirChecker IGESDraw_ToolCircArraySubfigure::DirChecker
   (const Handle(IGESDraw_CircArraySubfigure)& /*ent*/)  const
 {
@@ -153,12 +118,6 @@ IGESData_DirChecker IGESDraw_ToolCircArraySubfigure::DirChecker
   return DC;
 }
 
-void IGESDraw_ToolCircArraySubfigure::OwnCheck
-  (const Handle(IGESDraw_CircArraySubfigure)& /*ent*/,
-   const Interface_ShareTool& , Handle(Interface_Check)& /*ach*/)  const
-{
-}
-
 void IGESDraw_ToolCircArraySubfigure::OwnDump
   (const Handle(IGESDraw_CircArraySubfigure)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level)  const
index 1c5c1fd4824b213b19fcd1e67583f10c8cd4b9d2..b63eda7eb5ab9973d16cd3b93060b34ed553a7dd 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESDraw_ToolCircArraySubfigure 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolCircArraySubfigure, ready to work
-  Standard_EXPORT IGESDraw_ToolCircArraySubfigure();
+  IGESDraw_ToolCircArraySubfigure() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESDraw_CircArraySubfigure)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a CircArraySubfigure <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESDraw_CircArraySubfigure)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESDraw_CircArraySubfigure)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESDraw_CircArraySubfigure)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESDraw_CircArraySubfigure)& entfrom, const Handle(IGESDraw_CircArraySubfigure)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESDraw_CircArraySubfigure)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDraw_ToolCircArraySubfigure_HeaderFile
index 4e6d7e2fe5b75e66205fd81d31de750bca9b5a6e..df95b0459d8b599451e28934c6ea98af84a5eaf5 100644 (file)
@@ -30,7 +30,6 @@
 #include <IGESDraw_ToolConnectPoint.hxx>
 #include <IGESGraph_TextDisplayTemplate.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -38,8 +37,6 @@
 #include <Standard_DomainError.hxx>
 #include <TCollection_HAsciiString.hxx>
 
-IGESDraw_ToolConnectPoint::IGESDraw_ToolConnectPoint ()    {  }
-
 
 void IGESDraw_ToolConnectPoint::ReadOwnParams
   (const Handle(IGESDraw_ConnectPoint)& ent,
@@ -127,35 +124,6 @@ void  IGESDraw_ToolConnectPoint::OwnShared
   iter.GetOneItem(ent->OwnerSubfigure());
 }
 
-void IGESDraw_ToolConnectPoint::OwnCopy
-  (const Handle(IGESDraw_ConnectPoint)& another,
-   const Handle(IGESDraw_ConnectPoint)& ent, Interface_CopyTool& TC) const
-{
-  gp_XYZ tempPoint = (another->Point()).XYZ();
-  DeclareAndCast(IGESData_IGESEntity, tempDisplaySymbol,
-                 TC.Transferred(another->DisplaySymbol()));
-  Standard_Integer tempTypeFlag     = another->TypeFlag();
-  Standard_Integer tempFunctionFlag = another->FunctionFlag();
-  Handle(TCollection_HAsciiString) tempFunctionIdentifier =
-    new TCollection_HAsciiString(another->FunctionIdentifier());
-  DeclareAndCast(IGESGraph_TextDisplayTemplate, tempIdentifierTemplate,
-                 TC.Transferred(another->FunctionTemplate()));
-  Handle(TCollection_HAsciiString) tempFunctionName =
-    new TCollection_HAsciiString(another->FunctionName());
-  DeclareAndCast(IGESGraph_TextDisplayTemplate, tempFunctionTemplate,
-                 TC.Transferred(another->FunctionTemplate()));
-  Standard_Integer tempPointIdentifier = another->PointIdentifier();
-  Standard_Integer tempFunctionCode    = another->FunctionCode();
-  Standard_Integer tempSwapFlag        = (another->SwapFlag() ? 1 : 0);
-  DeclareAndCast(IGESData_IGESEntity, tempOwnerSubfigure,
-                 TC.Transferred(another->OwnerSubfigure()));
-
-  ent->Init(tempPoint, tempDisplaySymbol, tempTypeFlag, tempFunctionFlag,
-           tempFunctionIdentifier, tempIdentifierTemplate, tempFunctionName,
-           tempFunctionTemplate, tempPointIdentifier, tempFunctionCode,
-           tempSwapFlag, tempOwnerSubfigure);
-}
-
 IGESData_DirChecker IGESDraw_ToolConnectPoint::DirChecker
   (const Handle(IGESDraw_ConnectPoint)& ent )  const
 {
index b009c35eea5503cded255bd804b08f956ef7b31c..934ca4eaa33843aa3fb4d9224a83ccc578a8e55d 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESDraw_ToolConnectPoint 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolConnectPoint, ready to work
-  Standard_EXPORT IGESDraw_ToolConnectPoint();
+  IGESDraw_ToolConnectPoint() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -65,33 +63,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESDraw_ConnectPoint)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESDraw_ConnectPoint)& entfrom, const Handle(IGESDraw_ConnectPoint)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESDraw_ConnectPoint)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDraw_ToolConnectPoint_HeaderFile
index dfe1cff3c83357a0847bda3f1268bd32ef36508c..9463346ed91e6f7adfbac7930d2303fe9869f00b 100644 (file)
@@ -34,7 +34,6 @@
 #include <IGESDraw_ToolDrawing.hxx>
 #include <IGESDraw_View.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -42,8 +41,6 @@
 #include <Standard_DomainError.hxx>
 #include <TColgp_HArray1OfXY.hxx>
 
-IGESDraw_ToolDrawing::IGESDraw_ToolDrawing ()    {  }
-
 
 void IGESDraw_ToolDrawing::ReadOwnParams
   (const Handle(IGESDraw_Drawing)& ent,
@@ -141,45 +138,6 @@ void  IGESDraw_ToolDrawing::OwnShared
     iter.GetOneItem( ent->Annotation(i) );
 }
 
-void IGESDraw_ToolDrawing::OwnCopy
-  (const Handle(IGESDraw_Drawing)& another,
-   const Handle(IGESDraw_Drawing)& ent, Interface_CopyTool& TC) const
-{
-  Standard_Integer                          nbanot;
-  Standard_Integer                          nbval;
-  Handle(IGESDraw_HArray1OfViewKindEntity)  views; 
-  Handle(TColgp_HArray1OfXY)                viewOrigins; 
-  Handle(IGESData_HArray1OfIGESEntity)      annotations; 
-  nbanot      = another->NbAnnotations();
-  nbval       = another->NbViews();
-  if (nbval > 0) {
-    views       = new IGESDraw_HArray1OfViewKindEntity(1, nbval);
-    viewOrigins = new TColgp_HArray1OfXY(1, nbval);
-  }
-  if ( nbanot > 0 )
-    {
-      annotations = new IGESData_HArray1OfIGESEntity(1, nbanot);
-      for (Standard_Integer i = 1; i <= nbanot; i++)
-       {
-          DeclareAndCast(IGESData_IGESEntity, tempAnnotation, 
-                         TC.Transferred(another->Annotation(i)));
-          annotations->SetValue( i, tempAnnotation );
-       }
-    }
-  for (Standard_Integer i = 1; i <= nbval; i++)
-    {
-      DeclareAndCast(IGESData_ViewKindEntity, tempView,
-                     TC.Transferred(another->ViewItem(i)) );
-      views->SetValue( i, tempView );
-      viewOrigins->SetValue( i, (another->ViewOrigin(i)).XY() );
-    }
-
-  ent->Init(views, viewOrigins, annotations);
-}
-
 Standard_Boolean IGESDraw_ToolDrawing::OwnCorrect
   (const Handle(IGESDraw_Drawing)& ent )  const
 {
index 14fc0d0de4364a2257599cc83d9107f2a444cdf6..e28b0cc573b802476d3be552894ee010f054e3ec 100644 (file)
@@ -32,7 +32,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -41,13 +40,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESDraw_ToolDrawing 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolDrawing, ready to work
-  Standard_EXPORT IGESDraw_ToolDrawing();
+  IGESDraw_ToolDrawing() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -70,33 +68,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESDraw_Drawing)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESDraw_Drawing)& entfrom, const Handle(IGESDraw_Drawing)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESDraw_Drawing)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDraw_ToolDrawing_HeaderFile
index 5c281f90b320fd17754fd468cdc19cb2eae276e6..06d4611ea64330a01824d1db9c5739480fd482d5 100644 (file)
@@ -34,7 +34,6 @@
 #include <IGESDraw_ToolDrawingWithRotation.hxx>
 #include <IGESDraw_View.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -43,8 +42,6 @@
 #include <TColgp_HArray1OfXY.hxx>
 #include <TColStd_HArray1OfReal.hxx>
 
-IGESDraw_ToolDrawingWithRotation::IGESDraw_ToolDrawingWithRotation ()    {  }
-
 
 void IGESDraw_ToolDrawingWithRotation::ReadOwnParams
   (const Handle(IGESDraw_DrawingWithRotation)& ent,
@@ -155,48 +152,6 @@ void  IGESDraw_ToolDrawingWithRotation::OwnShared
     iter.GetOneItem( ent->Annotation(i) );
 }
 
-void IGESDraw_ToolDrawingWithRotation::OwnCopy
-  (const Handle(IGESDraw_DrawingWithRotation)& another,
-   const Handle(IGESDraw_DrawingWithRotation)& ent, Interface_CopyTool& TC) const
-{
-  Standard_Integer                         nbanot;
-  Standard_Integer                         nbval;
-  Handle(IGESDraw_HArray1OfViewKindEntity) views;
-  Handle(TColgp_HArray1OfXY)               viewOrigins;
-  Handle(TColStd_HArray1OfReal)            orientationAngles;
-  Handle(IGESData_HArray1OfIGESEntity)     annotations;
-  nbanot            = another->NbAnnotations();
-  nbval             = another->NbViews();
-  views             = new IGESDraw_HArray1OfViewKindEntity(1, nbval);
-  viewOrigins       = new TColgp_HArray1OfXY(1, nbval);
-  orientationAngles = new TColStd_HArray1OfReal(1, nbval);
-  if ( nbanot > 0 )
-    {
-      annotations = new IGESData_HArray1OfIGESEntity(1, nbanot);
-      for (Standard_Integer i = 1; i <= nbanot; i++)
-       {
-          DeclareAndCast(IGESData_IGESEntity, tempAnnotation, 
-                         TC.Transferred(another->Annotation(i)));
-          annotations->SetValue( i, tempAnnotation );
-       }
-    }
-  for (Standard_Integer i = 1; i <= nbval; i++)
-    {
-      DeclareAndCast(IGESData_ViewKindEntity, tempView,
-                     TC.Transferred(another->ViewItem(i)));
-      views->SetValue( i, tempView );
-      viewOrigins->SetValue( i, (another->ViewOrigin(i)).XY() );
-      orientationAngles->SetValue( i, another->OrientationAngle(i) );
-    }
-
-  ent->Init(views, viewOrigins,orientationAngles, annotations);
-}
-
 Standard_Boolean IGESDraw_ToolDrawingWithRotation::OwnCorrect
   (const Handle(IGESDraw_DrawingWithRotation)& ent )  const
 {
index 2b1bdab8abb6030f7180c97eac13126b0718ab8e..71f7b6251d805fc17f4b2cc9b35a34f6e30691e2 100644 (file)
@@ -32,7 +32,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -41,13 +40,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESDraw_ToolDrawingWithRotation 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolDrawingWithRotation, ready to work
-  Standard_EXPORT IGESDraw_ToolDrawingWithRotation();
+  IGESDraw_ToolDrawingWithRotation() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -70,33 +68,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESDraw_DrawingWithRotation)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESDraw_DrawingWithRotation)& entfrom, const Handle(IGESDraw_DrawingWithRotation)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESDraw_DrawingWithRotation)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDraw_ToolDrawingWithRotation_HeaderFile
index a0c749249a5291bec808e944d6e486beda4c83ac..ecfc406d4883a6b195b68be06414a07942708c44 100644 (file)
@@ -35,7 +35,6 @@
 #include <IGESDraw_ToolLabelDisplay.hxx>
 #include <IGESDraw_View.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -44,8 +43,6 @@
 #include <TColgp_HArray1OfXYZ.hxx>
 #include <TColStd_HArray1OfInteger.hxx>
 
-IGESDraw_ToolLabelDisplay::IGESDraw_ToolLabelDisplay ()    {  }
-
 
 void IGESDraw_ToolLabelDisplay::ReadOwnParams
   (const Handle(IGESDraw_LabelDisplay)& ent,
@@ -145,47 +142,6 @@ void  IGESDraw_ToolLabelDisplay::OwnShared
     }
 }
 
-void IGESDraw_ToolLabelDisplay::OwnCopy
-  (const Handle(IGESDraw_LabelDisplay)& another,
-   const Handle(IGESDraw_LabelDisplay)& ent, Interface_CopyTool& TC) const
-{
-  Standard_Integer                              nbval;
-  Handle(IGESDraw_HArray1OfViewKindEntity) views;
-  Handle(TColgp_HArray1OfXYZ)                   textLocations;
-  Handle(IGESDimen_HArray1OfLeaderArrow)    leaderEntities;
-  Handle(TColStd_HArray1OfInteger)       labelLevels;
-  Handle(IGESData_HArray1OfIGESEntity)     displayedEntities;
-  nbval             = another->NbLabels();
-  views             = new IGESDraw_HArray1OfViewKindEntity(1, nbval);
-  textLocations     = new TColgp_HArray1OfXYZ(1, nbval);
-  leaderEntities    = new IGESDimen_HArray1OfLeaderArrow(1, nbval);
-  labelLevels       = new TColStd_HArray1OfInteger(1, nbval);
-  displayedEntities = new IGESData_HArray1OfIGESEntity(1, nbval);
-  for (Standard_Integer i = 1; i <= nbval; i++)
-    {
-      DeclareAndCast(IGESData_ViewKindEntity, tempView,
-                     TC.Transferred(another->ViewItem(i)));
-      views->SetValue( i, tempView );
-      textLocations->SetValue( i, (another->TextLocation(i)).XYZ() );
-      DeclareAndCast(IGESDimen_LeaderArrow, tempArrow, 
-                     TC.Transferred(another->LeaderEntity(i)));
-      leaderEntities->SetValue( i, tempArrow );
-      labelLevels->SetValue( i, another->LabelLevel(i) );
-      DeclareAndCast(IGESData_IGESEntity, tempEntity, 
-                     TC.Transferred(another->DisplayedEntity(i)));
-      displayedEntities->SetValue( i, tempEntity );
-    }
-
-  ent->Init(views, textLocations, leaderEntities, 
-           labelLevels, displayedEntities);
-}
-
 IGESData_DirChecker IGESDraw_ToolLabelDisplay::DirChecker
   (const Handle(IGESDraw_LabelDisplay)& /*ent*/)  const
 { 
@@ -196,12 +152,6 @@ IGESData_DirChecker IGESDraw_ToolLabelDisplay::DirChecker
   return DC;
 }
 
-void IGESDraw_ToolLabelDisplay::OwnCheck
-  (const Handle(IGESDraw_LabelDisplay)& /*ent*/,
-   const Interface_ShareTool& , Handle(Interface_Check)& /*ach*/)  const
-{
-}
-
 void IGESDraw_ToolLabelDisplay::OwnDump
   (const Handle(IGESDraw_LabelDisplay)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level)  const
index 768dc1e540b296f013300842d7c7154f887de6df..06bee03f726e31bc812c3f7c3fed2598b5d6be2a 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESDraw_ToolLabelDisplay 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolLabelDisplay, ready to work
-  Standard_EXPORT IGESDraw_ToolLabelDisplay();
+  IGESDraw_ToolLabelDisplay() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -62,36 +60,8 @@ public:
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESDraw_LabelDisplay)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESDraw_LabelDisplay)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESDraw_LabelDisplay)& entfrom, const Handle(IGESDraw_LabelDisplay)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESDraw_LabelDisplay)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDraw_ToolLabelDisplay_HeaderFile
index 3bab598682132e6f790fbfbf985fa8a67ed165fc..6bc4f6c1eec0e24e2d446352e478e5f28a0616f3 100644 (file)
@@ -31,7 +31,6 @@
 #include <IGESDraw_ToolNetworkSubfigure.hxx>
 #include <IGESGraph_TextDisplayTemplate.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -39,8 +38,6 @@
 #include <Standard_DomainError.hxx>
 #include <TCollection_HAsciiString.hxx>
 
-IGESDraw_ToolNetworkSubfigure::IGESDraw_ToolNetworkSubfigure ()    {  }
-
 
 void IGESDraw_ToolNetworkSubfigure::ReadOwnParams
   (const Handle(IGESDraw_NetworkSubfigure)& ent,
@@ -161,44 +158,6 @@ void  IGESDraw_ToolNetworkSubfigure::OwnShared
     iter.GetOneItem( ent->ConnectPoint(i) );
 }
 
-void IGESDraw_ToolNetworkSubfigure::OwnCopy
-  (const Handle(IGESDraw_NetworkSubfigure)& another,
-   const Handle(IGESDraw_NetworkSubfigure)& ent, Interface_CopyTool& TC) const
-{
-  Standard_Integer                       nbval;
-  gp_XYZ                                 translation;
-  gp_XYZ                                 scale;
-  Standard_Integer                       typeflag; 
-  Handle(TCollection_HAsciiString)       designator; 
-  Handle(IGESDraw_HArray1OfConnectPoint) connectPoints;
-  nbval         = another->NbConnectPoints();
-
-  DeclareAndCast(IGESDraw_NetworkSubfigureDef, definition, 
-                 TC.Transferred(another->SubfigureDefinition()));
-
-  translation   = another->Translation();
-  scale         = another->ScaleFactors();
-  typeflag      = another->TypeFlag();
-  if (!another->ReferenceDesignator().IsNull())
-    designator  = new TCollection_HAsciiString
-      (another->ReferenceDesignator());
-
-  DeclareAndCast(IGESGraph_TextDisplayTemplate, textTemplate, 
-                 TC.Transferred(another->DesignatorTemplate()));
-
-  if (nbval > 0) connectPoints = new IGESDraw_HArray1OfConnectPoint(1, nbval);
-  for (Standard_Integer i = 1; i <= nbval; i++)
-    {
-      DeclareAndCast(IGESDraw_ConnectPoint, tempconnectPoint, 
-                     TC.Transferred(another->ConnectPoint(i)) );
-      connectPoints->SetValue( i, tempconnectPoint );
-    }
-
-  ent->Init(definition, translation, scale, typeflag,
-           designator, textTemplate, connectPoints);
-}
-
 IGESData_DirChecker IGESDraw_ToolNetworkSubfigure::DirChecker
   (const Handle(IGESDraw_NetworkSubfigure)& /*ent*/)  const
 { 
index 77d22695d92ee17207c90b02896d0cf23e3f5d86..a00a81497e76000b4dbbc9624ea2277836b01d0f 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESDraw_ToolNetworkSubfigure 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolNetworkSubfigure, ready to work
-  Standard_EXPORT IGESDraw_ToolNetworkSubfigure();
+  IGESDraw_ToolNetworkSubfigure() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -65,33 +63,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESDraw_NetworkSubfigure)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESDraw_NetworkSubfigure)& entfrom, const Handle(IGESDraw_NetworkSubfigure)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESDraw_NetworkSubfigure)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDraw_ToolNetworkSubfigure_HeaderFile
index 5911613bc86e266663a76929a09a0afa9ba03b42..f41d856fda077255d954198442c83821702b7b9d 100644 (file)
@@ -31,7 +31,6 @@
 #include <IGESDraw_ToolNetworkSubfigureDef.hxx>
 #include <IGESGraph_TextDisplayTemplate.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -39,8 +38,6 @@
 #include <Standard_DomainError.hxx>
 #include <TCollection_HAsciiString.hxx>
 
-IGESDraw_ToolNetworkSubfigureDef::IGESDraw_ToolNetworkSubfigureDef ()    {  }
-
 
 void IGESDraw_ToolNetworkSubfigureDef::ReadOwnParams
   (const Handle(IGESDraw_NetworkSubfigureDef)& ent,
@@ -152,51 +149,6 @@ void  IGESDraw_ToolNetworkSubfigureDef::OwnShared
     iter.GetOneItem(ent->PointEntity(I));
 }
 
-void IGESDraw_ToolNetworkSubfigureDef::OwnCopy
-  (const Handle(IGESDraw_NetworkSubfigureDef)& another,
-   const Handle(IGESDraw_NetworkSubfigureDef)& ent, Interface_CopyTool& TC) const
-{
-  Standard_Integer tempDepth = another->Depth();
-  Handle(TCollection_HAsciiString) tempName =
-    new TCollection_HAsciiString(another->Name());
-  Handle(IGESData_HArray1OfIGESEntity) tempEntities;
-  Standard_Integer up  = another->NbEntities();
-  if (up > 0) tempEntities =  new IGESData_HArray1OfIGESEntity (1,up);
-  Standard_Integer I;
-  for (I = 1; I <= up; I++) {
-    DeclareAndCast(IGESData_IGESEntity, tempEntity,
-                  TC.Transferred(another->Entity(I)));
-    tempEntities->SetValue(I, tempEntity);
-  }
-  Standard_Integer tempTypeFlag = another->TypeFlag();
-  Handle(TCollection_HAsciiString) tempDesignator;
-  if (!another->Designator().IsNull()) tempDesignator =
-    new TCollection_HAsciiString(another->Designator());
-  up  = another->NbPointEntities();
-  Handle(IGESDraw_HArray1OfConnectPoint) tempPointEntities;
-  if (up > 0) tempPointEntities = new IGESDraw_HArray1OfConnectPoint (1,up);
-  for (I = 1; I <= up; I++) {
-    if (another->HasPointEntity(I)) {
-      DeclareAndCast(IGESDraw_ConnectPoint, tempPointEntity,
-                    TC.Transferred(another->PointEntity(I)));
-      tempPointEntities->SetValue(I, tempPointEntity);
-    }
-  }
-  if (another->HasDesignatorTemplate()) {
-    DeclareAndCast(IGESGraph_TextDisplayTemplate, tempDesignatorTemplate,
-                  TC.Transferred(another->DesignatorTemplate()));
-
-    ent->Init(tempDepth, tempName, tempEntities, tempTypeFlag,
-             tempDesignator, tempDesignatorTemplate, tempPointEntities);
-  }
-  else {
-    Handle(IGESGraph_TextDisplayTemplate) tempDesignatorTemplate;
-
-    ent->Init(tempDepth, tempName, tempEntities, tempTypeFlag,
-             tempDesignator, tempDesignatorTemplate, tempPointEntities);
-  }
-}
-
 IGESData_DirChecker IGESDraw_ToolNetworkSubfigureDef::DirChecker
   (const Handle(IGESDraw_NetworkSubfigureDef)& /*ent*/)  const
 {
index f27a626a8fc5082292e5210b3fb0ac4612260dfe..ea8d0bcded6971f6dbb2a1f616fd8d8661303e17 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESDraw_ToolNetworkSubfigureDef 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolNetworkSubfigureDef, ready to work
-  Standard_EXPORT IGESDraw_ToolNetworkSubfigureDef();
+  IGESDraw_ToolNetworkSubfigureDef() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -65,33 +63,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESDraw_NetworkSubfigureDef)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESDraw_NetworkSubfigureDef)& entfrom, const Handle(IGESDraw_NetworkSubfigureDef)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESDraw_NetworkSubfigureDef)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDraw_ToolNetworkSubfigureDef_HeaderFile
index 70cde2317fe1d389a2e5fb9df8dc712f03ea7066..7f6732d541983b32e1f11093ac5e3efe050b5052 100644 (file)
 #include <IGESDraw_PerspectiveView.hxx>
 #include <IGESDraw_ToolPerspectiveView.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESDraw_ToolPerspectiveView::IGESDraw_ToolPerspectiveView ()    {  }
-
 
 void IGESDraw_ToolPerspectiveView::ReadOwnParams
   (const Handle(IGESDraw_PerspectiveView)& ent,
@@ -120,24 +117,6 @@ void IGESDraw_ToolPerspectiveView::WriteOwnParams
   IW.Send(ent->FrontPlaneDistance());
 }
 
-void  IGESDraw_ToolPerspectiveView::OwnShared
-  (const Handle(IGESDraw_PerspectiveView)& /*ent*/, Interface_EntityIterator& /*iter*/) const
-{
-}
-
-void IGESDraw_ToolPerspectiveView::OwnCopy
-  (const Handle(IGESDraw_PerspectiveView)& another,
-   const Handle(IGESDraw_PerspectiveView)& ent, Interface_CopyTool& /*TC*/) const
-{
-  ent->Init
-    (another->ViewNumber(), another->ScaleFactor(),
-     another->ViewNormalVector().XYZ(),   another->ViewReferencePoint().XYZ(),
-     another->CenterOfProjection().XYZ(), another->ViewUpVector().XYZ(),
-     another->ViewPlaneDistance(),
-     another->TopLeft().XY(),another->BottomRight().XY(), another->DepthClip(),
-     another->BackPlaneDistance(), another->FrontPlaneDistance());
-}
-
 
 IGESData_DirChecker IGESDraw_ToolPerspectiveView::DirChecker
   (const Handle(IGESDraw_PerspectiveView)& /*ent*/)  const
index cc6b137e5ff34ebfefe66c3f6afeaaad5cf2d8cd..b3cc0663f21c922360ce1e171a8ae612348786ae 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESDraw_ToolPerspectiveView 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolPerspectiveView, ready to work
-  Standard_EXPORT IGESDraw_ToolPerspectiveView();
+  IGESDraw_ToolPerspectiveView() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,14 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESDraw_PerspectiveView)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a PerspectiveView <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESDraw_PerspectiveView)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESDraw_PerspectiveView)& ent) const;
   
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESDraw_PerspectiveView)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESDraw_PerspectiveView)& entfrom, const Handle(IGESDraw_PerspectiveView)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESDraw_PerspectiveView)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDraw_ToolPerspectiveView_HeaderFile
index 020662978fe2f9cecb58762e233ffb1c83436608..c8e626c2322ecef780fe90b139230b7b5b7b33a0 100644 (file)
 #include <IGESDraw_ToolPlanar.hxx>
 #include <IGESGeom_TransformationMatrix.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESDraw_ToolPlanar::IGESDraw_ToolPlanar ()    {  }
-
 
 void IGESDraw_ToolPlanar::ReadOwnParams
   (const Handle(IGESDraw_Planar)& ent,
@@ -106,30 +103,6 @@ void  IGESDraw_ToolPlanar::OwnShared
     iter.GetOneItem( ent->Entity(i) );
 }
 
-void IGESDraw_ToolPlanar::OwnCopy
-  (const Handle(IGESDraw_Planar)& another,
-   const Handle(IGESDraw_Planar)& ent, Interface_CopyTool& TC) const
-{
-  Standard_Integer                          nbval;
-  Standard_Integer                          nbMatrices; 
-  Handle(IGESData_HArray1OfIGESEntity) entities; 
-  nbval                = another->NbEntities();
-  nbMatrices           = another->NbMatrices();
-  DeclareAndCast(IGESGeom_TransformationMatrix, transformationMatrix, 
-                 TC.Transferred(another->TransformMatrix()));
-
-  entities = new IGESData_HArray1OfIGESEntity(1, nbval);
-  for (Standard_Integer i = 1; i <= nbval; i++)
-    {
-      DeclareAndCast(IGESData_IGESEntity, tempEntity, 
-                     TC.Transferred(another->Entity(i)));
-      entities->SetValue( i, tempEntity );
-    }
-
-  ent->Init(nbMatrices, transformationMatrix, entities);
-}
-
 Standard_Boolean  IGESDraw_ToolPlanar::OwnCorrect
   (const Handle(IGESDraw_Planar)& ent) const
 {
index 4696120d1219172fd15818c5d752c88886336951..1db1b7f87ce6687a7b4ef3dd09154a6612ef8c4e 100644 (file)
@@ -32,7 +32,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -41,13 +40,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESDraw_ToolPlanar 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolPlanar, ready to work
-  Standard_EXPORT IGESDraw_ToolPlanar();
+  IGESDraw_ToolPlanar() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -70,33 +68,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESDraw_Planar)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESDraw_Planar)& entfrom, const Handle(IGESDraw_Planar)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESDraw_Planar)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDraw_ToolPlanar_HeaderFile
index bcb821a4e68fd502e69e7a3b7b5ef295eb30f4f1..4325b912b7360ca9010b72d4e0af92fa74c9c33a 100644 (file)
@@ -29,7 +29,6 @@
 #include <IGESDraw_RectArraySubfigure.hxx>
 #include <IGESDraw_ToolRectArraySubfigure.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -37,8 +36,6 @@
 #include <Standard_DomainError.hxx>
 #include <TColStd_HArray1OfInteger.hxx>
 
-IGESDraw_ToolRectArraySubfigure::IGESDraw_ToolRectArraySubfigure ()    {  }
-
 
 void IGESDraw_ToolRectArraySubfigure::ReadOwnParams
   (const Handle(IGESDraw_RectArraySubfigure)& ent,
@@ -125,34 +122,6 @@ void  IGESDraw_ToolRectArraySubfigure::OwnShared
   iter.GetOneItem(ent->BaseEntity());
 }
 
-void IGESDraw_ToolRectArraySubfigure::OwnCopy
-  (const Handle(IGESDraw_RectArraySubfigure)& another,
-   const Handle(IGESDraw_RectArraySubfigure)& ent, Interface_CopyTool& TC) const
-{
-  DeclareAndCast(IGESData_IGESEntity, tempBaseEntity,
-                 TC.Transferred(another->BaseEntity()));
-  Standard_Real tempScaleFactor = another->ScaleFactor();
-  gp_XYZ tempLowerLeftCorner = (another->LowerLeftCorner()).XYZ();
-  Standard_Integer tempNbColumns = another->NbColumns();
-  Standard_Integer tempNbRows = another->NbRows();
-  Standard_Real tempColumnSeparation = another->ColumnSeparation();
-  Standard_Real tempRowSeparation = another->RowSeparation();
-  Standard_Real tempRotationAngle = another->RotationAngle();
-  Standard_Integer tempListCount = another->ListCount();
-  Standard_Integer tempDoDontFlag = (another->DoDontFlag() ? 1 : 0);
-  Handle(TColStd_HArray1OfInteger) tempPositions;
-  if (tempListCount != 0) {
-    tempPositions = new TColStd_HArray1OfInteger (1,tempListCount);
-    Standard_Integer I;
-    for (I = 1; I <= tempListCount; I++)
-      tempPositions->SetValue(I, another->ListPosition(I));
-  }
-
-  ent->Init(tempBaseEntity, tempScaleFactor, tempLowerLeftCorner,
-           tempNbColumns, tempNbRows, tempColumnSeparation, tempRowSeparation,
-           tempRotationAngle, tempDoDontFlag, tempPositions);
-}
-
 IGESData_DirChecker IGESDraw_ToolRectArraySubfigure::DirChecker
   (const Handle(IGESDraw_RectArraySubfigure)& /*ent*/)  const
 {
@@ -166,12 +135,6 @@ IGESData_DirChecker IGESDraw_ToolRectArraySubfigure::DirChecker
   return DC;
 }
 
-void IGESDraw_ToolRectArraySubfigure::OwnCheck
-  (const Handle(IGESDraw_RectArraySubfigure)& /*ent*/,
-   const Interface_ShareTool& , Handle(Interface_Check)& /*ach*/)  const
-{
-}
-
 void IGESDraw_ToolRectArraySubfigure::OwnDump
   (const Handle(IGESDraw_RectArraySubfigure)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level)  const
index 13e077640bd0b1a200a60efcb5f60c1f13eaf630..ec3c11108042dc9c97921feebb585e939bc333b0 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESDraw_ToolRectArraySubfigure 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolRectArraySubfigure, ready to work
-  Standard_EXPORT IGESDraw_ToolRectArraySubfigure();
+  IGESDraw_ToolRectArraySubfigure() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -62,36 +60,8 @@ public:
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESDraw_RectArraySubfigure)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESDraw_RectArraySubfigure)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESDraw_RectArraySubfigure)& entfrom, const Handle(IGESDraw_RectArraySubfigure)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESDraw_RectArraySubfigure)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDraw_ToolRectArraySubfigure_HeaderFile
index 76715a18bb43e370ad2b54ec0a827e23a393d29d..05f2bef04c9929717f7b2e7f28655298f2425ca4 100644 (file)
@@ -31,7 +31,6 @@
 #include <IGESGraph_Color.hxx>
 #include <IGESGraph_HArray1OfColor.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -40,8 +39,6 @@
 #include <TColStd_HArray1OfInteger.hxx>
 #include <TColStd_HArray1OfReal.hxx>
 
-IGESDraw_ToolSegmentedViewsVisible::IGESDraw_ToolSegmentedViewsVisible ()  {  }
-
 
 void IGESDraw_ToolSegmentedViewsVisible::ReadOwnParams
   (const Handle(IGESDraw_SegmentedViewsVisible)& ent,
@@ -181,79 +178,6 @@ void  IGESDraw_ToolSegmentedViewsVisible::OwnShared
     }
 }
 
-void IGESDraw_ToolSegmentedViewsVisible::OwnCopy
-  (const Handle(IGESDraw_SegmentedViewsVisible)& another,
-   const Handle(IGESDraw_SegmentedViewsVisible)& ent, Interface_CopyTool& TC) const
-{
-  Standard_Integer                              nbval;
-  Handle(IGESDraw_HArray1OfViewKindEntity) views;
-  Handle(TColStd_HArray1OfReal)          breakpointParameters;
-  Handle(TColStd_HArray1OfInteger)       displayFlags;
-  Handle(TColStd_HArray1OfInteger)       colorValues;
-  Handle(IGESGraph_HArray1OfColor)          colorDefinitions;
-  Handle(TColStd_HArray1OfInteger)       lineFontValues;
-  Handle(IGESBasic_HArray1OfLineFontEntity) lineFontDefinitions;
-  Handle(TColStd_HArray1OfInteger)       lineWeights;
-  Handle(IGESData_ViewKindEntity)               retView; 
-  Handle(IGESGraph_Color)                       retColorDef; 
-  Handle(IGESData_LineFontEntity)               retLineFontDef; 
-  nbval                = another->NbSegmentBlocks();
-  views                = new IGESDraw_HArray1OfViewKindEntity(1, nbval);
-  breakpointParameters = new TColStd_HArray1OfReal(1, nbval);
-  displayFlags         = new TColStd_HArray1OfInteger(1, nbval);
-  colorValues          = new TColStd_HArray1OfInteger(1, nbval);
-  lineFontValues       = new TColStd_HArray1OfInteger(1, nbval);
-  colorDefinitions     = new IGESGraph_HArray1OfColor(1, nbval);
-  lineFontDefinitions  = new IGESBasic_HArray1OfLineFontEntity(1, nbval);
-  lineWeights          = new TColStd_HArray1OfInteger(1, nbval);
-  for (Standard_Integer i = 1; i <= nbval; i++)
-    {
-      retView = another->ViewItem(i);
-      DeclareAndCast(IGESData_ViewKindEntity,
-                     tempView, TC.Transferred(retView));
-      views->SetValue( i, tempView );
-      breakpointParameters->SetValue( i, another->BreakpointParameter(i) );
-      displayFlags->SetValue( i, another->DisplayFlag(i) );
-      if ( another->IsColorDefinition(i) )
-       {
-          retColorDef = another->ColorDefinition(i);
-          DeclareAndCast(IGESGraph_Color, tempColorDef, 
-                        TC.Transferred(retColorDef));
-          colorDefinitions->SetValue( i, tempColorDef );
-       }
-      else
-       {
-          colorValues->SetValue( i, another->ColorValue(i) );
-////          colorDefinitions->SetValue( i, NULL );    par defaut
-       }
-      if ( another->IsFontDefinition(i) )
-       {
-          retLineFontDef = another->LineFontDefinition(i);
-          DeclareAndCast(IGESData_LineFontEntity, tempLineFontDef, 
-                        TC.Transferred(retLineFontDef));
-          lineFontDefinitions->SetValue( i, tempLineFontDef );
-       }
-      else
-       {
-          lineFontValues->SetValue( i, another->LineFontValue(i) );
-////          lineFontDefinitions->SetValue( i, NULL );  par defaut
-       }
-      lineWeights->SetValue( i, another->LineWeightItem(i) );
-    }
-
-  ent->Init(views, breakpointParameters, displayFlags,
-           colorValues, colorDefinitions,
-           lineFontValues, lineFontDefinitions, lineWeights);
-}
-
 IGESData_DirChecker IGESDraw_ToolSegmentedViewsVisible::DirChecker
   (const Handle(IGESDraw_SegmentedViewsVisible)& /*ent*/)  const
 { 
@@ -269,12 +193,6 @@ IGESData_DirChecker IGESDraw_ToolSegmentedViewsVisible::DirChecker
   return DC;
 }
 
-void IGESDraw_ToolSegmentedViewsVisible::OwnCheck
-  (const Handle(IGESDraw_SegmentedViewsVisible)& /*ent*/,
-   const Interface_ShareTool& , Handle(Interface_Check)& /*ach*/)  const
-{
-}
-
 void IGESDraw_ToolSegmentedViewsVisible::OwnDump
   (const Handle(IGESDraw_SegmentedViewsVisible)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level)  const
index 09980452f40c199864688b06e8a1488778e7920f..7942978f6505fba2a2c89dc744619cfdfee5345e 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESDraw_ToolSegmentedViewsVisible 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolSegmentedViewsVisible, ready to work
-  Standard_EXPORT IGESDraw_ToolSegmentedViewsVisible();
+  IGESDraw_ToolSegmentedViewsVisible() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -62,36 +60,8 @@ public:
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESDraw_SegmentedViewsVisible)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESDraw_SegmentedViewsVisible)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESDraw_SegmentedViewsVisible)& entfrom, const Handle(IGESDraw_SegmentedViewsVisible)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESDraw_SegmentedViewsVisible)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDraw_ToolSegmentedViewsVisible_HeaderFile
index 9e63ceba897c65db8e9e38afef95e6652577739d..fce2fd67ce8402a2e66d0117dcc10338f1d9079f 100644 (file)
 #include <IGESDraw_View.hxx>
 #include <IGESGeom_Plane.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESDraw_ToolView::IGESDraw_ToolView ()    {  }
-
 
 void IGESDraw_ToolView::ReadOwnParams
   (const Handle(IGESDraw_View)& ent,
@@ -103,29 +100,6 @@ void  IGESDraw_ToolView::OwnShared
   iter.GetOneItem(ent->FrontPlane());
 }
 
-void IGESDraw_ToolView::OwnCopy
-  (const Handle(IGESDraw_View)& another,
-   const Handle(IGESDraw_View)& ent, Interface_CopyTool& TC) const
-{
-  Standard_Integer tempViewNumber = another->ViewNumber();
-  Standard_Real tempScaleFactor = another->ScaleFactor();
-  DeclareAndCast(IGESGeom_Plane, tempLeftPlane,
-                 TC.Transferred(another->LeftPlane()));
-  DeclareAndCast(IGESGeom_Plane, tempTopPlane,
-                 TC.Transferred(another->TopPlane()));
-  DeclareAndCast(IGESGeom_Plane, tempRightPlane,
-                 TC.Transferred(another->RightPlane()));
-  DeclareAndCast(IGESGeom_Plane, tempBottomPlane,
-                 TC.Transferred(another->BottomPlane()));
-  DeclareAndCast(IGESGeom_Plane, tempBackPlane,
-                 TC.Transferred(another->BackPlane()));
-  DeclareAndCast(IGESGeom_Plane, tempFrontPlane,
-                 TC.Transferred(another->FrontPlane()));
-
-  ent->Init(tempViewNumber, tempScaleFactor, tempLeftPlane, tempTopPlane,
-           tempRightPlane, tempBottomPlane, tempBackPlane, tempFrontPlane);
-}
-
 IGESData_DirChecker IGESDraw_ToolView::DirChecker
   (const Handle(IGESDraw_View)& /*ent*/)  const
 {
index 79b3e378f3d46e7d30f0cbc205e55e1c76e99d50..f5112cc7fea38aa1351e440ee454e3655e87fafc 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESDraw_ToolView 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolView, ready to work
-  Standard_EXPORT IGESDraw_ToolView();
+  IGESDraw_ToolView() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -65,33 +63,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESDraw_View)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESDraw_View)& entfrom, const Handle(IGESDraw_View)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESDraw_View)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDraw_ToolView_HeaderFile
index 19ae99752ac94fe1cee057522b0a7d8220e0abb6..c88744f93fe2baa5efee5cad650fbbdac9dadb04 100644 (file)
@@ -30,7 +30,6 @@
 #include <IGESDraw_ToolViewsVisible.hxx>
 #include <IGESDraw_ViewsVisible.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -38,8 +37,6 @@
 #include <Standard_DomainError.hxx>
 
 #include <stdio.h>
-IGESDraw_ToolViewsVisible::IGESDraw_ToolViewsVisible ()    {  }
-
 
 void IGESDraw_ToolViewsVisible::ReadOwnParams
   (const Handle(IGESDraw_ViewsVisible)& ent,
@@ -142,49 +139,6 @@ void  IGESDraw_ToolViewsVisible::OwnImplied
 }
 
 
-void IGESDraw_ToolViewsVisible::OwnCopy
-  (const Handle(IGESDraw_ViewsVisible)& another,
-   const Handle(IGESDraw_ViewsVisible)& ent, Interface_CopyTool& TC) const
-{
-  Handle(IGESDraw_HArray1OfViewKindEntity) tempViewEntities =
-    new IGESDraw_HArray1OfViewKindEntity(1, another->NbViews());
-  Standard_Integer I, up;
-  up  = another->NbViews();
-  for (I = 1; I <= up; I++) {
-    DeclareAndCast(IGESData_ViewKindEntity, tempView,
-                  TC.Transferred(another->ViewItem(I)));
-    tempViewEntities->SetValue(I, tempView);
-  }
-//  Displayed -> Implied : mettre une liste vide par defaut
-  Handle(IGESData_HArray1OfIGESEntity) tempDisplayEntities;
-  ent->Init(tempViewEntities, tempDisplayEntities);
-}
-
-void IGESDraw_ToolViewsVisible::OwnRenew
-  (const Handle(IGESDraw_ViewsVisible)& another,
-   const Handle(IGESDraw_ViewsVisible)& ent, const Interface_CopyTool& TC) const
-{
-  Interface_EntityIterator newdisp;
-  Standard_Integer I, up;
-  up  = another->NbDisplayedEntities();
-  if (up == 0) return;
-  Handle(IGESData_HArray1OfIGESEntity) tempDisplayEntities;
-  Handle(Standard_Transient) anew;
-  for (I = 1; I <= up; I++) {
-    if (TC.Search (another->DisplayedEntity(I),anew)) newdisp.GetOneItem(anew);
-  }
-
-  up = newdisp.NbEntities();  I = 0;
-  if (up > 0) tempDisplayEntities = new IGESData_HArray1OfIGESEntity(1,up);
-  for (newdisp.Start(); newdisp.More(); newdisp.Next()) {
-    I ++;
-    DeclareAndCast(IGESData_IGESEntity, tempEntity,newdisp.Value());
-    tempDisplayEntities->SetValue(I, tempEntity);
-  }
-  ent->InitImplied (tempDisplayEntities);
-}
-
-
 IGESData_DirChecker IGESDraw_ToolViewsVisible::DirChecker
   (const Handle(IGESDraw_ViewsVisible)& /*ent*/)  const
 {
@@ -218,13 +172,6 @@ void IGESDraw_ToolViewsVisible::OwnCheck
   ach->AddFail(mess,"Mismatch for %d Entities displayed");
 }
 
-void  IGESDraw_ToolViewsVisible::OwnWhenDelete
-  (const Handle(IGESDraw_ViewsVisible)& ent) const
-{
-  Handle(IGESData_HArray1OfIGESEntity) tempDisplayEntities;
-  ent->InitImplied (tempDisplayEntities);
-}
-
 void IGESDraw_ToolViewsVisible::OwnDump
   (const Handle(IGESDraw_ViewsVisible)& ent, const IGESData_IGESDumper& dumper,
   const Handle(Message_Messenger)& S, const Standard_Integer level)  const
index 4ae6139f0499b50be887fcbd7adc582829651f45..eb1255bd9aa91cfdaa42b9740a874f9ff8abf42e 100644 (file)
@@ -32,7 +32,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -41,13 +40,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESDraw_ToolViewsVisible 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolViewsVisible, ready to work
-  Standard_EXPORT IGESDraw_ToolViewsVisible();
+  IGESDraw_ToolViewsVisible() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -70,18 +68,6 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESDraw_ViewsVisible)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters shared not implied, i.e. all but
-  //! the Displayed Entities
-  Standard_EXPORT void OwnCopy (const Handle(IGESDraw_ViewsVisible)& entfrom, const Handle(IGESDraw_ViewsVisible)& entto, Interface_CopyTool& TC) const;
-  
-  //! Copies Specific implied Parameters : the Displayed Entities
-  //! which have already been copied
-  Standard_EXPORT void OwnRenew (const Handle(IGESDraw_ViewsVisible)& entfrom, const Handle(IGESDraw_ViewsVisible)& entto, const Interface_CopyTool& TC) const;
-  
-  //! Clears specific implied parameters, which cause looping
-  //! structures; required for deletion
-  Standard_EXPORT void OwnWhenDelete (const Handle(IGESDraw_ViewsVisible)& ent) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESDraw_ViewsVisible)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
   
@@ -89,28 +75,6 @@ public:
   //! (all displayed entities must refer to <ent> in directory part,
   //! else the list is cleared)
   Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESDraw_ViewsVisible)& ent) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDraw_ToolViewsVisible_HeaderFile
index 213216427d7bac95fc465647be9e1c8dd11cb25e..f63e6d893172086b9e84ec3cf0c3e1d6374d5d8a 100644 (file)
@@ -34,7 +34,6 @@
 #include <IGESGraph_Color.hxx>
 #include <IGESGraph_HArray1OfColor.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -43,8 +42,6 @@
 #include <TColStd_HArray1OfInteger.hxx>
 
 #include <stdio.h>
-IGESDraw_ToolViewsVisibleWithAttr::IGESDraw_ToolViewsVisibleWithAttr ()    {  }
-
 
 void IGESDraw_ToolViewsVisibleWithAttr::ReadOwnParams
   (const Handle(IGESDraw_ViewsVisibleWithAttr)& ent,
@@ -214,80 +211,6 @@ void  IGESDraw_ToolViewsVisibleWithAttr::OwnImplied
 }
 
 
-void IGESDraw_ToolViewsVisibleWithAttr::OwnCopy
-  (const Handle(IGESDraw_ViewsVisibleWithAttr)& another,
-   const Handle(IGESDraw_ViewsVisibleWithAttr)& ent, Interface_CopyTool& TC) const
-{
-  Standard_Integer I;
-  Standard_Integer up  = another->NbViews();
-  Handle(IGESDraw_HArray1OfViewKindEntity) tempViewEntities =
-    new IGESDraw_HArray1OfViewKindEntity(1, up);
-  Handle(TColStd_HArray1OfInteger) tempLineFonts =
-    new TColStd_HArray1OfInteger(1, up);
-  Handle(IGESBasic_HArray1OfLineFontEntity) tempLineDefinitions =
-    new IGESBasic_HArray1OfLineFontEntity(1, up);
-  Handle(TColStd_HArray1OfInteger) tempColorValues =
-    new TColStd_HArray1OfInteger(1, up);
-  Handle(IGESGraph_HArray1OfColor) tempColorDefinitions =
-    new IGESGraph_HArray1OfColor(1, up);
-  Handle(TColStd_HArray1OfInteger) tempLineWeights =
-    new TColStd_HArray1OfInteger(1, up);
-
-  for (I = 1; I <= up; I ++) {
-    DeclareAndCast(IGESData_ViewKindEntity, tempView,
-                  TC.Transferred(another->ViewItem(I)));
-    tempViewEntities->SetValue(I,tempView);
-    Standard_Integer tempLineFont = another->LineFontValue(I);
-    tempLineFonts->SetValue(I,tempLineFont);
-    if (another->IsFontDefinition(I)) {
-      DeclareAndCast(IGESData_LineFontEntity, tempEntity1,
-                    TC.Transferred(another->FontDefinition(I)));
-      tempLineDefinitions->SetValue(I,tempEntity1);
-    }
-    if (another->IsColorDefinition(I)) {
-      DeclareAndCast(IGESGraph_Color, tempEntity2,
-                    TC.Transferred(another->ColorDefinition(I)));
-      tempColorDefinitions->SetValue(I,tempEntity2);
-    }
-    else {
-      Standard_Integer tempColorValue = another->ColorValue(I);
-      tempColorValues->SetValue(I,tempColorValue);
-    }
-    Standard_Integer tempLineWeight = another->LineWeightItem(I);
-    tempLineWeights->SetValue(I, tempLineWeight);
-  }
-//  Displayed -> Implied : mettre une liste vide par defaut
-  Handle(IGESData_HArray1OfIGESEntity) tempDisplayEntities;
-  ent->Init(tempViewEntities, tempLineFonts, tempLineDefinitions,
-           tempColorValues, tempColorDefinitions, tempLineWeights,
-           tempDisplayEntities);
-}
-
-void IGESDraw_ToolViewsVisibleWithAttr::OwnRenew
-  (const Handle(IGESDraw_ViewsVisibleWithAttr)& another,
-   const Handle(IGESDraw_ViewsVisibleWithAttr)& ent, const Interface_CopyTool& TC) const
-{
-  Interface_EntityIterator newdisp;
-  Standard_Integer I, up;
-  up  = another->NbDisplayedEntities();
-  if (up == 0) return;
-  Handle(IGESData_HArray1OfIGESEntity) tempDisplayEntities;
-  Handle(Standard_Transient) anew;
-  for (I = 1; I <= up; I++) {
-    if (TC.Search (another->DisplayedEntity(I),anew)) newdisp.GetOneItem(anew);
-  }
-
-  up = newdisp.NbEntities();  I = 0;
-  if (up > 0) tempDisplayEntities = new IGESData_HArray1OfIGESEntity(1,up);
-  for (newdisp.Start(); newdisp.More(); newdisp.Next()) {
-    I ++;
-    DeclareAndCast(IGESData_IGESEntity, tempEntity,newdisp.Value());
-    tempDisplayEntities->SetValue(I, tempEntity);
-  }
-  ent->InitImplied (tempDisplayEntities);
-}
-
-
 IGESData_DirChecker IGESDraw_ToolViewsVisibleWithAttr::DirChecker
   (const Handle(IGESDraw_ViewsVisibleWithAttr)& /*ent*/)  const
 {
@@ -327,13 +250,6 @@ void IGESDraw_ToolViewsVisibleWithAttr::OwnCheck
   ach->AddFail(mess,"Mismatch for %d Entities displayed");
 }
 
-void IGESDraw_ToolViewsVisibleWithAttr::OwnWhenDelete
-  (const Handle(IGESDraw_ViewsVisibleWithAttr)& ent) const
-{
-  Handle(IGESData_HArray1OfIGESEntity) tempDisplayEntities;
-  ent->InitImplied (tempDisplayEntities);
-}
-
 
 void IGESDraw_ToolViewsVisibleWithAttr::OwnDump
   (const Handle(IGESDraw_ViewsVisibleWithAttr)& ent, const IGESData_IGESDumper& dumper,
index cd3437d493d0553ee639b7c33c0902fc34b3fb57..07a2caf1fc94d9e0288efc043fb11ad0909c4a46 100644 (file)
@@ -32,7 +32,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -41,13 +40,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESDraw_ToolViewsVisibleWithAttr 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolViewsVisibleWithAttr, ready to work
-  Standard_EXPORT IGESDraw_ToolViewsVisibleWithAttr();
+  IGESDraw_ToolViewsVisibleWithAttr() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -71,18 +69,6 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESDraw_ViewsVisibleWithAttr)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters shared not implied, i.e. all but
-  //! the Displayed Entities
-  Standard_EXPORT void OwnCopy (const Handle(IGESDraw_ViewsVisibleWithAttr)& entfrom, const Handle(IGESDraw_ViewsVisibleWithAttr)& entto, Interface_CopyTool& TC) const;
-  
-  //! Copies Specific implied Parameters : the Displayed Entities
-  //! which have already been copied
-  Standard_EXPORT void OwnRenew (const Handle(IGESDraw_ViewsVisibleWithAttr)& entfrom, const Handle(IGESDraw_ViewsVisibleWithAttr)& entto, const Interface_CopyTool& TC) const;
-  
-  //! Clears specific implied parameters, which cause looping
-  //! structures; required for deletion
-  Standard_EXPORT void OwnWhenDelete (const Handle(IGESDraw_ViewsVisibleWithAttr)& ent) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESDraw_ViewsVisibleWithAttr)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
   
@@ -90,28 +76,6 @@ public:
   //! (all displayed entities must refer to <ent> in directory part,
   //! else the list is cleared)
   Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESDraw_ViewsVisibleWithAttr)& ent) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESDraw_ToolViewsVisibleWithAttr_HeaderFile
index e59d52a90fa51e1d11771f321ed4d71bc9c78fea..750354e48385eb0373d671fa5296bf304b006232 100644 (file)
@@ -49,41 +49,14 @@ static Handle(Interface_Check)& checkread()
 static void IGESFile_ReadHeader  (const Handle(IGESData_IGESReaderData)& IR);
 static void IGESFile_ReadContent (const Handle(IGESData_IGESReaderData)& IR);
 void IGESFile_Check (int mode,Message_Msg& amsg);
-// void IGESFile_Check2 (int mode,char * code, int num, char * str);
-// void IGESFile_Check3 (int mode,char * code);
 
 //  Correspondance entre types igesread et types Interface_ParamFile ...
 static Interface_ParamType LesTypes[10];
 
-
-//  Nouvelle maniere : Protocol suffit
-
-Standard_Integer IGESFile_Read
-  (char* nomfic,
-   const Handle(IGESData_IGESModel)& amodel,
-   const Handle(IGESData_Protocol)& protocol)
-{
-  Handle(IGESData_FileRecognizer) nulreco;
-  return IGESFile_Read(nomfic,amodel,protocol,nulreco,Standard_False);
-}
-
-Standard_Integer IGESFile_ReadFNES
-  (char* nomfic,
-   const Handle(IGESData_IGESModel)& amodel,
-   const Handle(IGESData_Protocol)& protocol)
-{
-  Handle(IGESData_FileRecognizer) nulreco;
-  return IGESFile_Read(nomfic,amodel,protocol,nulreco,Standard_True);
-}
-
-
-//  Ancienne maniere : avec Recognizer
-
 Standard_Integer IGESFile_Read
   (char* nomfic,
    const Handle(IGESData_IGESModel)& amodel,
    const Handle(IGESData_Protocol)& protocol,
-   const Handle(IGESData_FileRecognizer)& reco,
    const Standard_Boolean modefnes)
 {
   //====================================
@@ -163,7 +136,7 @@ Standard_Integer IGESFile_Read
   IGESFile_Check(2, Msg15);
   iges_finfile(1);
   IGESData_IGESReaderTool IT (IR,protocol);
-  IT.Prepare(reco); 
+  IT.Prepare(); 
 
   // Sending of message : Loading of Model : Beginning 
   IT.LoadModel(amodel);
index 5226b73d622b3a1187b43259aaaaf96f16f4c756..b5478e7540790079bd00cee4e3a1ecc61b0a9833 100644 (file)
 
 #include <IGESData_IGESModel.hxx>
 #include <IGESData_Protocol.hxx>
-#include <IGESData_FileRecognizer.hxx>
-
-
-Standard_EXPORT Standard_Integer IGESFile_Read
-  (char* nomfic,
-   const Handle(IGESData_IGESModel)& amodel,
-   const Handle(IGESData_Protocol)& protocol);
-
-Standard_EXPORT Standard_Integer IGESFile_ReadFNES
-  (char* nomfic,
-   const Handle(IGESData_IGESModel)& amodel,
-   const Handle(IGESData_Protocol)& protocol);
 
 Standard_EXPORT Standard_Integer IGESFile_Read
   (char* nomfic,
    const Handle(IGESData_IGESModel)& amodel,
    const Handle(IGESData_Protocol)& protocol,
-   const Handle(IGESData_FileRecognizer)& reco,
    const Standard_Boolean modefnes = Standard_False);
 
 #endif
index 7624bb6e5428f332628931798ef312e52ccfcc7e..e764a6a94a4500a08bedeb1a75612c8a0aa59c52 100644 (file)
 #include <Interface_GeneralLib.hxx>
 #include <Interface_ReaderLib.hxx>
 
-//  Ancillary data to work on a Package of IGES Entities with a Protocol
-//  (Modules are created and loaded in appropriate libraries, once by Init)
-static Handle(IGESGeom_Protocol) protocol;
 
-
-    void  IGESGeom::Init ()
+/*void IGESGeom::Init ()
 {
   IGESBasic::Init();
+  IGESGeom::Protocol();
+}*/
+
+const Handle(IGESGeom_Protocol) & IGESGeom::Protocol ()
+{
+  static Handle(IGESGeom_Protocol) protocol;
   if (protocol.IsNull()) {
     protocol = new IGESGeom_Protocol;
     Interface_GeneralLib::SetGlobal (new IGESGeom_GeneralModule,  protocol);
@@ -38,9 +40,5 @@ static Handle(IGESGeom_Protocol) protocol;
     IGESData_WriterLib::SetGlobal   (new IGESGeom_ReadWriteModule,protocol);
     IGESData_SpecificLib::SetGlobal (new IGESGeom_SpecificModule, protocol);
   }
-}
-
-    Handle(IGESGeom_Protocol)  IGESGeom::Protocol ()
-{
   return protocol;
 }
index 22c060b27237bd5dee690fff3d43e73e0e15ae98..9cba489ee1aa15ac7c66a690c33761ff9c88c374 100644 (file)
 #define _IGESGeom_HeaderFile
 
 #include <Standard.hxx>
-#include <Standard_DefineAlloc.hxx>
 #include <Standard_Handle.hxx>
 
 class IGESGeom_Protocol;
-class IGESGeom_CircularArc;
-class IGESGeom_CompositeCurve;
-class IGESGeom_ConicArc;
-class IGESGeom_CopiousData;
-class IGESGeom_Plane;
-class IGESGeom_Line;
-class IGESGeom_SplineCurve;
-class IGESGeom_SplineSurface;
-class IGESGeom_Point;
-class IGESGeom_RuledSurface;
-class IGESGeom_SurfaceOfRevolution;
-class IGESGeom_TabulatedCylinder;
-class IGESGeom_Direction;
-class IGESGeom_TransformationMatrix;
-class IGESGeom_Flash;
-class IGESGeom_BSplineCurve;
-class IGESGeom_BSplineSurface;
-class IGESGeom_OffsetCurve;
-class IGESGeom_OffsetSurface;
-class IGESGeom_Boundary;
-class IGESGeom_CurveOnSurface;
-class IGESGeom_BoundedSurface;
-class IGESGeom_TrimmedSurface;
-class IGESGeom_ToolCircularArc;
-class IGESGeom_ToolCompositeCurve;
-class IGESGeom_ToolConicArc;
-class IGESGeom_ToolCopiousData;
-class IGESGeom_ToolPlane;
-class IGESGeom_ToolLine;
-class IGESGeom_ToolSplineCurve;
-class IGESGeom_ToolSplineSurface;
-class IGESGeom_ToolPoint;
-class IGESGeom_ToolRuledSurface;
-class IGESGeom_ToolSurfaceOfRevolution;
-class IGESGeom_ToolTabulatedCylinder;
-class IGESGeom_ToolDirection;
-class IGESGeom_ToolTransformationMatrix;
-class IGESGeom_ToolFlash;
-class IGESGeom_ToolBSplineCurve;
-class IGESGeom_ToolBSplineSurface;
-class IGESGeom_ToolOffsetCurve;
-class IGESGeom_ToolOffsetSurface;
-class IGESGeom_ToolBoundary;
-class IGESGeom_ToolCurveOnSurface;
-class IGESGeom_ToolBoundedSurface;
-class IGESGeom_ToolTrimmedSurface;
-class IGESGeom_Protocol;
-class IGESGeom_ReadWriteModule;
-class IGESGeom_GeneralModule;
-class IGESGeom_SpecificModule;
 
 
 //! This package consists of B-Rep and CSG Solid entities
 class IGESGeom 
 {
-public:
-
-  DEFINE_STANDARD_ALLOC
+ public:
 
-  
   //! Prepares dymanic data (Protocol, Modules) for this package
-  Standard_EXPORT static void Init();
+  //Standard_EXPORT static void Init();
   
   //! Returns the Protocol for this Package
-  Standard_EXPORT static Handle(IGESGeom_Protocol) Protocol();
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-friend class IGESGeom_CircularArc;
-friend class IGESGeom_CompositeCurve;
-friend class IGESGeom_ConicArc;
-friend class IGESGeom_CopiousData;
-friend class IGESGeom_Plane;
-friend class IGESGeom_Line;
-friend class IGESGeom_SplineCurve;
-friend class IGESGeom_SplineSurface;
-friend class IGESGeom_Point;
-friend class IGESGeom_RuledSurface;
-friend class IGESGeom_SurfaceOfRevolution;
-friend class IGESGeom_TabulatedCylinder;
-friend class IGESGeom_Direction;
-friend class IGESGeom_TransformationMatrix;
-friend class IGESGeom_Flash;
-friend class IGESGeom_BSplineCurve;
-friend class IGESGeom_BSplineSurface;
-friend class IGESGeom_OffsetCurve;
-friend class IGESGeom_OffsetSurface;
-friend class IGESGeom_Boundary;
-friend class IGESGeom_CurveOnSurface;
-friend class IGESGeom_BoundedSurface;
-friend class IGESGeom_TrimmedSurface;
-friend class IGESGeom_ToolCircularArc;
-friend class IGESGeom_ToolCompositeCurve;
-friend class IGESGeom_ToolConicArc;
-friend class IGESGeom_ToolCopiousData;
-friend class IGESGeom_ToolPlane;
-friend class IGESGeom_ToolLine;
-friend class IGESGeom_ToolSplineCurve;
-friend class IGESGeom_ToolSplineSurface;
-friend class IGESGeom_ToolPoint;
-friend class IGESGeom_ToolRuledSurface;
-friend class IGESGeom_ToolSurfaceOfRevolution;
-friend class IGESGeom_ToolTabulatedCylinder;
-friend class IGESGeom_ToolDirection;
-friend class IGESGeom_ToolTransformationMatrix;
-friend class IGESGeom_ToolFlash;
-friend class IGESGeom_ToolBSplineCurve;
-friend class IGESGeom_ToolBSplineSurface;
-friend class IGESGeom_ToolOffsetCurve;
-friend class IGESGeom_ToolOffsetSurface;
-friend class IGESGeom_ToolBoundary;
-friend class IGESGeom_ToolCurveOnSurface;
-friend class IGESGeom_ToolBoundedSurface;
-friend class IGESGeom_ToolTrimmedSurface;
-friend class IGESGeom_Protocol;
-friend class IGESGeom_ReadWriteModule;
-friend class IGESGeom_GeneralModule;
-friend class IGESGeom_SpecificModule;
-
+  Standard_EXPORT static const Handle(IGESGeom_Protocol) & Protocol();
 };
 
-
-
-
-
-
-
 #endif // _IGESGeom_HeaderFile
index e6b95ef829e5f8a4c8b946fe5c5db5f132ba4c29..abd008d5f7dd4c7c7fcbfd93bf6e52a1260945b0 100644 (file)
 #include <IGESGeom_TrimmedSurface.hxx>
 #include <Interface_Category.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
-#include <Standard_Transient.hxx>
-#include <Standard_Type.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESGeom_GeneralModule,IGESData_GeneralModule)
 
-//  Each Module is attached to a Protocol : it must interprete Case Numbers
-//  (arguments <CN> of various methods) in accordance to values returned by
-//  the method TypeNumber from this Protocol
-IGESGeom_GeneralModule::IGESGeom_GeneralModule ()    {  }
-
 
     void  IGESGeom_GeneralModule::OwnSharedCase
   (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent,
    Interface_EntityIterator& iter) const 
 {
   switch (CN) {
-    case  1 : {
-      DeclareAndCast(IGESGeom_BSplineCurve,anent,ent);
-      if (anent.IsNull()) return;
-      IGESGeom_ToolBSplineCurve tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
-    case  2 : {
-      DeclareAndCast(IGESGeom_BSplineSurface,anent,ent);
-      if (anent.IsNull()) return;
-      IGESGeom_ToolBSplineSurface tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
     case  3 : {
       DeclareAndCast(IGESGeom_Boundary,anent,ent);
       if (anent.IsNull()) return;
@@ -111,13 +89,6 @@ IGESGeom_GeneralModule::IGESGeom_GeneralModule ()    {  }
       tool.OwnShared(anent,iter);
     }
       break;
-    case  5 : {
-      DeclareAndCast(IGESGeom_CircularArc,anent,ent);
-      if (anent.IsNull()) return;
-      IGESGeom_ToolCircularArc tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
     case  6 : {
       DeclareAndCast(IGESGeom_CompositeCurve,anent,ent);
       if (anent.IsNull()) return;
@@ -125,20 +96,6 @@ IGESGeom_GeneralModule::IGESGeom_GeneralModule ()    {  }
       tool.OwnShared(anent,iter);
     }
       break;
-    case  7 : {
-      DeclareAndCast(IGESGeom_ConicArc,anent,ent);
-      if (anent.IsNull()) return;
-      IGESGeom_ToolConicArc tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
-    case  8 : {
-      DeclareAndCast(IGESGeom_CopiousData,anent,ent);
-      if (anent.IsNull()) return;
-      IGESGeom_ToolCopiousData tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
     case  9 : {
       DeclareAndCast(IGESGeom_CurveOnSurface,anent,ent);
       if (anent.IsNull()) return;
@@ -146,13 +103,6 @@ IGESGeom_GeneralModule::IGESGeom_GeneralModule ()    {  }
       tool.OwnShared(anent,iter);
     }
       break;
-    case 10 : {
-      DeclareAndCast(IGESGeom_Direction,anent,ent);
-      if (anent.IsNull()) return;
-      IGESGeom_ToolDirection tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
     case 11 : {
       DeclareAndCast(IGESGeom_Flash,anent,ent);
       if (anent.IsNull()) return;
@@ -160,13 +110,6 @@ IGESGeom_GeneralModule::IGESGeom_GeneralModule ()    {  }
       tool.OwnShared(anent,iter);
     }
       break;
-    case 12 : {
-      DeclareAndCast(IGESGeom_Line,anent,ent);
-      if (anent.IsNull()) return;
-      IGESGeom_ToolLine tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
     case 13 : {
       DeclareAndCast(IGESGeom_OffsetCurve,anent,ent);
       if (anent.IsNull()) return;
@@ -202,20 +145,6 @@ IGESGeom_GeneralModule::IGESGeom_GeneralModule ()    {  }
       tool.OwnShared(anent,iter);
     }
       break;
-    case 18 : {
-      DeclareAndCast(IGESGeom_SplineCurve,anent,ent);
-      if (anent.IsNull()) return;
-      IGESGeom_ToolSplineCurve tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
-    case 19 : {
-      DeclareAndCast(IGESGeom_SplineSurface,anent,ent);
-      if (anent.IsNull()) return;
-      IGESGeom_ToolSplineSurface tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
     case 20 : {
       DeclareAndCast(IGESGeom_SurfaceOfRevolution,anent,ent);
       if (anent.IsNull()) return;
@@ -230,13 +159,6 @@ IGESGeom_GeneralModule::IGESGeom_GeneralModule ()    {  }
       tool.OwnShared(anent,iter);
     }
       break;
-    case 22 : {
-      DeclareAndCast(IGESGeom_TransformationMatrix,anent,ent);
-      if (anent.IsNull()) return;
-      IGESGeom_ToolTransformationMatrix tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
     case 23 : {
       DeclareAndCast(IGESGeom_TrimmedSurface,anent,ent);
       if (anent.IsNull()) return;
@@ -430,20 +352,6 @@ IGESGeom_GeneralModule::IGESGeom_GeneralModule ()    {  }
       tool.OwnCheck(anent,shares,ach);
     }
       break;
-    case  5 : {
-      DeclareAndCast(IGESGeom_CircularArc,anent,ent);
-      if (anent.IsNull()) return;
-      IGESGeom_ToolCircularArc tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
-    case  6 : {
-      DeclareAndCast(IGESGeom_CompositeCurve,anent,ent);
-      if (anent.IsNull()) return;
-      IGESGeom_ToolCompositeCurve tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
     case  7 : {
       DeclareAndCast(IGESGeom_ConicArc,anent,ent);
       if (anent.IsNull()) return;
@@ -479,13 +387,6 @@ IGESGeom_GeneralModule::IGESGeom_GeneralModule ()    {  }
       tool.OwnCheck(anent,shares,ach);
     }
       break;
-    case 12 : {
-      DeclareAndCast(IGESGeom_Line,anent,ent);
-      if (anent.IsNull()) return;
-      IGESGeom_ToolLine tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
     case 13 : {
       DeclareAndCast(IGESGeom_OffsetCurve,anent,ent);
       if (anent.IsNull()) return;
@@ -493,13 +394,6 @@ IGESGeom_GeneralModule::IGESGeom_GeneralModule ()    {  }
       tool.OwnCheck(anent,shares,ach);
     }
       break;
-    case 14 : {
-      DeclareAndCast(IGESGeom_OffsetSurface,anent,ent);
-      if (anent.IsNull()) return;
-      IGESGeom_ToolOffsetSurface tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
     case 15 : {
       DeclareAndCast(IGESGeom_Plane,anent,ent);
       if (anent.IsNull()) return;
@@ -507,20 +401,6 @@ IGESGeom_GeneralModule::IGESGeom_GeneralModule ()    {  }
       tool.OwnCheck(anent,shares,ach);
     }
       break;
-    case 16 : {
-      DeclareAndCast(IGESGeom_Point,anent,ent);
-      if (anent.IsNull()) return;
-      IGESGeom_ToolPoint tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
-    case 17 : {
-      DeclareAndCast(IGESGeom_RuledSurface,anent,ent);
-      if (anent.IsNull()) return;
-      IGESGeom_ToolRuledSurface tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
     case 18 : {
       DeclareAndCast(IGESGeom_SplineCurve,anent,ent);
       if (anent.IsNull()) return;
@@ -535,20 +415,6 @@ IGESGeom_GeneralModule::IGESGeom_GeneralModule ()    {  }
       tool.OwnCheck(anent,shares,ach);
     }
       break;
-    case 20 : {
-      DeclareAndCast(IGESGeom_SurfaceOfRevolution,anent,ent);
-      if (anent.IsNull()) return;
-      IGESGeom_ToolSurfaceOfRevolution tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
-    case 21 : {
-      DeclareAndCast(IGESGeom_TabulatedCylinder,anent,ent);
-      if (anent.IsNull()) return;
-      IGESGeom_ToolTabulatedCylinder tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
     case 22 : {
       DeclareAndCast(IGESGeom_TransformationMatrix,anent,ent);
       if (anent.IsNull()) return;
@@ -601,179 +467,6 @@ IGESGeom_GeneralModule::IGESGeom_GeneralModule ()    {  }
 }
 
 
-    void  IGESGeom_GeneralModule::OwnCopyCase
-  (const Standard_Integer CN,
-   const Handle(IGESData_IGESEntity)& entfrom,
-   const Handle(IGESData_IGESEntity)& entto,
-   Interface_CopyTool& TC) const 
-{
-  switch (CN) {
-    case  1 : {
-      DeclareAndCast(IGESGeom_BSplineCurve,enfr,entfrom);
-      DeclareAndCast(IGESGeom_BSplineCurve,ento,entto);
-      IGESGeom_ToolBSplineCurve tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  2 : {
-      DeclareAndCast(IGESGeom_BSplineSurface,enfr,entfrom);
-      DeclareAndCast(IGESGeom_BSplineSurface,ento,entto);
-      IGESGeom_ToolBSplineSurface tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  3 : {
-      DeclareAndCast(IGESGeom_Boundary,enfr,entfrom);
-      DeclareAndCast(IGESGeom_Boundary,ento,entto);
-      IGESGeom_ToolBoundary tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  4 : {
-      DeclareAndCast(IGESGeom_BoundedSurface,enfr,entfrom);
-      DeclareAndCast(IGESGeom_BoundedSurface,ento,entto);
-      IGESGeom_ToolBoundedSurface tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  5 : {
-      DeclareAndCast(IGESGeom_CircularArc,enfr,entfrom);
-      DeclareAndCast(IGESGeom_CircularArc,ento,entto);
-      IGESGeom_ToolCircularArc tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  6 : {
-      DeclareAndCast(IGESGeom_CompositeCurve,enfr,entfrom);
-      DeclareAndCast(IGESGeom_CompositeCurve,ento,entto);
-      IGESGeom_ToolCompositeCurve tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  7 : {
-      DeclareAndCast(IGESGeom_ConicArc,enfr,entfrom);
-      DeclareAndCast(IGESGeom_ConicArc,ento,entto);
-      IGESGeom_ToolConicArc tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  8 : {
-      DeclareAndCast(IGESGeom_CopiousData,enfr,entfrom);
-      DeclareAndCast(IGESGeom_CopiousData,ento,entto);
-      IGESGeom_ToolCopiousData tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  9 : {
-      DeclareAndCast(IGESGeom_CurveOnSurface,enfr,entfrom);
-      DeclareAndCast(IGESGeom_CurveOnSurface,ento,entto);
-      IGESGeom_ToolCurveOnSurface tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 10 : {
-      DeclareAndCast(IGESGeom_Direction,enfr,entfrom);
-      DeclareAndCast(IGESGeom_Direction,ento,entto);
-      IGESGeom_ToolDirection tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 11 : {
-      DeclareAndCast(IGESGeom_Flash,enfr,entfrom);
-      DeclareAndCast(IGESGeom_Flash,ento,entto);
-      IGESGeom_ToolFlash tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 12 : {
-      DeclareAndCast(IGESGeom_Line,enfr,entfrom);
-      DeclareAndCast(IGESGeom_Line,ento,entto);
-      IGESGeom_ToolLine tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 13 : {
-      DeclareAndCast(IGESGeom_OffsetCurve,enfr,entfrom);
-      DeclareAndCast(IGESGeom_OffsetCurve,ento,entto);
-      IGESGeom_ToolOffsetCurve tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 14 : {
-      DeclareAndCast(IGESGeom_OffsetSurface,enfr,entfrom);
-      DeclareAndCast(IGESGeom_OffsetSurface,ento,entto);
-      IGESGeom_ToolOffsetSurface tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 15 : {
-      DeclareAndCast(IGESGeom_Plane,enfr,entfrom);
-      DeclareAndCast(IGESGeom_Plane,ento,entto);
-      IGESGeom_ToolPlane tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 16 : {
-      DeclareAndCast(IGESGeom_Point,enfr,entfrom);
-      DeclareAndCast(IGESGeom_Point,ento,entto);
-      IGESGeom_ToolPoint tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 17 : {
-      DeclareAndCast(IGESGeom_RuledSurface,enfr,entfrom);
-      DeclareAndCast(IGESGeom_RuledSurface,ento,entto);
-      IGESGeom_ToolRuledSurface tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 18 : {
-      DeclareAndCast(IGESGeom_SplineCurve,enfr,entfrom);
-      DeclareAndCast(IGESGeom_SplineCurve,ento,entto);
-      IGESGeom_ToolSplineCurve tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 19 : {
-      DeclareAndCast(IGESGeom_SplineSurface,enfr,entfrom);
-      DeclareAndCast(IGESGeom_SplineSurface,ento,entto);
-      IGESGeom_ToolSplineSurface tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 20 : {
-      DeclareAndCast(IGESGeom_SurfaceOfRevolution,enfr,entfrom);
-      DeclareAndCast(IGESGeom_SurfaceOfRevolution,ento,entto);
-      IGESGeom_ToolSurfaceOfRevolution tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 21 : {
-      DeclareAndCast(IGESGeom_TabulatedCylinder,enfr,entfrom);
-      DeclareAndCast(IGESGeom_TabulatedCylinder,ento,entto);
-      IGESGeom_ToolTabulatedCylinder tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 22 : {
-      DeclareAndCast(IGESGeom_TransformationMatrix,enfr,entfrom);
-      DeclareAndCast(IGESGeom_TransformationMatrix,ento,entto);
-      IGESGeom_ToolTransformationMatrix tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 23 : {
-      DeclareAndCast(IGESGeom_TrimmedSurface,enfr,entfrom);
-      DeclareAndCast(IGESGeom_TrimmedSurface,ento,entto);
-      IGESGeom_ToolTrimmedSurface tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    default : break;
-  }
-}
-
-
     Standard_Integer  IGESGeom_GeneralModule::CategoryNumber
   (const Standard_Integer CN, const Handle(Standard_Transient)& ent,
    const Interface_ShareTool& ) const
index 9bdeba647f00b96446e61805e049012dd79c7913..7bb109c356e2de0413354b2c51ff0855f0f915b5 100644 (file)
 #ifndef _IGESGeom_GeneralModule_HeaderFile
 #define _IGESGeom_GeneralModule_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
 #include <IGESData_GeneralModule.hxx>
-#include <Standard_Integer.hxx>
-#include <Standard_Boolean.hxx>
-class IGESData_IGESEntity;
-class Interface_EntityIterator;
-class IGESData_DirChecker;
-class Interface_ShareTool;
-class Interface_Check;
-class Standard_Transient;
-class Interface_CopyTool;
 
 
 class IGESGeom_GeneralModule;
@@ -39,12 +27,10 @@ DEFINE_STANDARD_HANDLE(IGESGeom_GeneralModule, IGESData_GeneralModule)
 //! This Services comprise : Shared & Implied Lists, Copy, Check
 class IGESGeom_GeneralModule : public IGESData_GeneralModule
 {
+ public:
 
-public:
-
-  
   //! Creates a GeneralModule from IGESGeom and puts it into GeneralLib
-  Standard_EXPORT IGESGeom_GeneralModule();
+  IGESGeom_GeneralModule() {}
   
   //! Lists the Entities shared by a given IGESEntity <ent>, from
   //! its specific parameters : specific for each type
@@ -61,35 +47,12 @@ public:
   //! Specific creation of a new void entity
   Standard_EXPORT Standard_Boolean NewVoid (const Standard_Integer CN, Handle(Standard_Transient)& entto) const Standard_OVERRIDE;
   
-  //! Copies parameters which are specific of each Type of Entity
-  Standard_EXPORT void OwnCopyCase (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& entfrom, const Handle(IGESData_IGESEntity)& entto, Interface_CopyTool& TC) const Standard_OVERRIDE;
-  
   //! Returns a category number which characterizes an entity
   //! Shape for all, but Drawing for :
   //! Flash;  Point with a symbol;  Plane with a symbol
   Standard_EXPORT virtual Standard_Integer CategoryNumber (const Standard_Integer CN, const Handle(Standard_Transient)& ent, const Interface_ShareTool& shares) const Standard_OVERRIDE;
 
-
-
-
   DEFINE_STANDARD_RTTIEXT(IGESGeom_GeneralModule,IGESData_GeneralModule)
-
-protected:
-
-
-
-
-private:
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESGeom_GeneralModule_HeaderFile
index 316d22ffae326cdb72f60b82a9027ef8adc2449e..33657da16c808eede133934b70abec5abe3af06c 100644 (file)
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESGeom_SpecificModule,IGESData_SpecificModule)
 
-//  Each Module is attached to a Protocol : it must interprete Case Numbers
-//  (arguments <CN> of various methods) in accordance to values returned by
-//  the method TypeNumber from this Protocol
-IGESGeom_SpecificModule::IGESGeom_SpecificModule()    {  }
-
 
     void  IGESGeom_SpecificModule::OwnDump
   (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent,
index 76d1b6e800a0954bdef73790e91e0de06524ce05..7e1d261b7fa497107ed224af3d6d43d1fa295cc9 100644 (file)
@@ -35,12 +35,10 @@ DEFINE_STANDARD_HANDLE(IGESGeom_SpecificModule, IGESData_SpecificModule)
 //! Dump & OwnCorrect, for IGESGeom
 class IGESGeom_SpecificModule : public IGESData_SpecificModule
 {
+ public:
 
-public:
-
-  
   //! Creates a SpecificModule from IGESGeom & puts it into SpecificLib
-  Standard_EXPORT IGESGeom_SpecificModule();
+  IGESGeom_SpecificModule() {}
   
   //! Specific Dump (own parameters) for IGESGeom
   Standard_EXPORT void OwnDump (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const Standard_OVERRIDE;
@@ -49,27 +47,7 @@ public:
   //! them (Boundary,ConicArc,Flash,OffsetCurve,TransformationMatrix)
   Standard_EXPORT virtual Standard_Boolean OwnCorrect (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent) const Standard_OVERRIDE;
 
-
-
-
   DEFINE_STANDARD_RTTIEXT(IGESGeom_SpecificModule,IGESData_SpecificModule)
-
-protected:
-
-
-
-
-private:
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESGeom_SpecificModule_HeaderFile
index 98caa6b3756efb47a1fe368cd44247c028f5351e..72aafcd5c69cf44448653c2c89fb88c399a8807a 100644 (file)
@@ -28,7 +28,6 @@
 #include <IGESGeom_BSplineCurve.hxx>
 #include <IGESGeom_ToolBSplineCurve.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <TColgp_HArray1OfXYZ.hxx>
 #include <TColStd_HArray1OfReal.hxx>
 
-// MGE 29/07/98
-//=======================================================================
-//function : IGESGeom_ToolBSplineCurve
-//purpose  : 
-//=======================================================================
-IGESGeom_ToolBSplineCurve::IGESGeom_ToolBSplineCurve ()
-{
-}
-
 
 //=======================================================================
 //function : ReadOwnParams
@@ -241,70 +231,6 @@ void IGESGeom_ToolBSplineCurve::WriteOwnParams
 }
 
 
-//=======================================================================
-//function : OwnShared
-//purpose  : 
-//=======================================================================
-
-void IGESGeom_ToolBSplineCurve::OwnShared(const Handle(IGESGeom_BSplineCurve)& /* ent */,
-                                          Interface_EntityIterator& /* iter */) const
-{
-}
-
-
-//=======================================================================
-//function : OwnCopy
-//purpose  : 
-//=======================================================================
-
-void IGESGeom_ToolBSplineCurve::OwnCopy 
-  (const Handle(IGESGeom_BSplineCurve)& another,
-   const Handle(IGESGeom_BSplineCurve)& ent, Interface_CopyTool& /* TC */) const
-{
-  Standard_Integer I;
-  Standard_Integer low, up;
-  Standard_Integer anIndex, aDegree;
-  Standard_Boolean aPlanar, aClosed, aPolynomial, aPeriodic;
-  Handle(TColStd_HArray1OfReal) allKnots, allWeights;
-  Handle(TColgp_HArray1OfXYZ) allPoles;
-  Standard_Real aUmin, aUmax;
-  gp_XYZ aNorm;
-
-  anIndex = another->UpperIndex();
-  aDegree = another->Degree();
-  aPlanar = another->IsPlanar();
-  aClosed = another->IsClosed();
-  aPolynomial = another->IsPolynomial();
-  aPeriodic = another->IsPeriodic();
-
-  allKnots = new TColStd_HArray1OfReal(-aDegree, anIndex+1);
-
-  low = -aDegree;
-  up  = anIndex + 1;
-  for (I = low; I <= up; I++)
-    allKnots->SetValue(I, another->Knot(I));
-
-  allWeights = new TColStd_HArray1OfReal(0, anIndex);
-
-  low = 0;
-  up  = anIndex;
-  for (I = low; I <= up; I++)
-    allWeights->SetValue(I, another->Weight(I));
-
-  allPoles = new TColgp_HArray1OfXYZ(0, anIndex);
-
-  for (I = low; I <= up; I++) 
-    allPoles->SetValue(I, (another->Pole(I)).XYZ());
-
-  aUmin = another->UMin();
-  aUmax = another->UMax();
-  aNorm = another->Normal();
-
-  ent->Init (anIndex,aDegree, aPlanar, aClosed, aPolynomial, aPeriodic,
-            allKnots, allWeights, allPoles, aUmin, aUmax, aNorm);
-}
-
-
 //=======================================================================
 //function : DirChecker
 //purpose  : 
index 2c0aa0ffbc86c5ffca746cac6add45b11aa00ad6..1246e9a902dd4fa0ca7a01b411f0665fd7c652d7 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESGeom_ToolBSplineCurve 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolBSplineCurve, ready to work
-  Standard_EXPORT IGESGeom_ToolBSplineCurve();
+  IGESGeom_ToolBSplineCurve() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,14 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESGeom_BSplineCurve)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a BSplineCurve <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESGeom_BSplineCurve)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESGeom_BSplineCurve)& ent) const;
   
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESGeom_BSplineCurve)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESGeom_BSplineCurve)& entfrom, const Handle(IGESGeom_BSplineCurve)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESGeom_BSplineCurve)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESGeom_ToolBSplineCurve_HeaderFile
index 8a9b11f0067b7e9eeb036edb9b07c0ecc02b4df8..d01d96120198e955652958ad669ab4504a99b6c3 100644 (file)
@@ -27,7 +27,6 @@
 #include <IGESGeom_BSplineSurface.hxx>
 #include <IGESGeom_ToolBSplineSurface.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <TColStd_HArray1OfReal.hxx>
 #include <TColStd_HArray2OfReal.hxx>
 
-// MGE 31/07/98
-//=======================================================================
-//function : IGESGeom_ToolBSplineSurface
-//purpose  : 
-//=======================================================================
-IGESGeom_ToolBSplineSurface::IGESGeom_ToolBSplineSurface ()
-{
-}
-
 
 //=======================================================================
 //function : ReadOwnParams
@@ -276,78 +266,6 @@ void IGESGeom_ToolBSplineSurface::WriteOwnParams
 }
 
 
-//=======================================================================
-//function : OwnShared
-//purpose  : 
-//=======================================================================
-
-void IGESGeom_ToolBSplineSurface::OwnShared(const Handle(IGESGeom_BSplineSurface)& /* ent */,
-                                            Interface_EntityIterator& /* iter */) const
-{
-}
-
-
-//=======================================================================
-//function : OwnCopy
-//purpose  : 
-//=======================================================================
-
-void IGESGeom_ToolBSplineSurface::OwnCopy(const Handle(IGESGeom_BSplineSurface)& another,
-                                          const Handle(IGESGeom_BSplineSurface)& ent,
-                                          Interface_CopyTool& /* TC */) const
-{
-  Standard_Integer I, J;
-  Standard_Integer anIndexU, anIndexV, aDegU, aDegV;
-  Standard_Boolean aCloseU, aCloseV, aPolynom;
-  Standard_Boolean aPeriodU, aPeriodV;
-  Standard_Real aUmin, aUmax, aVmin, aVmax;
-
-  anIndexU = another->UpperIndexU();
-  anIndexV = another->UpperIndexV();
-  aDegU    = another->DegreeU();
-  aDegV    = another->DegreeV();
-  aCloseU  = another->IsClosedU();
-  aCloseV  = another->IsClosedV();
-  aPolynom = another->IsPolynomial();
-  aPeriodU = another->IsPeriodicU();
-  aPeriodV = another->IsPeriodicV();
-
-  Handle(TColStd_HArray1OfReal) allKnotsU  =
-    new TColStd_HArray1OfReal(-aDegU, anIndexU+1);
-  Handle(TColStd_HArray1OfReal) allKnotsV  =
-    new TColStd_HArray1OfReal(-aDegV, anIndexV+1);
-
-  for (I = -aDegU; I <= anIndexU + 1; I ++)
-    allKnotsU->SetValue(I, another->KnotU(I));
-
-  for (I = -aDegV; I <= anIndexV + 1; I ++)
-    allKnotsV->SetValue(I, another->KnotV(I));
-
-  Handle(TColStd_HArray2OfReal) allWeights  =
-    new TColStd_HArray2OfReal (0, anIndexU, 0, anIndexV);
-  Handle(TColgp_HArray2OfXYZ)   allPoles    =
-    new TColgp_HArray2OfXYZ   (0, anIndexU, 0, anIndexV);
-
-  for (J = 0; J <= anIndexV; J ++)
-    for (I = 0; I <= anIndexU; I ++) 
-      allWeights->SetValue(I, J, another->Weight(I,J));
-
-  for (J = 0; J <= anIndexV; J ++)
-    for (I = 0; I <= anIndexU; I ++) 
-      allPoles->SetValue(I, J, another->Pole(I, J).XYZ());
-
-  aUmin = another->UMin();
-  aUmax = another->UMax();
-  aVmin = another->VMin();
-  aVmax = another->VMax();
-
-  ent->Init (anIndexU, anIndexV, aDegU, aDegV, aCloseU, aCloseV,
-            aPolynom, aPeriodU, aPeriodV, allKnotsU, allKnotsV,
-            allWeights, allPoles, aUmin, aUmax, aVmin, aVmax);
-  ent->SetFormNumber(another->FormNumber());
-}
-
-
 //=======================================================================
 //function : DirChecker
 //purpose  : 
index 7ad8e0bea8bf6fc049826be6c1981326dffe92fe..f47c1f723ae7606070af60438d78c657d2ea32b2 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESGeom_ToolBSplineSurface 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolBSplineSurface, ready to work
-  Standard_EXPORT IGESGeom_ToolBSplineSurface();
+  IGESGeom_ToolBSplineSurface() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,14 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESGeom_BSplineSurface)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a BSplineSurface <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESGeom_BSplineSurface)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESGeom_BSplineSurface)& ent) const;
   
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESGeom_BSplineSurface)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESGeom_BSplineSurface)& entfrom, const Handle(IGESGeom_BSplineSurface)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESGeom_BSplineSurface)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESGeom_ToolBSplineSurface_HeaderFile
index f256fe8a3d260a68988aba0f571fcd0c2a706ab3..0b5b42c018c6c954f8cd160785cb8dafc5357f55 100644 (file)
@@ -30,7 +30,6 @@
 #include <IGESGeom_Boundary.hxx>
 #include <IGESGeom_ToolBoundary.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <TColStd_HArray1OfInteger.hxx>
 
 #include <stdio.h>
-// MGE 30/07/98
-//=======================================================================
-//function : IGESGeom_ToolBoundary
-//purpose  : 
-//=======================================================================
-IGESGeom_ToolBoundary::IGESGeom_ToolBoundary ()
-{
-}
-
 
 //=======================================================================
 //function : ReadOwnParams
@@ -249,54 +239,6 @@ void IGESGeom_ToolBoundary::OwnShared(const Handle(IGESGeom_Boundary)& ent,
 }
 
 
-//=======================================================================
-//function : OwnCopy
-//purpose  : 
-//=======================================================================
-
-void IGESGeom_ToolBoundary::OwnCopy(const Handle(IGESGeom_Boundary)& another,
-                                    const Handle(IGESGeom_Boundary)& ent,
-                                    Interface_CopyTool& TC) const
-{
-  Standard_Integer i, j;
-  Standard_Integer tempType = another->BoundaryType();
-  Standard_Integer tempPreference = another->PreferenceType();
-  Standard_Integer num1 = another->NbModelSpaceCurves();
-
-  DeclareAndCast(IGESData_IGESEntity, tempSurface,
-                TC.Transferred(another->Surface()) );
-
-  Handle(TColStd_HArray1OfInteger) tempSenses =
-    new TColStd_HArray1OfInteger(1, num1);
-  Handle(IGESData_HArray1OfIGESEntity) tempModelCurves =
-    new IGESData_HArray1OfIGESEntity(1, num1);
-  Handle(IGESBasic_HArray1OfHArray1OfIGESEntity) tempParameterCurves =
-    new IGESBasic_HArray1OfHArray1OfIGESEntity(1, num1);
-
-  for ( i = 1; i <= num1; i++ )
-    {
-      DeclareAndCast(IGESData_IGESEntity, tempEnt,
-                    TC.Transferred(another->ModelSpaceCurve(i)) );
-      tempModelCurves->SetValue(i, tempEnt);
-      tempSenses->SetValue(i, another->Sense(i));
-      Standard_Integer num2 = another->NbParameterCurves(i);
-      Handle(IGESData_HArray1OfIGESEntity) ParCurves =
-       another->ParameterCurves(i);
-      Handle(IGESData_HArray1OfIGESEntity) tempParCurves;
-      if (num2 > 0) tempParCurves = new IGESData_HArray1OfIGESEntity(1, num2);
-      for ( j = 1; j <= num2; j++ )
-       {
-          DeclareAndCast(IGESData_IGESEntity, tempEnt1,
-                        TC.Transferred(ParCurves->Value(j)) );
-          tempParCurves->SetValue(j, tempEnt1);
-       }
-      tempParameterCurves->SetValue(i, tempParCurves);
-    }
-  ent->Init(tempType, tempPreference, tempSurface, tempModelCurves,
-           tempSenses, tempParameterCurves);
-}
-
-
 //=======================================================================
 //function : OwnCorrect
 //purpose  : 
index 8eee7e1e9d94b9128669d9a1d6fb99c7298c6d6d..47c68deefc1290aecc620a1266491319c55dbed9 100644 (file)
@@ -32,7 +32,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -41,13 +40,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESGeom_ToolBoundary 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolBoundary, ready to work
-  Standard_EXPORT IGESGeom_ToolBoundary();
+  IGESGeom_ToolBoundary() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -70,33 +68,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESGeom_Boundary)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESGeom_Boundary)& entfrom, const Handle(IGESGeom_Boundary)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESGeom_Boundary)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESGeom_ToolBoundary_HeaderFile
index d8da8c50202aba7c80601b91190489181ace5ede..a22b63e52c1c60d5a2aa3ab040a636d8f9a85f72 100644 (file)
@@ -30,7 +30,6 @@
 #include <IGESGeom_HArray1OfBoundary.hxx>
 #include <IGESGeom_ToolBoundedSurface.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Msg.hxx>
 #include <Standard_DomainError.hxx>
 
-// MGE 31/07/98
-//=======================================================================
-//function : IGESGeom_ToolBoundedSurface
-//purpose  : 
-//=======================================================================
-IGESGeom_ToolBoundedSurface::IGESGeom_ToolBoundedSurface ()
-{
-}
-
 
 //=======================================================================
 //function : ReadOwnParams
@@ -174,33 +164,6 @@ void IGESGeom_ToolBoundedSurface::OwnShared(const Handle(IGESGeom_BoundedSurface
 }
 
 
-//=======================================================================
-//function : OwnCopy
-//purpose  : 
-//=======================================================================
-
-void IGESGeom_ToolBoundedSurface::OwnCopy(const Handle(IGESGeom_BoundedSurface)& another,
-                                          const Handle(IGESGeom_BoundedSurface)& ent,
-                                          Interface_CopyTool& TC) const
-{
-  Standard_Integer i, num;
-
-  Standard_Integer tempType = another->RepresentationType();
-  DeclareAndCast(IGESData_IGESEntity, tempSurface,
-                TC.Transferred(another->Surface()));
-  num = another->NbBoundaries();
-  Handle(IGESGeom_HArray1OfBoundary) tempBounds;
-  if (num > 0) tempBounds = new IGESGeom_HArray1OfBoundary(1, num);
-  for (i = 1; i <= num; i++)
-    {
-      DeclareAndCast(IGESGeom_Boundary, tempBoundary,
-                    TC.Transferred(another->Boundary(i)));
-      tempBounds->SetValue(i, tempBoundary);
-    }
-  ent->Init(tempType, tempSurface, tempBounds);
-}
-
-
 //=======================================================================
 //function : DirChecker
 //purpose  : 
index 61c6d716c3dbbd5912de5e542014a78063184e9c..ef46976c404113ea73ec3814ac9da9e9dfe30509 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESGeom_ToolBoundedSurface 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolBoundedSurface, ready to work
-  Standard_EXPORT IGESGeom_ToolBoundedSurface();
+  IGESGeom_ToolBoundedSurface() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -65,33 +63,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESGeom_BoundedSurface)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESGeom_BoundedSurface)& entfrom, const Handle(IGESGeom_BoundedSurface)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESGeom_BoundedSurface)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESGeom_ToolBoundedSurface_HeaderFile
index 5255da1e414d88eae378580bf08e333f753edbde..3f73c038dcb08441f6dbac698ac8a7740e6a1d48 100644 (file)
@@ -28,7 +28,6 @@
 #include <IGESGeom_CircularArc.hxx>
 #include <IGESGeom_ToolCircularArc.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_MSG.hxx>
@@ -38,9 +37,6 @@
 #include <Standard_DomainError.hxx>
 
 #include <stdio.h>
-// MGE 28/07/98
-IGESGeom_ToolCircularArc::IGESGeom_ToolCircularArc ()    {  }
-
 
 void IGESGeom_ToolCircularArc::ReadOwnParams
   (const Handle(IGESGeom_CircularArc)& ent,
@@ -91,19 +87,6 @@ void IGESGeom_ToolCircularArc::WriteOwnParams
   IW.Send(ent->EndPoint().Y());
 }
 
-void  IGESGeom_ToolCircularArc::OwnShared
-  (const Handle(IGESGeom_CircularArc)& /* ent */, Interface_EntityIterator& /* iter */) const
-{
-}
-
-void IGESGeom_ToolCircularArc::OwnCopy 
-  (const Handle(IGESGeom_CircularArc)& another,
-   const Handle(IGESGeom_CircularArc)& ent, Interface_CopyTool& /* TC */) const
-{
-  ent->Init(another->ZPlane(), another->Center().XY(),
-           another->StartPoint().XY(), another->EndPoint().XY());
-}
-
 
 IGESData_DirChecker IGESGeom_ToolCircularArc::DirChecker
   (const Handle(IGESGeom_CircularArc)& /* ent */ )  const
@@ -117,28 +100,6 @@ IGESData_DirChecker IGESGeom_ToolCircularArc::DirChecker
   return DC;
 }
 
-void IGESGeom_ToolCircularArc::OwnCheck
-  (const Handle(IGESGeom_CircularArc)& /*ent*/,
-   const Interface_ShareTool& , Handle(Interface_Check)& /*ach*/)  const
-{
-/*
-  //Standard_Real eps  = 1.E-04;    // Tolerance des tests ?? //szv#4:S4163:12Mar99 not needed
-
-  Standard_Real Rad1 = Sqrt(Square(ent->StartPoint().X() - ent->Center().X()) +
-                           Square(ent->StartPoint().Y() - ent->Center().Y()));
-  Standard_Real Rad2 = Sqrt(Square(ent->EndPoint().X()   - ent->Center().X()) +
-                           Square(ent->EndPoint().Y()   - ent->Center().Y()));
-
-  Standard_Real ratio = Abs(Rad1 - Rad2) / (Rad1+Rad2);
-  if (ratio > eps) {
-    char mess[80];
-    Sprintf(mess,"Radius at Start & End Points, relative gap over %f",
-           Interface_MSG::Intervalled (ratio));
-    ach.AddFail(mess,"Radius at Start & End Points, relative gap over %f");
-  }
-*/
-}
-
 void IGESGeom_ToolCircularArc::OwnDump
   (const Handle(IGESGeom_CircularArc)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer level)  const
index f0676fef0e2ef1818be67474e5cb45948ffa67d8..0f8a3ab0d1a1d2495a2a508b5dfb80288919644b 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESGeom_ToolCircularArc 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolCircularArc, ready to work
-  Standard_EXPORT IGESGeom_ToolCircularArc();
+  IGESGeom_ToolCircularArc() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESGeom_CircularArc)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a CircularArc <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESGeom_CircularArc)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESGeom_CircularArc)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESGeom_CircularArc)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESGeom_CircularArc)& entfrom, const Handle(IGESGeom_CircularArc)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESGeom_CircularArc)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESGeom_ToolCircularArc_HeaderFile
index 09960fc30fe4536d6f19e5b22ae2b2152e615318..edf84f5c242c545ebb62a991c89814230e6c2008 100644 (file)
@@ -28,7 +28,6 @@
 #include <IGESGeom_CompositeCurve.hxx>
 #include <IGESGeom_ToolCompositeCurve.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -36,9 +35,6 @@
 #include <Message_Msg.hxx>
 #include <Standard_DomainError.hxx>
 
-// MGE 28/07/98
-IGESGeom_ToolCompositeCurve::IGESGeom_ToolCompositeCurve ()    {  }
-
 
 void  IGESGeom_ToolCompositeCurve::ReadOwnParams
   (const Handle(IGESGeom_CompositeCurve)& ent,
@@ -85,22 +81,6 @@ void  IGESGeom_ToolCompositeCurve::OwnShared
     iter.GetOneItem(ent->Curve(i));
 }
 
-void  IGESGeom_ToolCompositeCurve::OwnCopy
-  (const Handle(IGESGeom_CompositeCurve)& another,
-   const Handle(IGESGeom_CompositeCurve)& ent, Interface_CopyTool& TC) const
-{
-  Standard_Integer i, num = another->NbCurves();
-  Handle(IGESData_HArray1OfIGESEntity) tempEntities =
-    new IGESData_HArray1OfIGESEntity(1, num);
-  for ( i = 1; i <= num; i++ )
-    {
-      DeclareAndCast(IGESData_IGESEntity, new_ent,
-                    TC.Transferred(another->Curve(i)));
-      tempEntities->SetValue(i, new_ent);
-    }
-  ent->Init(tempEntities);
-}
-
 IGESData_DirChecker  IGESGeom_ToolCompositeCurve::DirChecker
   (const Handle(IGESGeom_CompositeCurve)& /* ent */ )  const
 {
@@ -113,12 +93,6 @@ IGESData_DirChecker  IGESGeom_ToolCompositeCurve::DirChecker
   return DC;
 }
 
-void  IGESGeom_ToolCompositeCurve::OwnCheck
-  (const Handle(IGESGeom_CompositeCurve)& /* ent */,
-   const Interface_ShareTool& , Handle(Interface_Check)& /* ach */)  const
-{
-}
-
 void  IGESGeom_ToolCompositeCurve::OwnDump
   (const Handle(IGESGeom_CompositeCurve)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level)  const
index 501bc232f0177edd9c63f10e3ad50178c352a4a7..fa620a390d5afc391b10ab0bee6d2000bceb914d 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESGeom_ToolCompositeCurve 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolCompositeCurve, ready to work
-  Standard_EXPORT IGESGeom_ToolCompositeCurve();
+  IGESGeom_ToolCompositeCurve() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -62,36 +60,8 @@ public:
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESGeom_CompositeCurve)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESGeom_CompositeCurve)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESGeom_CompositeCurve)& entfrom, const Handle(IGESGeom_CompositeCurve)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESGeom_CompositeCurve)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESGeom_ToolCompositeCurve_HeaderFile
index 150ef66e637dc1728424e83d2e21f613e8bbbbed..7a8e12d71aa2a8ea3c356795ab40b78420275f0e 100644 (file)
@@ -29,7 +29,6 @@
 #include <IGESGeom_ConicArc.hxx>
 #include <IGESGeom_ToolConicArc.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_MSG.hxx>
 #include <Standard_DomainError.hxx>
 
 #include <stdio.h>
-// MGE 28/07/98
-//=======================================================================
-//function : IGESGeom_ToolConicArc
-//purpose  : 
-//=======================================================================
-IGESGeom_ToolConicArc::IGESGeom_ToolConicArc ()
-{
-}
-
 
 //=======================================================================
 //function : ReadOwnParams
@@ -130,33 +120,6 @@ void IGESGeom_ToolConicArc::WriteOwnParams(const Handle(IGESGeom_ConicArc)& ent,
 }
 
 
-//=======================================================================
-//function : OwnShared
-//purpose  : 
-//=======================================================================
-
-void IGESGeom_ToolConicArc::OwnShared(const Handle(IGESGeom_ConicArc)& /* ent */,
-                                      Interface_EntityIterator& /* iter */) const
-{
-}
-
-
-//=======================================================================
-//function : OwnCopy
-//purpose  : 
-//=======================================================================
-
-void IGESGeom_ToolConicArc::OwnCopy(const Handle(IGESGeom_ConicArc)& another,
-                                    const Handle(IGESGeom_ConicArc)& ent,
-                                    Interface_CopyTool& /* TC */) const
-{
-  Standard_Real A,B,C,D,E,F;
-  another->Equation(A,B,C,D,E,F);
-  ent->Init(A, B, C, D, E, F, another->ZPlane(),
-           another->StartPoint().XY(), another->EndPoint().XY());
-}
-
-
 //=======================================================================
 //function : OwnCorrect
 //purpose  : 
index df65fa70b735c89c0ab57885cf688b6c837bd125..3ed8de5880051864494b0efecfce1d3d7f487b26 100644 (file)
@@ -32,7 +32,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -41,13 +40,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESGeom_ToolConicArc 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolConicArc, ready to work
-  Standard_EXPORT IGESGeom_ToolConicArc();
+  IGESGeom_ToolConicArc() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -56,10 +54,6 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESGeom_ConicArc)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a ConicArc <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESGeom_ConicArc)& ent, Interface_EntityIterator& iter) const;
-  
   //! Sets automatic unambiguous Correction on a ConicArc
   //! (FormNumber recomputed according case Ellips-Parab-Hyperb)
   Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESGeom_ConicArc)& ent) const;
@@ -70,33 +64,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESGeom_ConicArc)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESGeom_ConicArc)& entfrom, const Handle(IGESGeom_ConicArc)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESGeom_ConicArc)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESGeom_ToolConicArc_HeaderFile
index d1428976ecb0de74935dcbba2d9ebdbf5a07ddac..0005aa84389aad7e4bc858b56aa1c9a436175453 100644 (file)
@@ -27,7 +27,6 @@
 #include <IGESGeom_CopiousData.hxx>
 #include <IGESGeom_ToolCopiousData.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Standard_DomainError.hxx>
 #include <TColStd_HArray1OfReal.hxx>
 
-// MGE 28/07/98
-//=======================================================================
-//function : IGESGeom_ToolCopiousData
-//purpose  : 
-//=======================================================================
-IGESGeom_ToolCopiousData::IGESGeom_ToolCopiousData ()
-{
-}
-
 
 //=======================================================================
 //function : ReadOwnParams
@@ -132,69 +122,6 @@ void IGESGeom_ToolCopiousData::WriteOwnParams(const Handle(IGESGeom_CopiousData)
 }
 
 
-//=======================================================================
-//function : OwnShared
-//purpose  : 
-//=======================================================================
-
-void IGESGeom_ToolCopiousData::OwnShared(const Handle(IGESGeom_CopiousData)& /* ent */,
-                                         Interface_EntityIterator& /* iter */) const
-{
-}
-
-
-//=======================================================================
-//function : OwnCopy
-//purpose  : 
-//=======================================================================
-
-void IGESGeom_ToolCopiousData::OwnCopy(const Handle(IGESGeom_CopiousData)& another,
-                                       const Handle(IGESGeom_CopiousData)& ent,
-                                       Interface_CopyTool& /* TC */) const
-{
-  Standard_Integer upper;
-  Standard_Real    aZPlane   = 0;
-  Standard_Integer nbTuples  = another->NbPoints();
-  Standard_Integer aDataType = another->DataType();
-  Handle(TColStd_HArray1OfReal) allData;
-
-  if      (aDataType == 1)    upper = 2*nbTuples;
-  else if (aDataType == 2)    upper = 3*nbTuples;
-  else                        upper = 6*nbTuples;
-
-  allData = new TColStd_HArray1OfReal(1, upper);
-
-  if (aDataType == 1)    aZPlane = another->ZPlane();
-
-  for (Standard_Integer I = 1; I <= nbTuples; I++)  {
-
-    switch (aDataType) {
-    case 1:
-      allData->SetValue(2*I-1, another->Data(I,1));
-      allData->SetValue(2*I  , another->Data(I,2));
-      break;
-    case 2:
-      allData->SetValue(3*I-2, another->Data(I,1));
-      allData->SetValue(3*I-1, another->Data(I,2));
-      allData->SetValue(3*I  , another->Data(I,3));
-      break;
-    case 3:
-      allData->SetValue(6*I-5, another->Data(I,1));
-      allData->SetValue(6*I-4, another->Data(I,2));
-      allData->SetValue(6*I-3, another->Data(I,3));
-      allData->SetValue(6*I-2, another->Data(I,4));
-      allData->SetValue(6*I-1, another->Data(I,5));
-      allData->SetValue(6*I  , another->Data(I,6));
-      break;
-    }
-  }
-
-  ent->Init(aDataType, aZPlane, allData);
-  if (another->IsClosedPath2D()) ent->SetClosedPath2D();
-  else  ent->SetPolyline (another->IsPolyline());
-}
-
-
 //=======================================================================
 //function : DirChecker
 //purpose  : 
index f0b66165e8af7c5827d754e6a51cf520534a843e..095c88e5b99fd7d70dc83fa666f2b0bfd2f775bc 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESGeom_ToolCopiousData 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolCopiousData, ready to work
-  Standard_EXPORT IGESGeom_ToolCopiousData();
+  IGESGeom_ToolCopiousData() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,14 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESGeom_CopiousData)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a CopiousData <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESGeom_CopiousData)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESGeom_CopiousData)& ent) const;
   
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESGeom_CopiousData)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESGeom_CopiousData)& entfrom, const Handle(IGESGeom_CopiousData)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESGeom_CopiousData)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESGeom_ToolCopiousData_HeaderFile
index 1c48a9ede190cd42a204ea2ab33dadb25dd22fb3..456d89333fc4c0bede9690d68e260e25a7125962 100644 (file)
@@ -27,7 +27,6 @@
 #include <IGESGeom_CurveOnSurface.hxx>
 #include <IGESGeom_ToolCurveOnSurface.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Msg.hxx>
 #include <Standard_DomainError.hxx>
 
-// MGE 30/07/98
-//=======================================================================
-//function : IGESGeom_ToolCurveOnSurface
-//purpose  : 
-//=======================================================================
-IGESGeom_ToolCurveOnSurface::IGESGeom_ToolCurveOnSurface ()
-{
-}
-
 
 //=======================================================================
 //function : ReadOwnParams
@@ -168,26 +158,6 @@ void IGESGeom_ToolCurveOnSurface::OwnShared(const Handle(IGESGeom_CurveOnSurface
 }
 
 
-//=======================================================================
-//function : OwnCopy
-//purpose  : 
-//=======================================================================
-
-void IGESGeom_ToolCurveOnSurface::OwnCopy(const Handle(IGESGeom_CurveOnSurface)& another,
-                                          const Handle(IGESGeom_CurveOnSurface)& ent,
-                                          Interface_CopyTool& TC) const
-{
-  DeclareAndCast(IGESData_IGESEntity, aSurface, TC.Transferred(another->Surface()));
-  DeclareAndCast(IGESData_IGESEntity, aCurveUV, TC.Transferred(another->CurveUV()));
-  DeclareAndCast(IGESData_IGESEntity, aCurve3D, TC.Transferred(another->Curve3D()));
-
-  Standard_Integer aMode = another->CreationMode();
-  Standard_Integer aPreference = another->PreferenceMode();
-
-  ent->Init(aMode, aSurface, aCurveUV, aCurve3D, aPreference);
-}
-
-
 //=======================================================================
 //function : OwnCorrect
 //purpose  : 
index db69a033e3c8303ff959e96653838f2ed7edf5f7..05a52033d8be86eb9884a42d11805f6fba54d773 100644 (file)
@@ -32,7 +32,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -41,13 +40,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESGeom_ToolCurveOnSurface 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolCurveOnSurface, ready to work
-  Standard_EXPORT IGESGeom_ToolCurveOnSurface();
+  IGESGeom_ToolCurveOnSurface() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -70,33 +68,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESGeom_CurveOnSurface)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESGeom_CurveOnSurface)& entfrom, const Handle(IGESGeom_CurveOnSurface)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESGeom_CurveOnSurface)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESGeom_ToolCurveOnSurface_HeaderFile
index de6365f1e834bf4d5d62ef6e601202e57db854f0..6be8171440e07f6576c96c586aff584558abb80b 100644 (file)
 #include <IGESGeom_Direction.hxx>
 #include <IGESGeom_ToolDirection.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESGeom_ToolDirection::IGESGeom_ToolDirection ()    {  }
-
 
 void IGESGeom_ToolDirection::ReadOwnParams
   (const Handle(IGESGeom_Direction)& ent,
@@ -77,18 +74,6 @@ void IGESGeom_ToolDirection::WriteOwnParams
   IW.Send(ent->Value().Z());
 }
 
-void  IGESGeom_ToolDirection::OwnShared
-  (const Handle(IGESGeom_Direction)& /* ent */, Interface_EntityIterator& /* iter */) const
-{
-}
-
-void IGESGeom_ToolDirection::OwnCopy
-  (const Handle(IGESGeom_Direction)& another,
-   const Handle(IGESGeom_Direction)& ent, Interface_CopyTool& /* TC */) const
-{
-  ent->Init(another->Value().XYZ());
-}
-
 IGESData_DirChecker IGESGeom_ToolDirection::DirChecker
   (const Handle(IGESGeom_Direction)& /* ent */ )  const
 {
index 50ab570ed9ac0be6f5f9118c2a9225dbec1c9716..d67348e99ab02e908a03adc36ab9534b1ff80787 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESGeom_ToolDirection 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolDirection, ready to work
-  Standard_EXPORT IGESGeom_ToolDirection();
+  IGESGeom_ToolDirection() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,14 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESGeom_Direction)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a Direction <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESGeom_Direction)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESGeom_Direction)& ent) const;
   
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESGeom_Direction)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESGeom_Direction)& entfrom, const Handle(IGESGeom_Direction)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESGeom_Direction)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESGeom_ToolDirection_HeaderFile
index 5a0a990404deceef6ed5a970b1d0ee486925ff5a..172e93fc7808ae3d3e3267948c096f2817159469 100644 (file)
 #include <IGESGeom_Flash.hxx>
 #include <IGESGeom_ToolFlash.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESGeom_ToolFlash::IGESGeom_ToolFlash ()    {  }
-
 
 void IGESGeom_ToolFlash::ReadOwnParams
   (const Handle(IGESGeom_Flash)& ent,
@@ -100,21 +97,6 @@ void  IGESGeom_ToolFlash::OwnShared
   iter.GetOneItem( ent->ReferenceEntity() );
 }
 
-void IGESGeom_ToolFlash::OwnCopy
-  (const Handle(IGESGeom_Flash)& another,
-   const Handle(IGESGeom_Flash)& ent, Interface_CopyTool& TC) const
-{
-  gp_XY aPoint = (another->ReferencePoint()).XY();
-  Standard_Real aDim1 = another->Dimension1();
-  Standard_Real aDim2 = another->Dimension2();
-  Standard_Real aRotation = another->Rotation();
-
-  DeclareAndCast(IGESData_IGESEntity, aReference,
-                TC.Transferred(another->ReferenceEntity()));
-
-  ent->Init(aPoint, aDim1, aDim2, aRotation, aReference);
-}
-
 Standard_Boolean  IGESGeom_ToolFlash::OwnCorrect
   (const Handle(IGESGeom_Flash)& ent) const
 {
index a73f8f8ebb4fe9dd1597caa7151ed323799670ae..c8bf6a8954310e9a6d25745db2b7bdc4bef6dc16 100644 (file)
@@ -32,7 +32,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -41,13 +40,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESGeom_ToolFlash 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolFlash, ready to work
-  Standard_EXPORT IGESGeom_ToolFlash();
+  IGESGeom_ToolFlash() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -70,33 +68,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESGeom_Flash)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESGeom_Flash)& entfrom, const Handle(IGESGeom_Flash)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESGeom_Flash)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESGeom_ToolFlash_HeaderFile
index f70e5ca35aabd8dffed9ed0d5d5f22fb0be12b4b..f3faa1c46d7dbc41f755cb44f15533a1528d583c 100644 (file)
@@ -28,7 +28,6 @@
 #include <IGESGeom_Line.hxx>
 #include <IGESGeom_ToolLine.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -36,9 +35,6 @@
 #include <Message_Msg.hxx>
 #include <Standard_DomainError.hxx>
 
-// MGE 29/07/98
-IGESGeom_ToolLine::IGESGeom_ToolLine ()    {  }
-
 
 void IGESGeom_ToolLine::ReadOwnParams
   (const Handle(IGESGeom_Line)& ent,
@@ -76,18 +72,6 @@ void IGESGeom_ToolLine::WriteOwnParams
   IW.Send(ent->EndPoint().Z());
 }
 
-void  IGESGeom_ToolLine::OwnShared
-  (const Handle(IGESGeom_Line)& /* ent */, Interface_EntityIterator& /* iter */) const
-{
-}
-
-void IGESGeom_ToolLine::OwnCopy 
-  (const Handle(IGESGeom_Line)& another,
-   const Handle(IGESGeom_Line)& ent, Interface_CopyTool& /* TC */) const
-{
-  ent->Init(another->StartPoint().XYZ(), another->EndPoint().XYZ());
-}
-
 IGESData_DirChecker IGESGeom_ToolLine::DirChecker
   (const Handle(IGESGeom_Line)& /* ent */ )  const
 {
@@ -100,12 +84,6 @@ IGESData_DirChecker IGESGeom_ToolLine::DirChecker
   return DC;
 }
 
-void IGESGeom_ToolLine::OwnCheck
-  (const Handle(IGESGeom_Line)& /* ent */,
-   const Interface_ShareTool& , Handle(Interface_Check)& /* ach */)  const
-{ 
-}
-
 void IGESGeom_ToolLine::OwnDump
   (const Handle(IGESGeom_Line)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer level)  const
index 180764b020b15e76119020aed677f7ed1b030eda..0ce72e2ef2ddaf27905ca798a928a9324065563d 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESGeom_ToolLine 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolLine, ready to work
-  Standard_EXPORT IGESGeom_ToolLine();
+  IGESGeom_ToolLine() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESGeom_Line)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a Line <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESGeom_Line)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESGeom_Line)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESGeom_Line)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESGeom_Line)& entfrom, const Handle(IGESGeom_Line)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESGeom_Line)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESGeom_ToolLine_HeaderFile
index 6b5c4ecf7bdbb4c588cff0594a6351d2b2fa8cf0..7ff234b7b1d32cea82b4b3b36053a702c4c73cb1 100644 (file)
@@ -32,7 +32,6 @@
 #include <IGESGeom_OffsetCurve.hxx>
 #include <IGESGeom_ToolOffsetCurve.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Msg.hxx>
 #include <Standard_DomainError.hxx>
 
-// MGE 30/07/98
-//=======================================================================
-//function : IGESGeom_ToolOffsetCurve
-//purpose  : 
-//=======================================================================
-IGESGeom_ToolOffsetCurve::IGESGeom_ToolOffsetCurve ()
-{
-}
-
 
 //=======================================================================
 //function : ReadOwnParams
@@ -235,40 +225,6 @@ void IGESGeom_ToolOffsetCurve::OwnShared(const Handle(IGESGeom_OffsetCurve)& ent
 }
 
 
-//=======================================================================
-//function : OwnCopy
-//purpose  : 
-//=======================================================================
-
-void IGESGeom_ToolOffsetCurve::OwnCopy(const Handle(IGESGeom_OffsetCurve)& another,
-                                       const Handle(IGESGeom_OffsetCurve)& ent,
-                                       Interface_CopyTool& TC) const
-{
-  Standard_Integer anOffsetType, aFunctionCoord, aTaperedOffsetType; 
-  Standard_Real offDistance1, offDistance2;
-  Standard_Real arcLength1, arcLength2, anOffsetParam1, anOffsetParam2;
-
-  DeclareAndCast(IGESData_IGESEntity, aBaseCurve,
-                TC.Transferred(another->BaseCurve()));
-  anOffsetType   = another->OffsetType();
-  DeclareAndCast(IGESData_IGESEntity, aFunction,
-                TC.Transferred(another->Function()));
-  aFunctionCoord = another->FunctionParameter();
-  aTaperedOffsetType = another->TaperedOffsetType();
-  offDistance1   = another->FirstOffsetDistance();
-  arcLength1     = another->ArcLength1();
-  offDistance2   = another->SecondOffsetDistance();
-  arcLength2     = another->ArcLength2();
-  gp_XYZ aNormalVec = (another->NormalVector()).XYZ();
-  anOffsetParam1 = another->StartParameter();
-  anOffsetParam2 = another->EndParameter();
-
-  ent->Init(aBaseCurve, anOffsetType, aFunction, aFunctionCoord,
-           aTaperedOffsetType, offDistance1, arcLength1, offDistance2,
-           arcLength2, aNormalVec, anOffsetParam1, anOffsetParam2);
-}
-
-
 //=======================================================================
 //function : OwnCorrect
 //purpose  : 
index 75dc1d814803eae8aab6f76349a91dfa765f9665..e12aa1e299cc98fa0e531e5d28bda0502dc26736 100644 (file)
@@ -32,7 +32,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -41,13 +40,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESGeom_ToolOffsetCurve 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolOffsetCurve, ready to work
-  Standard_EXPORT IGESGeom_ToolOffsetCurve();
+  IGESGeom_ToolOffsetCurve() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -70,33 +68,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESGeom_OffsetCurve)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESGeom_OffsetCurve)& entfrom, const Handle(IGESGeom_OffsetCurve)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESGeom_OffsetCurve)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESGeom_ToolOffsetCurve_HeaderFile
index 6a240ae65d521188af978e0d923dfd1f029d7e9e..d047e1b87fa7223cae956da02aef8551bb883249 100644 (file)
@@ -30,7 +30,6 @@
 #include <IGESGeom_OffsetSurface.hxx>
 #include <IGESGeom_ToolOffsetSurface.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -38,9 +37,6 @@
 #include <Message_Msg.hxx>
 #include <Standard_DomainError.hxx>
 
-// MGE 31/07/98
-IGESGeom_ToolOffsetSurface::IGESGeom_ToolOffsetSurface ()    {  }
-
 
 void IGESGeom_ToolOffsetSurface::ReadOwnParams
   (const Handle(IGESGeom_OffsetSurface)& ent,
@@ -114,18 +110,6 @@ void  IGESGeom_ToolOffsetSurface::OwnShared
   iter.GetOneItem( ent->Surface() );
 }
 
-void IGESGeom_ToolOffsetSurface::OwnCopy
-  (const Handle(IGESGeom_OffsetSurface)& another,
-   const Handle(IGESGeom_OffsetSurface)& ent, Interface_CopyTool& TC) const
-{
-  DeclareAndCast(IGESData_IGESEntity, aSurface, TC.Transferred(another->Surface()) );
-
-  gp_XYZ anIndicator = (another->OffsetIndicator()).XYZ();
-  Standard_Real aDistance = another->Distance();
-
-  ent->Init(anIndicator, aDistance, aSurface);
-}
-
 
 IGESData_DirChecker IGESGeom_ToolOffsetSurface::DirChecker
   (const Handle(IGESGeom_OffsetSurface)& /* ent */ )   const
@@ -139,12 +123,6 @@ IGESData_DirChecker IGESGeom_ToolOffsetSurface::DirChecker
   return DC;
 }
 
-void IGESGeom_ToolOffsetSurface::OwnCheck
-  (const Handle(IGESGeom_OffsetSurface)& /* ent */,
-   const Interface_ShareTool& , Handle(Interface_Check)& /* ach */)  const
-{
-}
-
 void IGESGeom_ToolOffsetSurface::OwnDump
   (const Handle(IGESGeom_OffsetSurface)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level)  const
index 5aeda5da3d75153a122e327e8b296edde18f8853..08e86e616bc4fafe70c6ef50dbde48419209b2c6 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESGeom_ToolOffsetSurface 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolOffsetSurface, ready to work
-  Standard_EXPORT IGESGeom_ToolOffsetSurface();
+  IGESGeom_ToolOffsetSurface() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -62,36 +60,8 @@ public:
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESGeom_OffsetSurface)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESGeom_OffsetSurface)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESGeom_OffsetSurface)& entfrom, const Handle(IGESGeom_OffsetSurface)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESGeom_OffsetSurface)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESGeom_ToolOffsetSurface_HeaderFile
index 4ae7ef7df8aa2aac9a16756ebd9bf0b9e2386d9c..41f4b490a9ff240141cf15621dc9f23a1c1e5e93 100644 (file)
@@ -30,7 +30,6 @@
 #include <IGESGeom_Plane.hxx>
 #include <IGESGeom_ToolPlane.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_MSG.hxx>
 #include <Standard_DomainError.hxx>
 
 #include <stdio.h>
-// MGE 30/07/98
-//=======================================================================
-//function : IGESGeom_ToolPlane
-//purpose  : 
-//=======================================================================
-IGESGeom_ToolPlane::IGESGeom_ToolPlane ()
-{
-}
-
 
 //=======================================================================
 //function : ReadOwnParams
@@ -163,26 +153,6 @@ void IGESGeom_ToolPlane::OwnShared(const Handle(IGESGeom_Plane)& ent,
 }
 
 
-//=======================================================================
-//function : OwnCopy
-//purpose  : 
-//=======================================================================
-
-void IGESGeom_ToolPlane::OwnCopy(const Handle(IGESGeom_Plane)& another,
-                                 const Handle(IGESGeom_Plane)& ent,
-                                 Interface_CopyTool& TC) const
-{
-  Standard_Real A, B, C, D;
-  another->Equation(A, B, C, D);
-  gp_XYZ attach = (another->SymbolAttach()).XYZ();
-  Standard_Real aSize = another->SymbolSize();
-  DeclareAndCast(IGESData_IGESEntity,aCurve,
-                TC.Transferred(another->BoundingCurve()));
-  ent->Init(A, B, C, D, aCurve, attach, aSize);
-  ent->SetFormNumber(another->FormNumber());
-}
-
-
 //=======================================================================
 //function : DirChecker
 //purpose  : 
index 2d693b73e6da82f027c189bf76bb17861a73fc96..d6ae7f1d7040a870962cbe7b45f82cf340bb52f5 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESGeom_ToolPlane 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolPlane, ready to work
-  Standard_EXPORT IGESGeom_ToolPlane();
+  IGESGeom_ToolPlane() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -65,33 +63,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESGeom_Plane)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESGeom_Plane)& entfrom, const Handle(IGESGeom_Plane)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESGeom_Plane)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESGeom_ToolPlane_HeaderFile
index bc134d875f78ce4b41ee533aaefbb880bac37748..3633166704769dffe2c24776ce84a2a8ea10d11b 100644 (file)
@@ -30,7 +30,6 @@
 #include <IGESGeom_Point.hxx>
 #include <IGESGeom_ToolPoint.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -38,9 +37,6 @@
 #include <Message_Msg.hxx>
 #include <Standard_DomainError.hxx>
 
-// MGE 28/07/98
-IGESGeom_ToolPoint::IGESGeom_ToolPoint ()    {  }
-
 
 void IGESGeom_ToolPoint::ReadOwnParams
   (const Handle(IGESGeom_Point)& ent,
@@ -108,17 +104,6 @@ void  IGESGeom_ToolPoint::OwnShared
   iter.GetOneItem(ent->DisplaySymbol());
 }
 
-void IGESGeom_ToolPoint::OwnCopy
-  (const Handle(IGESGeom_Point)& another,
-   const Handle(IGESGeom_Point)& ent, Interface_CopyTool& TC) const
-{
-  gp_XYZ aPoint = (another->Value()).XYZ();
-
-  DeclareAndCast(IGESBasic_SubfigureDef, aSymbol, 
-                 TC.Transferred(another->DisplaySymbol()));
-  ent->Init(aPoint, aSymbol);
-}
-
 
 IGESData_DirChecker IGESGeom_ToolPoint::DirChecker
   (const Handle(IGESGeom_Point)& ent )   const
@@ -134,12 +119,6 @@ IGESData_DirChecker IGESGeom_ToolPoint::DirChecker
   return DC;
 }
 
-void IGESGeom_ToolPoint::OwnCheck
-  (const Handle(IGESGeom_Point)& /* ent */,
-   const Interface_ShareTool& , Handle(Interface_Check)& /* ach */)  const
-{
-}
-
 void IGESGeom_ToolPoint::OwnDump
   (const Handle(IGESGeom_Point)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level)  const
index 5eb5a28fec16e0ad5dc2b9706f24edf9863933c8..8c5c55ac1a32057c895137d005c812a8b7b7af05 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESGeom_ToolPoint 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolPoint, ready to work
-  Standard_EXPORT IGESGeom_ToolPoint();
+  IGESGeom_ToolPoint() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -62,36 +60,8 @@ public:
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESGeom_Point)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESGeom_Point)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESGeom_Point)& entfrom, const Handle(IGESGeom_Point)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESGeom_Point)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESGeom_ToolPoint_HeaderFile
index b6275764cb13f2722d8919b6ce0682a1fa6887dd..bd4613acf2e2221865e46cc2775bb2c4e9c59586 100644 (file)
@@ -27,7 +27,6 @@
 #include <IGESGeom_RuledSurface.hxx>
 #include <IGESGeom_ToolRuledSurface.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -35,9 +34,6 @@
 #include <Message_Msg.hxx>
 #include <Standard_DomainError.hxx>
 
-// MGE 31/07/98
-IGESGeom_ToolRuledSurface::IGESGeom_ToolRuledSurface ()    {  }
-
 
 void IGESGeom_ToolRuledSurface::ReadOwnParams
   (const Handle(IGESGeom_RuledSurface)& ent,
@@ -118,20 +114,6 @@ void  IGESGeom_ToolRuledSurface::OwnShared
   iter.GetOneItem(ent->SecondCurve());
 }
 
-void IGESGeom_ToolRuledSurface::OwnCopy
-  (const Handle(IGESGeom_RuledSurface)& another,
-   const Handle(IGESGeom_RuledSurface)& ent, Interface_CopyTool& TC) const
-{
-  DeclareAndCast(IGESData_IGESEntity, aCurve,
-                TC.Transferred(another->FirstCurve()));
-  DeclareAndCast(IGESData_IGESEntity, anotherCurve,
-                TC.Transferred(another->SecondCurve()));
-  Standard_Integer aDirFlag = another->DirectionFlag();
-  Standard_Integer aDevFlag = (another->IsDevelopable() ? 1 : 0);
-
-  ent->Init(aCurve, anotherCurve, aDirFlag, aDevFlag);
-}
-
 IGESData_DirChecker IGESGeom_ToolRuledSurface::DirChecker
   (const Handle(IGESGeom_RuledSurface)& /*ent*/ )   const
 {
@@ -145,12 +127,6 @@ IGESData_DirChecker IGESGeom_ToolRuledSurface::DirChecker
   return DC;
 }
 
-void IGESGeom_ToolRuledSurface::OwnCheck
-  (const Handle(IGESGeom_RuledSurface)& /*ent*/,
-   const Interface_ShareTool& , Handle(Interface_Check)& /*ach*/)  const
-{
-}
-
 void IGESGeom_ToolRuledSurface::OwnDump
   (const Handle(IGESGeom_RuledSurface)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level)  const
index d14c69f3392c9639ecd659a51cd00d51ee323b27..cd21f84db0305f51d7c180bb9b2b558c16b1d780 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESGeom_ToolRuledSurface 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolRuledSurface, ready to work
-  Standard_EXPORT IGESGeom_ToolRuledSurface();
+  IGESGeom_ToolRuledSurface() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -62,36 +60,8 @@ public:
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESGeom_RuledSurface)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESGeom_RuledSurface)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESGeom_RuledSurface)& entfrom, const Handle(IGESGeom_RuledSurface)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESGeom_RuledSurface)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESGeom_ToolRuledSurface_HeaderFile
index 87984d39e3cb5bde926b13502f6b963583686c4e..66fe80084097d35c950b6734031a343e51a67453 100644 (file)
@@ -26,7 +26,6 @@
 #include <IGESGeom_SplineCurve.hxx>
 #include <IGESGeom_ToolSplineCurve.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -37,9 +36,6 @@
 #include <TColStd_HArray2OfReal.hxx>
 
 #include <stdio.h>
-// MGE 29/07/98
-IGESGeom_ToolSplineCurve::IGESGeom_ToolSplineCurve ()    {  }
-
 
 void IGESGeom_ToolSplineCurve::ReadOwnParams
   (const Handle(IGESGeom_SplineCurve)& ent,
@@ -198,85 +194,6 @@ void IGESGeom_ToolSplineCurve::WriteOwnParams
   IW.Send(AZ);  IW.Send(BZ);  IW.Send(CZ);  IW.Send(DZ);
 }
 
-void  IGESGeom_ToolSplineCurve::OwnShared
-  (const Handle(IGESGeom_SplineCurve)& /* ent */, Interface_EntityIterator& /* iter */) const
-{
-}
-
-void IGESGeom_ToolSplineCurve::OwnCopy
-  (const Handle(IGESGeom_SplineCurve)& another,
-   const Handle(IGESGeom_SplineCurve)& ent, Interface_CopyTool& /* TC */) const
-{
-  Standard_Integer I;
-  Standard_Real A, B, C, D;
-  Standard_Integer aType   = another->SplineType();
-  Standard_Integer aDegree = another->Degree();
-  Standard_Integer nbDimensions = another->NbDimensions();
-  Standard_Integer nbSegments   = another->NbSegments();
-
-  Handle(TColStd_HArray1OfReal) allBreakPoints =
-    new TColStd_HArray1OfReal(1, nbSegments+1);
-  for (I = 1; I <= (nbSegments + 1); I++)
-    allBreakPoints->SetValue(I, another->BreakPoint(I));
-
-  Handle(TColStd_HArray2OfReal) allXPolynomials =
-    new TColStd_HArray2OfReal(1, nbSegments, 1, 4);
-  Handle(TColStd_HArray2OfReal) allYPolynomials =
-    new TColStd_HArray2OfReal(1, nbSegments, 1, 4);
-  Handle(TColStd_HArray2OfReal) allZPolynomials =
-    new TColStd_HArray2OfReal(1, nbSegments, 1, 4);
-
-  for (I = 1; I <= nbSegments; I++) {
-    another->XCoordPolynomial(I, A, B, C, D);
-    allXPolynomials->SetValue(I, 1, A);
-    allXPolynomials->SetValue(I, 2, B);
-    allXPolynomials->SetValue(I, 3, C);
-    allXPolynomials->SetValue(I, 4, D);
-
-    another->YCoordPolynomial(I, A, B, C, D);
-    allYPolynomials->SetValue(I, 1, A);
-    allYPolynomials->SetValue(I, 2, B);
-    allYPolynomials->SetValue(I, 3, C);
-    allYPolynomials->SetValue(I, 4, D);
-
-    another->ZCoordPolynomial(I, A, B, C, D);
-    allZPolynomials->SetValue(I, 1, A);
-    allZPolynomials->SetValue(I, 2, B);
-    allZPolynomials->SetValue(I, 3, C);
-    allZPolynomials->SetValue(I, 4, D);
-  }
-
-  Handle(TColStd_HArray1OfReal) allXvalues =
-    new TColStd_HArray1OfReal(1, 4);
-  Handle(TColStd_HArray1OfReal) allYvalues =
-    new TColStd_HArray1OfReal(1, 4);
-  Handle(TColStd_HArray1OfReal) allZvalues =
-    new TColStd_HArray1OfReal(1, 4);
-
-  another->XValues(A, B, C, D);
-  allXvalues->SetValue(1, A);
-  allXvalues->SetValue(2, B);
-  allXvalues->SetValue(3, C);
-  allXvalues->SetValue(4, D);
-
-  another->YValues(A, B, C, D);
-  allYvalues->SetValue(1, A);
-  allYvalues->SetValue(2, B);
-  allYvalues->SetValue(3, C);
-  allYvalues->SetValue(4, D);
-
-  another->ZValues(A, B, C, D);
-  allZvalues->SetValue(1, A);
-  allZvalues->SetValue(2, B);
-  allZvalues->SetValue(3, C);
-  allZvalues->SetValue(4, D);
-
-  ent->Init(aType, aDegree, nbDimensions, allBreakPoints,
-           allXPolynomials, allYPolynomials, allZPolynomials,
-           allXvalues, allYvalues, allZvalues);
-}
-
-
 IGESData_DirChecker IGESGeom_ToolSplineCurve::DirChecker
   (const Handle(IGESGeom_SplineCurve)& /* ent */ )   const
 {
index 9af88ed04e9e859585b59198e98dff123b0bef12..b56c493f231fdc62923550ca9413f2e4993c7192 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESGeom_ToolSplineCurve 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolSplineCurve, ready to work
-  Standard_EXPORT IGESGeom_ToolSplineCurve();
+  IGESGeom_ToolSplineCurve() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,14 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESGeom_SplineCurve)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a SplineCurve <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESGeom_SplineCurve)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESGeom_SplineCurve)& ent) const;
   
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESGeom_SplineCurve)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESGeom_SplineCurve)& entfrom, const Handle(IGESGeom_SplineCurve)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESGeom_SplineCurve)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESGeom_ToolSplineCurve_HeaderFile
index 38f183aceb60dac85685e31d1094ced372579308..eb6a7836782f04689e1b8b030f01cd8d7a0d3f7e 100644 (file)
@@ -27,7 +27,6 @@
 #include <IGESGeom_SplineSurface.hxx>
 #include <IGESGeom_ToolSplineSurface.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -36,9 +35,6 @@
 #include <Standard_DomainError.hxx>
 #include <TColStd_HArray1OfReal.hxx>
 
-// MGE 30/07/98
-IGESGeom_ToolSplineSurface::IGESGeom_ToolSplineSurface ()    {  }
-
 
 void IGESGeom_ToolSplineSurface::ReadOwnParams
   (const Handle(IGESGeom_SplineSurface)& ent,
@@ -219,63 +215,6 @@ void IGESGeom_ToolSplineSurface::WriteOwnParams
     IW.Send( 0.0);  //Send Arbitrary Values
 }
 
-void  IGESGeom_ToolSplineSurface::OwnShared
-  (const Handle(IGESGeom_SplineSurface)& /* ent */, Interface_EntityIterator& /* iter */) const
-{
-}
-
-void IGESGeom_ToolSplineSurface::OwnCopy
-  (const Handle(IGESGeom_SplineSurface)& another,
-   const Handle(IGESGeom_SplineSurface)& ent, Interface_CopyTool& /* TC */) const
-{
-
-  Standard_Integer aBoundaryType, aPatchType, allNbUSegments, allNbVSegments;
-  Standard_Integer I, J;
-
-  aBoundaryType = another->BoundaryType();
-  aPatchType = another->PatchType();
-  allNbUSegments = another->NbUSegments();
-  allNbVSegments = another->NbVSegments();
-
-  Handle(TColStd_HArray1OfReal) allUBreakPoints =
-    new TColStd_HArray1OfReal(1, allNbUSegments+1);
-
-  Handle(TColStd_HArray1OfReal) allVBreakPoints =
-    new TColStd_HArray1OfReal(1, allNbVSegments+1);
-
-  for ( I =1; I <= allNbUSegments+1; I++)
-    allUBreakPoints->SetValue(I, another->UBreakPoint(I));
-
-  for ( I =1; I <= allNbVSegments+1; I++)
-    allVBreakPoints->SetValue(I, another->VBreakPoint(I));
-
-  Handle(IGESBasic_HArray2OfHArray1OfReal) allXCoeffs = new 
-    IGESBasic_HArray2OfHArray1OfReal(1,allNbUSegments,1,allNbVSegments);
-
-  Handle(IGESBasic_HArray2OfHArray1OfReal) allYCoeffs = new 
-    IGESBasic_HArray2OfHArray1OfReal(1,allNbUSegments,1,allNbVSegments);
-
-  Handle(IGESBasic_HArray2OfHArray1OfReal) allZCoeffs = new 
-    IGESBasic_HArray2OfHArray1OfReal(1,allNbUSegments,1,allNbVSegments);
-
-  Handle(TColStd_HArray1OfReal) temp =
-    new TColStd_HArray1OfReal(1, 16);
-
-  for (I =1; I <= allNbUSegments; I++) 
-    for (J = 1; J <= allNbVSegments; J++)
-      {
-       temp = another->XPolynomial(I, J);
-       allXCoeffs->SetValue(I,J,temp);
-       temp = another->YPolynomial(I,J);
-       allYCoeffs->SetValue(I,J,temp);
-       temp = another->ZPolynomial(I,J);
-       allZCoeffs->SetValue(I,J,temp);
-      }
-
-  ent->Init(aBoundaryType , aPatchType, allUBreakPoints, allVBreakPoints, 
-           allXCoeffs, allYCoeffs, allZCoeffs);
-}   
-
 
 IGESData_DirChecker IGESGeom_ToolSplineSurface::DirChecker
   (const Handle(IGESGeom_SplineSurface)& /* ent */ )  const
index 27e9a68e08bdf7996aba1977e992b2edc6f9fa6d..331b23c3c4ab9179e4b0dc214b4f825f6fca6740 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESGeom_ToolSplineSurface 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolSplineSurface, ready to work
-  Standard_EXPORT IGESGeom_ToolSplineSurface();
+  IGESGeom_ToolSplineSurface() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,14 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESGeom_SplineSurface)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a SplineSurface <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESGeom_SplineSurface)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESGeom_SplineSurface)& ent) const;
   
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESGeom_SplineSurface)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESGeom_SplineSurface)& entfrom, const Handle(IGESGeom_SplineSurface)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESGeom_SplineSurface)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESGeom_ToolSplineSurface_HeaderFile
index bf8227e999f539c8b9772715777ee3d1e2f5e9c5..14b5babf990c2b9432033ddab3e07681ba9ece9e 100644 (file)
@@ -28,7 +28,6 @@
 #include <IGESGeom_SurfaceOfRevolution.hxx>
 #include <IGESGeom_ToolSurfaceOfRevolution.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -36,9 +35,6 @@
 #include <Message_Msg.hxx>
 #include <Standard_DomainError.hxx>
 
-// MGE 31/07/98
-IGESGeom_ToolSurfaceOfRevolution::IGESGeom_ToolSurfaceOfRevolution ()    {  }
-
 
 void IGESGeom_ToolSurfaceOfRevolution::ReadOwnParams
   (const Handle(IGESGeom_SurfaceOfRevolution)& ent,
@@ -125,20 +121,6 @@ void  IGESGeom_ToolSurfaceOfRevolution::OwnShared
   iter.GetOneItem(ent->Generatrix());
 }
 
-void IGESGeom_ToolSurfaceOfRevolution::OwnCopy
-  (const Handle(IGESGeom_SurfaceOfRevolution)& another,
-   const Handle(IGESGeom_SurfaceOfRevolution)& ent, Interface_CopyTool& TC) const
-{
-  DeclareAndCast(IGESGeom_Line, anAxis,
-                TC.Transferred(another->AxisOfRevolution()));
-  DeclareAndCast(IGESData_IGESEntity, aGeneratrix,
-                TC.Transferred(another->Generatrix()));
-  Standard_Real aStartAngle = another->StartAngle();
-  Standard_Real anEndAngle = another->EndAngle();
-
-  ent->Init(anAxis, aGeneratrix, aStartAngle, anEndAngle);
-}
-
 
 IGESData_DirChecker IGESGeom_ToolSurfaceOfRevolution::DirChecker
   (const Handle(IGESGeom_SurfaceOfRevolution)& /*ent*/ )   const
@@ -153,15 +135,6 @@ IGESData_DirChecker IGESGeom_ToolSurfaceOfRevolution::DirChecker
   return DC;
 }
 
-void IGESGeom_ToolSurfaceOfRevolution::OwnCheck
-  (const Handle(IGESGeom_SurfaceOfRevolution)& /*ent*/,
-   const Interface_ShareTool& , Handle(Interface_Check)& /*ach*/)  const
-{
-//  Standard_Real diffang = ent->EndAngle() - ent->StartAngle();
-//  if (diffang <= 0.0 || diffang > 2.0 * M_PI)
-//    ach.AddFail("0 < TA - SA <=  2Pi is not satisfied");
-}
-
 void IGESGeom_ToolSurfaceOfRevolution::OwnDump
   (const Handle(IGESGeom_SurfaceOfRevolution)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level)  const
index 9c1acfb1c657abac2daf860f0515371577bd9041..8e7a670a7a960a6e25918528f7f632a0d74a7183 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESGeom_ToolSurfaceOfRevolution 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolSurfaceOfRevolution, ready to work
-  Standard_EXPORT IGESGeom_ToolSurfaceOfRevolution();
+  IGESGeom_ToolSurfaceOfRevolution() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -62,36 +60,8 @@ public:
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESGeom_SurfaceOfRevolution)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESGeom_SurfaceOfRevolution)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESGeom_SurfaceOfRevolution)& entfrom, const Handle(IGESGeom_SurfaceOfRevolution)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESGeom_SurfaceOfRevolution)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESGeom_ToolSurfaceOfRevolution_HeaderFile
index 0d9859ee7d5e076c88d938beb2b0c0a7805832d0..93377447fc81999c6cd08e607d3e227003ff72e1 100644 (file)
@@ -30,7 +30,6 @@
 #include <IGESGeom_TabulatedCylinder.hxx>
 #include <IGESGeom_ToolTabulatedCylinder.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -38,9 +37,6 @@
 #include <Message_Msg.hxx>
 #include <Standard_DomainError.hxx>
 
-// MGE 31/07/98
-IGESGeom_ToolTabulatedCylinder::IGESGeom_ToolTabulatedCylinder ()    {  }
-
 
 void IGESGeom_ToolTabulatedCylinder::ReadOwnParams
   (const Handle(IGESGeom_TabulatedCylinder)& ent,
@@ -101,18 +97,6 @@ void  IGESGeom_ToolTabulatedCylinder::OwnShared
   iter.GetOneItem( ent->Directrix() );
 }
 
-void IGESGeom_ToolTabulatedCylinder::OwnCopy
-  (const Handle(IGESGeom_TabulatedCylinder)& another,
-   const Handle(IGESGeom_TabulatedCylinder)& ent, Interface_CopyTool& TC) const
-{
-  DeclareAndCast(IGESData_IGESEntity, aDirectrix,
-                TC.Transferred(another->Directrix()));
-
-  gp_XYZ anEnd = another->EndPoint().XYZ();
-
-  ent->Init(aDirectrix, anEnd);
-}
-
 
 IGESData_DirChecker IGESGeom_ToolTabulatedCylinder::DirChecker
   (const Handle(IGESGeom_TabulatedCylinder)& /* ent */ )  const
@@ -126,11 +110,6 @@ IGESData_DirChecker IGESGeom_ToolTabulatedCylinder::DirChecker
   return DC;
 }
 
-void IGESGeom_ToolTabulatedCylinder::OwnCheck
-  (const Handle(IGESGeom_TabulatedCylinder)& /* ent */,
-   const Interface_ShareTool& , Handle(Interface_Check)& /* ach */)  const
-{  }
-
 void IGESGeom_ToolTabulatedCylinder::OwnDump
   (const Handle(IGESGeom_TabulatedCylinder)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level)  const
index f40c7afdff8994dde9ea2c5c8b45f9304061e65a..f03657e4a8f1cd7e6e70ea0cc7f52e3865cc8f0a 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESGeom_ToolTabulatedCylinder 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolTabulatedCylinder, ready to work
-  Standard_EXPORT IGESGeom_ToolTabulatedCylinder();
+  IGESGeom_ToolTabulatedCylinder() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -62,36 +60,8 @@ public:
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESGeom_TabulatedCylinder)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESGeom_TabulatedCylinder)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESGeom_TabulatedCylinder)& entfrom, const Handle(IGESGeom_TabulatedCylinder)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESGeom_TabulatedCylinder)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESGeom_ToolTabulatedCylinder_HeaderFile
index c6f9b93e7ffcf5b37a124d6e1e5351d04ad2cded..4bd70f9ea642c9acc7829f4290d84f77069c6d0b 100644 (file)
@@ -26,7 +26,6 @@
 #include <IGESGeom_ToolTransformationMatrix.hxx>
 #include <IGESGeom_TransformationMatrix.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Standard_DomainError.hxx>
 #include <TColStd_HArray2OfReal.hxx>
 
-// MGE 03/08/98
-//=======================================================================
-//function : IGESGeom_ToolTransformationMatrix
-//purpose  : 
-//=======================================================================
-IGESGeom_ToolTransformationMatrix::IGESGeom_ToolTransformationMatrix ()
-{
-}
-
 
 //=======================================================================
 //function : ReadOwnParams
@@ -94,38 +84,6 @@ void IGESGeom_ToolTransformationMatrix::WriteOwnParams
 }
 
 
-//=======================================================================
-//function : OwnShared
-//purpose  : 
-//=======================================================================
-
-void  IGESGeom_ToolTransformationMatrix::OwnShared
-  (const Handle(IGESGeom_TransformationMatrix)& /*ent*/, Interface_EntityIterator& /*iter*/) const
-{
-}
-
-
-//=======================================================================
-//function : OwnCopy
-//purpose  : 
-//=======================================================================
-
-void IGESGeom_ToolTransformationMatrix::OwnCopy
-  (const Handle(IGESGeom_TransformationMatrix)& another,
-   const Handle(IGESGeom_TransformationMatrix)& ent, Interface_CopyTool& /*TC*/) const
-{
-  Handle(TColStd_HArray2OfReal) data = new TColStd_HArray2OfReal(1, 3, 1, 4);
-  for (Standard_Integer I = 1; I <= 3;I++) {
-    for (Standard_Integer J = 1; J <= 4; J++) {
-      data->SetValue(I, J, another->Data(I, J));
-    }
-  }
-
-  ent->Init(data);
-  ent->SetFormNumber(another->FormNumber());
-}
-
-
 //=======================================================================
 //function : OwnCorrect
 //purpose  : 
index 6e4be028c3e88075c9ce3792937b4e42e7115db6..11c387b36de609f413c9cebe2908fe5cd1dc69c4 100644 (file)
@@ -32,7 +32,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -41,13 +40,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESGeom_ToolTransformationMatrix 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolTransformationMatrix, ready to work
-  Standard_EXPORT IGESGeom_ToolTransformationMatrix();
+  IGESGeom_ToolTransformationMatrix() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -56,10 +54,6 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESGeom_TransformationMatrix)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a TransformationMatrix <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESGeom_TransformationMatrix)& ent, Interface_EntityIterator& iter) const;
-  
   //! Sets automatic unambiguous Correction on a TransformationMatrix
   //! (FormNumber if 0 or 1, recomputed according Positive/Negative)
   Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESGeom_TransformationMatrix)& ent) const;
@@ -70,33 +64,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESGeom_TransformationMatrix)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESGeom_TransformationMatrix)& entfrom, const Handle(IGESGeom_TransformationMatrix)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESGeom_TransformationMatrix)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESGeom_ToolTransformationMatrix_HeaderFile
index 33a4cb168525e5cf184e8e67949b0b111ecb8269..af5f34fd72b0a8ce46ef35990396c4c6309baf6f 100644 (file)
@@ -30,7 +30,6 @@
 #include <IGESGeom_ToolTrimmedSurface.hxx>
 #include <IGESGeom_TrimmedSurface.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Msg.hxx>
 #include <Standard_DomainError.hxx>
 
-// MGE 31/07/98
-//=======================================================================
-//function : IGESGeom_ToolTrimmedSurface
-//purpose  : 
-//=======================================================================
-IGESGeom_ToolTrimmedSurface::IGESGeom_ToolTrimmedSurface ()
-{
-}
-
 
 //=======================================================================
 //function : ReadOwnParams
@@ -218,38 +208,6 @@ void IGESGeom_ToolTrimmedSurface::OwnShared(const Handle(IGESGeom_TrimmedSurface
 }
 
 
-//=======================================================================
-//function : OwnCopy
-//purpose  : 
-//=======================================================================
-
-void IGESGeom_ToolTrimmedSurface::OwnCopy(const Handle(IGESGeom_TrimmedSurface)& another,
-                                          const Handle(IGESGeom_TrimmedSurface)& ent,
-                                          Interface_CopyTool& TC) const
-{
-  Handle(IGESGeom_HArray1OfCurveOnSurface) anInner;
-
-  DeclareAndCast(IGESData_IGESEntity, aSurface,
-                 TC.Transferred(another->Surface()));
-  Standard_Integer aFlag = another->OuterBoundaryType();
-  DeclareAndCast(IGESGeom_CurveOnSurface, anOuter,
-                 TC.Transferred(another->OuterContour()));
-  Standard_Integer count = another->NbInnerContours();
-
-  if (count > 0) {
-    anInner = new IGESGeom_HArray1OfCurveOnSurface(1, count);
-    Standard_Integer I;
-    for (I = 1; I <= count; I++) {
-      DeclareAndCast(IGESGeom_CurveOnSurface, temp,
-                    TC.Transferred(another->InnerContour(I)));
-      anInner->SetValue(I, temp);
-    }
-  }
-
-  ent->Init(aSurface, aFlag, anOuter, anInner);
-}
-
-
 //=======================================================================
 //function : DirChecker
 //purpose  : 
index 6dfeb3a3fcccffcb13b1c27cf06a2a458537a3b7..d1e33a5aa79fc6823134a47880a80daa8440b9b2 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESGeom_ToolTrimmedSurface 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolTrimmedSurface, ready to work
-  Standard_EXPORT IGESGeom_ToolTrimmedSurface();
+  IGESGeom_ToolTrimmedSurface() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -65,33 +63,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESGeom_TrimmedSurface)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESGeom_TrimmedSurface)& entfrom, const Handle(IGESGeom_TrimmedSurface)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESGeom_TrimmedSurface)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESGeom_ToolTrimmedSurface_HeaderFile
index 0654205a9d877223aaea96a6d6b55f75eace6610..146f96571f1c3f6a1de38f2af6861a2f43ce0c02 100644 (file)
 #include <Interface_GeneralLib.hxx>
 #include <Interface_ReaderLib.hxx>
 
-//  Ancillary data to work on a Package of IGES Entities with a Protocol
-//  (Modules are created and loaded in appropriate libraries, once by Init)
-static Handle(IGESGraph_Protocol) protocol;
 
-
-    void  IGESGraph::Init ()
+/*void IGESGraph::Init ()
 {
   IGESBasic::Init();
+  IGESGraph::Protocol();
+}*/
+
+const Handle(IGESGraph_Protocol) & IGESGraph::Protocol ()
+{
+  static Handle(IGESGraph_Protocol) protocol;
   if (protocol.IsNull()) {
     protocol = new IGESGraph_Protocol;
     Interface_GeneralLib::SetGlobal (new IGESGraph_GeneralModule,  protocol);
@@ -38,9 +40,5 @@ static Handle(IGESGraph_Protocol) protocol;
     IGESData_WriterLib::SetGlobal   (new IGESGraph_ReadWriteModule,protocol);
     IGESData_SpecificLib::SetGlobal (new IGESGraph_SpecificModule, protocol);
   }
-}
-
-    Handle(IGESGraph_Protocol)  IGESGraph::Protocol ()
-{
   return protocol;
 }
index c3276ab98917f59c2d1a1805cff4efec9fec096c..dc667fc1bc89379f118b90d76026477447871375 100644 (file)
 #define _IGESGraph_HeaderFile
 
 #include <Standard.hxx>
-#include <Standard_DefineAlloc.hxx>
 #include <Standard_Handle.hxx>
 
 class IGESGraph_Protocol;
-class IGESGraph_LineFontDefTemplate;
-class IGESGraph_LineFontDefPattern;
-class IGESGraph_TextFontDef;
-class IGESGraph_TextDisplayTemplate;
-class IGESGraph_Color;
-class IGESGraph_DefinitionLevel;
-class IGESGraph_NominalSize;
-class IGESGraph_DrawingSize;
-class IGESGraph_DrawingUnits;
-class IGESGraph_IntercharacterSpacing;
-class IGESGraph_LineFontPredefined;
-class IGESGraph_HighLight;
-class IGESGraph_Pick;
-class IGESGraph_UniformRectGrid;
-class IGESGraph_ToolLineFontDefTemplate;
-class IGESGraph_ToolLineFontDefPattern;
-class IGESGraph_ToolTextFontDef;
-class IGESGraph_ToolTextDisplayTemplate;
-class IGESGraph_ToolColor;
-class IGESGraph_ToolDefinitionLevel;
-class IGESGraph_ToolNominalSize;
-class IGESGraph_ToolDrawingSize;
-class IGESGraph_ToolDrawingUnits;
-class IGESGraph_ToolIntercharacterSpacing;
-class IGESGraph_ToolLineFontPredefined;
-class IGESGraph_ToolHighLight;
-class IGESGraph_ToolPick;
-class IGESGraph_ToolUniformRectGrid;
-class IGESGraph_Protocol;
-class IGESGraph_ReadWriteModule;
-class IGESGraph_GeneralModule;
-class IGESGraph_SpecificModule;
 
 
 //! This package contains the group of classes necessary
@@ -61,70 +28,13 @@ class IGESGraph_SpecificModule;
 //! (e.g., Fonts, Colors, Screen management ...)
 class IGESGraph 
 {
-public:
-
-  DEFINE_STANDARD_ALLOC
+ public:
 
-  
   //! Prepares dynamic data (Protocol, Modules) for this package
-  Standard_EXPORT static void Init();
+  //Standard_EXPORT static void Init();
   
   //! Returns the Protocol for this Package
-  Standard_EXPORT static Handle(IGESGraph_Protocol) Protocol();
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-friend class IGESGraph_LineFontDefTemplate;
-friend class IGESGraph_LineFontDefPattern;
-friend class IGESGraph_TextFontDef;
-friend class IGESGraph_TextDisplayTemplate;
-friend class IGESGraph_Color;
-friend class IGESGraph_DefinitionLevel;
-friend class IGESGraph_NominalSize;
-friend class IGESGraph_DrawingSize;
-friend class IGESGraph_DrawingUnits;
-friend class IGESGraph_IntercharacterSpacing;
-friend class IGESGraph_LineFontPredefined;
-friend class IGESGraph_HighLight;
-friend class IGESGraph_Pick;
-friend class IGESGraph_UniformRectGrid;
-friend class IGESGraph_ToolLineFontDefTemplate;
-friend class IGESGraph_ToolLineFontDefPattern;
-friend class IGESGraph_ToolTextFontDef;
-friend class IGESGraph_ToolTextDisplayTemplate;
-friend class IGESGraph_ToolColor;
-friend class IGESGraph_ToolDefinitionLevel;
-friend class IGESGraph_ToolNominalSize;
-friend class IGESGraph_ToolDrawingSize;
-friend class IGESGraph_ToolDrawingUnits;
-friend class IGESGraph_ToolIntercharacterSpacing;
-friend class IGESGraph_ToolLineFontPredefined;
-friend class IGESGraph_ToolHighLight;
-friend class IGESGraph_ToolPick;
-friend class IGESGraph_ToolUniformRectGrid;
-friend class IGESGraph_Protocol;
-friend class IGESGraph_ReadWriteModule;
-friend class IGESGraph_GeneralModule;
-friend class IGESGraph_SpecificModule;
-
+  Standard_EXPORT static const Handle(IGESGraph_Protocol) & Protocol();
 };
 
-
-
-
-
-
-
 #endif // _IGESGraph_HeaderFile
index bb559c968a0d048d2110560b2cee6ee96c0b532b..10affd49c0e6eec90d6f72f032c9d8e637c622d1 100644 (file)
 #include <IGESGraph_UniformRectGrid.hxx>
 #include <Interface_Category.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
-#include <Standard_Transient.hxx>
-#include <Standard_Type.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESGraph_GeneralModule,IGESData_GeneralModule)
 
-//  Each Module is attached to a Protocol : it must interprete Case Numbers
-//  (arguments <CN> of various methods) in accordance to values returned by
-//  the method TypeNumber from this Protocol
-IGESGraph_GeneralModule::IGESGraph_GeneralModule ()    {  }
-
 
     void  IGESGraph_GeneralModule::OwnSharedCase
   (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent,
    Interface_EntityIterator& iter) const 
 {
   switch (CN) {
-    case  1 : {
-      DeclareAndCast(IGESGraph_Color,anent,ent);
-      if (anent.IsNull()) return;
-      IGESGraph_ToolColor tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
-    case  2 : {
-      DeclareAndCast(IGESGraph_DefinitionLevel,anent,ent);
-      if (anent.IsNull()) return;
-      IGESGraph_ToolDefinitionLevel tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
-    case  3 : {
-      DeclareAndCast(IGESGraph_DrawingSize,anent,ent);
-      if (anent.IsNull()) return;
-      IGESGraph_ToolDrawingSize tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
-    case  4 : {
-      DeclareAndCast(IGESGraph_DrawingUnits,anent,ent);
-      if (anent.IsNull()) return;
-      IGESGraph_ToolDrawingUnits tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
-    case  5 : {
-      DeclareAndCast(IGESGraph_HighLight,anent,ent);
-      if (anent.IsNull()) return;
-      IGESGraph_ToolHighLight tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
-    case  6 : {
-      DeclareAndCast(IGESGraph_IntercharacterSpacing,anent,ent);
-      if (anent.IsNull()) return;
-      IGESGraph_ToolIntercharacterSpacing tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
-    case  7 : {
-      DeclareAndCast(IGESGraph_LineFontDefPattern,anent,ent);
-      if (anent.IsNull()) return;
-      IGESGraph_ToolLineFontDefPattern tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
-    case  8 : {
-      DeclareAndCast(IGESGraph_LineFontPredefined,anent,ent);
-      if (anent.IsNull()) return;
-      IGESGraph_ToolLineFontPredefined tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
     case  9 : {
       DeclareAndCast(IGESGraph_LineFontDefTemplate,anent,ent);
       if (anent.IsNull()) return;
@@ -128,20 +64,6 @@ IGESGraph_GeneralModule::IGESGraph_GeneralModule ()    {  }
       tool.OwnShared(anent,iter);
     }
       break;
-    case 10 : {
-      DeclareAndCast(IGESGraph_NominalSize,anent,ent);
-      if (anent.IsNull()) return;
-      IGESGraph_ToolNominalSize tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
-    case 11 : {
-      DeclareAndCast(IGESGraph_Pick,anent,ent);
-      if (anent.IsNull()) return;
-      IGESGraph_ToolPick tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
     case 12 : {
       DeclareAndCast(IGESGraph_TextDisplayTemplate,anent,ent);
       if (anent.IsNull()) return;
@@ -156,13 +78,6 @@ IGESGraph_GeneralModule::IGESGraph_GeneralModule ()    {  }
       tool.OwnShared(anent,iter);
     }
       break;
-    case 14 : {
-      DeclareAndCast(IGESGraph_UniformRectGrid,anent,ent);
-      if (anent.IsNull()) return;
-      IGESGraph_ToolUniformRectGrid tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
     default : break;
   }
 }
@@ -267,20 +182,6 @@ IGESGraph_GeneralModule::IGESGraph_GeneralModule ()    {  }
    const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const 
 {
   switch (CN) {
-    case  1 : {
-      DeclareAndCast(IGESGraph_Color,anent,ent);
-      if (anent.IsNull()) return;
-      IGESGraph_ToolColor tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
-    case  2 : {
-      DeclareAndCast(IGESGraph_DefinitionLevel,anent,ent);
-      if (anent.IsNull()) return;
-      IGESGraph_ToolDefinitionLevel tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
     case  3 : {
       DeclareAndCast(IGESGraph_DrawingSize,anent,ent);
       if (anent.IsNull()) return;
@@ -344,20 +245,6 @@ IGESGraph_GeneralModule::IGESGraph_GeneralModule ()    {  }
       tool.OwnCheck(anent,shares,ach);
     }
       break;
-    case 12 : {
-      DeclareAndCast(IGESGraph_TextDisplayTemplate,anent,ent);
-      if (anent.IsNull()) return;
-      IGESGraph_ToolTextDisplayTemplate tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
-    case 13 : {
-      DeclareAndCast(IGESGraph_TextFontDef,anent,ent);
-      if (anent.IsNull()) return;
-      IGESGraph_ToolTextFontDef tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
     case 14 : {
       DeclareAndCast(IGESGraph_UniformRectGrid,anent,ent);
       if (anent.IsNull()) return;
@@ -394,116 +281,6 @@ IGESGraph_GeneralModule::IGESGraph_GeneralModule ()    {  }
 }
 
 
-    void  IGESGraph_GeneralModule::OwnCopyCase
-  (const Standard_Integer CN,
-   const Handle(IGESData_IGESEntity)& entfrom,
-   const Handle(IGESData_IGESEntity)& entto,
-   Interface_CopyTool& TC) const 
-{
-  switch (CN) {
-    case  1 : {
-      DeclareAndCast(IGESGraph_Color,enfr,entfrom);
-      DeclareAndCast(IGESGraph_Color,ento,entto);
-      IGESGraph_ToolColor tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  2 : {
-      DeclareAndCast(IGESGraph_DefinitionLevel,enfr,entfrom);
-      DeclareAndCast(IGESGraph_DefinitionLevel,ento,entto);
-      IGESGraph_ToolDefinitionLevel tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  3 : {
-      DeclareAndCast(IGESGraph_DrawingSize,enfr,entfrom);
-      DeclareAndCast(IGESGraph_DrawingSize,ento,entto);
-      IGESGraph_ToolDrawingSize tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  4 : {
-      DeclareAndCast(IGESGraph_DrawingUnits,enfr,entfrom);
-      DeclareAndCast(IGESGraph_DrawingUnits,ento,entto);
-      IGESGraph_ToolDrawingUnits tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  5 : {
-      DeclareAndCast(IGESGraph_HighLight,enfr,entfrom);
-      DeclareAndCast(IGESGraph_HighLight,ento,entto);
-      IGESGraph_ToolHighLight tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  6 : {
-      DeclareAndCast(IGESGraph_IntercharacterSpacing,enfr,entfrom);
-      DeclareAndCast(IGESGraph_IntercharacterSpacing,ento,entto);
-      IGESGraph_ToolIntercharacterSpacing tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  7 : {
-      DeclareAndCast(IGESGraph_LineFontDefPattern,enfr,entfrom);
-      DeclareAndCast(IGESGraph_LineFontDefPattern,ento,entto);
-      IGESGraph_ToolLineFontDefPattern tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  8 : {
-      DeclareAndCast(IGESGraph_LineFontPredefined,enfr,entfrom);
-      DeclareAndCast(IGESGraph_LineFontPredefined,ento,entto);
-      IGESGraph_ToolLineFontPredefined tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  9 : {
-      DeclareAndCast(IGESGraph_LineFontDefTemplate,enfr,entfrom);
-      DeclareAndCast(IGESGraph_LineFontDefTemplate,ento,entto);
-      IGESGraph_ToolLineFontDefTemplate tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 10 : {
-      DeclareAndCast(IGESGraph_NominalSize,enfr,entfrom);
-      DeclareAndCast(IGESGraph_NominalSize,ento,entto);
-      IGESGraph_ToolNominalSize tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 11 : {
-      DeclareAndCast(IGESGraph_Pick,enfr,entfrom);
-      DeclareAndCast(IGESGraph_Pick,ento,entto);
-      IGESGraph_ToolPick tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 12 : {
-      DeclareAndCast(IGESGraph_TextDisplayTemplate,enfr,entfrom);
-      DeclareAndCast(IGESGraph_TextDisplayTemplate,ento,entto);
-      IGESGraph_ToolTextDisplayTemplate tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 13 : {
-      DeclareAndCast(IGESGraph_TextFontDef,enfr,entfrom);
-      DeclareAndCast(IGESGraph_TextFontDef,ento,entto);
-      IGESGraph_ToolTextFontDef tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 14 : {
-      DeclareAndCast(IGESGraph_UniformRectGrid,enfr,entfrom);
-      DeclareAndCast(IGESGraph_UniformRectGrid,ento,entto);
-      IGESGraph_ToolUniformRectGrid tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    default : break;
-  }
-}
-
-
     Standard_Integer  IGESGraph_GeneralModule::CategoryNumber
   (const Standard_Integer /*CN*/, const Handle(Standard_Transient)& ,
    const Interface_ShareTool& ) const
index 9159cdf0d640828294d37e10d93dc12a81de35ec..c626f390b412dbc52b6d7d72eac2de0fee52f95e 100644 (file)
 #ifndef _IGESGraph_GeneralModule_HeaderFile
 #define _IGESGraph_GeneralModule_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
 #include <IGESData_GeneralModule.hxx>
-#include <Standard_Integer.hxx>
-#include <Standard_Boolean.hxx>
-class IGESData_IGESEntity;
-class Interface_EntityIterator;
-class IGESData_DirChecker;
-class Interface_ShareTool;
-class Interface_Check;
-class Standard_Transient;
-class Interface_CopyTool;
 
 
 class IGESGraph_GeneralModule;
@@ -39,12 +27,10 @@ DEFINE_STANDARD_HANDLE(IGESGraph_GeneralModule, IGESData_GeneralModule)
 //! This Services comprise : Shared & Implied Lists, Copy, Check
 class IGESGraph_GeneralModule : public IGESData_GeneralModule
 {
+ public:
 
-public:
-
-  
   //! Creates a GeneralModule from IGESGraph and puts it into GeneralLib
-  Standard_EXPORT IGESGraph_GeneralModule();
+  IGESGraph_GeneralModule() {}
   
   //! Lists the Entities shared by a given IGESEntity <ent>, from
   //! its specific parameters : specific for each type
@@ -61,34 +47,11 @@ public:
   //! Specific creation of a new void entity
   Standard_EXPORT Standard_Boolean NewVoid (const Standard_Integer CN, Handle(Standard_Transient)& entto) const Standard_OVERRIDE;
   
-  //! Copies parameters which are specific of each Type of Entity
-  Standard_EXPORT void OwnCopyCase (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& entfrom, const Handle(IGESData_IGESEntity)& entto, Interface_CopyTool& TC) const Standard_OVERRIDE;
-  
   //! Returns a category number which characterizes an entity
   //! Drawing for all
   Standard_EXPORT virtual Standard_Integer CategoryNumber (const Standard_Integer CN, const Handle(Standard_Transient)& ent, const Interface_ShareTool& shares) const Standard_OVERRIDE;
 
-
-
-
   DEFINE_STANDARD_RTTIEXT(IGESGraph_GeneralModule,IGESData_GeneralModule)
-
-protected:
-
-
-
-
-private:
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESGraph_GeneralModule_HeaderFile
index b96dec34d2f64d47459d0b9fecbc9d040db2e4cb..b2b5c3f00691babfb9d94885857eab69c02696d7 100644 (file)
@@ -38,7 +38,7 @@ static int deja = 0;
 static Handle(Standard_Type) atype01,atype02,atype03,atype04,atype05,atype06,
   atype07,atype08,atype09,atype10,atype11,atype12,atype13,atype14;
 
-    IGESGraph_Protocol::IGESGraph_Protocol ()
+IGESGraph_Protocol::IGESGraph_Protocol ()
 {
   if (deja) return;  deja = 1;
   atype01 = STANDARD_TYPE(IGESGraph_Color);
@@ -57,17 +57,15 @@ static Handle(Standard_Type) atype01,atype02,atype03,atype04,atype05,atype06,
   atype14 = STANDARD_TYPE(IGESGraph_UniformRectGrid);
 }
 
-    Standard_Integer IGESGraph_Protocol::NbResources () const
-      {  return 1;  }
+Standard_Integer IGESGraph_Protocol::NbResources () const
+{  return 1;  }
 
-    Handle(Interface_Protocol) IGESGraph_Protocol::Resource
-  (const Standard_Integer /*num*/) const
+Handle(Interface_Protocol) IGESGraph_Protocol::Resource (const Standard_Integer /*num*/) const
 {
   return IGESBasic::Protocol();
 }
 
-    Standard_Integer IGESGraph_Protocol::TypeNumber
-  (const Handle(Standard_Type)& atype) const
+Standard_Integer IGESGraph_Protocol::TypeNumber (const Handle(Standard_Type)& atype) const
 {
   if      (atype == atype01) return  1;
   else if (atype == atype02) return  2;
index 3e1c885fe95abcfc25023b156e326f50cdf02d4c..fdff15e8a55bf6047c305a46fc3229c4c999d7cd 100644 (file)
@@ -26,7 +26,6 @@
 #include <IGESGraph_Color.hxx>
 #include <IGESGraph_ToolColor.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -34,8 +33,6 @@
 #include <Standard_DomainError.hxx>
 #include <TCollection_HAsciiString.hxx>
 
-IGESGraph_ToolColor::IGESGraph_ToolColor ()    {  }
-
 
 void IGESGraph_ToolColor::ReadOwnParams
   (const Handle(IGESGraph_Color)& ent,
@@ -72,24 +69,6 @@ void IGESGraph_ToolColor::WriteOwnParams
   else IW.SendVoid();    // placekeeper to be reserved for additional pointers
 }
 
-void  IGESGraph_ToolColor::OwnShared
-  (const Handle(IGESGraph_Color)& /*ent*/, Interface_EntityIterator& /*iter*/) const
-{
-}
-
-void IGESGraph_ToolColor::OwnCopy
-  (const Handle(IGESGraph_Color)& another,
-   const Handle(IGESGraph_Color)& ent, Interface_CopyTool& /*TC*/) const
-{
-  Standard_Real tempRed, tempGreen, tempBlue;
-  Handle(TCollection_HAsciiString) tempColorName;
-  another->RGBIntensity(tempRed, tempGreen, tempBlue);
-  if (another->HasColorName())
-    tempColorName = new TCollection_HAsciiString(another->ColorName());
-
-  ent->Init(tempRed, tempGreen, tempBlue, tempColorName);
-}
-
 IGESData_DirChecker  IGESGraph_ToolColor::DirChecker
   (const Handle(IGESGraph_Color)& /*ent*/ )  const
 {
@@ -106,16 +85,6 @@ IGESData_DirChecker  IGESGraph_ToolColor::DirChecker
   return DC;
 }
 
-void IGESGraph_ToolColor::OwnCheck
-  (const Handle(IGESGraph_Color)& /*ent*/,
-   const Interface_ShareTool& , Handle(Interface_Check)& /*ach*/)  const
-{
-//  if (ent->RankColor() == 0)
-//    ach.AddFail("Color Rank is zero");
-//  else if (ent->RankColor() < 1 || ent->RankColor() > 8)
-//    ach.AddFail("Color Rank not between 1 to 8");
-}
-
 void IGESGraph_ToolColor::OwnDump
   (const Handle(IGESGraph_Color)& ent, const IGESData_IGESDumper& /*dumper*/,
    const Handle(Message_Messenger)& S, const Standard_Integer /*level*/)  const
index 92b650fdc3c8d35c73a9aee6f86877fca4ed3b87..6d1d182e7756c1c8c3bb96ca0348bdb7d446e88e 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESGraph_ToolColor 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolColor, ready to work
-  Standard_EXPORT IGESGraph_ToolColor();
+  IGESGraph_ToolColor() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESGraph_Color)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a Color <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESGraph_Color)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESGraph_Color)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESGraph_Color)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESGraph_Color)& entfrom, const Handle(IGESGraph_Color)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESGraph_Color)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESGraph_ToolColor_HeaderFile
index 18f4bcedbf7ac997fa51093ff12e4913b0f928c8..b67fee0485496018b87a8337fc0aeb80d073f060 100644 (file)
@@ -26,7 +26,6 @@
 #include <IGESGraph_DefinitionLevel.hxx>
 #include <IGESGraph_ToolDefinitionLevel.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -34,8 +33,6 @@
 #include <Standard_DomainError.hxx>
 #include <TColStd_HArray1OfInteger.hxx>
 
-IGESGraph_ToolDefinitionLevel::IGESGraph_ToolDefinitionLevel ()    {  }
-
 
 void IGESGraph_ToolDefinitionLevel::ReadOwnParams
   (const Handle(IGESGraph_DefinitionLevel)& ent,
@@ -69,27 +66,6 @@ void IGESGraph_ToolDefinitionLevel::WriteOwnParams
     IW.Send( ent->LevelNumber(i) );
 }
 
-void  IGESGraph_ToolDefinitionLevel::OwnShared
-  (const Handle(IGESGraph_DefinitionLevel)& /*ent*/, Interface_EntityIterator& /*iter*/) const
-{
-}
-
-void IGESGraph_ToolDefinitionLevel::OwnCopy
-  (const Handle(IGESGraph_DefinitionLevel)& another,
-   const Handle(IGESGraph_DefinitionLevel)& ent, Interface_CopyTool& /*TC*/) const
-{ 
-  Standard_Integer nbval;
-  Handle(TColStd_HArray1OfInteger) levelNumbers; 
-  nbval = another->NbPropertyValues();
-  levelNumbers = new TColStd_HArray1OfInteger(1, nbval);
-  for (Standard_Integer i = 1; i <= nbval; i++)
-    levelNumbers->SetValue( i, another->LevelNumber(i) );
-
-  ent->Init(levelNumbers);
-}
-
 IGESData_DirChecker IGESGraph_ToolDefinitionLevel::DirChecker
   (const Handle(IGESGraph_DefinitionLevel)& /*ent*/)  const
 { 
@@ -104,12 +80,6 @@ IGESData_DirChecker IGESGraph_ToolDefinitionLevel::DirChecker
   return DC;
 }
 
-void IGESGraph_ToolDefinitionLevel::OwnCheck
-  (const Handle(IGESGraph_DefinitionLevel)& /*ent*/,
-   const Interface_ShareTool& , Handle(Interface_Check)& /*ach*/)  const
-{
-}
-
 void IGESGraph_ToolDefinitionLevel::OwnDump
   (const Handle(IGESGraph_DefinitionLevel)& ent, const IGESData_IGESDumper& /*dumper*/,
    const Handle(Message_Messenger)& S, const Standard_Integer level)  const
index fbae62d20a6da23e4989e0eec8b0abbc404c872d..bf90df8f428ae25557c5ca71c999220b791a7ab4 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESGraph_ToolDefinitionLevel 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolDefinitionLevel, ready to work
-  Standard_EXPORT IGESGraph_ToolDefinitionLevel();
+  IGESGraph_ToolDefinitionLevel() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESGraph_DefinitionLevel)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a DefinitionLevel <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESGraph_DefinitionLevel)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESGraph_DefinitionLevel)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESGraph_DefinitionLevel)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESGraph_DefinitionLevel)& entfrom, const Handle(IGESGraph_DefinitionLevel)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESGraph_DefinitionLevel)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESGraph_ToolDefinitionLevel_HeaderFile
index ca8a4643c22b5398c8d1f9977a801e25df0ce4bd..055f7af9c3d49d74758e53b40c5e5f81310e166f 100644 (file)
 #include <IGESGraph_DrawingSize.hxx>
 #include <IGESGraph_ToolDrawingSize.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESGraph_ToolDrawingSize::IGESGraph_ToolDrawingSize ()    {  }
-
 
 void IGESGraph_ToolDrawingSize::ReadOwnParams
   (const Handle(IGESGraph_DrawingSize)& ent,
@@ -67,18 +64,6 @@ void IGESGraph_ToolDrawingSize::WriteOwnParams
   IW.Send( ent->YSize() );
 }
 
-void  IGESGraph_ToolDrawingSize::OwnShared
-  (const Handle(IGESGraph_DrawingSize)& /*ent*/, Interface_EntityIterator& /*iter*/) const
-{
-}
-
-void IGESGraph_ToolDrawingSize::OwnCopy
-  (const Handle(IGESGraph_DrawingSize)& another,
-   const Handle(IGESGraph_DrawingSize)& ent, Interface_CopyTool& /*TC*/) const
-{
-  ent->Init(2,another->XSize(),another->YSize());
-}
-
 Standard_Boolean  IGESGraph_ToolDrawingSize::OwnCorrect
   (const Handle(IGESGraph_DrawingSize)& ent) const
 {
index 3ecce38a80b05b484c9ee0a38ead9155c2e0ed11..644845129dd03fc1cadb37d7476926531aff84a4 100644 (file)
@@ -32,7 +32,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -41,13 +40,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESGraph_ToolDrawingSize 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolDrawingSize, ready to work
-  Standard_EXPORT IGESGraph_ToolDrawingSize();
+  IGESGraph_ToolDrawingSize() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -56,10 +54,6 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESGraph_DrawingSize)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a DrawingSize <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESGraph_DrawingSize)& ent, Interface_EntityIterator& iter) const;
-  
   //! Sets automatic unambiguous Correction on a DrawingSize
   //! (NbPropertyValues forced to 2)
   Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESGraph_DrawingSize)& ent) const;
@@ -70,33 +64,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESGraph_DrawingSize)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESGraph_DrawingSize)& entfrom, const Handle(IGESGraph_DrawingSize)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESGraph_DrawingSize)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESGraph_ToolDrawingSize_HeaderFile
index d8cff42197ebe9bf04a4cc329bdbb5e206e2d1fe..b95bf1138c4abf7f1ad4d5f3bb6514297e0e4557 100644 (file)
@@ -26,7 +26,6 @@
 #include <IGESGraph_DrawingUnits.hxx>
 #include <IGESGraph_ToolDrawingUnits.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -34,8 +33,6 @@
 #include <Standard_DomainError.hxx>
 #include <TCollection_HAsciiString.hxx>
 
-IGESGraph_ToolDrawingUnits::IGESGraph_ToolDrawingUnits ()    {  }
-
 
 void IGESGraph_ToolDrawingUnits::ReadOwnParams
   (const Handle(IGESGraph_DrawingUnits)& ent,
@@ -70,26 +67,6 @@ void IGESGraph_ToolDrawingUnits::WriteOwnParams
   IW.Send( ent->Unit() );
 }
 
-void  IGESGraph_ToolDrawingUnits::OwnShared
-  (const Handle(IGESGraph_DrawingUnits)& /*ent*/, Interface_EntityIterator& /*iter*/) const
-{
-}
-
-void IGESGraph_ToolDrawingUnits::OwnCopy
-  (const Handle(IGESGraph_DrawingUnits)& another,
-   const Handle(IGESGraph_DrawingUnits)& ent, Interface_CopyTool& /*TC*/) const
-{ 
-  Standard_Integer          NbPropertyValues; 
-  Standard_Integer          Flag; 
-  Handle(TCollection_HAsciiString) Unit; 
-  NbPropertyValues = another->NbPropertyValues();
-  Flag = another->Flag();
-  Unit = new TCollection_HAsciiString(another->Unit());
-
-  ent->Init(NbPropertyValues, Flag, Unit);
-}
-
 Standard_Boolean  IGESGraph_ToolDrawingUnits::OwnCorrect
   (const Handle(IGESGraph_DrawingUnits)& ent) const
 {
index dd87f92e9e4c5f6b27a4dac26d35c621ab877156..c4b78f75b62428f38b739bcc99f3496246d463b7 100644 (file)
@@ -32,7 +32,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -41,13 +40,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESGraph_ToolDrawingUnits 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolDrawingUnits, ready to work
-  Standard_EXPORT IGESGraph_ToolDrawingUnits();
+  IGESGraph_ToolDrawingUnits() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -56,10 +54,6 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESGraph_DrawingUnits)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a DrawingUnits <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESGraph_DrawingUnits)& ent, Interface_EntityIterator& iter) const;
-  
   //! Sets automatic unambiguous Correction on a DrawingUnits
   //! (NbPropertyValues forced to 2)
   Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESGraph_DrawingUnits)& ent) const;
@@ -70,33 +64,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESGraph_DrawingUnits)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESGraph_DrawingUnits)& entfrom, const Handle(IGESGraph_DrawingUnits)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESGraph_DrawingUnits)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESGraph_ToolDrawingUnits_HeaderFile
index 9e73c675fbe7e429d3363f10fc7f8f5e26ea72fc..2aa69746a307dff7b7fa871740d70579cbf3d522 100644 (file)
 #include <IGESGraph_HighLight.hxx>
 #include <IGESGraph_ToolHighLight.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESGraph_ToolHighLight::IGESGraph_ToolHighLight ()    {  }
-
 
 void IGESGraph_ToolHighLight::ReadOwnParams
   (const Handle(IGESGraph_HighLight)& ent,
@@ -63,18 +60,6 @@ void IGESGraph_ToolHighLight::WriteOwnParams
   IW.Send( ent->HighLightStatus() );
 }
 
-void  IGESGraph_ToolHighLight::OwnShared
-  (const Handle(IGESGraph_HighLight)& /*ent*/, Interface_EntityIterator& /*iter*/) const
-{
-}
-
-void IGESGraph_ToolHighLight::OwnCopy
-  (const Handle(IGESGraph_HighLight)& another,
-   const Handle(IGESGraph_HighLight)& ent, Interface_CopyTool& /*TC*/) const
-{
-  ent->Init(1,another->HighLightStatus());
-}
-
 Standard_Boolean  IGESGraph_ToolHighLight::OwnCorrect
   (const Handle(IGESGraph_HighLight)& ent) const
 {
index b0820da10844d2f07c2ce9359b54901ca30c546a..66bba2e5b4c627eb765e75e07a7466f1e16fe613 100644 (file)
@@ -32,7 +32,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -41,13 +40,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESGraph_ToolHighLight 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolHighLight, ready to work
-  Standard_EXPORT IGESGraph_ToolHighLight();
+  IGESGraph_ToolHighLight() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -56,10 +54,6 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESGraph_HighLight)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a HighLight <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESGraph_HighLight)& ent, Interface_EntityIterator& iter) const;
-  
   //! Sets automatic unambiguous Correction on a HighLight
   //! (NbPropertyValues forced to 1)
   Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESGraph_HighLight)& ent) const;
@@ -70,33 +64,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESGraph_HighLight)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESGraph_HighLight)& entfrom, const Handle(IGESGraph_HighLight)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESGraph_HighLight)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESGraph_ToolHighLight_HeaderFile
index 88cda99f358d0628fff85c0ac710362123377378..fd225d499726fa495e71229d6ba569f4397ddcb2 100644 (file)
 #include <IGESGraph_IntercharacterSpacing.hxx>
 #include <IGESGraph_ToolIntercharacterSpacing.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESGraph_ToolIntercharacterSpacing::IGESGraph_ToolIntercharacterSpacing ()
-      {  }
-
 
 void IGESGraph_ToolIntercharacterSpacing::ReadOwnParams
   (const Handle(IGESGraph_IntercharacterSpacing)& ent,
@@ -63,18 +59,6 @@ void IGESGraph_ToolIntercharacterSpacing::WriteOwnParams
   IW.Send( ent->ISpace() );
 }
 
-void  IGESGraph_ToolIntercharacterSpacing::OwnShared
-  (const Handle(IGESGraph_IntercharacterSpacing)& /*ent*/, Interface_EntityIterator& /*iter*/) const
-{
-}
-
-void IGESGraph_ToolIntercharacterSpacing::OwnCopy
-  (const Handle(IGESGraph_IntercharacterSpacing)& another,
-   const Handle(IGESGraph_IntercharacterSpacing)& ent, Interface_CopyTool& /*TC*/) const
-{
-  ent->Init(1,another->ISpace());
-}
-
 Standard_Boolean  IGESGraph_ToolIntercharacterSpacing::OwnCorrect
   (const Handle(IGESGraph_IntercharacterSpacing)& ent) const
 {
index 735a5dbcb03329b9fa70c5576aa3fea97ca3ec79..3c20da5bd47ad8f51306429f6898a8bf3fbb98af 100644 (file)
@@ -32,7 +32,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -41,13 +40,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESGraph_ToolIntercharacterSpacing 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolIntercharacterSpacing, ready to work
-  Standard_EXPORT IGESGraph_ToolIntercharacterSpacing();
+  IGESGraph_ToolIntercharacterSpacing() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -56,10 +54,6 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESGraph_IntercharacterSpacing)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a IntercharacterSpacing <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESGraph_IntercharacterSpacing)& ent, Interface_EntityIterator& iter) const;
-  
   //! Sets automatic unambiguous Correction on a IntercharacterSpacing
   //! (NbPropertyValues forced to 1)
   Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESGraph_IntercharacterSpacing)& ent) const;
@@ -70,33 +64,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESGraph_IntercharacterSpacing)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESGraph_IntercharacterSpacing)& entfrom, const Handle(IGESGraph_IntercharacterSpacing)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESGraph_IntercharacterSpacing)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESGraph_ToolIntercharacterSpacing_HeaderFile
index 80c58c2c82d51436e38a9d359060493b1b65c571..4d2b7d2688a46bdc0b2321c4b32f61d8b944b1ee 100644 (file)
@@ -26,7 +26,6 @@
 #include <IGESGraph_LineFontDefPattern.hxx>
 #include <IGESGraph_ToolLineFontDefPattern.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -35,8 +34,6 @@
 #include <TCollection_HAsciiString.hxx>
 #include <TColStd_HArray1OfReal.hxx>
 
-IGESGraph_ToolLineFontDefPattern::IGESGraph_ToolLineFontDefPattern ()    {  }
-
 
 void IGESGraph_ToolLineFontDefPattern::ReadOwnParams
   (const Handle(IGESGraph_LineFontDefPattern)& ent,
@@ -81,27 +78,6 @@ void IGESGraph_ToolLineFontDefPattern::WriteOwnParams
   IW.Send(ent->DisplayPattern());
 }
 
-void  IGESGraph_ToolLineFontDefPattern::OwnShared
-  (const Handle(IGESGraph_LineFontDefPattern)& /*ent*/, Interface_EntityIterator& /*iter*/) const
-{
-}
-
-void IGESGraph_ToolLineFontDefPattern::OwnCopy
-  (const Handle(IGESGraph_LineFontDefPattern)& another,
-   const Handle(IGESGraph_LineFontDefPattern)& ent, Interface_CopyTool& /*TC*/) const
-{
-  Handle(TColStd_HArray1OfReal) tempSegmentLengths =
-    new TColStd_HArray1OfReal(1, another->NbSegments());
-  Standard_Integer I;
-  Standard_Integer up  = another->NbSegments();
-  for (I = 1; I <= up; I++)
-    tempSegmentLengths->SetValue(I, another->Length(I));
-  Handle(TCollection_HAsciiString) tempDisplayPattern =
-    new TCollection_HAsciiString(another->DisplayPattern());
-
-  ent->Init(tempSegmentLengths, tempDisplayPattern);
-}
-
 IGESData_DirChecker IGESGraph_ToolLineFontDefPattern::DirChecker
   (const Handle(IGESGraph_LineFontDefPattern)& /*ent*/)  const
 {
index 0401709a0c03f9340bad7ee81e8e350f9376bf83..031c370b03cc34ccd0b92904e7268645f590d499 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! Modules (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESGraph_ToolLineFontDefPattern 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolLineFontDefPattern, ready to work
-  Standard_EXPORT IGESGraph_ToolLineFontDefPattern();
+  IGESGraph_ToolLineFontDefPattern() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,14 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESGraph_LineFontDefPattern)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a LineFontDefPattern <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESGraph_LineFontDefPattern)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESGraph_LineFontDefPattern)& ent) const;
   
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESGraph_LineFontDefPattern)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESGraph_LineFontDefPattern)& entfrom, const Handle(IGESGraph_LineFontDefPattern)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESGraph_LineFontDefPattern)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESGraph_ToolLineFontDefPattern_HeaderFile
index 1f7a4ce9adb52d805bf353618091017f3e5f7808..2b84396891900a2b276eb3c401c9c6e338046648 100644 (file)
 #include <IGESGraph_LineFontDefTemplate.hxx>
 #include <IGESGraph_ToolLineFontDefTemplate.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESGraph_ToolLineFontDefTemplate::IGESGraph_ToolLineFontDefTemplate ()    {  }
-
 
 void IGESGraph_ToolLineFontDefTemplate::ReadOwnParams
   (const Handle(IGESGraph_LineFontDefTemplate)& ent,
@@ -76,19 +73,6 @@ void  IGESGraph_ToolLineFontDefTemplate::OwnShared
   iter.GetOneItem(ent->TemplateEntity());
 }
 
-void IGESGraph_ToolLineFontDefTemplate::OwnCopy
-  (const Handle(IGESGraph_LineFontDefTemplate)& another,
-   const Handle(IGESGraph_LineFontDefTemplate)& ent, Interface_CopyTool& TC) const
-{
-  Standard_Integer tempOrientation = another->Orientation();
-  DeclareAndCast(IGESBasic_SubfigureDef, tempTemplateSubfigure,
-                 TC.Transferred(another->TemplateEntity()));
-  Standard_Real tempDistance = another->Distance();
-  Standard_Real tempScale = another->Scale();
-
-  ent->Init(tempOrientation, tempTemplateSubfigure, tempDistance, tempScale);
-}
-
 IGESData_DirChecker IGESGraph_ToolLineFontDefTemplate::DirChecker
   (const Handle(IGESGraph_LineFontDefTemplate)& /*ent*/)  const
 {
index 83be4734ba82a5ce58abe956595af3c4f63dda90..3bccc0369aa73f15679d3e42bb36896d7b539446 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! Modules (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESGraph_ToolLineFontDefTemplate 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolLineFontDefTemplate, ready to work
-  Standard_EXPORT IGESGraph_ToolLineFontDefTemplate();
+  IGESGraph_ToolLineFontDefTemplate() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -65,33 +63,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESGraph_LineFontDefTemplate)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESGraph_LineFontDefTemplate)& entfrom, const Handle(IGESGraph_LineFontDefTemplate)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESGraph_LineFontDefTemplate)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESGraph_ToolLineFontDefTemplate_HeaderFile
index b4200cf79609cf9fd6a654fa159299c441119ce7..efe48847feb2981904ceb49ceea3f6910a349803 100644 (file)
 #include <IGESGraph_LineFontPredefined.hxx>
 #include <IGESGraph_ToolLineFontPredefined.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESGraph_ToolLineFontPredefined::IGESGraph_ToolLineFontPredefined ()    {  }
-
 
 void IGESGraph_ToolLineFontPredefined::ReadOwnParams
   (const Handle(IGESGraph_LineFontPredefined)& ent,
@@ -62,18 +59,6 @@ void IGESGraph_ToolLineFontPredefined::WriteOwnParams
   IW.Send( ent->LineFontPatternCode() );
 }
 
-void  IGESGraph_ToolLineFontPredefined::OwnShared
-  (const Handle(IGESGraph_LineFontPredefined)& /*ent*/, Interface_EntityIterator& /*iter*/) const
-{
-}
-
-void IGESGraph_ToolLineFontPredefined::OwnCopy
-  (const Handle(IGESGraph_LineFontPredefined)& another,
-   const Handle(IGESGraph_LineFontPredefined)& ent, Interface_CopyTool& /*TC*/) const
-{
-  ent->Init(1,another->LineFontPatternCode());
-}
-
 Standard_Boolean  IGESGraph_ToolLineFontPredefined::OwnCorrect
   (const Handle(IGESGraph_LineFontPredefined)& ent) const
 {
index 60300d9fc7875e2df95535bde89f331f5dde172a..ed7a9a4a753980256072d6c2627d14d803325fed 100644 (file)
@@ -32,7 +32,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -41,13 +40,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESGraph_ToolLineFontPredefined 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolLineFontPredefined, ready to work
-  Standard_EXPORT IGESGraph_ToolLineFontPredefined();
+  IGESGraph_ToolLineFontPredefined() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -56,10 +54,6 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESGraph_LineFontPredefined)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a LineFontPredefined <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESGraph_LineFontPredefined)& ent, Interface_EntityIterator& iter) const;
-  
   //! Sets automatic unambiguous Correction on a LineFontPredefined
   //! (NbPropertyValues forced to 1)
   Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESGraph_LineFontPredefined)& ent) const;
@@ -70,33 +64,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESGraph_LineFontPredefined)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESGraph_LineFontPredefined)& entfrom, const Handle(IGESGraph_LineFontPredefined)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESGraph_LineFontPredefined)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESGraph_ToolLineFontPredefined_HeaderFile
index f0922682f6495871657e4e274a8ae02dec563b1a..99cb57a63022c4bef43b17ceb8042363b494fa14 100644 (file)
@@ -26,7 +26,6 @@
 #include <IGESGraph_NominalSize.hxx>
 #include <IGESGraph_ToolNominalSize.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -34,8 +33,6 @@
 #include <Standard_DomainError.hxx>
 #include <TCollection_HAsciiString.hxx>
 
-IGESGraph_ToolNominalSize::IGESGraph_ToolNominalSize ()    {  }
-
 
 void IGESGraph_ToolNominalSize::ReadOwnParams
   (const Handle(IGESGraph_NominalSize)& ent,
@@ -84,29 +81,6 @@ void IGESGraph_ToolNominalSize::WriteOwnParams
     IW.Send( ent->StandardName() );  // optionnal
 }
 
-void  IGESGraph_ToolNominalSize::OwnShared
-  (const Handle(IGESGraph_NominalSize)& /*ent*/, Interface_EntityIterator& /*iter*/) const
-{
-}
-
-void IGESGraph_ToolNominalSize::OwnCopy
-  (const Handle(IGESGraph_NominalSize)& another,
-   const Handle(IGESGraph_NominalSize)& ent, Interface_CopyTool& /*TC*/) const
-{ 
-  Standard_Integer          nbPropertyValues; 
-  Standard_Real             nominalSizeValue; 
-  Handle(TCollection_HAsciiString) nominalSizeName; 
-  Handle(TCollection_HAsciiString) standardName;
-
-  nbPropertyValues = another->NbPropertyValues();
-  nominalSizeValue = another->NominalSizeValue();
-  nominalSizeName  = new TCollection_HAsciiString(another->NominalSizeName());
-  if (another->HasStandardName()) standardName     =
-    new TCollection_HAsciiString(another->StandardName());
-
-  ent->Init(nbPropertyValues, nominalSizeValue, nominalSizeName, standardName);
-}
-
 Standard_Boolean  IGESGraph_ToolNominalSize::OwnCorrect
   (const Handle(IGESGraph_NominalSize)& ent) const
 {
index fe83b74a5912a29951fc5410b332644b45f96a1c..bc5c7c6fa5d095279c406b6f0c494d58c05d18d3 100644 (file)
@@ -32,7 +32,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -41,13 +40,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESGraph_ToolNominalSize 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolNominalSize, ready to work
-  Standard_EXPORT IGESGraph_ToolNominalSize();
+  IGESGraph_ToolNominalSize() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -56,10 +54,6 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESGraph_NominalSize)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a NominalSize <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESGraph_NominalSize)& ent, Interface_EntityIterator& iter) const;
-  
   //! Sets automatic unambiguous Correction on a NominalSize
   //! (NbPropertyValues forced to 2 or 3 according HasStandardName)
   Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESGraph_NominalSize)& ent) const;
@@ -70,33 +64,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESGraph_NominalSize)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESGraph_NominalSize)& entfrom, const Handle(IGESGraph_NominalSize)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESGraph_NominalSize)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESGraph_ToolNominalSize_HeaderFile
index 79d02ceef30922fc15155fa7877136857dfe4ec5..fdc9898112620a402b76a850e7e3a575d95de09a 100644 (file)
 #include <IGESGraph_Pick.hxx>
 #include <IGESGraph_ToolPick.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESGraph_ToolPick::IGESGraph_ToolPick ()    {  }
-
 
 void IGESGraph_ToolPick::ReadOwnParams
   (const Handle(IGESGraph_Pick)& ent,
@@ -63,18 +60,6 @@ void IGESGraph_ToolPick::WriteOwnParams
   IW.Send( ent->PickFlag() );
 }
 
-void  IGESGraph_ToolPick::OwnShared
-  (const Handle(IGESGraph_Pick)& /*ent*/, Interface_EntityIterator& /*iter*/) const
-{
-}
-
-void IGESGraph_ToolPick::OwnCopy
-  (const Handle(IGESGraph_Pick)& another,
-   const Handle(IGESGraph_Pick)& ent, Interface_CopyTool& /*TC*/) const
-{
-  ent->Init(1,another->PickFlag());
-}
-
 Standard_Boolean  IGESGraph_ToolPick::OwnCorrect
   (const Handle(IGESGraph_Pick)& ent) const
 {
index 4d05caccdb5487a6252208609e02307740db22db..b3586aa74cde5bde1e6c1a2f1c9c75f3d8d1c655 100644 (file)
@@ -32,7 +32,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -41,13 +40,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESGraph_ToolPick 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolPick, ready to work
-  Standard_EXPORT IGESGraph_ToolPick();
+  IGESGraph_ToolPick() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -56,10 +54,6 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESGraph_Pick)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a Pick <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESGraph_Pick)& ent, Interface_EntityIterator& iter) const;
-  
   //! Sets automatic unambiguous Correction on a Pick
   //! (NbPropertyValues forced to 1)
   Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESGraph_Pick)& ent) const;
@@ -70,33 +64,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESGraph_Pick)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESGraph_Pick)& entfrom, const Handle(IGESGraph_Pick)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESGraph_Pick)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESGraph_ToolPick_HeaderFile
index e419bd0fc048b05b2e4d809c4e49e0f9e017a4ec..8d13d7e612beff2562e0ad6589ef3c027708e7f2 100644 (file)
 #include <IGESGraph_TextFontDef.hxx>
 #include <IGESGraph_ToolTextDisplayTemplate.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESGraph_ToolTextDisplayTemplate::IGESGraph_ToolTextDisplayTemplate ()    {  }
-
 
 void IGESGraph_ToolTextDisplayTemplate::ReadOwnParams
   (const Handle(IGESGraph_TextDisplayTemplate)& ent,
@@ -127,39 +124,6 @@ void  IGESGraph_ToolTextDisplayTemplate::OwnShared
     iter.GetOneItem( ent->FontEntity() );
 }
 
-void IGESGraph_ToolTextDisplayTemplate::OwnCopy
-  (const Handle(IGESGraph_TextDisplayTemplate)& another,
-   const Handle(IGESGraph_TextDisplayTemplate)& ent, Interface_CopyTool& TC) const
-{ 
-  Standard_Real                 boxWidth; 
-  Standard_Real                 boxHeight; 
-  Standard_Integer              fontCode=0; 
-  Handle(IGESGraph_TextFontDef) fontEntity;
-  Standard_Real                 slantAngle; 
-  Standard_Real                 rotationAngle; 
-  Standard_Integer              mirrorFlag; 
-  Standard_Integer              rotateFlag; 
-  gp_XYZ                        corner;
-
-  boxWidth  = another->BoxWidth(); 
-  boxHeight = another->BoxHeight(); 
-
-  if ( another->IsFontEntity() )
-    fontEntity = 
-      Handle(IGESGraph_TextFontDef)::DownCast (TC.Transferred(another->FontEntity()));
-  else
-    fontCode = another->FontCode();
-
-  slantAngle    = another->SlantAngle(); 
-  rotationAngle = another->RotationAngle(); 
-  mirrorFlag    = another->MirrorFlag(); 
-  rotateFlag    = another->RotateFlag(); 
-  corner        = another->StartingCorner().XYZ();
-
-  ent->Init(boxWidth, boxHeight, fontCode, fontEntity,
-           slantAngle, rotationAngle, mirrorFlag, rotateFlag, corner);
-}
-
 IGESData_DirChecker IGESGraph_ToolTextDisplayTemplate::DirChecker
   (const Handle(IGESGraph_TextDisplayTemplate)& /*ent*/)  const
 { 
@@ -174,12 +138,6 @@ IGESData_DirChecker IGESGraph_ToolTextDisplayTemplate::DirChecker
   return DC;
 }
 
-void IGESGraph_ToolTextDisplayTemplate::OwnCheck
-  (const Handle(IGESGraph_TextDisplayTemplate)& /*ent*/,
-   const Interface_ShareTool& , Handle(Interface_Check)& /*ach*/)  const
-{
-}
-
 void IGESGraph_ToolTextDisplayTemplate::OwnDump
   (const Handle(IGESGraph_TextDisplayTemplate)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level)  const
index 266ba5ceff86d8281dcf401db216965c705a0e15..58505472c473df67641aa9e4091e03b039e16166 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESGraph_ToolTextDisplayTemplate 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolTextDisplayTemplate, ready to work
-  Standard_EXPORT IGESGraph_ToolTextDisplayTemplate();
+  IGESGraph_ToolTextDisplayTemplate() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -62,36 +60,8 @@ public:
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESGraph_TextDisplayTemplate)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESGraph_TextDisplayTemplate)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESGraph_TextDisplayTemplate)& entfrom, const Handle(IGESGraph_TextDisplayTemplate)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESGraph_TextDisplayTemplate)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESGraph_ToolTextDisplayTemplate_HeaderFile
index 32c73abc1f2b1ba23ca4cd84d1266fbc0d5ed272..35be08f45c89dd295ca40999ccd5037523901024 100644 (file)
@@ -31,7 +31,6 @@
 #include <IGESGraph_TextFontDef.hxx>
 #include <IGESGraph_ToolTextFontDef.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -41,8 +40,6 @@
 #include <TCollection_HAsciiString.hxx>
 #include <TColStd_HArray1OfInteger.hxx>
 
-IGESGraph_ToolTextFontDef::IGESGraph_ToolTextFontDef ()    {  }
-
 
 void IGESGraph_ToolTextFontDef::ReadOwnParams
   (const Handle(IGESGraph_TextFontDef)& ent,
@@ -193,78 +190,6 @@ void  IGESGraph_ToolTextFontDef::OwnShared
     iter.GetOneItem( ent->SupersededFontEntity() );
 }
 
-void IGESGraph_ToolTextFontDef::OwnCopy
-  (const Handle(IGESGraph_TextFontDef)& another,
-   const Handle(IGESGraph_TextFontDef)& ent, Interface_CopyTool& TC) const
-{
-  Standard_Integer                            nbval;
-  Standard_Integer                            fontCode;
-  Handle(TCollection_HAsciiString)            fontName;
-  Standard_Integer                            supersededFont=0;
-  Handle(IGESGraph_TextFontDef)               supersededEntity;
-  Standard_Integer                            scale;
-  Handle(TColStd_HArray1OfInteger)            aSCIICodes, nextCharX,nextCharY;
-  Handle(TColStd_HArray1OfInteger)            penMotions;
-  Handle(IGESBasic_HArray1OfHArray1OfInteger) penFlags,movePenX,movePenY;
-
-  Standard_Integer                            tempMotion;
-  Handle(TColStd_HArray1OfInteger)            intarray,xarray,yarray;
-  nbval       = another->NbCharacters();
-  aSCIICodes  = new TColStd_HArray1OfInteger(1, nbval);
-  nextCharX   = new TColStd_HArray1OfInteger(1, nbval);
-  nextCharY   = new TColStd_HArray1OfInteger(1, nbval);
-  penMotions  = new TColStd_HArray1OfInteger(1, nbval);
-  penFlags    = new IGESBasic_HArray1OfHArray1OfInteger(1, nbval);
-  movePenX    = new IGESBasic_HArray1OfHArray1OfInteger(1, nbval);
-  movePenY    = new IGESBasic_HArray1OfHArray1OfInteger(1, nbval);
-
-  fontCode = another->FontCode();
-  fontName = new TCollection_HAsciiString(another->FontName());
-
-  if ( another->IsSupersededFontEntity() )
-    supersededEntity = 
-      Handle(IGESGraph_TextFontDef)::DownCast (TC.Transferred(another->SupersededFontEntity()));
-  else
-    supersededFont = another->SupersededFontCode();
-
-  scale = another->Scale();
-
-  Standard_Integer j, IX,IY;
-
-  for (Standard_Integer i = 1; i <= nbval; i++)
-    {
-      aSCIICodes->SetValue( i, another->ASCIICode(i) );
-      ent->NextCharOrigin (i,IX,IY);
-      nextCharX->SetValue ( i, IX);
-      nextCharY->SetValue ( i, IY);
-
-      tempMotion = another->NbPenMotions(i);
-      penMotions->SetValue( i, tempMotion );
-
-      intarray = new TColStd_HArray1OfInteger(1, tempMotion);
-      xarray   = new TColStd_HArray1OfInteger(1, tempMotion);
-      yarray   = new TColStd_HArray1OfInteger(1, tempMotion);
-
-      for (j = 1; j <= tempMotion; j++)
-       {
-          if ( another->IsPenUp(i, j) ) intarray->SetValue(j, 1);
-          else                          intarray->SetValue(j, 0);
-
-         another->NextPenPosition(i, j, IX,IY);
-          xarray->SetValue(j, IX);
-          yarray->SetValue(j, IY);
-       }
-      penFlags->SetValue(i, intarray);
-      movePenX->SetValue(i, xarray);
-      movePenY->SetValue(i, yarray);
-    }
-
-  ent->Init(fontCode, fontName, supersededFont, supersededEntity,
-           scale, aSCIICodes, nextCharX, nextCharY, penMotions,
-           penFlags, movePenX, movePenY);
-}
-
 IGESData_DirChecker IGESGraph_ToolTextFontDef::DirChecker
   (const Handle(IGESGraph_TextFontDef)& /*ent*/)  const
 { 
@@ -280,12 +205,6 @@ IGESData_DirChecker IGESGraph_ToolTextFontDef::DirChecker
   return DC;
 }
 
-void IGESGraph_ToolTextFontDef::OwnCheck
-  (const Handle(IGESGraph_TextFontDef)& /*ent*/,
-   const Interface_ShareTool& , Handle(Interface_Check)& /*ach*/)  const
-{
-}
-
 void IGESGraph_ToolTextFontDef::OwnDump
   (const Handle(IGESGraph_TextFontDef)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level)  const
index 823e2e1d458bd7b8b2043a53a9318bf4811ff554..4e77e0e5139ce86de716e465626badd8013d2ae6 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESGraph_ToolTextFontDef 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolTextFontDef, ready to work
-  Standard_EXPORT IGESGraph_ToolTextFontDef();
+  IGESGraph_ToolTextFontDef() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -62,36 +60,8 @@ public:
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESGraph_TextFontDef)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESGraph_TextFontDef)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESGraph_TextFontDef)& entfrom, const Handle(IGESGraph_TextFontDef)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESGraph_TextFontDef)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESGraph_ToolTextFontDef_HeaderFile
index ac25b72e09a970b27cefac0de5543db5c574c94a..7bfd1ebadfaee58f4074e48f2361024ed4c9aec2 100644 (file)
 #include <IGESGraph_ToolUniformRectGrid.hxx>
 #include <IGESGraph_UniformRectGrid.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESGraph_ToolUniformRectGrid::IGESGraph_ToolUniformRectGrid ()    {  }
-
 
 void IGESGraph_ToolUniformRectGrid::ReadOwnParams
   (const Handle(IGESGraph_UniformRectGrid)& ent,
@@ -102,22 +99,6 @@ void IGESGraph_ToolUniformRectGrid::WriteOwnParams
   IW.Send( ent->NbPointsY() );
 }
 
-void  IGESGraph_ToolUniformRectGrid::OwnShared
-  (const Handle(IGESGraph_UniformRectGrid)& /*ent*/, Interface_EntityIterator& /*iter*/) const
-{
-}
-
-void IGESGraph_ToolUniformRectGrid::OwnCopy
-  (const Handle(IGESGraph_UniformRectGrid)& another,
-   const Handle(IGESGraph_UniformRectGrid)& ent, Interface_CopyTool& /*TC*/) const
-{
-  ent->Init
-    (9, (another->IsFinite() ? 1 : 0), (another->IsLine() ? 1 : 0),
-     (another->IsWeighted() ? 0 : 1),
-     another->GridPoint().XY(),another->GridSpacing().XY(),
-     another->NbPointsX(), another->NbPointsY());
-}
-
 Standard_Boolean  IGESGraph_ToolUniformRectGrid::OwnCorrect
   (const Handle(IGESGraph_UniformRectGrid)& ent) const
 {
index fc46ea5a4828043ae8d15eccaa34053b70bebf8b..f6d00ec6cd0a32e7b5c0b661a2f033728a699bfc 100644 (file)
@@ -32,7 +32,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -41,13 +40,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESGraph_ToolUniformRectGrid 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolUniformRectGrid, ready to work
-  Standard_EXPORT IGESGraph_ToolUniformRectGrid();
+  IGESGraph_ToolUniformRectGrid() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -56,10 +54,6 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESGraph_UniformRectGrid)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a UniformRectGrid <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESGraph_UniformRectGrid)& ent, Interface_EntityIterator& iter) const;
-  
   //! Sets automatic unambiguous Correction on a UniformRectGrid
   //! (NbPropertyValues forced to 9)
   Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESGraph_UniformRectGrid)& ent) const;
@@ -70,33 +64,8 @@ public:
   //! Performs Specific Semantic Check
   Standard_EXPORT void OwnCheck (const Handle(IGESGraph_UniformRectGrid)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
   
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESGraph_UniformRectGrid)& entfrom, const Handle(IGESGraph_UniformRectGrid)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESGraph_UniformRectGrid)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESGraph_ToolUniformRectGrid_HeaderFile
index 46de080422375c1fec1054018194f2f98184e964..f3b5a7762a034f6853e920015bbc36035e064494 100644 (file)
@@ -11,7 +11,7 @@
 // Alternatively, this file may be used under the terms of Open CASCADE
 // commercial license or contractual agreement.
 
-
+/*
 #include <IGESData_SpecificLib.hxx>
 #include <IGESData_WriterLib.hxx>
 #include <IGESGeom.hxx>
 #include <Interface_GeneralLib.hxx>
 #include <Interface_ReaderLib.hxx>
 
-//  Ancillary data to work on a Package of IGES Entities with a Protocol
-//  (Modules are created and loaded in appropriate libraries, once by Init)
-static Handle(IGESSolid_Protocol) protocol;
-
 void IGESSolid::Init ()
 {
   IGESGeom::Init();
+  IGESSolid::Protocol();
+}
+
+const Handle(IGESSolid_Protocol) & IGESSolid::Protocol ()
+{
+  static Handle(IGESSolid_Protocol) protocol;
   if (protocol.IsNull()) {
     protocol = new IGESSolid_Protocol;
     Interface_GeneralLib::SetGlobal (new IGESSolid_GeneralModule,  protocol);
@@ -37,9 +39,6 @@ void IGESSolid::Init ()
     IGESData_WriterLib::SetGlobal   (new IGESSolid_ReadWriteModule,protocol);
     IGESData_SpecificLib::SetGlobal (new IGESSolid_SpecificModule, protocol);
   }
-}
-
-const Handle(IGESSolid_Protocol) & IGESSolid::Protocol ()
-{
   return protocol;
 }
+*/
index a8c7e4c25c8022894ebf253a87845b9c3d68c8c6..d7a18f4e33f713f97c639ac35e34bf5d9482ed0d 100644 (file)
@@ -19,7 +19,7 @@
 
 #include <Standard.hxx>
 #include <Standard_Handle.hxx>
-class IGESSolid_Protocol;
+/*class IGESSolid_Protocol;
 
 
 //! This package consists of B-Rep and CSG Solid entities
@@ -28,10 +28,10 @@ class IGESSolid
  public:
 
   //! Prepares dynamic data (Protocol, Modules) for this package
-  Standard_EXPORT static void Init();
+  //Standard_EXPORT static void Init();
   
   //! Returns the Protocol for this Package
-  Standard_EXPORT static const Handle(IGESSolid_Protocol) & Protocol();
+  //Standard_EXPORT static const Handle(IGESSolid_Protocol) & Protocol();
 };
-
+*/
 #endif // _IGESSolid_HeaderFile
index b8d5c12f6536b27095e46250f2a5fe5cc9c1a517..ddfc20c23e0267f4a7128c8234390f41cca8d85f 100644 (file)
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESSolid_Block,IGESData_IGESEntity)
 
-IGESSolid_Block::IGESSolid_Block ()    {  }
-
-
-    void  IGESSolid_Block::Init
+void IGESSolid_Block::Init
   (const gp_XYZ& aSize, const gp_XYZ& aCorner,
    const gp_XYZ& aXAxis, const gp_XYZ& aZAxis)
 {
@@ -39,92 +36,78 @@ IGESSolid_Block::IGESSolid_Block ()    {  }
   InitTypeAndForm(150,0);
 }
 
-    gp_XYZ  IGESSolid_Block::Size () const
-{
-  return theSize;
-}
-
-    Standard_Real  IGESSolid_Block::XLength () const
-{
-  return theSize.X();
-}
-
-    Standard_Real  IGESSolid_Block::YLength () const
-{
-  return theSize.Y();
-}
-
-    Standard_Real  IGESSolid_Block::ZLength () const
-{
-  return theSize.Z();
-}
-
-    gp_Pnt  IGESSolid_Block::Corner () const
+gp_Pnt IGESSolid_Block::Corner () const
 {
   return gp_Pnt(theCorner);
 }
 
-    gp_Pnt  IGESSolid_Block::TransformedCorner () const
+gp_Pnt IGESSolid_Block::TransformedCorner () const
 {
-  if (!HasTransf()) return gp_Pnt(theCorner);
-  else
-    {
-      gp_XYZ tmp = theCorner;
-      Location().Transforms(tmp);
-      return gp_Pnt(tmp);
-    }
+  if (!HasTransf())
+    return gp_Pnt(theCorner);
+
+  gp_XYZ tmp = theCorner;
+  Location().Transforms(tmp);
+  return gp_Pnt(tmp);
 }
 
-    gp_Dir  IGESSolid_Block::XAxis () const
+gp_Dir IGESSolid_Block::XAxis () const
 {
   return gp_Dir(theXAxis);
 }
 
-    gp_Dir  IGESSolid_Block::TransformedXAxis () const
+gp_Dir IGESSolid_Block::TransformedXAxis () const
 {
-  if (!HasTransf()) return gp_Dir(theXAxis);
-  else
-    {
-      gp_XYZ xyz = theXAxis;
-      gp_GTrsf loc = Location();
-      loc.SetTranslationPart(gp_XYZ(0.,0.,0.));
-      loc.Transforms(xyz);
-      return gp_Dir(xyz);
-    }
+  if (!HasTransf())
+    return gp_Dir(theXAxis);
+
+  gp_XYZ xyz = theXAxis;
+  gp_GTrsf loc = Location();
+  loc.SetTranslationPart(gp_XYZ(0.,0.,0.));
+  loc.Transforms(xyz);
+  return gp_Dir(xyz);
 }
 
-    gp_Dir  IGESSolid_Block::YAxis () const
+gp_Dir IGESSolid_Block::YAxis () const
 {
   return gp_Dir(theXAxis ^ theZAxis);     // ^ overloaded
 }
 
-    gp_Dir  IGESSolid_Block::TransformedYAxis () const
+gp_Dir IGESSolid_Block::TransformedYAxis () const
 {
-  if (!HasTransf()) return gp_Dir(theXAxis ^ theZAxis);
-  else
-    {
-      gp_XYZ xyz = theXAxis ^ theZAxis;
-      gp_GTrsf loc = Location();
-      loc.SetTranslationPart(gp_XYZ(0.,0.,0.));
-      loc.Transforms(xyz);
-      return gp_Dir(xyz);
-    }
+  if (!HasTransf())
+    return gp_Dir(theXAxis ^ theZAxis);
+
+  gp_XYZ xyz = theXAxis ^ theZAxis;
+  gp_GTrsf loc = Location();
+  loc.SetTranslationPart(gp_XYZ(0.,0.,0.));
+  loc.Transforms(xyz);
+  return gp_Dir(xyz);
 }
 
-    gp_Dir  IGESSolid_Block::ZAxis () const
+gp_Dir IGESSolid_Block::ZAxis () const
 {
   return gp_Dir(theZAxis);
 }
 
-    gp_Dir  IGESSolid_Block::TransformedZAxis () const
+gp_Dir IGESSolid_Block::TransformedZAxis () const
+{
+  if (!HasTransf())
+    return gp_Dir(theZAxis);
+
+  gp_XYZ xyz(theZAxis);
+  gp_GTrsf loc = Location();
+  loc.SetTranslationPart(gp_XYZ(0.,0.,0.));
+  loc.Transforms(xyz);
+  return gp_Dir(xyz);
+}
+
+void IGESSolid_Block::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
 {
-  if (!HasTransf()) return gp_Dir(theZAxis);
-  else
-    {
-      gp_XYZ xyz(theZAxis);
-      gp_GTrsf loc = Location();
-      loc.SetTranslationPart(gp_XYZ(0.,0.,0.));
-      loc.Transforms(xyz);
-      return gp_Dir(xyz);
-    }
+  const Standard_Real eps = 1.E-04;
+  const Standard_Real prosca = XAxis() * ZAxis();
+  if (prosca < -eps || prosca > eps)
+    theCheck->AddFail("Local Z axis : Not orthogonal to X axis");
+  if (Size().X() <= 0. || Size().Y() <= 0. || Size().Z() <= 0.)
+    theCheck->AddFail("Size : Not positive lengths");
 }
index 492ad07f91eeb81f8dfb01ca3013c545bcd28de5..a6761f7833dfab3dca7acb067e3dcd62fcbd8511 100644 (file)
 #ifndef _IGESSolid_Block_HeaderFile
 #define _IGESSolid_Block_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
 #include <gp_XYZ.hxx>
 #include <IGESData_IGESEntity.hxx>
-#include <Standard_Real.hxx>
-class gp_XYZ;
 class gp_Pnt;
 class gp_Dir;
 
@@ -38,11 +33,9 @@ DEFINE_STANDARD_HANDLE(IGESSolid_Block, IGESData_IGESEntity)
 //! the local +X, +Y, +Z axes.
 class IGESSolid_Block : public IGESData_IGESEntity
 {
+ public:
 
-public:
-
-  
-  Standard_EXPORT IGESSolid_Block();
+  IGESSolid_Block() {}
   
   //! This method is used to set the fields of the class Block
   //! - aSize   : Length in each local directions
@@ -54,17 +47,17 @@ public:
   Standard_EXPORT void Init (const gp_XYZ& aSize, const gp_XYZ& aCorner, const gp_XYZ& aXAxis, const gp_XYZ& aZAxis);
   
   //! returns the size of the block
-  Standard_EXPORT gp_XYZ Size() const;
+  const gp_XYZ & Size() const { return theSize; }
   
   //! returns the length of the Block along the local X-direction
-  Standard_EXPORT Standard_Real XLength() const;
-  
+  Standard_Real XLength() const { return theSize.X(); }
+
   //! returns the length of the Block along the local Y-direction
-  Standard_EXPORT Standard_Real YLength() const;
-  
+  Standard_Real YLength() const { return theSize.Y(); }
+
   //! returns the length of the Block along the local Z-direction
-  Standard_EXPORT Standard_Real ZLength() const;
-  
+  Standard_Real ZLength() const { return theSize.Z(); }
+
   //! returns the corner point coordinates of the Block
   Standard_EXPORT gp_Pnt Corner() const;
   
@@ -94,31 +87,16 @@ public:
   //! TransformationMatrix
   Standard_EXPORT gp_Dir TransformedZAxis() const;
 
-
-
+  Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
 
   DEFINE_STANDARD_RTTIEXT(IGESSolid_Block,IGESData_IGESEntity)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   gp_XYZ theSize;
   gp_XYZ theCorner;
   gp_XYZ theXAxis;
   gp_XYZ theZAxis;
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_Block_HeaderFile
index 5315b1a4af5958467573ab83aade9fbf477d28d5..655d2d9588d053872058c189097a6b5403e6e8a0 100644 (file)
 //--------------------------------------------------------------------
 //--------------------------------------------------------------------
 
-#include <IGESData_IGESEntity.hxx>
 #include <IGESSolid_BooleanTree.hxx>
 #include <Standard_DimensionError.hxx>
 #include <Standard_OutOfRange.hxx>
-#include <Standard_Type.hxx>
+#include <Interface_EntityIterator.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESSolid_BooleanTree,IGESData_IGESEntity)
 
-IGESSolid_BooleanTree::IGESSolid_BooleanTree ()    {  }
-
-
-    void  IGESSolid_BooleanTree::Init
+void IGESSolid_BooleanTree::Init
   (const Handle(IGESData_HArray1OfIGESEntity)& operands,
    const Handle(TColStd_HArray1OfInteger)& operations)
 {
@@ -40,28 +36,55 @@ IGESSolid_BooleanTree::IGESSolid_BooleanTree ()    {  }
   InitTypeAndForm(180,0);
 }
 
-    Standard_Integer IGESSolid_BooleanTree::Length () const
+Standard_Integer IGESSolid_BooleanTree::Length () const
 {
   return theOperands->Length();
 }
 
-    Standard_Boolean IGESSolid_BooleanTree::IsOperand
-  (const Standard_Integer Index) const
+Standard_Boolean IGESSolid_BooleanTree::IsOperand (const Standard_Integer Index) const
 {
   return (!theOperands->Value(Index).IsNull());
 }
 
-    Handle(IGESData_IGESEntity) IGESSolid_BooleanTree::Operand
-  (const Standard_Integer Index) const
+Handle(IGESData_IGESEntity) IGESSolid_BooleanTree::Operand (const Standard_Integer Index) const
 {
   return theOperands->Value(Index);
 }
 
-    Standard_Integer IGESSolid_BooleanTree::Operation
-  (const Standard_Integer Index) const
+Standard_Integer IGESSolid_BooleanTree::Operation (const Standard_Integer Index) const
 {
   if (theOperands->Value(Index).IsNull())
     return theOperations->Value(Index);
   else
     return 0;      // It is not an operation. (operations can be : 1-2-3)
 }
+
+void IGESSolid_BooleanTree::OwnShared(Interface_EntityIterator &theIter) const
+{
+  const Standard_Integer length = theOperands->Length();
+  for (Standard_Integer i = 1; i <= length; i++)
+  {
+    if (!theOperands->Value(i).IsNull())
+      theIter.GetOneItem(theOperands->Value(i));
+  }
+}
+
+void IGESSolid_BooleanTree::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
+{
+  const Standard_Integer length = Length();
+  if (length <= 2)
+    theCheck->AddFail("Length of post-order notation : Less than three");
+  else {
+    if (!IsOperand(1)) theCheck->AddFail("First Item is not an Operand");
+    if (!IsOperand(2)) theCheck->AddFail("Second Item is not an Operand");
+    if ( IsOperand(length)) theCheck->AddFail("Last Item is not an Operation");
+  }
+  for (Standard_Integer i = 1; i <= length; i ++) {
+    if (!Operand(i).IsNull()) continue;
+    if (Operation(i) < 1 || Operation(i) > 3) {
+      char mess[80];
+      sprintf(mess,"Item no. %d Incorrect",i);
+      theCheck->AddFail(mess);
+    }
+  }
+}
index 470f9aba2afbf53dba5b218eed3e29c95376809d..37c6d2196e98bbd89973631ef8978648b1d6ce0b 100644 (file)
 #ifndef _IGESSolid_BooleanTree_HeaderFile
 #define _IGESSolid_BooleanTree_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
 #include <IGESData_HArray1OfIGESEntity.hxx>
 #include <TColStd_HArray1OfInteger.hxx>
 #include <IGESData_IGESEntity.hxx>
-#include <Standard_Integer.hxx>
-#include <Standard_Boolean.hxx>
-class Standard_OutOfRange;
-class IGESData_IGESEntity;
 
 
 class IGESSolid_BooleanTree;
@@ -39,11 +32,9 @@ DEFINE_STANDARD_HANDLE(IGESSolid_BooleanTree, IGESData_IGESEntity)
 //! in post-order notation.
 class IGESSolid_BooleanTree : public IGESData_IGESEntity
 {
+ public:
 
-public:
-
-  
-  Standard_EXPORT IGESSolid_BooleanTree();
+  IGESSolid_BooleanTree() {}
   
   //! This method is used to set the fields of the class
   //! BooleanTree
@@ -69,29 +60,16 @@ public:
   //! raises exception if Index < 1 or Index > Length()
   Standard_EXPORT Standard_Integer Operation (const Standard_Integer Index) const;
 
+  Standard_EXPORT virtual void OwnShared(Interface_EntityIterator &theIter) const Standard_OVERRIDE;
 
-
+  Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
 
   DEFINE_STANDARD_RTTIEXT(IGESSolid_BooleanTree,IGESData_IGESEntity)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   Handle(IGESData_HArray1OfIGESEntity) theOperands;
   Handle(TColStd_HArray1OfInteger) theOperations;
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_BooleanTree_HeaderFile
index f430d71d1805ee26fa0d50f315152781e16ae88a..88c71f434b071424c24797ce17b86a2d3764cb89 100644 (file)
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESSolid_ConeFrustum,IGESData_IGESEntity)
 
-IGESSolid_ConeFrustum::IGESSolid_ConeFrustum ()    {  }
-
-
-    void IGESSolid_ConeFrustum::Init
+void IGESSolid_ConeFrustum::Init
   (const Standard_Real Ht, const Standard_Real R1,     const Standard_Real R2,
    const gp_XYZ& Center,   const gp_XYZ&       anAxis)
 {
@@ -40,51 +37,46 @@ IGESSolid_ConeFrustum::IGESSolid_ConeFrustum ()    {  }
   InitTypeAndForm(156,0);
 }
 
-    Standard_Real IGESSolid_ConeFrustum::Height () const
+gp_Pnt IGESSolid_ConeFrustum::FaceCenter () const
 {
-  return theHeight;
+  return gp_Pnt(theFaceCenter);
 }
 
-    Standard_Real IGESSolid_ConeFrustum::LargerRadius () const
+gp_Pnt IGESSolid_ConeFrustum::TransformedFaceCenter () const
 {
-  return theR1;
-}
+  if (!HasTransf())
+    return gp_Pnt(theFaceCenter);
 
-    Standard_Real IGESSolid_ConeFrustum::SmallerRadius () const
-{
-  return theR2;
+  gp_XYZ tmp = theFaceCenter;
+  Location().Transforms(tmp);
+  return gp_Pnt(tmp);
 }
 
-    gp_Pnt IGESSolid_ConeFrustum::FaceCenter () const
+gp_Dir IGESSolid_ConeFrustum::Axis () const
 {
-  return gp_Pnt(theFaceCenter);
+  return gp_Dir(theAxis);
 }
 
-    gp_Pnt IGESSolid_ConeFrustum::TransformedFaceCenter () const
+gp_Dir IGESSolid_ConeFrustum::TransformedAxis () const
 {
-  if (!HasTransf()) return gp_Pnt(theFaceCenter);
-  else
-    {
-      gp_XYZ tmp = theFaceCenter;
-      Location().Transforms(tmp);
-      return gp_Pnt(tmp);
-    }
-}
+  if (!HasTransf())
+    return gp_Dir(theAxis);
 
-    gp_Dir IGESSolid_ConeFrustum::Axis () const
-{
-  return gp_Dir(theAxis);
+  gp_XYZ xyz = theAxis;
+  gp_GTrsf loc = Location();
+  loc.SetTranslationPart(gp_XYZ(0.,0.,0.));
+  loc.Transforms(xyz);
+  return gp_Dir(xyz);
 }
 
-    gp_Dir IGESSolid_ConeFrustum::TransformedAxis () const
+void IGESSolid_ConeFrustum::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
 {
-  if (!HasTransf()) return gp_Dir(theAxis);
-  else
-    {
-      gp_XYZ xyz = theAxis;
-      gp_GTrsf loc = Location();
-      loc.SetTranslationPart(gp_XYZ(0.,0.,0.));
-      loc.Transforms(xyz);
-      return gp_Dir(xyz);
-    }
+  if (Height() <= 0.0)
+    theCheck->AddFail("Height : Value Not Positive");
+  if (LargerRadius() <= 0.0)
+    theCheck->AddFail("Larger face radius : Value Not Positive");
+  if (SmallerRadius() < 0.0)
+    theCheck->AddFail("Smaller face radius : Value Not Positive");
+  if (SmallerRadius() > LargerRadius())
+    theCheck->AddFail("Smaller face radius : is greater than Larger face radius");
 }
index ee9e6c19ff56269fdeb638e5d428824f5ba7734e..40cea4c9498cae7640cc45e3b2ef2c4d6abdac25 100644 (file)
 #ifndef _IGESSolid_ConeFrustum_HeaderFile
 #define _IGESSolid_ConeFrustum_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
-#include <Standard_Real.hxx>
 #include <gp_XYZ.hxx>
 #include <IGESData_IGESEntity.hxx>
-class gp_XYZ;
 class gp_Pnt;
 class gp_Dir;
 
@@ -40,11 +35,9 @@ DEFINE_STANDARD_HANDLE(IGESSolid_ConeFrustum, IGESData_IGESEntity)
 //! than the first face.
 class IGESSolid_ConeFrustum : public IGESData_IGESEntity
 {
+ public:
 
-public:
-
-  
-  Standard_EXPORT IGESSolid_ConeFrustum();
+  IGESSolid_ConeFrustum() {}
   
   //! This method is used to set the fields of the class
   //! ConeFrustum
@@ -56,14 +49,14 @@ public:
   Standard_EXPORT void Init (const Standard_Real Ht, const Standard_Real R1, const Standard_Real R2, const gp_XYZ& Center, const gp_XYZ& anAxis);
   
   //! returns the height of the cone frustum
-  Standard_EXPORT Standard_Real Height() const;
-  
+  Standard_Real Height() const { return theHeight; }
+
   //! returns the radius of the larger face of the cone frustum
-  Standard_EXPORT Standard_Real LargerRadius() const;
-  
+  Standard_Real LargerRadius() const { return theR1; }
+
   //! returns the radius of the second face of the cone frustum
-  Standard_EXPORT Standard_Real SmallerRadius() const;
-  
+  Standard_Real SmallerRadius() const { return theR2; }
+
   //! returns the center of the larger face of the cone frustum
   Standard_EXPORT gp_Pnt FaceCenter() const;
   
@@ -78,32 +71,17 @@ public:
   //! after applying TransformationMatrix
   Standard_EXPORT gp_Dir TransformedAxis() const;
 
-
-
+  Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
 
   DEFINE_STANDARD_RTTIEXT(IGESSolid_ConeFrustum,IGESData_IGESEntity)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   Standard_Real theHeight;
   Standard_Real theR1;
   Standard_Real theR2;
   gp_XYZ theFaceCenter;
   gp_XYZ theAxis;
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_ConeFrustum_HeaderFile
index dcc4524d9eb628be9c783192b9579a0cb485c392..a18d1ac60f558cac70445d462ebceb16028ad0b9 100644 (file)
 #include <IGESGeom_Direction.hxx>
 #include <IGESGeom_Point.hxx>
 #include <IGESSolid_ConicalSurface.hxx>
-#include <Standard_Type.hxx>
+#include <Interface_EntityIterator.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESSolid_ConicalSurface,IGESData_IGESEntity)
 
-IGESSolid_ConicalSurface::IGESSolid_ConicalSurface ()    {  }
-
-
-    void  IGESSolid_ConicalSurface::Init
+void IGESSolid_ConicalSurface::Init
   (const Handle(IGESGeom_Point)&     aLocation,
    const Handle(IGESGeom_Direction)& anAxis,
    const Standard_Real aRadius,  const Standard_Real anAngle,
@@ -40,32 +37,19 @@ IGESSolid_ConicalSurface::IGESSolid_ConicalSurface ()    {  }
   InitTypeAndForm(194, (theRefDir.IsNull() ? 0 : 1));
 }
 
-    Handle(IGESGeom_Point) IGESSolid_ConicalSurface::LocationPoint () const
-{
-  return theLocationPoint;
-}
-
-    Handle(IGESGeom_Direction) IGESSolid_ConicalSurface::Axis () const
-{
-  return theAxis;
-}
-
-    Standard_Real IGESSolid_ConicalSurface::Radius () const
-{
-  return theRadius;
-}
-
-    Standard_Real IGESSolid_ConicalSurface::SemiAngle () const
-{
-  return theAngle;
-}
-
-    Handle(IGESGeom_Direction) IGESSolid_ConicalSurface::ReferenceDir () const
+void IGESSolid_ConicalSurface::OwnShared(Interface_EntityIterator &theIter) const
 {
-  return theRefDir;
+  theIter.GetOneItem(LocationPoint());
+  theIter.GetOneItem(Axis());
+  theIter.GetOneItem(ReferenceDir());
 }
 
-    Standard_Boolean IGESSolid_ConicalSurface::IsParametrised () const
+void IGESSolid_ConicalSurface::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
 {
-  return (!theRefDir.IsNull());
+  if (Radius() < 0.0)
+    theCheck->AddFail("Radius : Value Negative");
+  if (SemiAngle() < 0.0 || SemiAngle() > 90.0)
+    theCheck->AddFail("Semi-angle : Value not in the range [0 - 90]");
+  const Standard_Integer fn = (IsParametrised()? 1 : 0);
+  if (fn != FormNumber()) theCheck->AddFail("Parametrised Status Mismatches with Form Number");
 }
index 69d1cb5c6e3d9654b60ac008a10c3bb662196cf8..18ec1e6571acfa4e4154f0718cab78f946f618f4 100644 (file)
 #ifndef _IGESSolid_ConicalSurface_HeaderFile
 #define _IGESSolid_ConicalSurface_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
-#include <Standard_Real.hxx>
 #include <IGESData_IGESEntity.hxx>
-#include <Standard_Boolean.hxx>
 class IGESGeom_Point;
 class IGESGeom_Direction;
 
@@ -38,11 +33,9 @@ DEFINE_STANDARD_HANDLE(IGESSolid_ConicalSurface, IGESData_IGESEntity)
 //! the cone semi-angle.
 class IGESSolid_ConicalSurface : public IGESData_IGESEntity
 {
+ public:
 
-public:
-
-  
-  Standard_EXPORT IGESSolid_ConicalSurface();
+  IGESSolid_ConicalSurface() {}
   
   //! This method is used to set the fields of the class
   //! ConicalSurface
@@ -55,51 +48,37 @@ public:
   Standard_EXPORT void Init (const Handle(IGESGeom_Point)& aLocation, const Handle(IGESGeom_Direction)& anAxis, const Standard_Real aRadius, const Standard_Real anAngle, const Handle(IGESGeom_Direction)& aRefdir);
   
   //! returns the location of the point on the axis
-  Standard_EXPORT Handle(IGESGeom_Point) LocationPoint() const;
+  const Handle(IGESGeom_Point) & LocationPoint() const { return theLocationPoint; }
   
   //! returns the direction of the axis
-  Standard_EXPORT Handle(IGESGeom_Direction) Axis() const;
+  const Handle(IGESGeom_Direction) & Axis() const { return theAxis; }
   
   //! returns the radius at the axis point
-  Standard_EXPORT Standard_Real Radius() const;
+  Standard_Real Radius() const { return theRadius; }
   
   //! returns the semi-angle value
-  Standard_EXPORT Standard_Real SemiAngle() const;
+  Standard_Real SemiAngle() const { return theAngle; }
   
   //! returns the reference direction of the conical surface in case
-  //! of parametrised surface. For unparametrised surface it returns
-  //! NULL.
-  Standard_EXPORT Handle(IGESGeom_Direction) ReferenceDir() const;
+  //! of parametrised surface. For unparametrised surface it returns NULL.
+  const Handle(IGESGeom_Direction) & ReferenceDir() const { return theRefDir; }
   
   //! returns True if Form no is 1 else false
-  Standard_EXPORT Standard_Boolean IsParametrised() const;
-
+  Standard_Boolean IsParametrised() const { return (!theRefDir.IsNull()); }
 
+  Standard_EXPORT virtual void OwnShared(Interface_EntityIterator &theIter) const Standard_OVERRIDE;
 
+  Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
 
   DEFINE_STANDARD_RTTIEXT(IGESSolid_ConicalSurface,IGESData_IGESEntity)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   Handle(IGESGeom_Point) theLocationPoint;
   Handle(IGESGeom_Direction) theAxis;
   Standard_Real theRadius;
   Standard_Real theAngle;
   Handle(IGESGeom_Direction) theRefDir;
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_ConicalSurface_HeaderFile
index e87969fdb10e471a6077a90e7d0331da187c0f58..b1c9e5b66a5f34d93aee0878522d3645851dee60 100644 (file)
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESSolid_Cylinder,IGESData_IGESEntity)
 
-IGESSolid_Cylinder::IGESSolid_Cylinder ()    {  }
-
-
-    void  IGESSolid_Cylinder::Init
+void IGESSolid_Cylinder::Init
   (const Standard_Real aHeight, const Standard_Real aRadius,
    const gp_XYZ& aCenter, const gp_XYZ& anAxis)
 {
@@ -39,46 +36,42 @@ IGESSolid_Cylinder::IGESSolid_Cylinder ()    {  }
   InitTypeAndForm(154,0);
 }
 
-    Standard_Real  IGESSolid_Cylinder::Height () const
+gp_Pnt IGESSolid_Cylinder::FaceCenter () const
 {
-  return theHeight;
+  return gp_Pnt(theFaceCenter);
 }
 
-    Standard_Real  IGESSolid_Cylinder::Radius () const
+gp_Pnt IGESSolid_Cylinder::TransformedFaceCenter () const
 {
-  return theRadius;
-}
+  if (!HasTransf())
+    return gp_Pnt(theFaceCenter);
 
-    gp_Pnt  IGESSolid_Cylinder::FaceCenter () const
-{
-  return gp_Pnt(theFaceCenter);
+  gp_XYZ tmp = theFaceCenter;
+  Location().Transforms(tmp);
+  return gp_Pnt(tmp);
 }
 
-    gp_Pnt  IGESSolid_Cylinder::TransformedFaceCenter () const
+gp_Dir IGESSolid_Cylinder::Axis () const
 {
-  if (!HasTransf()) return gp_Pnt(theFaceCenter);
-  else
-    {
-      gp_XYZ tmp = theFaceCenter;
-      Location().Transforms(tmp);
-      return gp_Pnt(tmp);
-    }
+  return gp_Dir(theAxis);
 }
 
-    gp_Dir  IGESSolid_Cylinder::Axis () const
+gp_Dir IGESSolid_Cylinder::TransformedAxis () const
 {
-  return gp_Dir(theAxis);
+  if (!HasTransf())
+    return gp_Dir(theAxis);
+
+  gp_XYZ tmp = theAxis;
+  gp_GTrsf loc = Location();
+  loc.SetTranslationPart(gp_XYZ(0.,0.,0.));
+  loc.Transforms(tmp);
+  return gp_Dir(tmp);
 }
 
-    gp_Dir  IGESSolid_Cylinder::TransformedAxis () const
+void IGESSolid_Cylinder::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
 {
-  if (!HasTransf()) return gp_Dir(theAxis);
-  else
-    {
-      gp_XYZ tmp = theAxis;
-      gp_GTrsf loc = Location();
-      loc.SetTranslationPart(gp_XYZ(0.,0.,0.));
-      loc.Transforms(tmp);
-      return gp_Dir(tmp);
-    }
+  if (Height() <= 0.0)
+    theCheck->AddFail("Height : Value < 0");
+  if (Radius() <= 0.0)
+    theCheck->AddFail("Radius : Value < 0");
 }
index 7b4190dd46ea49afc34019c8b2cb281ae62a9057..cf096ad1429f177f9fdb601d9aeae191214f78cb 100644 (file)
 #ifndef _IGESSolid_Cylinder_HeaderFile
 #define _IGESSolid_Cylinder_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
-#include <Standard_Real.hxx>
 #include <gp_XYZ.hxx>
 #include <IGESData_IGESEntity.hxx>
-class gp_XYZ;
 class gp_Pnt;
 class gp_Dir;
 
@@ -36,11 +31,9 @@ DEFINE_STANDARD_HANDLE(IGESSolid_Cylinder, IGESData_IGESEntity)
 //! This defines a solid cylinder
 class IGESSolid_Cylinder : public IGESData_IGESEntity
 {
+ public:
 
-public:
-
-  
-  Standard_EXPORT IGESSolid_Cylinder();
+  IGESSolid_Cylinder() {}
   
   //! This method is used to set the fields of the class
   //! Cylinder
@@ -51,11 +44,11 @@ public:
   Standard_EXPORT void Init (const Standard_Real aHeight, const Standard_Real aRadius, const gp_XYZ& aCenter, const gp_XYZ& anAxis);
   
   //! returns the cylinder height
-  Standard_EXPORT Standard_Real Height() const;
-  
+  Standard_Real Height() const { return theHeight; }
+
   //! returns the cylinder radius
-  Standard_EXPORT Standard_Real Radius() const;
-  
+  Standard_Real Radius() const { return theRadius; }
+
   //! returns the first face center coordinates.
   Standard_EXPORT gp_Pnt FaceCenter() const;
   
@@ -69,31 +62,16 @@ public:
   //! TransformationMatrix
   Standard_EXPORT gp_Dir TransformedAxis() const;
 
-
-
+  Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
 
   DEFINE_STANDARD_RTTIEXT(IGESSolid_Cylinder,IGESData_IGESEntity)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   Standard_Real theHeight;
   Standard_Real theRadius;
   gp_XYZ theFaceCenter;
   gp_XYZ theAxis;
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_Cylinder_HeaderFile
index 7065227327590b3c2037a0a0cb9dc645d604e726..4c7e5076613ae488fca759d6276f00a52e15d50f 100644 (file)
 #include <IGESGeom_Direction.hxx>
 #include <IGESGeom_Point.hxx>
 #include <IGESSolid_CylindricalSurface.hxx>
-#include <Standard_Type.hxx>
+#include <Interface_EntityIterator.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESSolid_CylindricalSurface,IGESData_IGESEntity)
 
-IGESSolid_CylindricalSurface::IGESSolid_CylindricalSurface ()    {  }
-
-
-    void  IGESSolid_CylindricalSurface::Init
+void IGESSolid_CylindricalSurface::Init
   (const Handle(IGESGeom_Point)&     aLocation,
    const Handle(IGESGeom_Direction)& anAxis,
    const Standard_Real    aRadius,
@@ -39,28 +36,17 @@ IGESSolid_CylindricalSurface::IGESSolid_CylindricalSurface ()    {  }
   InitTypeAndForm(192, (theRefDir.IsNull() ? 0 : 1));
 }
 
-    Handle(IGESGeom_Point) IGESSolid_CylindricalSurface::LocationPoint () const
-{
-  return theLocationPoint;
-}
-
-    Handle(IGESGeom_Direction) IGESSolid_CylindricalSurface::Axis () const
-{
-  return theAxis;
-}
-
-    Standard_Real IGESSolid_CylindricalSurface::Radius () const
-{
-  return theRadius;
-}
-
-    Handle(IGESGeom_Direction)  IGESSolid_CylindricalSurface::ReferenceDir () const
+void IGESSolid_CylindricalSurface::OwnShared(Interface_EntityIterator &theIter) const
 {
-  return theRefDir;
+  theIter.GetOneItem(LocationPoint());
+  theIter.GetOneItem(Axis());
+  theIter.GetOneItem(ReferenceDir());
 }
 
-    Standard_Boolean  IGESSolid_CylindricalSurface::IsParametrised () const
+void IGESSolid_CylindricalSurface::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
 {
-  return (!theRefDir.IsNull());
+  if (Radius() <= 0.0)
+    theCheck->AddFail("Radius : Value <= 0.0");
+  const Standard_Integer fn = (IsParametrised()? 1 : 0);
+  if (fn != FormNumber()) theCheck->AddFail("Parametrised Status Mismatches with Form Number");
 }
-
index 0659ae2ec7be7038a20b4c4656f004ecd72b3603..00ab31cd0fabb5ebe3832000b070b258ba9faf38 100644 (file)
 #ifndef _IGESSolid_CylindricalSurface_HeaderFile
 #define _IGESSolid_CylindricalSurface_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
-#include <Standard_Real.hxx>
 #include <IGESData_IGESEntity.hxx>
-#include <Standard_Boolean.hxx>
 class IGESGeom_Point;
 class IGESGeom_Direction;
 
@@ -34,11 +29,9 @@ DEFINE_STANDARD_HANDLE(IGESSolid_CylindricalSurface, IGESData_IGESEntity)
 //! in package IGESSolid
 class IGESSolid_CylindricalSurface : public IGESData_IGESEntity
 {
+ public:
 
-public:
-
-  
-  Standard_EXPORT IGESSolid_CylindricalSurface();
+  IGESSolid_CylindricalSurface() {}
   
   //! This method is used to set the fields of the class
   //! CylindricalSurface
@@ -50,46 +43,32 @@ public:
   Standard_EXPORT void Init (const Handle(IGESGeom_Point)& aLocation, const Handle(IGESGeom_Direction)& anAxis, const Standard_Real aRadius, const Handle(IGESGeom_Direction)& aRefdir);
   
   //! returns the point on the axis
-  Standard_EXPORT Handle(IGESGeom_Point) LocationPoint() const;
-  
+  const Handle(IGESGeom_Point) & LocationPoint() const { return theLocationPoint; }
+
   //! returns the direction on the axis
-  Standard_EXPORT Handle(IGESGeom_Direction) Axis() const;
-  
+  const Handle(IGESGeom_Direction) & Axis() const { return theAxis; }
+
   //! returns the radius at the axis point
-  Standard_EXPORT Standard_Real Radius() const;
-  
+  Standard_Real Radius() const { return theRadius; }
+
   //! returns whether the surface is parametrised or not
-  Standard_EXPORT Standard_Boolean IsParametrised() const;
-  
-  //! returns the reference direction only for parametrised surface
-  //! else returns NULL
-  Standard_EXPORT Handle(IGESGeom_Direction) ReferenceDir() const;
+  Standard_Boolean IsParametrised() const { return (!theRefDir.IsNull()); }
 
+  //! returns the reference direction only for parametrised surface else returns NULL
+  const Handle(IGESGeom_Direction) & ReferenceDir() const { return theRefDir; }
 
+  Standard_EXPORT virtual void OwnShared(Interface_EntityIterator &theIter) const Standard_OVERRIDE;
 
+  Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
 
   DEFINE_STANDARD_RTTIEXT(IGESSolid_CylindricalSurface,IGESData_IGESEntity)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   Handle(IGESGeom_Point) theLocationPoint;
   Handle(IGESGeom_Direction) theAxis;
   Standard_Real theRadius;
   Handle(IGESGeom_Direction) theRefDir;
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_CylindricalSurface_HeaderFile
index c3ae8caf65cd634cef94d463e44172c9f30650ef..e995629b4706b37295750a6cbda9a3a3e6ff307d 100644 (file)
 #include <IGESSolid_VertexList.hxx>
 #include <Standard_DimensionMismatch.hxx>
 #include <Standard_OutOfRange.hxx>
-#include <Standard_Type.hxx>
+#include <Interface_EntityIterator.hxx>
+#include <Message_Msg.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESSolid_EdgeList,IGESData_IGESEntity)
 
-IGESSolid_EdgeList::IGESSolid_EdgeList ()    {  }
-
-
-    void  IGESSolid_EdgeList::Init
+void IGESSolid_EdgeList::Init
   (const Handle(IGESData_HArray1OfIGESEntity)& Curves,
    const Handle(IGESSolid_HArray1OfVertexList)& startVertexList,
    const Handle(TColStd_HArray1OfInteger)& startVertexIndex,
@@ -53,37 +51,51 @@ IGESSolid_EdgeList::IGESSolid_EdgeList ()    {  }
   InitTypeAndForm(504,1);
 }
 
-    Standard_Integer  IGESSolid_EdgeList::NbEdges () const
+Standard_Integer IGESSolid_EdgeList::NbEdges () const
 {
   return (theCurves.IsNull() ? 0 : theCurves->Length());
 }
 
-    Handle(IGESData_IGESEntity)  IGESSolid_EdgeList::Curve
-  (const Standard_Integer num) const
+const Handle(IGESData_IGESEntity) & IGESSolid_EdgeList::Curve (const Standard_Integer num) const
 {
   return theCurves->Value(num);
 }
 
-    Handle(IGESSolid_VertexList)  IGESSolid_EdgeList::StartVertexList
-  (const Standard_Integer num) const
+const Handle(IGESSolid_VertexList) & IGESSolid_EdgeList::StartVertexList (const Standard_Integer num) const
 {
   return theStartVertexList->Value(num);
 }
 
-    Standard_Integer  IGESSolid_EdgeList::StartVertexIndex
-  (const Standard_Integer num) const
+Standard_Integer IGESSolid_EdgeList::StartVertexIndex (const Standard_Integer num) const
 {
   return theStartVertexIndex->Value(num);
 }
 
-    Handle(IGESSolid_VertexList)  IGESSolid_EdgeList::EndVertexList
-  (const Standard_Integer num) const
+const Handle(IGESSolid_VertexList) & IGESSolid_EdgeList::EndVertexList (const Standard_Integer num) const
 {
   return theEndVertexList->Value(num);
 }
 
-    Standard_Integer  IGESSolid_EdgeList::EndVertexIndex
-  (const Standard_Integer num) const
+Standard_Integer IGESSolid_EdgeList::EndVertexIndex (const Standard_Integer num) const
 {
   return theEndVertexIndex->Value(num);
 }
+
+void IGESSolid_EdgeList::OwnShared(Interface_EntityIterator &theIter) const
+{
+  const Standard_Integer length = NbEdges();
+  for (Standard_Integer i = 1; i <= length; i ++)
+  {
+    theIter.GetOneItem(Curve(i));
+    theIter.GetOneItem(StartVertexList(i));
+    theIter.GetOneItem(EndVertexList(i));
+  }
+}
+
+void IGESSolid_EdgeList::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
+{
+  if (NbEdges() <= 0) {
+    Message_Msg Msg184("XSTEP_184");
+    theCheck->SendFail(Msg184);
+  }
+}
index bfb1e130ea5e493db654494aa055c4990caa5d11..bf8bfbc243c69468a17a7a54367f230a6d3558fa 100644 (file)
 #ifndef _IGESSolid_EdgeList_HeaderFile
 #define _IGESSolid_EdgeList_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
 #include <IGESData_HArray1OfIGESEntity.hxx>
 #include <IGESSolid_HArray1OfVertexList.hxx>
 #include <TColStd_HArray1OfInteger.hxx>
 #include <IGESData_IGESEntity.hxx>
-#include <Standard_Integer.hxx>
-class Standard_DimensionMismatch;
-class Standard_OutOfRange;
-class IGESData_IGESEntity;
 class IGESSolid_VertexList;
 
 
@@ -40,11 +33,9 @@ DEFINE_STANDARD_HANDLE(IGESSolid_EdgeList, IGESData_IGESEntity)
 //! It contains one or more edge tuples.
 class IGESSolid_EdgeList : public IGESData_IGESEntity
 {
+ public:
 
-public:
-
-  
-  Standard_EXPORT IGESSolid_EdgeList();
+  IGESSolid_EdgeList() {}
   
   //! This method is used to set the fields of the class
   //! EdgeList
@@ -66,11 +57,11 @@ public:
   
   //! returns the num'th model space curve
   //! raises Exception if num <= 0 or num > NbEdges()
-  Standard_EXPORT Handle(IGESData_IGESEntity) Curve (const Standard_Integer num) const;
+  Standard_EXPORT const Handle(IGESData_IGESEntity) & Curve (const Standard_Integer num) const;
   
   //! returns the num'th start vertex list
   //! raises Exception if num <= 0 or num > NbEdges()
-  Standard_EXPORT Handle(IGESSolid_VertexList) StartVertexList (const Standard_Integer num) const;
+  Standard_EXPORT const Handle(IGESSolid_VertexList) & StartVertexList (const Standard_Integer num) const;
   
   //! returns the index of num'th start vertex in
   //! the corresponding start vertex list
@@ -79,39 +70,26 @@ public:
   
   //! returns the num'th end vertex list
   //! raises Exception if num <= 0 or num > NbEdges()
-  Standard_EXPORT Handle(IGESSolid_VertexList) EndVertexList (const Standard_Integer num) const;
+  Standard_EXPORT const Handle(IGESSolid_VertexList) & EndVertexList (const Standard_Integer num) const;
   
   //! returns the index of num'th end vertex in
   //! the corresponding end vertex list
   //! raises Exception if num <= 0 or num > NbEdges()
   Standard_EXPORT Standard_Integer EndVertexIndex (const Standard_Integer num) const;
 
+  Standard_EXPORT virtual void OwnShared(Interface_EntityIterator &theIter) const Standard_OVERRIDE;
 
-
+  Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
 
   DEFINE_STANDARD_RTTIEXT(IGESSolid_EdgeList,IGESData_IGESEntity)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   Handle(IGESData_HArray1OfIGESEntity) theCurves;
   Handle(IGESSolid_HArray1OfVertexList) theStartVertexList;
   Handle(TColStd_HArray1OfInteger) theStartVertexIndex;
   Handle(IGESSolid_HArray1OfVertexList) theEndVertexList;
   Handle(TColStd_HArray1OfInteger) theEndVertexIndex;
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_EdgeList_HeaderFile
index 583089c81906bb1c9a27256d76b26c638a8d1d80..1541d285ec50a9bdbbe6a93b38c136d633d4ffc2 100644 (file)
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESSolid_Ellipsoid,IGESData_IGESEntity)
 
-IGESSolid_Ellipsoid::IGESSolid_Ellipsoid ()    {  }
-
-
-    void  IGESSolid_Ellipsoid::Init
+void IGESSolid_Ellipsoid::Init
   (const gp_XYZ& aSize,   const gp_XYZ& aCenter,
    const gp_XYZ& anXAxis, const gp_XYZ& anZAxis)
 {
@@ -39,92 +36,80 @@ IGESSolid_Ellipsoid::IGESSolid_Ellipsoid ()    {  }
   InitTypeAndForm(168,0);
 }
 
-    gp_XYZ  IGESSolid_Ellipsoid::Size () const
-{
-  return theSize;
-}
-
-    Standard_Real  IGESSolid_Ellipsoid::XLength () const
-{
-  return theSize.X();
-}
-
-    Standard_Real  IGESSolid_Ellipsoid::YLength () const
-{
-  return theSize.Y();
-}
-
-    Standard_Real  IGESSolid_Ellipsoid::ZLength () const
-{
-  return theSize.Z();
-}
-
-    gp_Pnt  IGESSolid_Ellipsoid::Center () const
+gp_Pnt IGESSolid_Ellipsoid::Center () const
 {
   return gp_Pnt(theCenter);
 }
 
-    gp_Pnt  IGESSolid_Ellipsoid::TransformedCenter () const
+gp_Pnt IGESSolid_Ellipsoid::TransformedCenter () const
 {
-  if (!HasTransf()) return gp_Pnt(theCenter);
-  else
-    {
-      gp_XYZ tmp = theCenter;
-      Location().Transforms(tmp);
-      return gp_Pnt(tmp);
-    }
+  if (!HasTransf())
+    return gp_Pnt(theCenter);
+
+  gp_XYZ tmp = theCenter;
+  Location().Transforms(tmp);
+  return gp_Pnt(tmp);
 }
 
-    gp_Dir  IGESSolid_Ellipsoid::XAxis () const
+gp_Dir IGESSolid_Ellipsoid::XAxis () const
 {
   return gp_Dir(theXAxis);
 }
 
-    gp_Dir  IGESSolid_Ellipsoid::TransformedXAxis () const
+gp_Dir IGESSolid_Ellipsoid::TransformedXAxis () const
 {
-  if (!HasTransf()) return gp_Dir(theXAxis);
-  else
-    {
-      gp_XYZ tmp = theXAxis;
-      gp_GTrsf loc = Location();
-      loc.SetTranslationPart(gp_XYZ(0.,0.,0.));
-      loc.Transforms(tmp);
-      return gp_Dir(tmp);
-    }
+  if (!HasTransf())
+    return gp_Dir(theXAxis);
+
+  gp_XYZ tmp = theXAxis;
+  gp_GTrsf loc = Location();
+  loc.SetTranslationPart(gp_XYZ(0.,0.,0.));
+  loc.Transforms(tmp);
+  return gp_Dir(tmp);
 }
 
-    gp_Dir  IGESSolid_Ellipsoid::YAxis () const
+gp_Dir IGESSolid_Ellipsoid::YAxis () const
 {
   return gp_Dir(theXAxis ^ theZAxis);     // ^ overloaded
 }
 
-    gp_Dir  IGESSolid_Ellipsoid::TransformedYAxis () const
+gp_Dir IGESSolid_Ellipsoid::TransformedYAxis () const
 {
-  if (!HasTransf()) return gp_Dir(theXAxis ^ theZAxis);
-  else
-    {
-      gp_XYZ tmp = theXAxis ^ theZAxis;
-      gp_GTrsf loc = Location();
-      loc.SetTranslationPart(gp_XYZ(0.,0.,0.));
-      loc.Transforms(tmp);
-      return gp_Dir(tmp);
-    }
+  if (!HasTransf())
+    return gp_Dir(theXAxis ^ theZAxis);
+
+  gp_XYZ tmp = theXAxis ^ theZAxis;
+  gp_GTrsf loc = Location();
+  loc.SetTranslationPart(gp_XYZ(0.,0.,0.));
+  loc.Transforms(tmp);
+  return gp_Dir(tmp);
 }
 
-    gp_Dir  IGESSolid_Ellipsoid::ZAxis () const
+gp_Dir IGESSolid_Ellipsoid::ZAxis () const
 {
   return gp_Dir(theZAxis);
 }
 
-    gp_Dir  IGESSolid_Ellipsoid::TransformedZAxis () const
+gp_Dir IGESSolid_Ellipsoid::TransformedZAxis () const
+{
+  if (!HasTransf())
+    return gp_Dir(theZAxis);
+
+  gp_XYZ tmp = theZAxis;
+  gp_GTrsf loc = Location();
+  loc.SetTranslationPart(gp_XYZ(0.,0.,0.));
+  loc.Transforms(tmp);
+  return gp_Dir(tmp);
+}
+
+void IGESSolid_Ellipsoid::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
 {
-  if (!HasTransf()) return gp_Dir(theZAxis);
-  else
-    {
-      gp_XYZ tmp = theZAxis;
-      gp_GTrsf loc = Location();
-      loc.SetTranslationPart(gp_XYZ(0.,0.,0.));
-      loc.Transforms(tmp);
-      return gp_Dir(tmp);
-    }
+  const Standard_Real eps = 1.E-04;
+  const Standard_Real prosca = XAxis().Dot(ZAxis());
+  if (prosca < -eps || prosca > eps)
+    theCheck->AddFail("Local Z axis : Not orthogonal to X axis");
+  if (! (Size().X() >= Size().Y()
+         && Size().Y() >= Size().Z()
+         && Size().Z() > 0.))
+    theCheck->AddFail("Size : The values does not satisfy LX >= LY >= LZ > 0");
 }
index f5a488164139ee30d7ff59686ad339b19403101e..318473a2308fe88c38affe59c26fbb73b8f01c60 100644 (file)
 #ifndef _IGESSolid_Ellipsoid_HeaderFile
 #define _IGESSolid_Ellipsoid_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
 #include <gp_XYZ.hxx>
 #include <IGESData_IGESEntity.hxx>
-#include <Standard_Real.hxx>
-class gp_XYZ;
 class gp_Pnt;
 class gp_Dir;
 
@@ -40,11 +35,9 @@ DEFINE_STANDARD_HANDLE(IGESSolid_Ellipsoid, IGESData_IGESEntity)
 //! LX^2      LY^2      LZ^2
 class IGESSolid_Ellipsoid : public IGESData_IGESEntity
 {
+ public:
 
-public:
-
-  
-  Standard_EXPORT IGESSolid_Ellipsoid();
+  IGESSolid_Ellipsoid() {}
   
   //! This method is used to set the fields of the class
   //! Ellipsoid
@@ -57,17 +50,17 @@ public:
   Standard_EXPORT void Init (const gp_XYZ& aSize, const gp_XYZ& aCenter, const gp_XYZ& anXAxis, const gp_XYZ& anZAxis);
   
   //! returns the size
-  Standard_EXPORT gp_XYZ Size() const;
-  
+  const gp_XYZ & Size() const { return theSize; }
+
   //! returns the length in the local X-direction
-  Standard_EXPORT Standard_Real XLength() const;
-  
+  Standard_Real XLength() const { return theSize.X(); }
+
   //! returns the length in the local Y-direction
-  Standard_EXPORT Standard_Real YLength() const;
-  
+  Standard_Real YLength() const { return theSize.Y(); }
+
   //! returns the length in the local Z-direction
-  Standard_EXPORT Standard_Real ZLength() const;
-  
+  Standard_Real ZLength() const { return theSize.Z(); }
+
   //! returns the center of the ellipsoid
   Standard_EXPORT gp_Pnt Center() const;
   
@@ -98,31 +91,16 @@ public:
   //! after applying TransformationMatrix
   Standard_EXPORT gp_Dir TransformedZAxis() const;
 
-
-
+  Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
 
   DEFINE_STANDARD_RTTIEXT(IGESSolid_Ellipsoid,IGESData_IGESEntity)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   gp_XYZ theSize;
   gp_XYZ theCenter;
   gp_XYZ theXAxis;
   gp_XYZ theZAxis;
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_Ellipsoid_HeaderFile
index 82c789f9569aff7c65fd98be36cf3c2c065baf11..291998c57a0751892d89acbecbdfa66fc5ad969d 100644 (file)
 //--------------------------------------------------------------------
 //--------------------------------------------------------------------
 
-#include <IGESData_IGESEntity.hxx>
 #include <IGESSolid_Face.hxx>
 #include <IGESSolid_Loop.hxx>
 #include <Standard_DimensionMismatch.hxx>
 #include <Standard_OutOfRange.hxx>
-#include <Standard_Type.hxx>
+#include <Interface_EntityIterator.hxx>
+#include <Message_Msg.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESSolid_Face,IGESData_IGESEntity)
 
-IGESSolid_Face::IGESSolid_Face ()    {  }
-
-
-    void  IGESSolid_Face::Init
+void IGESSolid_Face::Init
   (const Handle(IGESData_IGESEntity)&     aSurface,
    const Standard_Boolean                 OuterLoopFlag,
    const Handle(IGESSolid_HArray1OfLoop)& Loops)
@@ -41,23 +38,28 @@ IGESSolid_Face::IGESSolid_Face ()    {  }
   InitTypeAndForm(510,1);
 }
 
-    Handle(IGESData_IGESEntity)  IGESSolid_Face::Surface () const
+Standard_Integer IGESSolid_Face::NbLoops () const
 {
-  return theSurface;
+  return theLoops->Length();
 }
 
-    Standard_Integer  IGESSolid_Face::NbLoops () const
+const Handle(IGESSolid_Loop) & IGESSolid_Face::Loop (const Standard_Integer Index) const
 {
-  return theLoops->Length();
+  return theLoops->Value(Index);
 }
 
-    Standard_Boolean  IGESSolid_Face::HasOuterLoop () const
+void IGESSolid_Face::OwnShared(Interface_EntityIterator &theIter) const
 {
-  return hasOuterLoop;
+  const Standard_Integer upper = NbLoops();
+  theIter.GetOneItem(Surface());
+  for (Standard_Integer i = 1; i <= upper; i ++)
+    theIter.GetOneItem(Loop(i));
 }
 
-    Handle(IGESSolid_Loop)  IGESSolid_Face::Loop (const Standard_Integer Index) const
+void IGESSolid_Face::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
 {
-  return theLoops->Value(Index);
+  if (NbLoops() <= 0) {
+    Message_Msg Msg197("XSTEP_197");
+    theCheck->SendFail(Msg197);
+  }
 }
-
index 9d0e6e86acaa0b27a37d6d6ceb0d8ef6bfd0fec8..a394abcfde4b5f5f3b938de293cfb907601deaad 100644 (file)
 #ifndef _IGESSolid_Face_HeaderFile
 #define _IGESSolid_Face_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
-#include <Standard_Boolean.hxx>
 #include <IGESSolid_HArray1OfLoop.hxx>
 #include <IGESData_IGESEntity.hxx>
-#include <Standard_Integer.hxx>
-class IGESData_IGESEntity;
-class Standard_OutOfRange;
 class IGESSolid_Loop;
 
 
@@ -37,11 +30,9 @@ DEFINE_STANDARD_HANDLE(IGESSolid_Face, IGESData_IGESEntity)
 //! Face entity is a bound (partial) which has finite area
 class IGESSolid_Face : public IGESData_IGESEntity
 {
+ public:
 
-public:
-
-  
-  Standard_EXPORT IGESSolid_Face();
+  IGESSolid_Face() {}
   
   //! This method is used to set the fields of the class Face
   //! - aSurface      : Pointer to the underlying surface
@@ -50,42 +41,29 @@ public:
   Standard_EXPORT void Init (const Handle(IGESData_IGESEntity)& aSurface, const Standard_Boolean outerLoopFlag, const Handle(IGESSolid_HArray1OfLoop)& loops);
   
   //! returns the underlying surface of the face
-  Standard_EXPORT Handle(IGESData_IGESEntity) Surface() const;
+  const Handle(IGESData_IGESEntity) & Surface() const { return theSurface; }
   
   //! returns the number of the loops bounding the face
   Standard_EXPORT Standard_Integer NbLoops() const;
   
   //! checks whether there is an outer loop or not
-  Standard_EXPORT Standard_Boolean HasOuterLoop() const;
+  Standard_Boolean HasOuterLoop() const { return hasOuterLoop; }
   
   //! returns the Index'th loop that bounds the face
   //! raises exception if Index < 0 or Index >= NbLoops
-  Standard_EXPORT Handle(IGESSolid_Loop) Loop (const Standard_Integer Index) const;
-
+  Standard_EXPORT const Handle(IGESSolid_Loop) & Loop (const Standard_Integer Index) const;
 
+  Standard_EXPORT virtual void OwnShared(Interface_EntityIterator &theIter) const Standard_OVERRIDE;
 
+  Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
 
   DEFINE_STANDARD_RTTIEXT(IGESSolid_Face,IGESData_IGESEntity)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   Handle(IGESData_IGESEntity) theSurface;
   Standard_Boolean hasOuterLoop;
   Handle(IGESSolid_HArray1OfLoop) theLoops;
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_Face_HeaderFile
index f625aba084bee6626adfa6bdd07794288596e0c3..56955488ec893402307017025a7488714ce21054 100644 (file)
@@ -11,7 +11,7 @@
 // Alternatively, this file may be used under the terms of Open CASCADE
 // commercial license or contractual agreement.
 
-
+/*
 #include <IGESData_DirChecker.hxx>
 #include <IGESData_IGESEntity.hxx>
 #include <IGESSolid_Block.hxx>
 #include <IGESSolid_VertexList.hxx>
 #include <Interface_Category.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
-#include <Standard_Transient.hxx>
-#include <Standard_Type.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESSolid_GeneralModule,IGESData_GeneralModule)
 
-//  Each Module is attached to a Protocol : it must interprete Case Numbers
-//  (arguments <CN> of various methods) in accordance to values returned by
-//  the method TypeNumber from this Protocol
-IGESSolid_GeneralModule::IGESSolid_GeneralModule ()    {  }
-
 
     void  IGESSolid_GeneralModule::OwnSharedCase
   (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent,
    Interface_EntityIterator& iter) const 
 {
   switch (CN) {
-    case  1 : {
-      DeclareAndCast(IGESSolid_Block,anent,ent);
-      if (anent.IsNull()) return;
-      IGESSolid_ToolBlock tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
     case  2 : {
       DeclareAndCast(IGESSolid_BooleanTree,anent,ent);
       if (anent.IsNull()) return;
@@ -99,13 +84,6 @@ IGESSolid_GeneralModule::IGESSolid_GeneralModule ()    {  }
       tool.OwnShared(anent,iter);
     }
       break;
-    case  3 : {
-      DeclareAndCast(IGESSolid_ConeFrustum,anent,ent);
-      if (anent.IsNull()) return;
-      IGESSolid_ToolConeFrustum tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
     case  4 : {
       DeclareAndCast(IGESSolid_ConicalSurface,anent,ent);
       if (anent.IsNull()) return;
@@ -113,13 +91,6 @@ IGESSolid_GeneralModule::IGESSolid_GeneralModule ()    {  }
       tool.OwnShared(anent,iter);
     }
       break;
-    case  5 : {
-      DeclareAndCast(IGESSolid_Cylinder,anent,ent);
-      if (anent.IsNull()) return;
-      IGESSolid_ToolCylinder tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
     case  6 : {
       DeclareAndCast(IGESSolid_CylindricalSurface,anent,ent);
       if (anent.IsNull()) return;
@@ -134,13 +105,6 @@ IGESSolid_GeneralModule::IGESSolid_GeneralModule ()    {  }
       tool.OwnShared(anent,iter);
     }
       break;
-    case  8 : {
-      DeclareAndCast(IGESSolid_Ellipsoid,anent,ent);
-      if (anent.IsNull()) return;
-      IGESSolid_ToolEllipsoid tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
     case  9 : {
       DeclareAndCast(IGESSolid_Face,anent,ent);
       if (anent.IsNull()) return;
@@ -169,13 +133,6 @@ IGESSolid_GeneralModule::IGESSolid_GeneralModule ()    {  }
       tool.OwnShared(anent,iter);
     }
       break;
-    case 13 : {
-      DeclareAndCast(IGESSolid_RightAngularWedge,anent,ent);
-      if (anent.IsNull()) return;
-      IGESSolid_ToolRightAngularWedge tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
     case 14 : {
       DeclareAndCast(IGESSolid_SelectedComponent,anent,ent);
       if (anent.IsNull()) return;
@@ -218,13 +175,6 @@ IGESSolid_GeneralModule::IGESSolid_GeneralModule ()    {  }
       tool.OwnShared(anent,iter);
     }
       break;
-    case 20 : {
-      DeclareAndCast(IGESSolid_Sphere,anent,ent);
-      if (anent.IsNull()) return;
-      IGESSolid_ToolSphere tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
     case 21 : {
       DeclareAndCast(IGESSolid_SphericalSurface,anent,ent);
       if (anent.IsNull()) return;
@@ -239,20 +189,6 @@ IGESSolid_GeneralModule::IGESSolid_GeneralModule ()    {  }
       tool.OwnShared(anent,iter);
     }
       break;
-    case 23 : {
-      DeclareAndCast(IGESSolid_Torus,anent,ent);
-      if (anent.IsNull()) return;
-      IGESSolid_ToolTorus tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
-    case 24 : {
-      DeclareAndCast(IGESSolid_VertexList,anent,ent);
-      if (anent.IsNull()) return;
-      IGESSolid_ToolVertexList tool;
-      tool.OwnShared(anent,iter);
-    }
-      break;
     default : break;
   }
 }
@@ -508,13 +444,6 @@ IGESSolid_GeneralModule::IGESSolid_GeneralModule ()    {  }
       tool.OwnCheck(anent,shares,ach);
     }
       break;
-    case 14 : {
-      DeclareAndCast(IGESSolid_SelectedComponent,anent,ent);
-      if (anent.IsNull()) return;
-      IGESSolid_ToolSelectedComponent tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
     case 15 : {
       DeclareAndCast(IGESSolid_Shell,anent,ent);
       if (anent.IsNull()) return;
@@ -522,20 +451,6 @@ IGESSolid_GeneralModule::IGESSolid_GeneralModule ()    {  }
       tool.OwnCheck(anent,shares,ach);
     }
       break;
-    case 16 : {
-      DeclareAndCast(IGESSolid_SolidAssembly,anent,ent);
-      if (anent.IsNull()) return;
-      IGESSolid_ToolSolidAssembly tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
-    case 17 : {
-      DeclareAndCast(IGESSolid_SolidInstance,anent,ent);
-      if (anent.IsNull()) return;
-      IGESSolid_ToolSolidInstance tool;
-      tool.OwnCheck(anent,shares,ach);
-    }
-      break;
     case 18 : {
       DeclareAndCast(IGESSolid_SolidOfLinearExtrusion,anent,ent);
       if (anent.IsNull()) return;
@@ -624,189 +539,10 @@ IGESSolid_GeneralModule::IGESSolid_GeneralModule ()    {  }
 }
 
 
-    void  IGESSolid_GeneralModule::OwnCopyCase
-  (const Standard_Integer CN,
-   const Handle(IGESData_IGESEntity)& entfrom,
-   const Handle(IGESData_IGESEntity)& entto,
-   Interface_CopyTool& TC) const 
-{
-  switch (CN) {
-    case  1 : {
-      DeclareAndCast(IGESSolid_Block,enfr,entfrom);
-      DeclareAndCast(IGESSolid_Block,ento,entto);
-      IGESSolid_ToolBlock tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  2 : {
-      DeclareAndCast(IGESSolid_BooleanTree,enfr,entfrom);
-      DeclareAndCast(IGESSolid_BooleanTree,ento,entto);
-      IGESSolid_ToolBooleanTree tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  3 : {
-      DeclareAndCast(IGESSolid_ConeFrustum,enfr,entfrom);
-      DeclareAndCast(IGESSolid_ConeFrustum,ento,entto);
-      IGESSolid_ToolConeFrustum tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  4 : {
-      DeclareAndCast(IGESSolid_ConicalSurface,enfr,entfrom);
-      DeclareAndCast(IGESSolid_ConicalSurface,ento,entto);
-      IGESSolid_ToolConicalSurface tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  5 : {
-      DeclareAndCast(IGESSolid_Cylinder,enfr,entfrom);
-      DeclareAndCast(IGESSolid_Cylinder,ento,entto);
-      IGESSolid_ToolCylinder tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  6 : {
-      DeclareAndCast(IGESSolid_CylindricalSurface,enfr,entfrom);
-      DeclareAndCast(IGESSolid_CylindricalSurface,ento,entto);
-      IGESSolid_ToolCylindricalSurface tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  7 : {
-      DeclareAndCast(IGESSolid_EdgeList,enfr,entfrom);
-      DeclareAndCast(IGESSolid_EdgeList,ento,entto);
-      IGESSolid_ToolEdgeList tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  8 : {
-      DeclareAndCast(IGESSolid_Ellipsoid,enfr,entfrom);
-      DeclareAndCast(IGESSolid_Ellipsoid,ento,entto);
-      IGESSolid_ToolEllipsoid tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case  9 : {
-      DeclareAndCast(IGESSolid_Face,enfr,entfrom);
-      DeclareAndCast(IGESSolid_Face,ento,entto);
-      IGESSolid_ToolFace tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 10 : {
-      DeclareAndCast(IGESSolid_Loop,enfr,entfrom);
-      DeclareAndCast(IGESSolid_Loop,ento,entto);
-      IGESSolid_ToolLoop tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 11 : {
-      DeclareAndCast(IGESSolid_ManifoldSolid,enfr,entfrom);
-      DeclareAndCast(IGESSolid_ManifoldSolid,ento,entto);
-      IGESSolid_ToolManifoldSolid tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 12 : {
-      DeclareAndCast(IGESSolid_PlaneSurface,enfr,entfrom);
-      DeclareAndCast(IGESSolid_PlaneSurface,ento,entto);
-      IGESSolid_ToolPlaneSurface tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 13 : {
-      DeclareAndCast(IGESSolid_RightAngularWedge,enfr,entfrom);
-      DeclareAndCast(IGESSolid_RightAngularWedge,ento,entto);
-      IGESSolid_ToolRightAngularWedge tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 14 : {
-      DeclareAndCast(IGESSolid_SelectedComponent,enfr,entfrom);
-      DeclareAndCast(IGESSolid_SelectedComponent,ento,entto);
-      IGESSolid_ToolSelectedComponent tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 15 : {
-      DeclareAndCast(IGESSolid_Shell,enfr,entfrom);
-      DeclareAndCast(IGESSolid_Shell,ento,entto);
-      IGESSolid_ToolShell tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 16 : {
-      DeclareAndCast(IGESSolid_SolidAssembly,enfr,entfrom);
-      DeclareAndCast(IGESSolid_SolidAssembly,ento,entto);
-      IGESSolid_ToolSolidAssembly tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 17 : {
-      DeclareAndCast(IGESSolid_SolidInstance,enfr,entfrom);
-      DeclareAndCast(IGESSolid_SolidInstance,ento,entto);
-      IGESSolid_ToolSolidInstance tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 18 : {
-      DeclareAndCast(IGESSolid_SolidOfLinearExtrusion,enfr,entfrom);
-      DeclareAndCast(IGESSolid_SolidOfLinearExtrusion,ento,entto);
-      IGESSolid_ToolSolidOfLinearExtrusion tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 19 : {
-      DeclareAndCast(IGESSolid_SolidOfRevolution,enfr,entfrom);
-      DeclareAndCast(IGESSolid_SolidOfRevolution,ento,entto);
-      IGESSolid_ToolSolidOfRevolution tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 20 : {
-      DeclareAndCast(IGESSolid_Sphere,enfr,entfrom);
-      DeclareAndCast(IGESSolid_Sphere,ento,entto);
-      IGESSolid_ToolSphere tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 21 : {
-      DeclareAndCast(IGESSolid_SphericalSurface,enfr,entfrom);
-      DeclareAndCast(IGESSolid_SphericalSurface,ento,entto);
-      IGESSolid_ToolSphericalSurface tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 22 : {
-      DeclareAndCast(IGESSolid_ToroidalSurface,enfr,entfrom);
-      DeclareAndCast(IGESSolid_ToroidalSurface,ento,entto);
-      IGESSolid_ToolToroidalSurface tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 23 : {
-      DeclareAndCast(IGESSolid_Torus,enfr,entfrom);
-      DeclareAndCast(IGESSolid_Torus,ento,entto);
-      IGESSolid_ToolTorus tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    case 24 : {
-      DeclareAndCast(IGESSolid_VertexList,enfr,entfrom);
-      DeclareAndCast(IGESSolid_VertexList,ento,entto);
-      IGESSolid_ToolVertexList tool;
-      tool.OwnCopy(enfr,ento,TC);
-    }
-      break;
-    default : break;
-  }
-}
-
-
     Standard_Integer  IGESSolid_GeneralModule::CategoryNumber
-  (const Standard_Integer /*CN*/, const Handle(Standard_Transient)& ,
+  (const Standard_Integer , const Handle(Standard_Transient)& ,
    const Interface_ShareTool& ) const
 {
   return Interface_Category::Number("Shape");
 }
+*/
\ No newline at end of file
index 294fc3a37dbd2f6a374074fb4cecfce13df9293a..5c419389e2e3764b2503e001820c262896d1b46b 100644 (file)
 #ifndef _IGESSolid_GeneralModule_HeaderFile
 #define _IGESSolid_GeneralModule_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
 #include <IGESData_GeneralModule.hxx>
-#include <Standard_Integer.hxx>
-#include <Standard_Boolean.hxx>
-class IGESData_IGESEntity;
-class Interface_EntityIterator;
-class IGESData_DirChecker;
-class Interface_ShareTool;
-class Interface_Check;
-class Standard_Transient;
-class Interface_CopyTool;
-
+/*
 
 class IGESSolid_GeneralModule;
 DEFINE_STANDARD_HANDLE(IGESSolid_GeneralModule, IGESData_GeneralModule)
@@ -39,12 +27,10 @@ DEFINE_STANDARD_HANDLE(IGESSolid_GeneralModule, IGESData_GeneralModule)
 //! This Services comprise : Shared & Implied Lists, Copy, Check
 class IGESSolid_GeneralModule : public IGESData_GeneralModule
 {
+ public:
 
-public:
-
-  
   //! Creates a GeneralModule from IGESSolid and puts it into GeneralLib
-  Standard_EXPORT IGESSolid_GeneralModule();
+  IGESSolid_GeneralModule() {}
   
   //! Lists the Entities shared by a given IGESEntity <ent>, from
   //! its specific parameters : specific for each type
@@ -61,34 +47,11 @@ public:
   //! Specific creation of a new void entity
   Standard_EXPORT Standard_Boolean NewVoid (const Standard_Integer CN, Handle(Standard_Transient)& entto) const Standard_OVERRIDE;
   
-  //! Copies parameters which are specific of each Type of Entity
-  Standard_EXPORT void OwnCopyCase (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& entfrom, const Handle(IGESData_IGESEntity)& entto, Interface_CopyTool& TC) const Standard_OVERRIDE;
-  
   //! Returns a category number which characterizes an entity
   //! Shape for all
   Standard_EXPORT virtual Standard_Integer CategoryNumber (const Standard_Integer CN, const Handle(Standard_Transient)& ent, const Interface_ShareTool& shares) const Standard_OVERRIDE;
 
-
-
-
   DEFINE_STANDARD_RTTIEXT(IGESSolid_GeneralModule,IGESData_GeneralModule)
-
-protected:
-
-
-
-
-private:
-
-
-
-
 };
-
-
-
-
-
-
-
+*/
 #endif // _IGESSolid_GeneralModule_HeaderFile
index e3ab009318bd97947b36fbf212453031f8f8ca41..c6cd11325986ab75dfa6490c11f62b7094d77586 100644 (file)
 #include <IGESSolid_VertexList.hxx>
 #include <Standard_DimensionMismatch.hxx>
 #include <Standard_OutOfRange.hxx>
-#include <Standard_Type.hxx>
+#include <Interface_EntityIterator.hxx>
+#include <Message_Msg.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESSolid_Loop,IGESData_IGESEntity)
 
-IGESSolid_Loop::IGESSolid_Loop ()    {  }
-
-
-    void  IGESSolid_Loop::Init
+void IGESSolid_Loop::Init
   (const Handle(TColStd_HArray1OfInteger)& Types,
    const Handle(IGESData_HArray1OfIGESEntity)& Edges,
    const Handle(TColStd_HArray1OfInteger)& Index,
@@ -63,43 +61,40 @@ IGESSolid_Loop::IGESSolid_Loop ()    {  }
   InitTypeAndForm(508,1);
 }
 
-    Standard_Boolean  IGESSolid_Loop::IsBound () const
-      {  return (FormNumber() == 1);  }
-
-    void  IGESSolid_Loop::SetBound (const Standard_Boolean bound)
-      {  InitTypeAndForm(508, (bound ? 1 : 0));  }
+Standard_Boolean IGESSolid_Loop::IsBound () const
+{  return (FormNumber() == 1);  }
 
+void IGESSolid_Loop::SetBound (const Standard_Boolean bound)
+{  InitTypeAndForm(508, (bound ? 1 : 0));  }
 
-    Standard_Integer  IGESSolid_Loop::NbEdges () const
+Standard_Integer IGESSolid_Loop::NbEdges () const
 {
   //pdn 20.04.99 CTS22655 to avoid exceptions on empty loops
   if(theEdges.IsNull()) return 0;
   return theEdges->Length();
 }
 
-    Standard_Integer  IGESSolid_Loop::EdgeType (const Standard_Integer Index) const
+Standard_Integer IGESSolid_Loop::EdgeType (const Standard_Integer Index) const
 {
   return theTypes->Value(Index);
 }
 
-    Handle(IGESData_IGESEntity)  IGESSolid_Loop::Edge
-  (const Standard_Integer Index) const
+const Handle(IGESData_IGESEntity) & IGESSolid_Loop::Edge (const Standard_Integer Index) const
 {
   return theEdges->Value(Index);
 }
 
-    Standard_Boolean IGESSolid_Loop::Orientation (const Standard_Integer Index) const
+Standard_Boolean IGESSolid_Loop::Orientation (const Standard_Integer Index) const
 {
   return (theOrientationFlags->Value(Index) != 0);
 }
 
-    Standard_Integer  IGESSolid_Loop::NbParameterCurves
-  (const Standard_Integer Index) const
+Standard_Integer IGESSolid_Loop::NbParameterCurves (const Standard_Integer Index) const
 {
   return theNbParameterCurves->Value(Index);
 }
 
-    Standard_Boolean  IGESSolid_Loop::IsIsoparametric
+Standard_Boolean IGESSolid_Loop::IsIsoparametric
   (const Standard_Integer EdgeIndex, const Standard_Integer CurveIndex) const
 {
   if (!theIsoparametricFlags->Value(EdgeIndex).IsNull()) return
@@ -107,7 +102,7 @@ IGESSolid_Loop::IGESSolid_Loop ()    {  }
   else return Standard_False;  // faut bien dire qq chose
 }
 
-    Handle(IGESData_IGESEntity)  IGESSolid_Loop::ParametricCurve
+Handle(IGESData_IGESEntity) IGESSolid_Loop::ParametricCurve
   (const Standard_Integer EdgeIndex, const Standard_Integer CurveIndex) const
 {
   Handle(IGESData_IGESEntity) acurve;    // par defaut sera nulle
@@ -116,7 +111,30 @@ IGESSolid_Loop::IGESSolid_Loop ()    {  }
   return acurve;
 }
 
-    Standard_Integer  IGESSolid_Loop::ListIndex (const Standard_Integer num) const
+Standard_Integer IGESSolid_Loop::ListIndex (const Standard_Integer num) const
 {
   return theIndex->Value(num);
 }
+
+void IGESSolid_Loop::OwnShared(Interface_EntityIterator &theIter) const
+{
+  Standard_Integer i, j;
+  const Standard_Integer length = NbEdges();
+  for (i = 1; i <= length; i ++)
+  {
+    theIter.GetOneItem(Edge(i));
+    const Standard_Integer nbc = NbParameterCurves(i);
+    for (j = 1; j <= nbc; j ++)
+      theIter.GetOneItem(ParametricCurve(i,j));
+  }
+}
+
+void IGESSolid_Loop::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
+{
+  const Standard_Integer upper = NbEdges();
+  for (Standard_Integer i = 1; i <= upper; i ++)
+    if (EdgeType(i) != 0 && EdgeType(i) != 1) {
+      Message_Msg Msg190("XSTEP_190");
+      theCheck->SendFail(Msg190);
+    }
+}
index 5c23329f798bf852a3ec45ba7717a850f5420f2f..bef7f200bcde8abf7a919c480f576db0960fbb7b 100644 (file)
 #ifndef _IGESSolid_Loop_HeaderFile
 #define _IGESSolid_Loop_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
 #include <TColStd_HArray1OfInteger.hxx>
 #include <IGESData_HArray1OfIGESEntity.hxx>
 #include <IGESData_IGESEntity.hxx>
-#include <Standard_Boolean.hxx>
-#include <Standard_Integer.hxx>
 class IGESBasic_HArray1OfHArray1OfInteger;
 class IGESBasic_HArray1OfHArray1OfIGESEntity;
-class Standard_DimensionMismatch;
-class Standard_OutOfRange;
-class IGESData_IGESEntity;
 
 
 class IGESSolid_Loop;
@@ -45,11 +37,9 @@ DEFINE_STANDARD_HANDLE(IGESSolid_Loop, IGESData_IGESEntity)
 //! else it is a bound of a face (it is the default)
 class IGESSolid_Loop : public IGESData_IGESEntity
 {
+ public:
 
-public:
-
-  
-  Standard_EXPORT IGESSolid_Loop();
+  IGESSolid_Loop() {}
   
   //! This method is used to set the fields of the class Loop
   //! - types              : 0 = Edge; 1 = Vertex
@@ -83,7 +73,7 @@ public:
   
   //! return the EdgeList or VertexList corresponding to the Index
   //! raises exception if Index <= 0 or Index > NbEdges()
-  Standard_EXPORT Handle(IGESData_IGESEntity) Edge (const Standard_Integer Index) const;
+  Standard_EXPORT const Handle(IGESData_IGESEntity) & Edge (const Standard_Integer Index) const;
   
   //! returns the orientation flag corresponding to Index'th edge
   //! raises exception if Index <= 0 or Index > NbEdges()
@@ -105,18 +95,13 @@ public:
   //! raises exception If num <= 0 or num > NbEdges()
   Standard_EXPORT Standard_Integer ListIndex (const Standard_Integer num) const;
 
+  Standard_EXPORT virtual void OwnShared(Interface_EntityIterator &theIter) const Standard_OVERRIDE;
 
-
+  Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
 
   DEFINE_STANDARD_RTTIEXT(IGESSolid_Loop,IGESData_IGESEntity)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   Handle(TColStd_HArray1OfInteger) theTypes;
   Handle(IGESData_HArray1OfIGESEntity) theEdges;
@@ -125,14 +110,6 @@ private:
   Handle(TColStd_HArray1OfInteger) theNbParameterCurves;
   Handle(IGESBasic_HArray1OfHArray1OfInteger) theIsoparametricFlags;
   Handle(IGESBasic_HArray1OfHArray1OfIGESEntity) theCurves;
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_Loop_HeaderFile
index f6f3bf1d448f472390f3292a5968467d061ccab1..0b81488bd3a3ae4ff113d205c01f5367fffcbceb 100644 (file)
 #include <IGESSolid_Shell.hxx>
 #include <Standard_DimensionMismatch.hxx>
 #include <Standard_OutOfRange.hxx>
-#include <Standard_Type.hxx>
+#include <Interface_EntityIterator.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESSolid_ManifoldSolid,IGESData_IGESEntity)
 
-IGESSolid_ManifoldSolid::IGESSolid_ManifoldSolid ()    {  }
-
-
-    void  IGESSolid_ManifoldSolid::Init
+void IGESSolid_ManifoldSolid::Init
   (const Handle(IGESSolid_Shell)& aShell,
    const Standard_Boolean Shellflag,
    const Handle(IGESSolid_HArray1OfShell)& VoidShells,
@@ -45,32 +42,28 @@ IGESSolid_ManifoldSolid::IGESSolid_ManifoldSolid ()    {  }
   InitTypeAndForm(186,0);
 }
 
-    Handle(IGESSolid_Shell)  IGESSolid_ManifoldSolid::Shell () const
-{
-  return theShell;
-}
-
-    Standard_Boolean  IGESSolid_ManifoldSolid::OrientationFlag () const
-{
-  return theOrientationFlag;
-}
-
-    Standard_Integer  IGESSolid_ManifoldSolid::NbVoidShells () const
+Standard_Integer IGESSolid_ManifoldSolid::NbVoidShells () const
 {
   return (theVoidShells.IsNull() ? 0 : theVoidShells->Length());
 }
 
-    Handle(IGESSolid_Shell)  IGESSolid_ManifoldSolid::VoidShell
-  (const Standard_Integer index) const
+Handle(IGESSolid_Shell) IGESSolid_ManifoldSolid::VoidShell (const Standard_Integer index) const
 {
   Handle(IGESSolid_Shell) ashell;    // par defaut sera Null
   if (!theVoidShells.IsNull()) ashell = theVoidShells->Value(index);
   return ashell;
 }
 
-    Standard_Boolean  IGESSolid_ManifoldSolid::VoidOrientationFlag
-  (const Standard_Integer index) const
+Standard_Boolean IGESSolid_ManifoldSolid::VoidOrientationFlag (const Standard_Integer index) const
 {
   if (!theOrientFlags.IsNull())    return (theOrientFlags->Value(index) != 0);
   else return Standard_False;  // pour retourner qqchose ...
 }
+
+void IGESSolid_ManifoldSolid::OwnShared(Interface_EntityIterator &theIter) const
+{
+  theIter.GetOneItem(Shell());
+  const Standard_Integer nbshells = NbVoidShells();
+  for (Standard_Integer i = 1; i <= nbshells; i ++)
+    theIter.GetOneItem(VoidShell(i));
+}
index a27cb984e77ae99abb4619a845689dd3657dfd81..9b51230b3c333a8408e671c3de5c2a4109e88e0a 100644 (file)
 #ifndef _IGESSolid_ManifoldSolid_HeaderFile
 #define _IGESSolid_ManifoldSolid_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
-#include <Standard_Boolean.hxx>
 #include <IGESSolid_HArray1OfShell.hxx>
 #include <TColStd_HArray1OfInteger.hxx>
 #include <IGESData_IGESEntity.hxx>
-#include <Standard_Integer.hxx>
 class IGESSolid_Shell;
-class Standard_DimensionMismatch;
-class Standard_OutOfRange;
 
 
 class IGESSolid_ManifoldSolid;
@@ -39,11 +32,9 @@ DEFINE_STANDARD_HANDLE(IGESSolid_ManifoldSolid, IGESData_IGESEntity)
 //! in three dimensional Euclidean space
 class IGESSolid_ManifoldSolid : public IGESData_IGESEntity
 {
+ public:
 
-public:
-
-  
-  Standard_EXPORT IGESSolid_ManifoldSolid();
+  IGESSolid_ManifoldSolid() {}
   
   //! This method is used to set the fields of the class
   //! ManifoldSolid
@@ -56,11 +47,11 @@ public:
   Standard_EXPORT void Init (const Handle(IGESSolid_Shell)& aShell, const Standard_Boolean shellflag, const Handle(IGESSolid_HArray1OfShell)& voidShells, const Handle(TColStd_HArray1OfInteger)& voidShellFlags);
   
   //! returns the Shell entity which is being referred
-  Standard_EXPORT Handle(IGESSolid_Shell) Shell() const;
-  
+  const Handle(IGESSolid_Shell) & Shell() const { return theShell; }
+
   //! returns the orientation flag of the shell
-  Standard_EXPORT Standard_Boolean OrientationFlag() const;
-  
+  Standard_Boolean OrientationFlag() const { return theOrientationFlag; }
+
   //! returns the number of void shells
   Standard_EXPORT Standard_Integer NbVoidShells() const;
   
@@ -72,31 +63,16 @@ public:
   //! raises exception if Index  <= 0 or Index > NbVoidShells()
   Standard_EXPORT Standard_Boolean VoidOrientationFlag (const Standard_Integer Index) const;
 
-
-
+  Standard_EXPORT virtual void OwnShared(Interface_EntityIterator &theIter) const Standard_OVERRIDE;
 
   DEFINE_STANDARD_RTTIEXT(IGESSolid_ManifoldSolid,IGESData_IGESEntity)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   Handle(IGESSolid_Shell) theShell;
   Standard_Boolean theOrientationFlag;
   Handle(IGESSolid_HArray1OfShell) theVoidShells;
   Handle(TColStd_HArray1OfInteger) theOrientFlags;
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_ManifoldSolid_HeaderFile
index 54c6c663f8fc29939392b6676b08d1bbb491a18a..7642a34d84fbb7c23c6834297f8cc60030ce9166 100644 (file)
 #include <IGESGeom_Direction.hxx>
 #include <IGESGeom_Point.hxx>
 #include <IGESSolid_PlaneSurface.hxx>
-#include <Standard_Type.hxx>
+#include <Interface_EntityIterator.hxx>
+#include <Message_Msg.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESSolid_PlaneSurface,IGESData_IGESEntity)
 
-IGESSolid_PlaneSurface::IGESSolid_PlaneSurface ()    {  }
-
-
     void  IGESSolid_PlaneSurface::Init
   (const Handle(IGESGeom_Point)& aLocation,
    const Handle(IGESGeom_Direction)& aNormal,
@@ -37,22 +35,18 @@ IGESSolid_PlaneSurface::IGESSolid_PlaneSurface ()    {  }
   InitTypeAndForm(190, (theRefDir.IsNull() ? 0 : 1));
 }
 
-    Handle(IGESGeom_Point)  IGESSolid_PlaneSurface::LocationPoint () const
-{
-  return theLocationPoint;
-}
-
-    Handle(IGESGeom_Direction)  IGESSolid_PlaneSurface::Normal () const
-{
-  return theNormal;
-}
-
-    Handle(IGESGeom_Direction)  IGESSolid_PlaneSurface::ReferenceDir () const
+void IGESSolid_PlaneSurface::OwnShared(Interface_EntityIterator &theIter) const
 {
-  return theRefDir;
+  theIter.GetOneItem(LocationPoint());
+  theIter.GetOneItem(Normal());
+  theIter.GetOneItem(ReferenceDir());
 }
 
-    Standard_Boolean  IGESSolid_PlaneSurface::IsParametrised () const
+void IGESSolid_PlaneSurface::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
 {
-  return (!theRefDir.IsNull());
+  const Standard_Integer fn =  (IsParametrised()? 1 : 0);
+  if (fn != FormNumber()) {
+    Message_Msg Msg177("XSTEP_177");
+    theCheck->SendFail (Msg177);
+  }
 }
index c4b3d661c07b7fe93332b7a157fe6eaf3c8672d2..e08519599efbdfe583e46f290c9c21dd0d177986 100644 (file)
 #ifndef _IGESSolid_PlaneSurface_HeaderFile
 #define _IGESSolid_PlaneSurface_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
 #include <IGESData_IGESEntity.hxx>
-#include <Standard_Boolean.hxx>
 class IGESGeom_Point;
 class IGESGeom_Direction;
 
@@ -35,11 +31,9 @@ DEFINE_STANDARD_HANDLE(IGESSolid_PlaneSurface, IGESData_IGESEntity)
 //! surface and a normal to it.
 class IGESSolid_PlaneSurface : public IGESData_IGESEntity
 {
+ public:
 
-public:
-
-  
-  Standard_EXPORT IGESSolid_PlaneSurface();
+  IGESSolid_PlaneSurface() {}
   
   //! This method is used to set the fields of the class
   //! PlaneSurface
@@ -50,42 +44,29 @@ public:
   Standard_EXPORT void Init (const Handle(IGESGeom_Point)& aLocation, const Handle(IGESGeom_Direction)& aNormal, const Handle(IGESGeom_Direction)& refdir);
   
   //! returns the point on the surface
-  Standard_EXPORT Handle(IGESGeom_Point) LocationPoint() const;
-  
+  const Handle(IGESGeom_Point) & LocationPoint() const { return theLocationPoint; }
+
   //! returns the normal to the surface
-  Standard_EXPORT Handle(IGESGeom_Direction) Normal() const;
-  
+  const Handle(IGESGeom_Direction) & Normal() const { return theNormal; }
+
   //! returns the reference direction (for parameterised curve)
   //! returns NULL for unparameterised curve
-  Standard_EXPORT Handle(IGESGeom_Direction) ReferenceDir() const;
-  
-  //! returns True if parameterised, else False
-  Standard_EXPORT Standard_Boolean IsParametrised() const;
+  const Handle(IGESGeom_Direction) & ReferenceDir() const { return theRefDir; }
 
+  //! returns True if parameterised, else False
+  Standard_Boolean IsParametrised() const { return (!theRefDir.IsNull()); }
 
+  Standard_EXPORT virtual void OwnShared(Interface_EntityIterator &theIter) const Standard_OVERRIDE;
 
+  Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
 
   DEFINE_STANDARD_RTTIEXT(IGESSolid_PlaneSurface,IGESData_IGESEntity)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   Handle(IGESGeom_Point) theLocationPoint;
   Handle(IGESGeom_Direction) theNormal;
   Handle(IGESGeom_Direction) theRefDir;
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_PlaneSurface_HeaderFile
index 51fa6219fb8c4cada66270fa187c099dcdf4d4ac..625e8bc2703b566a6e11d4b2e43610834b62c799 100644 (file)
@@ -11,7 +11,7 @@
 // Alternatively, this file may be used under the terms of Open CASCADE
 // commercial license or contractual agreement.
 
-
+/*
 #include <IGESGeom.hxx>
 #include <IGESGeom_Protocol.hxx>
 #include <IGESSolid_Block.hxx>
@@ -82,7 +82,7 @@ static Handle(Standard_Type) atype01,atype02,atype03,atype04,atype05,atype06,
       {  return 1;  }
 
     Handle(Interface_Protocol) IGESSolid_Protocol::Resource
-  (const Standard_Integer /*num*/) const
+  (const Standard_Integer) const
 {
   return IGESGeom::Protocol();
 }
@@ -116,3 +116,4 @@ static Handle(Standard_Type) atype01,atype02,atype03,atype04,atype05,atype06,
   else if (atype == atype24) return 24;
   return 0;
 }
+*/
\ No newline at end of file
index a259221a9abbd23614e1264c9e957abebbc03960..468379414954d0ae20adcd172a0cbe77e83004bd 100644 (file)
 #ifndef _IGESSolid_Protocol_HeaderFile
 #define _IGESSolid_Protocol_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
 #include <IGESData_Protocol.hxx>
-#include <Standard_Integer.hxx>
-#include <Standard_Type.hxx>
-class Interface_Protocol;
-
-
+/*
 class IGESSolid_Protocol;
 DEFINE_STANDARD_HANDLE(IGESSolid_Protocol, IGESData_Protocol)
 
 //! Description of Protocol for IGESSolid
 class IGESSolid_Protocol : public IGESData_Protocol
 {
+ public:
 
-public:
-
-  
   Standard_EXPORT IGESSolid_Protocol();
   
   //! Gives the count of Resource Protocol. Here, one
@@ -52,27 +43,7 @@ public:
   //! consider the same Type as the Protocol defines)
   Standard_EXPORT virtual Standard_Integer TypeNumber (const Handle(Standard_Type)& atype) const Standard_OVERRIDE;
 
-
-
-
   DEFINE_STANDARD_RTTIEXT(IGESSolid_Protocol,IGESData_Protocol)
-
-protected:
-
-
-
-
-private:
-
-
-
-
 };
-
-
-
-
-
-
-
+*/
 #endif // _IGESSolid_Protocol_HeaderFile
index bd9c499abf4e96366ad28842ab2d4f1a002971a9..329cc8644b0554cc87ff526b952b4a8397e53d69 100644 (file)
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESSolid_RightAngularWedge,IGESData_IGESEntity)
 
-IGESSolid_RightAngularWedge::IGESSolid_RightAngularWedge ()    {  }
-
-
-    void  IGESSolid_RightAngularWedge::Init
+void IGESSolid_RightAngularWedge::Init
   (const gp_XYZ& aSize,   const Standard_Real LowX,
    const gp_XYZ& aCorner, const gp_XYZ& anXAxis, const gp_XYZ& anZAxis)
 {
@@ -40,97 +37,82 @@ IGESSolid_RightAngularWedge::IGESSolid_RightAngularWedge ()    {  }
   InitTypeAndForm(152,0);
 }
 
-    gp_XYZ  IGESSolid_RightAngularWedge::Size () const
-{
-  return theSize;
-}
-
-    Standard_Real  IGESSolid_RightAngularWedge::XBigLength () const
-{
-  return theSize.X();
-}
-
-    Standard_Real  IGESSolid_RightAngularWedge::XSmallLength () const
-{
-  return theXSmallLength;
-}
-
-    Standard_Real  IGESSolid_RightAngularWedge::YLength () const
-{
-  return theSize.Y();
-}
-
-    Standard_Real  IGESSolid_RightAngularWedge::ZLength () const
-{
-  return theSize.Z();
-}
-
-    gp_Pnt  IGESSolid_RightAngularWedge::Corner () const
+gp_Pnt IGESSolid_RightAngularWedge::Corner () const
 {
   return gp_Pnt(theCorner);
 }
 
-    gp_Pnt  IGESSolid_RightAngularWedge::TransformedCorner () const
+gp_Pnt IGESSolid_RightAngularWedge::TransformedCorner () const
 {
-  if (!HasTransf()) return gp_Pnt(theCorner);
-  else
-    {
-      gp_XYZ tmp = theCorner;
-      Location().Transforms(tmp);
-      return gp_Pnt(tmp);
-    }
+  if (!HasTransf())
+    return gp_Pnt(theCorner);
+
+  gp_XYZ tmp = theCorner;
+  Location().Transforms(tmp);
+  return gp_Pnt(tmp);
 }
 
-    gp_Dir  IGESSolid_RightAngularWedge::XAxis () const
+gp_Dir IGESSolid_RightAngularWedge::XAxis () const
 {
   return gp_Dir(theXAxis);
 }
 
-    gp_Dir  IGESSolid_RightAngularWedge::TransformedXAxis () const
+gp_Dir IGESSolid_RightAngularWedge::TransformedXAxis () const
 {
-  if (!HasTransf()) return gp_Dir(theXAxis);
-  else
-    {
-      gp_XYZ tmp = theXAxis;
-      gp_GTrsf loc = Location();
-      loc.SetTranslationPart(gp_XYZ(0.,0.,0.));
-      loc.Transforms(tmp);
-      return gp_Dir(tmp);
-    }
+  if (!HasTransf())
+    return gp_Dir(theXAxis);
+
+  gp_XYZ tmp = theXAxis;
+  gp_GTrsf loc = Location();
+  loc.SetTranslationPart(gp_XYZ(0.,0.,0.));
+  loc.Transforms(tmp);
+  return gp_Dir(tmp);
 }
 
-    gp_Dir  IGESSolid_RightAngularWedge::YAxis () const
+gp_Dir IGESSolid_RightAngularWedge::YAxis () const
 {
   return gp_Dir(theXAxis ^ theZAxis);     // ^ overloaded
 }
 
-    gp_Dir  IGESSolid_RightAngularWedge::TransformedYAxis () const
+gp_Dir IGESSolid_RightAngularWedge::TransformedYAxis () const
 {
-  if (!HasTransf()) return gp_Dir(theXAxis ^ theZAxis);
-  else
-    {
-      gp_XYZ tmp = theXAxis ^ theZAxis;
-      gp_GTrsf loc = Location();
-      loc.SetTranslationPart(gp_XYZ(0.,0.,0.));
-      loc.Transforms(tmp);
-      return gp_Dir(tmp);
-    }
+  if (!HasTransf())
+    return gp_Dir(theXAxis ^ theZAxis);
+
+  gp_XYZ tmp = theXAxis ^ theZAxis;
+  gp_GTrsf loc = Location();
+  loc.SetTranslationPart(gp_XYZ(0.,0.,0.));
+  loc.Transforms(tmp);
+  return gp_Dir(tmp);
 }
 
-    gp_Dir  IGESSolid_RightAngularWedge::ZAxis () const
+gp_Dir IGESSolid_RightAngularWedge::ZAxis () const
 {
   return gp_Dir(theZAxis);
 }
 
-    gp_Dir  IGESSolid_RightAngularWedge::TransformedZAxis () const
+gp_Dir IGESSolid_RightAngularWedge::TransformedZAxis () const
+{
+  if (!HasTransf())
+    return gp_Dir(theZAxis);
+
+  gp_XYZ tmp = theZAxis;
+  gp_GTrsf loc = Location();
+  loc.SetTranslationPart(gp_XYZ(0.,0.,0.));
+  loc.Transforms(tmp);
+  return gp_Dir(tmp);
+}
+
+void IGESSolid_RightAngularWedge::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
 {
-  if (!HasTransf()) return gp_Dir(theZAxis);
-  else
-    {
-      gp_XYZ tmp = theZAxis;
-      gp_GTrsf loc = Location();
-      loc.SetTranslationPart(gp_XYZ(0.,0.,0.));
-      loc.Transforms(tmp);
-      return gp_Dir(tmp);
-    }
+  const Standard_Real eps = 1.E-04;
+  const Standard_Real prosca = XAxis() * ZAxis();
+  if (prosca < -eps || prosca > eps)
+    theCheck->AddFail("Local Z axis : Not orthogonal to X axis");
+  if (Size().X() <= 0. || Size().Y() <= 0. || Size().Z() <= 0.)
+    theCheck->AddFail("Size : Values are not positive");
+  if (XSmallLength() <= 0.0)
+    theCheck->AddFail("Small X Length : Not Positive");
+  if (XSmallLength() >= Size().X())
+    theCheck->AddFail("Small X Length : Value not < LX");
 }
index 60c28679c78b65558825fdb57c638d9d62506b39..fab8649150b782ac4b735a0862d1170934ca4d78 100644 (file)
 #ifndef _IGESSolid_RightAngularWedge_HeaderFile
 #define _IGESSolid_RightAngularWedge_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
 #include <gp_XYZ.hxx>
-#include <Standard_Real.hxx>
 #include <IGESData_IGESEntity.hxx>
-class gp_XYZ;
 class gp_Pnt;
 class gp_Dir;
 
@@ -36,11 +31,9 @@ DEFINE_STANDARD_HANDLE(IGESSolid_RightAngularWedge, IGESData_IGESEntity)
 //! A right angular wedge is a triangular/trapezoidal prism
 class IGESSolid_RightAngularWedge : public IGESData_IGESEntity
 {
+ public:
 
-public:
-
-  
-  Standard_EXPORT IGESSolid_RightAngularWedge();
+  IGESSolid_RightAngularWedge() {}
   
   //! This method is used to set the fields of the class
   //! RightAngularWedge
@@ -55,20 +48,20 @@ public:
   Standard_EXPORT void Init (const gp_XYZ& aSize, const Standard_Real lowX, const gp_XYZ& aCorner, const gp_XYZ& anXAxis, const gp_XYZ& anZAxis);
   
   //! returns the size
-  Standard_EXPORT gp_XYZ Size() const;
-  
+  const gp_XYZ & Size() const { return theSize; }
+
   //! returns the length along the local X-axis
-  Standard_EXPORT Standard_Real XBigLength() const;
-  
+  Standard_Real XBigLength() const { return theSize.X(); }
+
   //! returns the smaller length along the local X-direction at Y=LY
-  Standard_EXPORT Standard_Real XSmallLength() const;
-  
+  Standard_Real XSmallLength() const { return theXSmallLength; }
+
   //! returns the length along the local Y-axis
-  Standard_EXPORT Standard_Real YLength() const;
-  
+  Standard_Real YLength() const { return theSize.Y(); }
+
   //! returns the length along the local Z-axis
-  Standard_EXPORT Standard_Real ZLength() const;
-  
+  Standard_Real ZLength() const { return theSize.Z(); }
+
   //! returns the corner point coordinates
   Standard_EXPORT gp_Pnt Corner() const;
   
@@ -98,32 +91,17 @@ public:
   //! after applying the TransformationMatrix
   Standard_EXPORT gp_Dir TransformedZAxis() const;
 
-
-
+  Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
 
   DEFINE_STANDARD_RTTIEXT(IGESSolid_RightAngularWedge,IGESData_IGESEntity)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   gp_XYZ theSize;
   Standard_Real theXSmallLength;
   gp_XYZ theCorner;
   gp_XYZ theXAxis;
   gp_XYZ theZAxis;
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_RightAngularWedge_HeaderFile
index 96d64ad44e671712ea14ff5155527cbd08b7b720..8503ed83d42b31e92fa933c7cb42dbf55cfa63aa 100644 (file)
 #include <gp_XYZ.hxx>
 #include <IGESSolid_BooleanTree.hxx>
 #include <IGESSolid_SelectedComponent.hxx>
-#include <Standard_Type.hxx>
+#include <Interface_EntityIterator.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESSolid_SelectedComponent,IGESData_IGESEntity)
 
-IGESSolid_SelectedComponent::IGESSolid_SelectedComponent ()    {  }
-
-
-    void  IGESSolid_SelectedComponent::Init
+void IGESSolid_SelectedComponent::Init
   (const Handle(IGESSolid_BooleanTree)& anEntity, const gp_XYZ& SelectPnt)
 {
   theEntity      = anEntity;
@@ -36,23 +33,22 @@ IGESSolid_SelectedComponent::IGESSolid_SelectedComponent ()    {  }
   InitTypeAndForm(182,0);
 }
 
-    Handle(IGESSolid_BooleanTree)  IGESSolid_SelectedComponent::Component () const
+gp_Pnt IGESSolid_SelectedComponent::SelectPoint () const
 {
-  return theEntity;
+  return gp_Pnt(theSelectPoint);
 }
 
-    gp_Pnt  IGESSolid_SelectedComponent::SelectPoint () const
+gp_Pnt IGESSolid_SelectedComponent::TransformedSelectPoint () const
 {
-  return gp_Pnt(theSelectPoint);
+  if (!HasTransf())
+    return gp_Pnt(theSelectPoint);
+
+  gp_XYZ tmp = theSelectPoint;
+  Location().Transforms(tmp);
+  return gp_Pnt(tmp);
 }
 
-    gp_Pnt  IGESSolid_SelectedComponent::TransformedSelectPoint () const
+void IGESSolid_SelectedComponent::OwnShared(Interface_EntityIterator &theIter) const
 {
-  if (!HasTransf()) return gp_Pnt(theSelectPoint);
-  else
-    {
-      gp_XYZ tmp = theSelectPoint;
-      Location().Transforms(tmp);
-      return gp_Pnt(tmp);
-    }
+  theIter.GetOneItem(Component());
 }
index 71352a0367869ec251f09405cbe1b386e7d75676..878b746cc4d14260721ce49ebd51510c191f21db 100644 (file)
 #ifndef _IGESSolid_SelectedComponent_HeaderFile
 #define _IGESSolid_SelectedComponent_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
 #include <gp_XYZ.hxx>
 #include <IGESData_IGESEntity.hxx>
 class IGESSolid_BooleanTree;
-class gp_XYZ;
 class gp_Pnt;
 
 
@@ -36,11 +32,9 @@ DEFINE_STANDARD_HANDLE(IGESSolid_SelectedComponent, IGESData_IGESEntity)
 //! selecting one component of a disjoint CSG solid
 class IGESSolid_SelectedComponent : public IGESData_IGESEntity
 {
+ public:
 
-public:
-
-  
-  Standard_EXPORT IGESSolid_SelectedComponent();
+  IGESSolid_SelectedComponent() {}
   
   //! This method is used to set the fields of the class
   //! SelectedComponent
@@ -49,7 +43,7 @@ public:
   Standard_EXPORT void Init (const Handle(IGESSolid_BooleanTree)& anEntity, const gp_XYZ& selectPnt);
   
   //! returns the Boolean tree entity
-  Standard_EXPORT Handle(IGESSolid_BooleanTree) Component() const;
+  const Handle(IGESSolid_BooleanTree) & Component() const { return theEntity; }
   
   //! returns the point on/in the selected component
   Standard_EXPORT gp_Pnt SelectPoint() const;
@@ -58,29 +52,14 @@ public:
   //! after applying TransformationMatrix
   Standard_EXPORT gp_Pnt TransformedSelectPoint() const;
 
-
-
+  Standard_EXPORT virtual void OwnShared(Interface_EntityIterator &theIter) const Standard_OVERRIDE;
 
   DEFINE_STANDARD_RTTIEXT(IGESSolid_SelectedComponent,IGESData_IGESEntity)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   Handle(IGESSolid_BooleanTree) theEntity;
   gp_XYZ theSelectPoint;
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_SelectedComponent_HeaderFile
index aaecb64aa11f54eb10cfe31f5c80d4988960342f..f1e7f0bd6f7f11612c2e227186eb1e8b27bce9c4 100644 (file)
 #include <IGESSolid_Shell.hxx>
 #include <Standard_DimensionMismatch.hxx>
 #include <Standard_OutOfRange.hxx>
-#include <Standard_Type.hxx>
+#include <Interface_EntityIterator.hxx>
+#include <Message_Msg.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESSolid_Shell,IGESData_IGESEntity)
 
-IGESSolid_Shell::IGESSolid_Shell ()    {  }
-
-
-    void  IGESSolid_Shell::Init
+void IGESSolid_Shell::Init
   (const Handle(IGESSolid_HArray1OfFace)& Faces,
    const Handle(TColStd_HArray1OfInteger)& Orient)
 {
@@ -40,25 +38,38 @@ IGESSolid_Shell::IGESSolid_Shell ()    {  }
   InitTypeAndForm(514,1);
 }
 
-    Standard_Boolean  IGESSolid_Shell::IsClosed () const
-      {  return (FormNumber() == 1);  }
-
-    void  IGESSolid_Shell::SetClosed (const Standard_Boolean closed)
-      {  InitTypeAndForm(514, (closed ? 1 : 2));  }
+Standard_Boolean IGESSolid_Shell::IsClosed () const
+{  return (FormNumber() == 1);  }
 
+void IGESSolid_Shell::SetClosed (const Standard_Boolean closed)
+{  InitTypeAndForm(514, (closed ? 1 : 2));  }
 
-    Standard_Integer  IGESSolid_Shell::NbFaces () const
+Standard_Integer IGESSolid_Shell::NbFaces () const
 {
   return theFaces->Length();
 }
 
-    Handle(IGESSolid_Face) IGESSolid_Shell::Face (const Standard_Integer Index) const
+const Handle(IGESSolid_Face) & IGESSolid_Shell::Face (const Standard_Integer Index) const
 {
   return theFaces->Value(Index);
 }
 
-    Standard_Boolean IGESSolid_Shell::Orientation
-  (const Standard_Integer Index) const
+Standard_Boolean IGESSolid_Shell::Orientation (const Standard_Integer Index) const
 {
   return (theOrientation->Value(Index) != 0);
 }
+
+void IGESSolid_Shell::OwnShared(Interface_EntityIterator &theIter) const
+{
+  const Standard_Integer nbfaces = theFaces->Length();
+  for (Standard_Integer i = 1; i <= nbfaces; i ++)
+    theIter.GetOneItem(theFaces->Value(i));
+}
+
+void IGESSolid_Shell::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
+{
+  if (NbFaces() <= 0) {
+    Message_Msg Msg200("XSTEP_200");
+    theCheck->SendFail(Msg200);
+  }
+}
index b296c18ae290a54b32970f79f41ae004d71d83d6..dcc5135820ba38b85d72766a2bb0e01dc3608010 100644 (file)
 #ifndef _IGESSolid_Shell_HeaderFile
 #define _IGESSolid_Shell_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
 #include <IGESSolid_HArray1OfFace.hxx>
 #include <TColStd_HArray1OfInteger.hxx>
 #include <IGESData_IGESEntity.hxx>
-#include <Standard_Boolean.hxx>
-#include <Standard_Integer.hxx>
-class Standard_DimensionMismatch;
-class Standard_OutOfRange;
 class IGESSolid_Face;
 
 
@@ -42,11 +35,9 @@ DEFINE_STANDARD_HANDLE(IGESSolid_Shell, IGESData_IGESEntity)
 //! From IGES-5.3, Form can be <1> for Closed or <2> for Open
 class IGESSolid_Shell : public IGESData_IGESEntity
 {
+ public:
 
-public:
-
-  
-  Standard_EXPORT IGESSolid_Shell();
+  IGESSolid_Shell() {}
   
   //! This method is used to set the fields of the class Shell
   //! - allFaces  : the faces comprising the shell
@@ -66,36 +57,23 @@ public:
   
   //! returns the Index'th face entity of the shell
   //! raises exception if Index <= 0 or Index > NbFaces()
-  Standard_EXPORT Handle(IGESSolid_Face) Face (const Standard_Integer Index) const;
+  Standard_EXPORT const Handle(IGESSolid_Face) & Face (const Standard_Integer Index) const;
   
   //! returns the orientation of Index'th face w.r.t the direction of
   //! the underlying surface
   //! raises exception if Index <= 0 or Index > NbFaces()
   Standard_EXPORT Standard_Boolean Orientation (const Standard_Integer Index) const;
 
+  Standard_EXPORT virtual void OwnShared(Interface_EntityIterator &theIter) const Standard_OVERRIDE;
 
-
+  Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
 
   DEFINE_STANDARD_RTTIEXT(IGESSolid_Shell,IGESData_IGESEntity)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   Handle(IGESSolid_HArray1OfFace) theFaces;
   Handle(TColStd_HArray1OfInteger) theOrientation;
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_Shell_HeaderFile
index 628576a068576cc9dd63b367d2a1d7e249b534c3..9efdf1f0394bcf313fb2ac0cc1d69e24de09a095 100644 (file)
 //--------------------------------------------------------------------
 //--------------------------------------------------------------------
 
-#include <IGESData_IGESEntity.hxx>
 #include <IGESGeom_TransformationMatrix.hxx>
 #include <IGESSolid_SolidAssembly.hxx>
 #include <Standard_DimensionMismatch.hxx>
 #include <Standard_OutOfRange.hxx>
-#include <Standard_Type.hxx>
+#include <Interface_EntityIterator.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESSolid_SolidAssembly,IGESData_IGESEntity)
 
-IGESSolid_SolidAssembly::IGESSolid_SolidAssembly ()    {  }
-
-
-    void  IGESSolid_SolidAssembly::Init
+void IGESSolid_SolidAssembly::Init
   (const Handle(IGESData_HArray1OfIGESEntity)& Items,
    const Handle(IGESGeom_HArray1OfTransformationMatrix)& Matrices)
 {
@@ -41,26 +37,31 @@ IGESSolid_SolidAssembly::IGESSolid_SolidAssembly ()    {  }
   InitTypeAndForm(184,0);
 }
 
-    Standard_Boolean  IGESSolid_SolidAssembly::HasBrep () const
-      {  return (FormNumber() == 1);  }
-
-    void  IGESSolid_SolidAssembly::SetBrep (const Standard_Boolean hasbrep)
-      {  InitTypeAndForm(184, (hasbrep ? 1 : 0));  }
+Standard_Boolean IGESSolid_SolidAssembly::HasBrep () const
+{  return (FormNumber() == 1);  }
 
+void IGESSolid_SolidAssembly::SetBrep (const Standard_Boolean hasbrep)
+{  InitTypeAndForm(184, (hasbrep ? 1 : 0));  }
 
-    Standard_Integer  IGESSolid_SolidAssembly::NbItems () const
+Standard_Integer IGESSolid_SolidAssembly::NbItems () const
 {
   return theItems->Length();
 }
 
-    Handle(IGESData_IGESEntity)  IGESSolid_SolidAssembly::Item
-  (const Standard_Integer Index) const
+const Handle(IGESData_IGESEntity) & IGESSolid_SolidAssembly::Item (const Standard_Integer Index) const
 {
   return theItems->Value(Index);
 }
 
-    Handle(IGESGeom_TransformationMatrix) IGESSolid_SolidAssembly::TransfMatrix
-  (const Standard_Integer Index) const
+const Handle(IGESGeom_TransformationMatrix) & IGESSolid_SolidAssembly::TransfMatrix (const Standard_Integer Index) const
 {
   return theMatrices->Value(Index);
 }
+
+void IGESSolid_SolidAssembly::OwnShared(Interface_EntityIterator &theIter) const
+{
+  const Standard_Integer nbitems = theItems->Length();
+  Standard_Integer i;
+  for (i = 1; i <= nbitems; i ++) theIter.GetOneItem(theItems->Value(i));
+  for (i = 1; i <= nbitems; i ++) theIter.GetOneItem(theMatrices->Value(i));
+}
index a5fa1266ab2780ecc99d8f0ffe0bb037a3df8f2f..ee1918e453239b172a4011f0102f78afb86e23cc 100644 (file)
 #ifndef _IGESSolid_SolidAssembly_HeaderFile
 #define _IGESSolid_SolidAssembly_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
 #include <IGESData_HArray1OfIGESEntity.hxx>
 #include <IGESGeom_HArray1OfTransformationMatrix.hxx>
 #include <IGESData_IGESEntity.hxx>
-#include <Standard_Boolean.hxx>
-#include <Standard_Integer.hxx>
-class Standard_DimensionMismatch;
-class Standard_OutOfRange;
-class IGESData_IGESEntity;
 class IGESGeom_TransformationMatrix;
 
 
@@ -44,11 +36,9 @@ DEFINE_STANDARD_HANDLE(IGESSolid_SolidAssembly, IGESData_IGESEntity)
 //! other Assemblies
 class IGESSolid_SolidAssembly : public IGESData_IGESEntity
 {
+ public:
 
-public:
-
-  
-  Standard_EXPORT IGESSolid_SolidAssembly();
+  IGESSolid_SolidAssembly() {}
   
   //! This method is used to set the fields of the class
   //! SolidAssembly
@@ -71,35 +61,20 @@ public:
   
   //! returns the Index'th item
   //! raises exception if Index <= 0 or Index > NbItems()
-  Standard_EXPORT Handle(IGESData_IGESEntity) Item (const Standard_Integer Index) const;
+  Standard_EXPORT const Handle(IGESData_IGESEntity) & Item (const Standard_Integer Index) const;
   
   //! returns the transformation matrix of the Index'th item
   //! raises exception if Index <= 0 or Index > NbItems()
-  Standard_EXPORT Handle(IGESGeom_TransformationMatrix) TransfMatrix (const Standard_Integer Index) const;
-
-
+  Standard_EXPORT const Handle(IGESGeom_TransformationMatrix) & TransfMatrix (const Standard_Integer Index) const;
 
+  Standard_EXPORT virtual void OwnShared(Interface_EntityIterator &theIter) const Standard_OVERRIDE;
 
   DEFINE_STANDARD_RTTIEXT(IGESSolid_SolidAssembly,IGESData_IGESEntity)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   Handle(IGESData_HArray1OfIGESEntity) theItems;
   Handle(IGESGeom_HArray1OfTransformationMatrix) theMatrices;
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_SolidAssembly_HeaderFile
index 62fedb48d6a329d37f856228e41c1d96c585f152..a141942c01f3172dcdb515a33c2c8aeba07b0597 100644 (file)
 
 #include <IGESData_IGESEntity.hxx>
 #include <IGESSolid_SolidInstance.hxx>
-#include <Standard_Type.hxx>
+#include <Interface_EntityIterator.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESSolid_SolidInstance,IGESData_IGESEntity)
 
-IGESSolid_SolidInstance::IGESSolid_SolidInstance ()    {  }
-
-
-    void  IGESSolid_SolidInstance::Init
+void IGESSolid_SolidInstance::Init
   (const Handle(IGESData_IGESEntity)& anEntity)
 {
   theEntity = anEntity;
   InitTypeAndForm(430,0);
 }
 
-    Standard_Boolean  IGESSolid_SolidInstance::IsBrep () const
-      {  return (FormNumber() == 1);  }
+Standard_Boolean IGESSolid_SolidInstance::IsBrep () const
+{  return (FormNumber() == 1);  }
 
-    void  IGESSolid_SolidInstance::SetBrep (const Standard_Boolean brep)
-      {  InitTypeAndForm(430, (brep ? 1 : 0));  }
+void IGESSolid_SolidInstance::SetBrep (const Standard_Boolean brep)
+{  InitTypeAndForm(430, (brep ? 1 : 0));  }
 
-    Handle(IGESData_IGESEntity)  IGESSolid_SolidInstance::Entity () const
+void IGESSolid_SolidInstance::OwnShared(Interface_EntityIterator &theIter) const
 {
-  return theEntity;
+  theIter.GetOneItem(Entity());
 }
index b7901a39ed68b3f6948598576bcf4dc91eebc3bc..4777f3c33f1b9b96f379bc1840e06b75e833a40f 100644 (file)
 #ifndef _IGESSolid_SolidInstance_HeaderFile
 #define _IGESSolid_SolidInstance_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
 #include <IGESData_IGESEntity.hxx>
-#include <Standard_Boolean.hxx>
-class IGESData_IGESEntity;
-
 
 class IGESSolid_SolidInstance;
 DEFINE_STANDARD_HANDLE(IGESSolid_SolidInstance, IGESData_IGESEntity)
@@ -37,11 +31,9 @@ DEFINE_STANDARD_HANDLE(IGESSolid_SolidInstance, IGESData_IGESEntity)
 //! Else it is for a Boolean Tree, Primitive, other Solid Inst.
 class IGESSolid_SolidInstance : public IGESData_IGESEntity
 {
+ public:
 
-public:
-
-  
-  Standard_EXPORT IGESSolid_SolidInstance();
+  IGESSolid_SolidInstance() {}
   
   //! This method is used to set the fields of the class
   //! SolidInstance
@@ -56,30 +48,15 @@ public:
   Standard_EXPORT void SetBrep (const Standard_Boolean brep);
   
   //! returns the solid entity
-  Standard_EXPORT Handle(IGESData_IGESEntity) Entity() const;
-
-
+  const Handle(IGESData_IGESEntity) & Entity() const { return theEntity; }
 
+  Standard_EXPORT virtual void OwnShared(Interface_EntityIterator &theIter) const Standard_OVERRIDE;
 
   DEFINE_STANDARD_RTTIEXT(IGESSolid_SolidInstance,IGESData_IGESEntity)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   Handle(IGESData_IGESEntity) theEntity;
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_SolidInstance_HeaderFile
index 94cfdfd10142f917deb4d5afa5d776e43a32739a..1eaae00023ff2ff5ceac23cdf0d9f08361ae7108 100644 (file)
 
 #include <gp_Dir.hxx>
 #include <gp_GTrsf.hxx>
-#include <gp_XYZ.hxx>
-#include <IGESData_IGESEntity.hxx>
 #include <IGESSolid_SolidOfLinearExtrusion.hxx>
-#include <Standard_Type.hxx>
+#include <Interface_EntityIterator.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESSolid_SolidOfLinearExtrusion,IGESData_IGESEntity)
 
-IGESSolid_SolidOfLinearExtrusion::IGESSolid_SolidOfLinearExtrusion ()   { }
-
-
-    void  IGESSolid_SolidOfLinearExtrusion::Init
+void IGESSolid_SolidOfLinearExtrusion::Init
   (const Handle(IGESData_IGESEntity)& aCurve,
    const Standard_Real Length, const gp_XYZ& Direction)
 {
@@ -38,22 +33,12 @@ IGESSolid_SolidOfLinearExtrusion::IGESSolid_SolidOfLinearExtrusion ()   { }
   InitTypeAndForm(164,0);
 }
 
-    Handle(IGESData_IGESEntity)  IGESSolid_SolidOfLinearExtrusion::Curve () const
-{
-  return theCurve;
-}
-
-    Standard_Real  IGESSolid_SolidOfLinearExtrusion::ExtrusionLength () const
-{
-  return theLength;
-}
-
-    gp_Dir  IGESSolid_SolidOfLinearExtrusion::ExtrusionDirection () const
+gp_Dir IGESSolid_SolidOfLinearExtrusion::ExtrusionDirection () const
 {
   return gp_Dir(theDirection);
 }
 
-    gp_Dir  IGESSolid_SolidOfLinearExtrusion::TransformedExtrusionDirection () const
+gp_Dir IGESSolid_SolidOfLinearExtrusion::TransformedExtrusionDirection () const
 {
   if (!HasTransf()) return gp_Dir(theDirection);
   else
@@ -65,3 +50,14 @@ IGESSolid_SolidOfLinearExtrusion::IGESSolid_SolidOfLinearExtrusion ()   { }
       return gp_Dir(tmp);
     }
 }
+
+void IGESSolid_SolidOfLinearExtrusion::OwnShared(Interface_EntityIterator &theIter) const
+{
+  theIter.GetOneItem(Curve());
+}
+
+void IGESSolid_SolidOfLinearExtrusion::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
+{
+  if (ExtrusionLength() <= 0.0)
+    theCheck->AddFail("Length of extrusion : Not Positive");
+}
index 00aa5af357fdc0e811dbad7e4db2a073df734c6d..2bb09de33c3615117f0acb209929acabe7e67e81 100644 (file)
 #ifndef _IGESSolid_SolidOfLinearExtrusion_HeaderFile
 #define _IGESSolid_SolidOfLinearExtrusion_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
-#include <Standard_Real.hxx>
 #include <gp_XYZ.hxx>
 #include <IGESData_IGESEntity.hxx>
-class IGESData_IGESEntity;
-class gp_XYZ;
 class gp_Dir;
 
 
@@ -37,11 +31,9 @@ DEFINE_STANDARD_HANDLE(IGESSolid_SolidOfLinearExtrusion, IGESData_IGESEntity)
 //! area determined by a planar curve
 class IGESSolid_SolidOfLinearExtrusion : public IGESData_IGESEntity
 {
+ public:
 
-public:
-
-  
-  Standard_EXPORT IGESSolid_SolidOfLinearExtrusion();
+  IGESSolid_SolidOfLinearExtrusion() {}
   
   //! This method is used to set the fields of the class
   //! SolidOfLinearExtrusion
@@ -52,41 +44,28 @@ public:
   Standard_EXPORT void Init (const Handle(IGESData_IGESEntity)& aCurve, const Standard_Real aLength, const gp_XYZ& aDirection);
   
   //! returns the planar curve that is to be translated
-  Standard_EXPORT Handle(IGESData_IGESEntity) Curve() const;
-  
+  const Handle(IGESData_IGESEntity) & Curve() const { return theCurve; }
+
   //! returns the Extrusion Length
-  Standard_EXPORT Standard_Real ExtrusionLength() const;
-  
+  Standard_Real ExtrusionLength() const { return theLength; }
+
   //! returns the Extrusion direction
   Standard_EXPORT gp_Dir ExtrusionDirection() const;
   
   //! returns ExtrusionDirection after applying TransformationMatrix
   Standard_EXPORT gp_Dir TransformedExtrusionDirection() const;
 
+  Standard_EXPORT virtual void OwnShared(Interface_EntityIterator &theIter) const Standard_OVERRIDE;
 
-
+  Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
 
   DEFINE_STANDARD_RTTIEXT(IGESSolid_SolidOfLinearExtrusion,IGESData_IGESEntity)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   Handle(IGESData_IGESEntity) theCurve;
   Standard_Real theLength;
   gp_XYZ theDirection;
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_SolidOfLinearExtrusion_HeaderFile
index 55eef08c9839b50f3af9a345798a43a2a9ffa181..c33fe0be97acc18debfe4c24fa3d780780fcc549 100644 (file)
 #include <gp_Dir.hxx>
 #include <gp_GTrsf.hxx>
 #include <gp_Pnt.hxx>
-#include <gp_XYZ.hxx>
-#include <IGESData_IGESEntity.hxx>
 #include <IGESSolid_SolidOfRevolution.hxx>
-#include <Standard_Type.hxx>
+#include <Interface_EntityIterator.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESSolid_SolidOfRevolution,IGESData_IGESEntity)
 
-IGESSolid_SolidOfRevolution::IGESSolid_SolidOfRevolution ()    {  }
-
-
-    void  IGESSolid_SolidOfRevolution::Init
+void IGESSolid_SolidOfRevolution::Init
   (const Handle(IGESData_IGESEntity)& aCurve, const Standard_Real Fract,
    const gp_XYZ& AxisPnt, const gp_XYZ& Direction)
 {
@@ -41,57 +36,55 @@ IGESSolid_SolidOfRevolution::IGESSolid_SolidOfRevolution ()    {  }
 // Form 0 : Curve closed to Axis;   Form 1 : Curve closed to itself
 }
 
-    void  IGESSolid_SolidOfRevolution::SetClosedToAxis (const Standard_Boolean F)
+void IGESSolid_SolidOfRevolution::SetClosedToAxis (const Standard_Boolean F)
 {
   InitTypeAndForm(162, (F ? 0 : 1));
 }
 
-    Standard_Boolean IGESSolid_SolidOfRevolution::IsClosedToAxis () const
+Standard_Boolean IGESSolid_SolidOfRevolution::IsClosedToAxis () const
 {
   return (FormNumber() == 0);
 }
 
-
-    Handle(IGESData_IGESEntity)  IGESSolid_SolidOfRevolution::Curve () const
+gp_Pnt IGESSolid_SolidOfRevolution::AxisPoint () const
 {
-  return theCurve;
+  return gp_Pnt(theAxisPoint);
 }
 
-    Standard_Real  IGESSolid_SolidOfRevolution::Fraction () const
+gp_Pnt IGESSolid_SolidOfRevolution::TransformedAxisPoint () const
 {
-  return theFraction;
+  if (!HasTransf())
+    return gp_Pnt(theAxisPoint);
+
+  gp_XYZ tmp = theAxisPoint;
+  Location().Transforms(tmp);
+  return gp_Pnt(tmp);
 }
 
-    gp_Pnt  IGESSolid_SolidOfRevolution::AxisPoint () const
+gp_Dir IGESSolid_SolidOfRevolution::Axis () const
 {
-  return gp_Pnt(theAxisPoint);
+  return gp_Dir(theAxis);
 }
 
-    gp_Pnt  IGESSolid_SolidOfRevolution::TransformedAxisPoint () const
+gp_Dir IGESSolid_SolidOfRevolution::TransformedAxis () const
 {
-  if (!HasTransf()) return gp_Pnt(theAxisPoint);
-  else
-    {
-      gp_XYZ tmp = theAxisPoint;
-      Location().Transforms(tmp);
-      return gp_Pnt(tmp);
-    }
+  if (!HasTransf())
+    return gp_Dir(theAxis);
+
+  gp_XYZ tmp = theAxis;
+  gp_GTrsf loc = Location();
+  loc.SetTranslationPart(gp_XYZ(0.,0.,0.));
+  loc.Transforms(tmp);
+  return gp_Dir(tmp);
 }
 
-    gp_Dir  IGESSolid_SolidOfRevolution::Axis () const
+void IGESSolid_SolidOfRevolution::OwnShared(Interface_EntityIterator &theIter) const
 {
-  return gp_Dir(theAxis);
+  theIter.GetOneItem(Curve());
 }
 
-    gp_Dir  IGESSolid_SolidOfRevolution::TransformedAxis () const
+void IGESSolid_SolidOfRevolution::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
 {
-  if (!HasTransf()) return gp_Dir(theAxis);
-  else
-    {
-      gp_XYZ tmp = theAxis;
-      gp_GTrsf loc = Location();
-      loc.SetTranslationPart(gp_XYZ(0.,0.,0.));
-      loc.Transforms(tmp);
-      return gp_Dir(tmp);
-    }
+  if (Fraction() <= 0. || Fraction() > 1.)
+    theCheck->AddFail("Fraction of rotation : Incorrect value");
 }
index d24e6113ab8515679154bf2e183459d171142f32..d0a0efb38785c263611127fc4ca0bf431b21022d 100644 (file)
 #ifndef _IGESSolid_SolidOfRevolution_HeaderFile
 #define _IGESSolid_SolidOfRevolution_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
-#include <Standard_Real.hxx>
 #include <gp_XYZ.hxx>
 #include <IGESData_IGESEntity.hxx>
-#include <Standard_Boolean.hxx>
-class IGESData_IGESEntity;
-class gp_XYZ;
 class gp_Pnt;
 class gp_Dir;
 
@@ -40,11 +33,9 @@ DEFINE_STANDARD_HANDLE(IGESSolid_SolidOfRevolution, IGESData_IGESEntity)
 //! fraction of full rotation.
 class IGESSolid_SolidOfRevolution : public IGESData_IGESEntity
 {
+ public:
 
-public:
-
-  
-  Standard_EXPORT IGESSolid_SolidOfRevolution();
+  IGESSolid_SolidOfRevolution() {}
   
   //! This method is used to set the fields of the class
   //! SolidOfRevolution
@@ -64,12 +55,12 @@ public:
   Standard_EXPORT Standard_Boolean IsClosedToAxis() const;
   
   //! returns the curve entity that is to be revolved
-  Standard_EXPORT Handle(IGESData_IGESEntity) Curve() const;
-  
+  const Handle(IGESData_IGESEntity) & Curve() const { return theCurve; }
+
   //! returns the fraction of full rotation that the curve is to
   //! be rotated
-  Standard_EXPORT Standard_Real Fraction() const;
-  
+  Standard_Real Fraction() const { return theFraction; }
+
   //! returns the point on the axis
   Standard_EXPORT gp_Pnt AxisPoint() const;
   
@@ -83,31 +74,18 @@ public:
   //! TransformationMatrix
   Standard_EXPORT gp_Dir TransformedAxis() const;
 
+  Standard_EXPORT virtual void OwnShared(Interface_EntityIterator &theIter) const Standard_OVERRIDE;
 
-
+  Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
 
   DEFINE_STANDARD_RTTIEXT(IGESSolid_SolidOfRevolution,IGESData_IGESEntity)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   Handle(IGESData_IGESEntity) theCurve;
   Standard_Real theFraction;
   gp_XYZ theAxisPoint;
   gp_XYZ theAxis;
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_SolidOfRevolution_HeaderFile
index bb87d3e7c0aaef106377b612643129780c68b61c..baad3520b73f103a00acb162dc4f0db1df6288d4 100644 (file)
 
 #include <gp_GTrsf.hxx>
 #include <gp_Pnt.hxx>
-#include <gp_XYZ.hxx>
 #include <IGESSolid_Sphere.hxx>
-#include <Standard_Type.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESSolid_Sphere,IGESData_IGESEntity)
 
-IGESSolid_Sphere::IGESSolid_Sphere ()    {  }
-
-
-    void  IGESSolid_Sphere::Init
+void IGESSolid_Sphere::Init
   (const Standard_Real aRadius, const gp_XYZ& aCenter)
 {
   theRadius = aRadius;
@@ -35,23 +30,23 @@ IGESSolid_Sphere::IGESSolid_Sphere ()    {  }
   InitTypeAndForm(158,0);
 }
 
-    Standard_Real  IGESSolid_Sphere::Radius () const
+gp_Pnt IGESSolid_Sphere::Center () const
 {
-  return theRadius;
+  return gp_Pnt(theCenter);
 }
 
-    gp_Pnt  IGESSolid_Sphere::Center () const
+gp_Pnt IGESSolid_Sphere::TransformedCenter () const
 {
-  return gp_Pnt(theCenter);
+  if (!HasTransf())
+    return gp_Pnt(theCenter);
+
+  gp_XYZ tmp = theCenter;
+  Location().Transforms(tmp);
+  return gp_Pnt(tmp);
 }
 
-    gp_Pnt  IGESSolid_Sphere::TransformedCenter () const
+void IGESSolid_Sphere::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
 {
-  if (!HasTransf()) return gp_Pnt(theCenter);
-  else
-    {
-      gp_XYZ tmp = theCenter;
-      Location().Transforms(tmp);
-      return gp_Pnt(tmp);
-    }
+  if (Radius() <= 0.0)
+    theCheck->AddFail("Radius : Not Positive");
 }
index ae5cedf13fe80dd3a8dd220e4208369011b46f1a..1543a0ad07602d602f6bd582feef7dd6d145a845 100644 (file)
 #ifndef _IGESSolid_Sphere_HeaderFile
 #define _IGESSolid_Sphere_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
-#include <Standard_Real.hxx>
 #include <gp_XYZ.hxx>
 #include <IGESData_IGESEntity.hxx>
-class gp_XYZ;
 class gp_Pnt;
 
 
@@ -35,11 +30,9 @@ DEFINE_STANDARD_HANDLE(IGESSolid_Sphere, IGESData_IGESEntity)
 //! This defines a sphere with a center and radius
 class IGESSolid_Sphere : public IGESData_IGESEntity
 {
+ public:
 
-public:
-
-  
-  Standard_EXPORT IGESSolid_Sphere();
+  IGESSolid_Sphere() {}
   
   //! This method is used to set the fields of the class Sphere
   //! - aRadius : the radius of the sphere
@@ -47,8 +40,8 @@ public:
   Standard_EXPORT void Init (const Standard_Real aRadius, const gp_XYZ& aCenter);
   
   //! returns the radius of the sphere
-  Standard_EXPORT Standard_Real Radius() const;
-  
+  Standard_Real Radius() const { return theRadius; }
+
   //! returns the center of the sphere
   Standard_EXPORT gp_Pnt Center() const;
   
@@ -56,29 +49,14 @@ public:
   //! TransformationMatrix
   Standard_EXPORT gp_Pnt TransformedCenter() const;
 
-
-
+  Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
 
   DEFINE_STANDARD_RTTIEXT(IGESSolid_Sphere,IGESData_IGESEntity)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   Standard_Real theRadius;
   gp_XYZ theCenter;
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_Sphere_HeaderFile
index 352eb2f92810abaa941f59d3bcd8f354547d11a5..1ab5173c9e1d342853fd043ed7b8de6175ecf50f 100644 (file)
 #include <IGESGeom_Direction.hxx>
 #include <IGESGeom_Point.hxx>
 #include <IGESSolid_SphericalSurface.hxx>
-#include <Standard_Type.hxx>
+#include <Interface_EntityIterator.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESSolid_SphericalSurface,IGESData_IGESEntity)
 
-IGESSolid_SphericalSurface::IGESSolid_SphericalSurface ()    {  }
-
-
-    void  IGESSolid_SphericalSurface::Init
+void IGESSolid_SphericalSurface::Init
   (const Handle(IGESGeom_Point)& aCenter,
    const Standard_Real aRadius,
    const Handle(IGESGeom_Direction)& anAxis,
@@ -41,38 +38,28 @@ IGESSolid_SphericalSurface::IGESSolid_SphericalSurface ()    {  }
   InitTypeAndForm(196, (theRefDir.IsNull() ? 0 : 1) );
 }
 
-    Handle(IGESGeom_Point)  IGESSolid_SphericalSurface::Center () const
-{
-  return theCenter;
-}
-
-    gp_Pnt  IGESSolid_SphericalSurface::TransformedCenter () const
+gp_Pnt IGESSolid_SphericalSurface::TransformedCenter () const
 {
-  if (!HasTransf()) return theCenter->Value();
-  else
-    {
-      gp_XYZ tmp = (theCenter->Value()).XYZ();
-      Location().Transforms(tmp);
-      return gp_Pnt(tmp);
-    }
-}
+  if (!HasTransf())
+    return theCenter->Value();
 
-    Standard_Real  IGESSolid_SphericalSurface::Radius () const
-{
-  return theRadius;
-}
-
-    Handle(IGESGeom_Direction)  IGESSolid_SphericalSurface::Axis () const
-{
-  return theAxis;
+  gp_XYZ tmp = (theCenter->Value()).XYZ();
+  Location().Transforms(tmp);
+  return gp_Pnt(tmp);
 }
 
-    Handle(IGESGeom_Direction)  IGESSolid_SphericalSurface::ReferenceDir () const
+void IGESSolid_SphericalSurface::OwnShared(Interface_EntityIterator &theIter) const
 {
-  return theRefDir;
+  theIter.GetOneItem(Center());
+  theIter.GetOneItem(Axis());
+  theIter.GetOneItem(ReferenceDir());
 }
 
-    Standard_Boolean  IGESSolid_SphericalSurface::IsParametrised () const
+void IGESSolid_SphericalSurface::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
 {
-  return !(theRefDir.IsNull());
+  if (Radius() <= 0.0)
+    theCheck->AddFail("Radius : Not Positive");
+  const Standard_Integer fn = (IsParametrised()? 1 : 0);
+  if (fn != FormNumber()) theCheck->AddFail("Parametrised Status Mismatches with Form Number");
+  if (Axis().IsNull() && IsParametrised()) theCheck->AddFail("Parametrised Spherical Surface : no Axis is defined");
 }
index 62eb85b9f756e53b22db2e7bfa737e3810be00f7..25e28eb5f45c6b68224e26ad4f9e145647b90d60 100644 (file)
 #ifndef _IGESSolid_SphericalSurface_HeaderFile
 #define _IGESSolid_SphericalSurface_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
-#include <Standard_Real.hxx>
 #include <IGESData_IGESEntity.hxx>
-#include <Standard_Boolean.hxx>
 class IGESGeom_Point;
 class IGESGeom_Direction;
 class gp_Pnt;
@@ -38,11 +33,9 @@ DEFINE_STANDARD_HANDLE(IGESSolid_SphericalSurface, IGESData_IGESEntity)
 //! reference direction is provided.
 class IGESSolid_SphericalSurface : public IGESData_IGESEntity
 {
+ public:
 
-public:
-
-  
-  Standard_EXPORT IGESSolid_SphericalSurface();
+  IGESSolid_SphericalSurface() {}
   
   //! This method is used to set the fields of the class
   //! SphericalSurface
@@ -55,51 +48,38 @@ public:
   Standard_EXPORT void Init (const Handle(IGESGeom_Point)& aCenter, const Standard_Real aRadius, const Handle(IGESGeom_Direction)& anAxis, const Handle(IGESGeom_Direction)& aRefdir);
   
   //! returns the center of the spherical surface
-  Standard_EXPORT Handle(IGESGeom_Point) Center() const;
+  const Handle(IGESGeom_Point) & Center() const { return theCenter; }
   
   //! returns the center of the spherical surface after applying
   //! TransformationMatrix
   Standard_EXPORT gp_Pnt TransformedCenter() const;
   
   //! returns the radius of the spherical surface
-  Standard_EXPORT Standard_Real Radius() const;
-  
+  Standard_Real Radius() const { return theRadius; }
+
   //! returns the direction of the axis (Parametrised surface)
   //! Null is returned if the surface is not parametrised
-  Standard_EXPORT Handle(IGESGeom_Direction) Axis() const;
+  const Handle(IGESGeom_Direction) & Axis() const { return theAxis; }
   
   //! returns the reference direction (Parametrised surface)
   //! Null is returned if the surface is not parametrised
-  Standard_EXPORT Handle(IGESGeom_Direction) ReferenceDir() const;
-  
-  //! Returns True if the surface is parametrised, else False
-  Standard_EXPORT Standard_Boolean IsParametrised() const;
+  const Handle(IGESGeom_Direction) & ReferenceDir() const { return theRefDir; }
 
+  //! Returns True if the surface is parametrised, else False
+  Standard_Boolean IsParametrised() const { return !(theRefDir.IsNull()); }
 
+  Standard_EXPORT virtual void OwnShared(Interface_EntityIterator &theIter) const Standard_OVERRIDE;
 
+  Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
 
   DEFINE_STANDARD_RTTIEXT(IGESSolid_SphericalSurface,IGESData_IGESEntity)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   Handle(IGESGeom_Point) theCenter;
   Standard_Real theRadius;
   Handle(IGESGeom_Direction) theAxis;
   Handle(IGESGeom_Direction) theRefDir;
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_SphericalSurface_HeaderFile
index e88e88192454cf1298ad590a083de47cffb85d69..07d8c23195eb26bfb6c2762198c25e8d2e234860 100644 (file)
 #include <IGESSolid_Block.hxx>
 #include <IGESSolid_ToolBlock.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESSolid_ToolBlock::IGESSolid_ToolBlock ()    {  }
-
-
 void IGESSolid_ToolBlock::ReadOwnParams
   (const Handle(IGESSolid_Block)& ent,
    const Handle(IGESData_IGESReaderData)& /* IR */, IGESData_ParamReader& PR) const
@@ -146,19 +142,6 @@ void  IGESSolid_ToolBlock::WriteOwnParams
   IW.Send(ent->ZAxis().Z());
 }
 
-void  IGESSolid_ToolBlock::OwnShared
-  (const Handle(IGESSolid_Block)& /* ent */, Interface_EntityIterator& /* iter */) const
-{
-}
-
-void IGESSolid_ToolBlock::OwnCopy
-  (const Handle(IGESSolid_Block)& another,
-   const Handle(IGESSolid_Block)& ent, Interface_CopyTool& /* TC */) const
-{
-  ent->Init(another->Size(), another->Corner().XYZ(),
-           another->XAxis().XYZ(), another->ZAxis().XYZ());
-}
-
 IGESData_DirChecker  IGESSolid_ToolBlock::DirChecker
   (const Handle(IGESSolid_Block)& /* ent */ ) const
 {
@@ -171,18 +154,6 @@ IGESData_DirChecker  IGESSolid_ToolBlock::DirChecker
   return DC;
 }
 
-void  IGESSolid_ToolBlock::OwnCheck
-  (const Handle(IGESSolid_Block)& ent,
-   const Interface_ShareTool& , Handle(Interface_Check)& ach) const
-{
-  Standard_Real eps = 1.E-04;
-  Standard_Real prosca = ent->XAxis() * ent->ZAxis();
-  if (prosca < -eps || prosca > eps)
-    ach->AddFail("Local Z axis : Not orthogonal to X axis");
-  if (ent->Size().X() <= 0. || ent->Size().Y() <= 0. || ent->Size().Z() <= 0.)
-    ach->AddFail("Size : Not positive lengths");
-}
-
 void IGESSolid_ToolBlock::OwnDump
   (const Handle(IGESSolid_Block)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
index 1554a48717c6c7d68dbf5ac612beac3e5b154ea6..40779f30329d071fb02f3521e27c8a7111589a03 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESSolid_ToolBlock 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolBlock, ready to work
-  Standard_EXPORT IGESSolid_ToolBlock();
+  IGESSolid_ToolBlock() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESSolid_Block)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a Block <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESSolid_Block)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESSolid_Block)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESSolid_Block)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESSolid_Block)& entfrom, const Handle(IGESSolid_Block)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESSolid_Block)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_ToolBlock_HeaderFile
index 5ec8254f21fb9667dbcbd33b6ad9a0440f72ece0..d704b75070aee24c95f094deb7986107a8037e67 100644 (file)
@@ -27,7 +27,6 @@
 #include <IGESSolid_BooleanTree.hxx>
 #include <IGESSolid_ToolBooleanTree.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -36,8 +35,6 @@
 #include <TColStd_HArray1OfInteger.hxx>
 
 #include <stdio.h>
-IGESSolid_ToolBooleanTree::IGESSolid_ToolBooleanTree ()    {  }
-
 
 void  IGESSolid_ToolBooleanTree::ReadOwnParams
   (const Handle(IGESSolid_BooleanTree)& ent,
@@ -100,43 +97,6 @@ void  IGESSolid_ToolBooleanTree::WriteOwnParams
     }
 }
 
-void  IGESSolid_ToolBooleanTree::OwnShared
-  (const Handle(IGESSolid_BooleanTree)& ent, Interface_EntityIterator& iter) const
-{
-  Standard_Integer length = ent->Length();
-  for (Standard_Integer i = 1; i <= length; i++)
-    {
-      if (ent->IsOperand(i))  iter.GetOneItem(ent->Operand(i));
-    }
-}
-
-void  IGESSolid_ToolBooleanTree::OwnCopy
-  (const Handle(IGESSolid_BooleanTree)& another,
-   const Handle(IGESSolid_BooleanTree)& ent, Interface_CopyTool& TC) const
-{
-  Standard_Integer i;
-
-  Standard_Integer length = another->Length();
-  Handle(TColStd_HArray1OfInteger) tempOperations =
-    new TColStd_HArray1OfInteger(1, length);
-  Handle(IGESData_HArray1OfIGESEntity) tempOperands =
-    new IGESData_HArray1OfIGESEntity(1, length);
-
-  for (i=1; i<= length; i++)
-    {
-      if (another->IsOperand(i))          // Operand
-       {
-          DeclareAndCast(IGESData_IGESEntity, new_ent,
-                        TC.Transferred(another->Operand(i)));
-          tempOperands->SetValue(i, new_ent);
-       }
-      else                                // Operation
-       tempOperations->SetValue(i, another->Operation(i));
-    }
-  ent->Init (tempOperands, tempOperations);
-
-}
-
 IGESData_DirChecker  IGESSolid_ToolBooleanTree::DirChecker
   (const Handle(IGESSolid_BooleanTree)& /*ent*/) const
 {
@@ -150,28 +110,6 @@ IGESData_DirChecker  IGESSolid_ToolBooleanTree::DirChecker
   return DC;
 }
 
-void  IGESSolid_ToolBooleanTree::OwnCheck
-  (const Handle(IGESSolid_BooleanTree)& ent,
-   const Interface_ShareTool& , Handle(Interface_Check)& ach) const
-{
-  Standard_Integer length = ent->Length();
-  if (length <= 2)
-    ach->AddFail("Length of post-order notation : Less than three");
-  else {
-    if (!ent->IsOperand(1)) ach->AddFail("First Item is not an Operand");
-    if (!ent->IsOperand(2)) ach->AddFail("Second Item is not an Operand");
-    if ( ent->IsOperand(length)) ach->AddFail("Last Item is not an Operation");
-  }
-  for (Standard_Integer i = 1; i <= length; i ++) {
-    if (!ent->Operand(i).IsNull()) continue;
-    if (ent->Operation(i) < 1 || ent->Operation(i) > 3) {
-      char mess[80];
-      sprintf(mess,"Item no. %d Incorrect",i);
-      ach->AddFail(mess);
-    }
-  }
-}
-
 void  IGESSolid_ToolBooleanTree::OwnDump
   (const Handle(IGESSolid_BooleanTree)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
index 9c0796c28899a0813977efb1a508afed61870f9f..d67bfb28329de4bff0eb9e2426c45458557520be 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESSolid_ToolBooleanTree 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolBooleanTree, ready to work
-  Standard_EXPORT IGESSolid_ToolBooleanTree();
+  IGESSolid_ToolBooleanTree() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESSolid_BooleanTree)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a BooleanTree <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESSolid_BooleanTree)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESSolid_BooleanTree)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESSolid_BooleanTree)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESSolid_BooleanTree)& entfrom, const Handle(IGESSolid_BooleanTree)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESSolid_BooleanTree)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_ToolBooleanTree_HeaderFile
index bf11166e88527a12168a2efec00a5295b275ff44..e798b3effc98e8ddf6648356aa54741eac1d0d9d 100644 (file)
 #include <IGESSolid_ConeFrustum.hxx>
 #include <IGESSolid_ToolConeFrustum.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESSolid_ToolConeFrustum::IGESSolid_ToolConeFrustum ()    {  }
-
 
 void  IGESSolid_ToolConeFrustum::ReadOwnParams
   (const Handle(IGESSolid_ConeFrustum)& ent,
@@ -125,20 +122,6 @@ void  IGESSolid_ToolConeFrustum::WriteOwnParams
   IW.Send(ent->Axis().Z());
 }
 
-void  IGESSolid_ToolConeFrustum::OwnShared
-  (const Handle(IGESSolid_ConeFrustum)& /* ent */, Interface_EntityIterator& /* iter */) const
-{
-}
-
-void  IGESSolid_ToolConeFrustum::OwnCopy
-  (const Handle(IGESSolid_ConeFrustum)& another,
-   const Handle(IGESSolid_ConeFrustum)& ent, Interface_CopyTool& /* TC */) const
-{
-  ent->Init
-    (another->Height(), another->LargerRadius(), another->SmallerRadius(),
-     another->FaceCenter().XYZ(), another->Axis().XYZ());
-}
-
 IGESData_DirChecker  IGESSolid_ToolConeFrustum::DirChecker
   (const Handle(IGESSolid_ConeFrustum)& /* ent */ ) const
 {
@@ -153,20 +136,6 @@ IGESData_DirChecker  IGESSolid_ToolConeFrustum::DirChecker
   return DC;
 }
 
-void  IGESSolid_ToolConeFrustum::OwnCheck
-  (const Handle(IGESSolid_ConeFrustum)& ent,
-   const Interface_ShareTool& , Handle(Interface_Check)& ach) const
-{
-  if (ent->Height() <= 0.0)
-    ach->AddFail("Height : Value Not Positive");
-  if (ent->LargerRadius() <= 0.0)
-    ach->AddFail("Larger face radius : Value Not Positive");
-  if (ent->SmallerRadius() < 0.0)
-    ach->AddFail("Smaller face radius : Value Not Positive");
-  if (ent->SmallerRadius() > ent->LargerRadius())
-    ach->AddFail("Smaller face radius : is greater than Larger face radius");
-}
-
 void  IGESSolid_ToolConeFrustum::OwnDump
   (const Handle(IGESSolid_ConeFrustum)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
index 59cd011c7059bb37228c609cb199194636bff6bc..7d7159f7cdd0d7378056130a641166536841471e 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESSolid_ToolConeFrustum 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolConeFrustum, ready to work
-  Standard_EXPORT IGESSolid_ToolConeFrustum();
+  IGESSolid_ToolConeFrustum() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESSolid_ConeFrustum)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a ConeFrustum <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESSolid_ConeFrustum)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESSolid_ConeFrustum)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESSolid_ConeFrustum)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESSolid_ConeFrustum)& entfrom, const Handle(IGESSolid_ConeFrustum)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESSolid_ConeFrustum)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_ToolConeFrustum_HeaderFile
index d832bb0fa1940b98c1630607b4a501cb6daef008..5756d854d4f3a62a017f36f6302bfae48d98d4be 100644 (file)
 #include <IGESSolid_ConicalSurface.hxx>
 #include <IGESSolid_ToolConicalSurface.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESSolid_ToolConicalSurface::IGESSolid_ToolConicalSurface ()    {  }
-
 
 void  IGESSolid_ToolConicalSurface::ReadOwnParams
   (const Handle(IGESSolid_ConicalSurface)& ent,
@@ -76,40 +73,6 @@ void  IGESSolid_ToolConicalSurface::WriteOwnParams
   if (ent->IsParametrised())    IW.Send(ent->ReferenceDir());  // cf FormNumber
 }
 
-void  IGESSolid_ToolConicalSurface::OwnShared
-  (const Handle(IGESSolid_ConicalSurface)& ent, Interface_EntityIterator& iter) const
-{
-  iter.GetOneItem(ent->LocationPoint());
-  iter.GetOneItem(ent->Axis());
-  iter.GetOneItem(ent->ReferenceDir());
-}
-
-void  IGESSolid_ToolConicalSurface::OwnCopy
-  (const Handle(IGESSolid_ConicalSurface)& another,
-   const Handle(IGESSolid_ConicalSurface)& ent, Interface_CopyTool& TC) const
-{
-  Standard_Real tempRadius, tempAngle;
-  //Standard_Boolean IsItParametrised = Standard_False; //szv#4:S4163:12Mar99 unused
-
-  DeclareAndCast(IGESGeom_Point, tempLocation,
-                TC.Transferred(another->LocationPoint()));
-  DeclareAndCast(IGESGeom_Direction, tempAxis,
-                TC.Transferred(another->Axis()));
-  tempRadius = another->Radius();
-  tempAngle  = another->SemiAngle();
-  if (another->IsParametrised())
-    {
-      DeclareAndCast(IGESGeom_Direction, tempRefdir,
-                    TC.Transferred(another->ReferenceDir()));
-      ent->Init (tempLocation, tempAxis, tempRadius, tempAngle, tempRefdir);
-    }
-  else
-    {
-      Handle(IGESGeom_Direction) tempRefdir;
-      ent->Init (tempLocation, tempAxis, tempRadius, tempAngle, tempRefdir);
-    }
-}
-
 IGESData_DirChecker  IGESSolid_ToolConicalSurface::DirChecker
   (const Handle(IGESSolid_ConicalSurface)& /*ent*/) const
 {
@@ -125,20 +88,6 @@ IGESData_DirChecker  IGESSolid_ToolConicalSurface::DirChecker
   return DC;
 }
 
-void  IGESSolid_ToolConicalSurface::OwnCheck
-  (const Handle(IGESSolid_ConicalSurface)& ent,
-   const Interface_ShareTool& , Handle(Interface_Check)& ach) const
-{
-  if (ent->Radius() < 0.0)
-    ach->AddFail("Radius : Value Negative");
-  if (ent->SemiAngle() < 0.0 || ent->SemiAngle() > 90.0)
-    ach->AddFail("Semi-angle : Value not in the range [0 - 90]");
-  Standard_Integer fn = 0;
-  if (ent->IsParametrised()) fn = 1;
-  if (fn != ent->FormNumber()) ach->AddFail
-    ("Parametrised Status Mismatches with Form Number");
-}
-
 void  IGESSolid_ToolConicalSurface::OwnDump
   (const Handle(IGESSolid_ConicalSurface)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
index b580d49a11c7c0aa39bd48d50678ac5cff0103a6..9648da00fef7dd5fd5754d3d9e7d670e3bc65932 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESSolid_ToolConicalSurface 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolConicalSurface, ready to work
-  Standard_EXPORT IGESSolid_ToolConicalSurface();
+  IGESSolid_ToolConicalSurface() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESSolid_ConicalSurface)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a ConicalSurface <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESSolid_ConicalSurface)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESSolid_ConicalSurface)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESSolid_ConicalSurface)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESSolid_ConicalSurface)& entfrom, const Handle(IGESSolid_ConicalSurface)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESSolid_ConicalSurface)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_ToolConicalSurface_HeaderFile
index 1b383ca7dd897bd8f6c0734f8cfda03e44b125d3..d06721c4e33a0f876eb1a27782263f8f16182c47 100644 (file)
 #include <IGESSolid_Cylinder.hxx>
 #include <IGESSolid_ToolCylinder.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESSolid_ToolCylinder::IGESSolid_ToolCylinder ()    {  }
-
 
 void  IGESSolid_ToolCylinder::ReadOwnParams
   (const Handle(IGESSolid_Cylinder)& ent,
@@ -118,20 +115,6 @@ void  IGESSolid_ToolCylinder::WriteOwnParams
   IW.Send(ent->Axis().Z());
 }
 
-void  IGESSolid_ToolCylinder::OwnShared
-  (const Handle(IGESSolid_Cylinder)& /* ent */, Interface_EntityIterator& /* iter */) const
-{
-}
-
-void  IGESSolid_ToolCylinder::OwnCopy
-  (const Handle(IGESSolid_Cylinder)& another,
-   const Handle(IGESSolid_Cylinder)& ent, Interface_CopyTool& /* TC */) const
-{
-  ent->Init
-    (another->Height(), another->Radius(), another->FaceCenter().XYZ(),
-     another->Axis().XYZ());
-}
-
 IGESData_DirChecker  IGESSolid_ToolCylinder::DirChecker
   (const Handle(IGESSolid_Cylinder)& /* ent */ ) const
 {
@@ -146,16 +129,6 @@ IGESData_DirChecker  IGESSolid_ToolCylinder::DirChecker
   return DC;
 }
 
-void  IGESSolid_ToolCylinder::OwnCheck
-  (const Handle(IGESSolid_Cylinder)& ent,
-   const Interface_ShareTool& , Handle(Interface_Check)& ach) const
-{
-  if (ent->Height() <= 0.0)
-    ach->AddFail("Height : Value < 0");
-  if (ent->Radius() <= 0.0)
-    ach->AddFail("Radius : Value < 0");
-}
-
 void  IGESSolid_ToolCylinder::OwnDump
   (const Handle(IGESSolid_Cylinder)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
index b1b2734d72a3a89fe38cc02361ee2c343d250876..736e16715d5f142d5baa5b720f2342370c67e46b 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESSolid_ToolCylinder 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolCylinder, ready to work
-  Standard_EXPORT IGESSolid_ToolCylinder();
+  IGESSolid_ToolCylinder() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESSolid_Cylinder)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a Cylinder <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESSolid_Cylinder)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESSolid_Cylinder)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESSolid_Cylinder)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESSolid_Cylinder)& entfrom, const Handle(IGESSolid_Cylinder)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESSolid_Cylinder)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_ToolCylinder_HeaderFile
index 813f99f8a72976a1914859f1e983bd9ede3c8147..d65f5bf95ad3273c43c4bac41ce7f119769bb82f 100644 (file)
 #include <IGESSolid_CylindricalSurface.hxx>
 #include <IGESSolid_ToolCylindricalSurface.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESSolid_ToolCylindricalSurface::IGESSolid_ToolCylindricalSurface ()    {  }
-
 
 void  IGESSolid_ToolCylindricalSurface::ReadOwnParams
   (const Handle(IGESSolid_CylindricalSurface)& ent,
@@ -72,39 +69,6 @@ void IGESSolid_ToolCylindricalSurface::WriteOwnParams
   if (ent->IsParametrised())   IW.Send(ent->ReferenceDir());
 }
 
-void  IGESSolid_ToolCylindricalSurface::OwnShared
-  (const Handle(IGESSolid_CylindricalSurface)& ent, Interface_EntityIterator& iter) const
-{
-  iter.GetOneItem(ent->LocationPoint());
-  iter.GetOneItem(ent->Axis());
-  iter.GetOneItem(ent->ReferenceDir());
-}
-
-void  IGESSolid_ToolCylindricalSurface::OwnCopy
-  (const Handle(IGESSolid_CylindricalSurface)& another,
-   const Handle(IGESSolid_CylindricalSurface)& ent, Interface_CopyTool& TC) const
-{
-  Standard_Real tempRadius;
-
-  DeclareAndCast(IGESGeom_Point, tempLocation,
-                TC.Transferred(another->LocationPoint()));
-  DeclareAndCast(IGESGeom_Direction, tempAxis,
-                TC.Transferred(another->Axis()));
-  tempRadius = another->Radius();
-  if (another->IsParametrised())
-    {
-      DeclareAndCast(IGESGeom_Direction, tempRefdir,
-                    TC.Transferred(another->ReferenceDir()));
-      ent->Init (tempLocation, tempAxis, tempRadius, tempRefdir);
-    }
-  else
-    {
-      Handle(IGESGeom_Direction) tempRefdir;
-      ent->Init (tempLocation, tempAxis, tempRadius, tempRefdir);
-    }
-
-}
-
 IGESData_DirChecker  IGESSolid_ToolCylindricalSurface::DirChecker
   (const Handle(IGESSolid_CylindricalSurface)& /*ent*/) const
 {
@@ -120,18 +84,6 @@ IGESData_DirChecker  IGESSolid_ToolCylindricalSurface::DirChecker
   return DC;
 }
 
-void  IGESSolid_ToolCylindricalSurface::OwnCheck
-  (const Handle(IGESSolid_CylindricalSurface)& ent,
-   const Interface_ShareTool& , Handle(Interface_Check)& ach) const
-{
-  if (ent->Radius() <= 0.0)
-    ach->AddFail("Radius : Value <= 0.0");
-  Standard_Integer fn = 0;
-  if (ent->IsParametrised()) fn = 1;
-  if (fn != ent->FormNumber()) ach->AddFail
-    ("Parametrised Status Mismatches with Form Number");
-}
-
 void  IGESSolid_ToolCylindricalSurface::OwnDump
   (const Handle(IGESSolid_CylindricalSurface)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
index 10b2ff317b7f649d02bc265f4a3bb29895b1416d..f0927161fee4d3778cafc191ede3e6a93423d438 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESSolid_ToolCylindricalSurface 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolCylindricalSurface, ready to work
-  Standard_EXPORT IGESSolid_ToolCylindricalSurface();
+  IGESSolid_ToolCylindricalSurface() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESSolid_CylindricalSurface)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a CylindricalSurface <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESSolid_CylindricalSurface)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESSolid_CylindricalSurface)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESSolid_CylindricalSurface)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESSolid_CylindricalSurface)& entfrom, const Handle(IGESSolid_CylindricalSurface)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESSolid_CylindricalSurface)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_ToolCylindricalSurface_HeaderFile
index e390ba678ffe4bb780eb1ae43ca23794b2c784ef..e8a71343c42c1c2f0ca2665d3629834373fabeca 100644 (file)
@@ -31,7 +31,6 @@
 #include <IGESSolid_ToolEdgeList.hxx>
 #include <IGESSolid_VertexList.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Standard_DomainError.hxx>
 #include <TColStd_HArray1OfInteger.hxx>
 
-// MGE 03/08/98
-//=======================================================================
-//function : IGESSolid_ToolEdgeList
-//purpose  : 
-//=======================================================================
-IGESSolid_ToolEdgeList::IGESSolid_ToolEdgeList ()
-{
-}
-
 
 //=======================================================================
 //function : ReadOwnParams
@@ -226,76 +216,6 @@ void IGESSolid_ToolEdgeList::WriteOwnParams(const Handle(IGESSolid_EdgeList)& en
 }
 
 
-//=======================================================================
-//function : OwnShared
-//purpose  : 
-//=======================================================================
-
-void IGESSolid_ToolEdgeList::OwnShared(const Handle(IGESSolid_EdgeList)& ent,
-                                       Interface_EntityIterator& iter) const
-{
-  Standard_Integer length = ent->NbEdges();
-  for (Standard_Integer i = 1; i <= length; i ++)
-    {
-      iter.GetOneItem(ent->Curve(i));
-      iter.GetOneItem(ent->StartVertexList(i));
-      iter.GetOneItem(ent->EndVertexList(i));
-    }
-}
-
-
-//=======================================================================
-//function : OwnCopy
-//purpose  : 
-//=======================================================================
-
-void IGESSolid_ToolEdgeList::OwnCopy(const Handle(IGESSolid_EdgeList)& another,
-                                     const Handle(IGESSolid_EdgeList)& ent,
-                                     Interface_CopyTool& TC) const
-{
-  Standard_Integer length;
-
-  length = another->NbEdges();
-  Handle(IGESData_HArray1OfIGESEntity) tempCurves =
-    new IGESData_HArray1OfIGESEntity(1, length);
-  Handle(IGESSolid_HArray1OfVertexList) tempStartVertexList =
-    new IGESSolid_HArray1OfVertexList(1, length);
-  Handle(TColStd_HArray1OfInteger)   tempStartVertexIndex =
-    new TColStd_HArray1OfInteger(1, length);
-  Handle(IGESSolid_HArray1OfVertexList) tempEndVertexList =
-    new IGESSolid_HArray1OfVertexList(1, length);
-  Handle(TColStd_HArray1OfInteger)   tempEndVertexIndex =
-    new TColStd_HArray1OfInteger(1, length);
-
-  for (Standard_Integer i=1 ; i<=length ; i++)
-    {
-      // Curves
-      DeclareAndCast(IGESData_IGESEntity, curve,
-                    TC.Transferred(another->Curve(i)));
-      tempCurves->SetValue(i, curve);
-
-      // Start vertex list
-      DeclareAndCast(IGESSolid_VertexList, start,
-                    TC.Transferred(another->StartVertexList(i)));
-      tempStartVertexList->SetValue(i, start);
-
-      // Start vertex index
-      tempStartVertexIndex->SetValue(i, another->StartVertexIndex(i));
-
-      // End vertex list
-      DeclareAndCast(IGESSolid_VertexList, end,
-                    TC.Transferred(another->EndVertexList(i)));
-      tempEndVertexList->SetValue(i, end);
-
-      // End vertex index
-      tempEndVertexIndex->SetValue(i, another->EndVertexIndex(i));
-    }
-
-  ent->Init (tempCurves, tempStartVertexList, tempStartVertexIndex,
-            tempEndVertexList, tempEndVertexIndex);
-}
-
-
 //=======================================================================
 //function : DirChecker
 //purpose  : 
@@ -317,28 +237,6 @@ IGESData_DirChecker IGESSolid_ToolEdgeList::DirChecker
 }
 
 
-//=======================================================================
-//function : OwnCheck
-//purpose  : 
-//=======================================================================
-
-void IGESSolid_ToolEdgeList::OwnCheck(const Handle(IGESSolid_EdgeList)& ent,
-                                      const Interface_ShareTool&,
-                                      Handle(Interface_Check)& ach) const
-{
-  // MGE 03/08/98
-  // Building of messages
-  //========================================
-  //Message_Msg Msg184("XSTEP_184");
-  //========================================
-
-  if (ent->NbEdges() <= 0) {
-    Message_Msg Msg184("XSTEP_184");
-    ach->SendFail(Msg184);
-  }
-}
-
-
 //=======================================================================
 //function : OwnDump
 //purpose  : 
index 2f7f85625348c16ea7aa3647b0f15859405a4dd6..366a1b791f96a9476f53fb211b7249a0da3e5955 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESSolid_ToolEdgeList 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolEdgeList, ready to work
-  Standard_EXPORT IGESSolid_ToolEdgeList();
+  IGESSolid_ToolEdgeList() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESSolid_EdgeList)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a EdgeList <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESSolid_EdgeList)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESSolid_EdgeList)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESSolid_EdgeList)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESSolid_EdgeList)& entfrom, const Handle(IGESSolid_EdgeList)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESSolid_EdgeList)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_ToolEdgeList_HeaderFile
index f931acb1421e7d483d4e1d3239ea96b48c8310bc..d0a7f33f1bfc1703a95cfd55375d37c06b3c2e7f 100644 (file)
 #include <IGESSolid_Ellipsoid.hxx>
 #include <IGESSolid_ToolEllipsoid.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESSolid_ToolEllipsoid::IGESSolid_ToolEllipsoid ()    {  }
-
 
 void  IGESSolid_ToolEllipsoid::ReadOwnParams
   (const Handle(IGESSolid_Ellipsoid)& ent,
@@ -146,19 +143,6 @@ void  IGESSolid_ToolEllipsoid::WriteOwnParams
   IW.Send(ent->ZAxis().Z());
 }
 
-void  IGESSolid_ToolEllipsoid::OwnShared
-  (const Handle(IGESSolid_Ellipsoid)& /* ent */, Interface_EntityIterator& /* iter */) const
-{
-}
-
-void  IGESSolid_ToolEllipsoid::OwnCopy
-  (const Handle(IGESSolid_Ellipsoid)& another,
-   const Handle(IGESSolid_Ellipsoid)& ent, Interface_CopyTool& /* TC */) const
-{
-  ent->Init(another->Size(), another->Center().XYZ(),
-           another->XAxis().XYZ(), another->ZAxis().XYZ());
-}
-
 IGESData_DirChecker  IGESSolid_ToolEllipsoid::DirChecker
   (const Handle(IGESSolid_Ellipsoid)& /* ent */ ) const
 {
@@ -172,20 +156,6 @@ IGESData_DirChecker  IGESSolid_ToolEllipsoid::DirChecker
   return DC;
 }
 
-void  IGESSolid_ToolEllipsoid::OwnCheck
-  (const Handle(IGESSolid_Ellipsoid)& ent,
-   const Interface_ShareTool& , Handle(Interface_Check)& ach) const
-{
-  Standard_Real eps = 1.E-04;
-  Standard_Real prosca = ent->XAxis().Dot(ent->ZAxis());
-  if (prosca < -eps || prosca > eps)
-    ach->AddFail("Local Z axis : Not orthogonal to X axis");
-  if (! (ent->Size().X() >= ent->Size().Y()
-        && ent->Size().Y() >= ent->Size().Z()
-        && ent->Size().Z() > 0))
-    ach->AddFail("Size : The values does not satisfy LX >= LY >= LZ > 0");
-}
-
 void  IGESSolid_ToolEllipsoid::OwnDump
   (const Handle(IGESSolid_Ellipsoid)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
index 822867770be237e5240138a4dd6273e062ac6c0e..d20a6a866334009146ab893c4a1ad81b1de14ca8 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESSolid_ToolEllipsoid 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolEllipsoid, ready to work
-  Standard_EXPORT IGESSolid_ToolEllipsoid();
+  IGESSolid_ToolEllipsoid() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESSolid_Ellipsoid)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a Ellipsoid <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESSolid_Ellipsoid)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESSolid_Ellipsoid)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESSolid_Ellipsoid)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESSolid_Ellipsoid)& entfrom, const Handle(IGESSolid_Ellipsoid)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESSolid_Ellipsoid)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_ToolEllipsoid_HeaderFile
index 293ca11c7084736d68a7e8afda979257bb0a4f90..6af756b25f1f3a8b9457de1b1643e77b0cf2d7d4 100644 (file)
@@ -30,7 +30,6 @@
 #include <IGESSolid_Loop.hxx>
 #include <IGESSolid_ToolFace.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Msg.hxx>
 #include <Standard_DomainError.hxx>
 
-// MGE 03/08/98
-//=======================================================================
-//function : IGESSolid_ToolFace
-//purpose  : 
-//=======================================================================
-IGESSolid_ToolFace::IGESSolid_ToolFace ()
-{
-}
-
 
 //=======================================================================
 //function : ReadOwnParams
@@ -155,48 +145,6 @@ void IGESSolid_ToolFace::WriteOwnParams(const Handle(IGESSolid_Face)& ent,
 }
 
 
-//=======================================================================
-//function : OwnShared
-//purpose  : 
-//=======================================================================
-
-void IGESSolid_ToolFace::OwnShared(const Handle(IGESSolid_Face)& ent,
-                                   Interface_EntityIterator& iter) const
-{
-  Standard_Integer  upper = ent->NbLoops();
-  iter.GetOneItem(ent->Surface());
-  for (Standard_Integer i = 1; i <= upper; i ++)
-    iter.GetOneItem(ent->Loop(i));
-}
-
-
-//=======================================================================
-//function : OwnCopy
-//purpose  : 
-//=======================================================================
-
-void IGESSolid_ToolFace::OwnCopy(const Handle(IGESSolid_Face)& another,
-                                 const Handle(IGESSolid_Face)& ent,
-                                 Interface_CopyTool& TC) const
-{
-  DeclareAndCast(IGESData_IGESEntity, tempSurface,
-                TC.Transferred(another->Surface()));
-  Standard_Integer nbloops = another->NbLoops();
-  Standard_Boolean outerLoopFlag = another->HasOuterLoop();
-
-  Handle(IGESSolid_HArray1OfLoop) tempLoops =
-    new IGESSolid_HArray1OfLoop(1, nbloops);
-  for (Standard_Integer i=1; i<=nbloops; i++)
-    {
-      DeclareAndCast(IGESSolid_Loop, anent,
-                    TC.Transferred(another->Loop(i)));
-      tempLoops->SetValue(i, anent);
-    }
-
-  ent->Init (tempSurface, outerLoopFlag, tempLoops);
-}
-
-
 //=======================================================================
 //function : DirChecker
 //purpose  : 
@@ -217,28 +165,6 @@ IGESData_DirChecker IGESSolid_ToolFace::DirChecker
 }
 
 
-//=======================================================================
-//function : OwnCheck
-//purpose  : 
-//=======================================================================
-
-void IGESSolid_ToolFace::OwnCheck(const Handle(IGESSolid_Face)& ent,
-                                  const Interface_ShareTool&,
-                                  Handle(Interface_Check)& ach) const
-{
-  // MGE 03/08/98
-  // Building of messages
-  //========================================
-  //Message_Msg Msg197("XSTEP_197");
-  //========================================
-
-  if (ent->NbLoops() <= 0) {
-    Message_Msg Msg197("XSTEP_197");
-    ach->SendFail(Msg197);
-  }
-}
-
-
 //=======================================================================
 //function : OwnDump
 //purpose  : 
index 1ffe331172f6b17896672cf29809fa336c10bed8..b342f15c26a3272a07f8081420da4714bf45485d 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESSolid_ToolFace 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolFace, ready to work
-  Standard_EXPORT IGESSolid_ToolFace();
+  IGESSolid_ToolFace() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESSolid_Face)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a Face <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESSolid_Face)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESSolid_Face)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESSolid_Face)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESSolid_Face)& entfrom, const Handle(IGESSolid_Face)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESSolid_Face)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_ToolFace_HeaderFile
index 4798630575bc6f848a9deb777e167c9670053a6d..655b29ce56946c7f841ca53a74c355dab6530144 100644 (file)
@@ -34,7 +34,6 @@
 #include <IGESSolid_ToolLoop.hxx>
 #include <IGESSolid_VertexList.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <TColStd_HArray1OfInteger.hxx>
 
 #include <stdio.h>
-// MGE 03/08/98
-//=======================================================================
-//function : IGESSolid_ToolLoop
-//purpose  : 
-//=======================================================================
-IGESSolid_ToolLoop::IGESSolid_ToolLoop ()
-{
-}
-
 
 //=======================================================================
 //function : ReadOwnParams
@@ -234,89 +224,6 @@ void IGESSolid_ToolLoop::WriteOwnParams(const Handle(IGESSolid_Loop)& ent,
 }
 
 
-//=======================================================================
-//function : OwnShared
-//purpose  : 
-//=======================================================================
-
-void IGESSolid_ToolLoop::OwnShared(const Handle(IGESSolid_Loop)& ent,
-                                   Interface_EntityIterator& iter) const
-{
-  Standard_Integer i, j;
-  Standard_Integer length = ent->NbEdges();
-
-  for (i = 1; i <= length; i ++)
-    {
-      iter.GetOneItem(ent->Edge(i));
-      for (j = 1; j <= ent->NbParameterCurves(i); j ++)
-       iter.GetOneItem(ent->ParametricCurve(i,j));
-    }
-}
-
-
-//=======================================================================
-//function : OwnCopy
-//purpose  : 
-//=======================================================================
-
-void IGESSolid_ToolLoop::OwnCopy(const Handle(IGESSolid_Loop)& another,
-                                 const Handle(IGESSolid_Loop)& ent,
-                                 Interface_CopyTool& TC) const
-{
-  Standard_Integer nbedges = another->NbEdges();
-  Standard_Integer i, j;
-  Standard_Integer anint;
-
-  Handle(TColStd_HArray1OfInteger) tempTypes =
-    new TColStd_HArray1OfInteger(1, nbedges);
-  Handle(IGESData_HArray1OfIGESEntity) tempEdges =
-    new IGESData_HArray1OfIGESEntity(1, nbedges);
-  Handle(TColStd_HArray1OfInteger) tempIndex =
-    new TColStd_HArray1OfInteger(1, nbedges);
-  Handle(TColStd_HArray1OfInteger) tempOrientation =
-    new TColStd_HArray1OfInteger(1, nbedges);
-  Handle(TColStd_HArray1OfInteger) nbParameterCurves =
-    new TColStd_HArray1OfInteger(1, nbedges);
-  Handle(IGESBasic_HArray1OfHArray1OfInteger) isoparametricFlags =
-    new IGESBasic_HArray1OfHArray1OfInteger(1, nbedges);
-  Handle(IGESBasic_HArray1OfHArray1OfIGESEntity) tempCurves =
-    new IGESBasic_HArray1OfHArray1OfIGESEntity(1, nbedges);
-
-  for (i = 1; i <= nbedges; i ++)
-    {
-      tempTypes->SetValue(i, another->EdgeType(i));
-
-      DeclareAndCast(IGESData_IGESEntity, anent,
-                    TC.Transferred(another->Edge(i)));
-      tempEdges->SetValue(i, anent);
-
-      tempIndex->SetValue(i, another->ListIndex(i));
-
-      tempOrientation->SetValue(i, (another->Orientation(i) ? 1 : 0) );
-
-      anint = another->NbParameterCurves(i);
-      nbParameterCurves->SetValue(i, anint);
-
-      Handle(IGESData_HArray1OfIGESEntity) tmpents;
-      if (anint > 0) tmpents = new IGESData_HArray1OfIGESEntity(1, anint);
-      Handle(TColStd_HArray1OfInteger) tmpints;
-      if (anint > 0) tmpints = new TColStd_HArray1OfInteger(1, anint);
-      for (j = 1; j <= anint; j ++)
-       {
-          tmpints->SetValue(j, (another->IsIsoparametric(i, j) ? 1 : 0) );
-
-          DeclareAndCast(IGESData_IGESEntity, localent,
-                        TC.Transferred(another->ParametricCurve(i, j)));
-          tmpents->SetValue(j, localent);
-       }
-      isoparametricFlags->SetValue(i, tmpints);
-      tempCurves->SetValue(i, tmpents);
-    }
-  ent->Init(tempTypes, tempEdges, tempIndex, tempOrientation,
-           nbParameterCurves, isoparametricFlags, tempCurves);
-}
-
-
 //=======================================================================
 //function : DirChecker
 //purpose  : 
@@ -337,30 +244,6 @@ IGESData_DirChecker IGESSolid_ToolLoop::DirChecker
 }
 
 
-//=======================================================================
-//function : OwnCheck
-//purpose  : 
-//=======================================================================
-
-void IGESSolid_ToolLoop::OwnCheck(const Handle(IGESSolid_Loop)& ent,
-                                  const Interface_ShareTool&,
-                                  Handle(Interface_Check)& ach) const
-{
-  // MGE 03/08/98
-  // Building of messages
-  //========================================
-  //Message_Msg Msg190("XSTEP_190");
-  //========================================
-
-  Standard_Integer upper = ent->NbEdges();
-  for (Standard_Integer i = 1; i <= upper; i ++)
-    if (ent->EdgeType(i) != 0 && ent->EdgeType(i) != 1) {
-      Message_Msg Msg190("XSTEP_190");
-      ach->SendFail(Msg190);
-    }
-}
-
-
 //=======================================================================
 //function : OwnDump
 //purpose  : 
index 294bfc62cfe87907f2fb6c82db79ff6b4b55368f..2f78cc3f861cba997a5a6b20cb897dde35855efb 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESSolid_ToolLoop 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolLoop, ready to work
-  Standard_EXPORT IGESSolid_ToolLoop();
+  IGESSolid_ToolLoop() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESSolid_Loop)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a Loop <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESSolid_Loop)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESSolid_Loop)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESSolid_Loop)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESSolid_Loop)& entfrom, const Handle(IGESSolid_Loop)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESSolid_Loop)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_ToolLoop_HeaderFile
index 60e8c9b2e98573770e8e4dfc3727becab5855948..1b95deec1360895725e9e03de979bae66603e678 100644 (file)
@@ -29,7 +29,6 @@
 #include <IGESSolid_Shell.hxx>
 #include <IGESSolid_ToolManifoldSolid.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
@@ -38,9 +37,6 @@
 #include <Standard_DomainError.hxx>
 #include <TColStd_HArray1OfInteger.hxx>
 
-// MGE 31/07/98
-IGESSolid_ToolManifoldSolid::IGESSolid_ToolManifoldSolid ()    {  }
-
 
 void  IGESSolid_ToolManifoldSolid::ReadOwnParams
   (const Handle(IGESSolid_ManifoldSolid)& ent,
@@ -151,41 +147,6 @@ void  IGESSolid_ToolManifoldSolid::WriteOwnParams
     }
 }
 
-void  IGESSolid_ToolManifoldSolid::OwnShared
-  (const Handle(IGESSolid_ManifoldSolid)& ent, Interface_EntityIterator& iter) const
-{
-  Standard_Integer i;
-  Standard_Integer nbshells = ent->NbVoidShells();
-
-  iter.GetOneItem(ent->Shell());
-  for (i = 1; i <= nbshells; i ++)    iter.GetOneItem(ent->VoidShell(i));
-}
-
-void  IGESSolid_ToolManifoldSolid::OwnCopy
-  (const Handle(IGESSolid_ManifoldSolid)& another,
-   const Handle(IGESSolid_ManifoldSolid)& ent, Interface_CopyTool& TC) const
-{
-  DeclareAndCast(IGESSolid_Shell, shell, TC.Transferred(another->Shell()));
-  Standard_Boolean shellFlag = another->OrientationFlag();
-
-  Standard_Integer nbshells = another->NbVoidShells();
-  Handle(IGESSolid_HArray1OfShell) voidShells;
-  Handle(TColStd_HArray1OfInteger) voidFlags;
-  if (nbshells > 0)
-    {
-      voidShells = new IGESSolid_HArray1OfShell(1, nbshells);
-      voidFlags  = new TColStd_HArray1OfInteger(1, nbshells);
-      for (Standard_Integer i = 1; i <= nbshells; i ++)
-       {
-          DeclareAndCast(IGESSolid_Shell, voidshell,
-                        TC.Transferred(another->VoidShell(i)));
-          voidShells->SetValue(i, voidshell);
-          voidFlags->SetValue(i, (another->VoidOrientationFlag(i) ? 1 : 0));
-       }
-    }
-  ent->Init (shell, shellFlag, voidShells, voidFlags);
-}
-
 IGESData_DirChecker  IGESSolid_ToolManifoldSolid::DirChecker
   (const Handle(IGESSolid_ManifoldSolid)& /* ent */ ) const
 {
@@ -199,12 +160,6 @@ IGESData_DirChecker  IGESSolid_ToolManifoldSolid::DirChecker
   return DC;
 }
 
-void  IGESSolid_ToolManifoldSolid::OwnCheck
-  (const Handle(IGESSolid_ManifoldSolid)& /* ent */,
-   const Interface_ShareTool& , Handle(Interface_Check)& /* ach */) const
-{
-}
-
 void  IGESSolid_ToolManifoldSolid::OwnDump
   (const Handle(IGESSolid_ManifoldSolid)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
index 0ecd1fd3e7705f2cea05a28efb53033b02ac0e0e..d2e4b72ca9d3306968f237abf9bac88e236c3f5d 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESSolid_ToolManifoldSolid 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolManifoldSolid, ready to work
-  Standard_EXPORT IGESSolid_ToolManifoldSolid();
+  IGESSolid_ToolManifoldSolid() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESSolid_ManifoldSolid)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a ManifoldSolid <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESSolid_ManifoldSolid)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESSolid_ManifoldSolid)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESSolid_ManifoldSolid)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESSolid_ManifoldSolid)& entfrom, const Handle(IGESSolid_ManifoldSolid)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESSolid_ManifoldSolid)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_ToolManifoldSolid_HeaderFile
index d51a8350dfdc6a6824f0d41226a9d334e374ee19..b93bd1f07f27b3f40c6b2295d488432fae7df03c 100644 (file)
@@ -28,7 +28,6 @@
 #include <IGESSolid_PlaneSurface.hxx>
 #include <IGESSolid_ToolPlaneSurface.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Msg.hxx>
 #include <Standard_DomainError.hxx>
 
-// MGE 31/07/98
-//=======================================================================
-//function : IGESSolid_ToolPlaneSurface
-//purpose  : 
-//=======================================================================
-IGESSolid_ToolPlaneSurface::IGESSolid_ToolPlaneSurface ()
-{
-}
-
 
 //=======================================================================
 //function : ReadOwnParams
@@ -161,47 +151,6 @@ void IGESSolid_ToolPlaneSurface::WriteOwnParams
 }
 
 
-//=======================================================================
-//function : OwnShared
-//purpose  : 
-//=======================================================================
-
-void IGESSolid_ToolPlaneSurface::OwnShared(const Handle(IGESSolid_PlaneSurface)& ent,
-                                           Interface_EntityIterator& iter) const
-{
-  iter.GetOneItem(ent->LocationPoint());
-  iter.GetOneItem(ent->Normal());
-  iter.GetOneItem(ent->ReferenceDir());
-}
-
-
-//=======================================================================
-//function : OwnCopy
-//purpose  : 
-//=======================================================================
-
-void IGESSolid_ToolPlaneSurface::OwnCopy
-  (const Handle(IGESSolid_PlaneSurface)& another,
-   const Handle(IGESSolid_PlaneSurface)& ent, Interface_CopyTool& TC) const
-{
-  DeclareAndCast(IGESGeom_Point, tempLocation,
-                TC.Transferred(another->LocationPoint()));
-  DeclareAndCast(IGESGeom_Direction, tempNormal,
-                TC.Transferred(another->Normal()));
-  if (another->IsParametrised())
-    {
-      DeclareAndCast(IGESGeom_Direction, tempRefdir,
-                    TC.Transferred(another->ReferenceDir()));
-      ent->Init (tempLocation, tempNormal, tempRefdir);
-    }
-  else
-    {
-      Handle(IGESGeom_Direction) tempRefdir;
-      ent->Init (tempLocation, tempNormal, tempRefdir);
-    }
-}
-
-
 //=======================================================================
 //function : DirChecker
 //purpose  : 
@@ -222,31 +171,6 @@ IGESData_DirChecker IGESSolid_ToolPlaneSurface::DirChecker
 }
 
 
-//=======================================================================
-//function : OwnCheck
-//purpose  : 
-//=======================================================================
-
-void IGESSolid_ToolPlaneSurface::OwnCheck(const Handle(IGESSolid_PlaneSurface)& ent,
-                                          const Interface_ShareTool&,
-                                          Handle(Interface_Check)& ach) const
-{
-
-  // MGE 31/07/98
-  // Building of messages
-  //========================================
-  //Message_Msg Msg177("XSTEP_177");
-  //========================================
-
-  Standard_Integer fn = 0;
-  if (ent->IsParametrised()) fn = 1;
-  if (fn != ent->FormNumber()) {
-    Message_Msg Msg177("XSTEP_177");
-    ach->SendFail (Msg177);
-  }
-}
-
-
 //=======================================================================
 //function : OwnDump
 //purpose  : 
index 3e6a2185c278f12ed7b8c74f573e46329e4ccd8b..4d8ba146218c8997d344ea1bd7c042a916415e3e 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESSolid_ToolPlaneSurface 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolPlaneSurface, ready to work
-  Standard_EXPORT IGESSolid_ToolPlaneSurface();
+  IGESSolid_ToolPlaneSurface() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESSolid_PlaneSurface)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a PlaneSurface <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESSolid_PlaneSurface)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESSolid_PlaneSurface)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESSolid_PlaneSurface)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESSolid_PlaneSurface)& entfrom, const Handle(IGESSolid_PlaneSurface)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESSolid_PlaneSurface)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_ToolPlaneSurface_HeaderFile
index e7d71c66af5a4676f160067fadf3c58bf0ad44bd..98894b111260163450d91c594aa2c8978d9d4902 100644 (file)
 #include <IGESSolid_RightAngularWedge.hxx>
 #include <IGESSolid_ToolRightAngularWedge.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESSolid_ToolRightAngularWedge::IGESSolid_ToolRightAngularWedge ()    {  }
-
 
 void  IGESSolid_ToolRightAngularWedge::ReadOwnParams
   (const Handle(IGESSolid_RightAngularWedge)& ent,
@@ -150,19 +147,6 @@ void  IGESSolid_ToolRightAngularWedge::WriteOwnParams
   IW.Send(ent->ZAxis().Z());
 }
 
-void  IGESSolid_ToolRightAngularWedge::OwnShared
-  (const Handle(IGESSolid_RightAngularWedge)& /* ent */, Interface_EntityIterator& /* iter */) const
-{
-}
-
-void  IGESSolid_ToolRightAngularWedge::OwnCopy
-  (const Handle(IGESSolid_RightAngularWedge)& another,
-   const Handle(IGESSolid_RightAngularWedge)& ent, Interface_CopyTool& /* TC */) const
-{
-  ent->Init(another->Size(), another->XSmallLength(), another->Corner().XYZ(),
-           another->XAxis().XYZ(), another->ZAxis().XYZ());
-}
-
 IGESData_DirChecker  IGESSolid_ToolRightAngularWedge::DirChecker
   (const Handle(IGESSolid_RightAngularWedge)& /* ent */ ) const
 {
@@ -176,22 +160,6 @@ IGESData_DirChecker  IGESSolid_ToolRightAngularWedge::DirChecker
   return DC;
 }
 
-void  IGESSolid_ToolRightAngularWedge::OwnCheck
-  (const Handle(IGESSolid_RightAngularWedge)& ent,
-   const Interface_ShareTool& , Handle(Interface_Check)& ach) const
-{
-  Standard_Real eps = 1.E-04;
-  Standard_Real prosca = ent->XAxis() * ent->ZAxis();
-  if (prosca < -eps || prosca > eps)
-    ach->AddFail("Local Z axis : Not orthogonal to X axis");
-  if (ent->Size().X() <= 0. || ent->Size().Y() <= 0. || ent->Size().Z() <= 0.)
-    ach->AddFail("Size : Values are not positive");
-  if (ent->XSmallLength() <= 0.0)
-    ach->AddFail("Small X Length : Not Positive");
-  if (ent->XSmallLength() >= ent->Size().X())
-    ach->AddFail("Small X Length : Value not < LX");
-}
-
 void  IGESSolid_ToolRightAngularWedge::OwnDump
   (const Handle(IGESSolid_RightAngularWedge)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
index f3b23333ef55ff1cb5d442b29e19c334ff5b1e39..59cafc587c63542c0f1f0caeecb0d046d79b1f9f 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESSolid_ToolRightAngularWedge 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolRightAngularWedge, ready to work
-  Standard_EXPORT IGESSolid_ToolRightAngularWedge();
+  IGESSolid_ToolRightAngularWedge() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESSolid_RightAngularWedge)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a RightAngularWedge <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESSolid_RightAngularWedge)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESSolid_RightAngularWedge)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESSolid_RightAngularWedge)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESSolid_RightAngularWedge)& entfrom, const Handle(IGESSolid_RightAngularWedge)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESSolid_RightAngularWedge)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_ToolRightAngularWedge_HeaderFile
index 3e15d017790b3b0f984c0fdf9871056206cb1a1e..84b023dc0f1ccfb96afbb16b0700d3e5bebb8cd5 100644 (file)
 #include <IGESSolid_SelectedComponent.hxx>
 #include <IGESSolid_ToolSelectedComponent.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESSolid_ToolSelectedComponent::IGESSolid_ToolSelectedComponent ()    {  }
-
 
 void  IGESSolid_ToolSelectedComponent::ReadOwnParams
   (const Handle(IGESSolid_SelectedComponent)& ent,
@@ -65,22 +62,6 @@ void  IGESSolid_ToolSelectedComponent::WriteOwnParams
   IW.Send(ent->SelectPoint().Z());
 }
 
-void  IGESSolid_ToolSelectedComponent::OwnShared
-  (const Handle(IGESSolid_SelectedComponent)& ent, Interface_EntityIterator& iter) const
-{
-  iter.GetOneItem(ent->Component());
-}
-
-void  IGESSolid_ToolSelectedComponent::OwnCopy
-  (const Handle(IGESSolid_SelectedComponent)& another,
-   const Handle(IGESSolid_SelectedComponent)& ent, Interface_CopyTool& TC) const
-{
-  DeclareAndCast(IGESSolid_BooleanTree, tempEntity,
-                TC.Transferred(another->Component()));
-  gp_XYZ tempSelectPoint = another->SelectPoint().XYZ();
-  ent->Init (tempEntity, tempSelectPoint);
-}
-
 IGESData_DirChecker  IGESSolid_ToolSelectedComponent::DirChecker
   (const Handle(IGESSolid_SelectedComponent)& /* ent */ ) const
 {
@@ -97,12 +78,6 @@ IGESData_DirChecker  IGESSolid_ToolSelectedComponent::DirChecker
   return DC;
 }
 
-void  IGESSolid_ToolSelectedComponent::OwnCheck
-  (const Handle(IGESSolid_SelectedComponent)& /* ent */,
-   const Interface_ShareTool& , Handle(Interface_Check)& /* ach */) const
-{
-}
-
 void  IGESSolid_ToolSelectedComponent::OwnDump
   (const Handle(IGESSolid_SelectedComponent)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
index e1a8bb86a75a0d18d06df5aec582ea90da6b3b11..93cfe2480127046e50f470a9f24d6ab986017ccf 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESSolid_ToolSelectedComponent 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolSelectedComponent, ready to work
-  Standard_EXPORT IGESSolid_ToolSelectedComponent();
+  IGESSolid_ToolSelectedComponent() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESSolid_SelectedComponent)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a SelectedComponent <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESSolid_SelectedComponent)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESSolid_SelectedComponent)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESSolid_SelectedComponent)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESSolid_SelectedComponent)& entfrom, const Handle(IGESSolid_SelectedComponent)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESSolid_SelectedComponent)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_ToolSelectedComponent_HeaderFile
index 4e6ceefd579e5a8a905ea432e915f82395ad877f..b28a6c7e072d0406170467bfe75f591cc7b4e111 100644 (file)
@@ -30,7 +30,6 @@
 #include <IGESSolid_Shell.hxx>
 #include <IGESSolid_ToolShell.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Standard_DomainError.hxx>
 #include <TColStd_HArray1OfInteger.hxx>
 
-// MGE 03/08/98
-//=======================================================================
-//function : IGESSolid_ToolShell
-//purpose  : 
-//=======================================================================
-IGESSolid_ToolShell::IGESSolid_ToolShell ()
-{
-}
-
 
 //=======================================================================
 //function : ReadOwnParams
@@ -140,46 +130,6 @@ void IGESSolid_ToolShell::WriteOwnParams(const Handle(IGESSolid_Shell)& ent,
 }
 
 
-//=======================================================================
-//function : OwnShared
-//purpose  : 
-//=======================================================================
-
-void IGESSolid_ToolShell::OwnShared(const Handle(IGESSolid_Shell)& ent,
-                                    Interface_EntityIterator& iter) const
-{
-  Standard_Integer nbfaces = ent->NbFaces();
-  for (Standard_Integer i = 1; i <= nbfaces; i ++)
-    iter.GetOneItem(ent->Face(i));
-}
-
-
-//=======================================================================
-//function : OwnCopy
-//purpose  : 
-//=======================================================================
-
-void IGESSolid_ToolShell::OwnCopy(const Handle(IGESSolid_Shell)& another,
-                                  const Handle(IGESSolid_Shell)& ent,
-                                  Interface_CopyTool& TC) const
-{
-  Standard_Integer nbfaces = another->NbFaces();
-
-  Handle(IGESSolid_HArray1OfFace) tempFaces = new
-    IGESSolid_HArray1OfFace(1, nbfaces);
-  Handle(TColStd_HArray1OfInteger) tempOrientation = new
-    TColStd_HArray1OfInteger(1, nbfaces);
-  for (Standard_Integer i=1; i<=nbfaces; i++)
-    {
-      DeclareAndCast(IGESSolid_Face, face,
-                    TC.Transferred(another->Face(i)));
-      tempFaces->SetValue(i, face);
-      tempOrientation->SetValue(i, (another->Orientation(i) ? 1 : 0) );
-    }
-  ent->Init (tempFaces, tempOrientation);
-}
-
-
 //=======================================================================
 //function : DirChecker
 //purpose  : 
@@ -200,28 +150,6 @@ IGESData_DirChecker IGESSolid_ToolShell::DirChecker
 }
 
 
-//=======================================================================
-//function : OwnCheck
-//purpose  : 
-//=======================================================================
-
-void IGESSolid_ToolShell::OwnCheck(const Handle(IGESSolid_Shell)& ent,
-                                   const Interface_ShareTool&,
-                                   Handle(Interface_Check)& ach) const
-{
-  // MGE 03/08/98
-  // Building of messages
-  //========================================
-  //Message_Msg Msg200("XSTEP_200");
-  //========================================
-
-  if (ent->NbFaces() <= 0) {
-    Message_Msg Msg200("XSTEP_200");
-    ach->SendFail(Msg200);
-  }
-}
-
-
 //=======================================================================
 //function : OwnDump
 //purpose  : 
index 35cfd7418c17c6b63785cef493b51725847c182a..6a6e28843121c3cc6762baf9b235f0784a8ad41e 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESSolid_ToolShell 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolShell, ready to work
-  Standard_EXPORT IGESSolid_ToolShell();
+  IGESSolid_ToolShell() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESSolid_Shell)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a Shell <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESSolid_Shell)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESSolid_Shell)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESSolid_Shell)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESSolid_Shell)& entfrom, const Handle(IGESSolid_Shell)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESSolid_Shell)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_ToolShell_HeaderFile
index 2f0d7a9d297cf9660065688f9c211299b4cb0917..efb4985d7faac7a4e22d57289cbd0dbd435064ee 100644 (file)
 #include <IGESSolid_SolidAssembly.hxx>
 #include <IGESSolid_ToolSolidAssembly.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESSolid_ToolSolidAssembly::IGESSolid_ToolSolidAssembly ()    {  }
-
 
 void  IGESSolid_ToolSolidAssembly::ReadOwnParams
   (const Handle(IGESSolid_SolidAssembly)& ent,
@@ -96,44 +93,6 @@ void  IGESSolid_ToolSolidAssembly::WriteOwnParams
     IW.Send(ent->TransfMatrix(i));
 }
 
-void  IGESSolid_ToolSolidAssembly::OwnShared
-  (const Handle(IGESSolid_SolidAssembly)& ent, Interface_EntityIterator& iter) const
-{
-  Standard_Integer nbitems = ent->NbItems();
-  Standard_Integer i;
-  for (i = 1; i <= nbitems; i ++)    iter.GetOneItem(ent->Item(i));
-  for (i = 1; i <= nbitems; i ++)    iter.GetOneItem(ent->TransfMatrix(i));
-}
-
-void  IGESSolid_ToolSolidAssembly::OwnCopy
-  (const Handle(IGESSolid_SolidAssembly)& another,
-   const Handle(IGESSolid_SolidAssembly)& ent, Interface_CopyTool& TC) const
-{
-  Standard_Integer nbitems, i;
-  Handle(IGESData_IGESEntity) anent;
-
-  nbitems = another->NbItems();
-  Handle(IGESData_HArray1OfIGESEntity) tempItems = new
-    IGESData_HArray1OfIGESEntity(1, nbitems);
-  Handle(IGESGeom_HArray1OfTransformationMatrix) tempMatrices = new
-    IGESGeom_HArray1OfTransformationMatrix(1, nbitems);
-
-  for (i=1; i<=nbitems; i++)
-    {
-      DeclareAndCast(IGESData_IGESEntity, localent,
-                    TC.Transferred(another->Item(i)));
-      tempItems->SetValue(i, localent);
-    }
-  for (i=1; i<=nbitems; i++)
-    {
-      DeclareAndCast(IGESGeom_TransformationMatrix, newlocalent,
-                    TC.Transferred(another->TransfMatrix(i)));
-      tempMatrices->SetValue(i, newlocalent);
-    }
-
-  ent->Init(tempItems, tempMatrices);
-}
-
 IGESData_DirChecker  IGESSolid_ToolSolidAssembly::DirChecker
   (const Handle(IGESSolid_SolidAssembly)& /* ent */ ) const
 {
@@ -148,12 +107,6 @@ IGESData_DirChecker  IGESSolid_ToolSolidAssembly::DirChecker
   return DC;
 }
 
-void  IGESSolid_ToolSolidAssembly::OwnCheck
-  (const Handle(IGESSolid_SolidAssembly)& /* ent */,
-   const Interface_ShareTool& , Handle(Interface_Check)& /* ach */) const
-{
-}
-
 void  IGESSolid_ToolSolidAssembly::OwnDump
   (const Handle(IGESSolid_SolidAssembly)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
index 5e138f225610613322ba903a53acddba0e6eb759..8b9814a85324ecd5e51a1e0272b79fac460c236b 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESSolid_ToolSolidAssembly 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolSolidAssembly, ready to work
-  Standard_EXPORT IGESSolid_ToolSolidAssembly();
+  IGESSolid_ToolSolidAssembly() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESSolid_SolidAssembly)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a SolidAssembly <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESSolid_SolidAssembly)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESSolid_SolidAssembly)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESSolid_SolidAssembly)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESSolid_SolidAssembly)& entfrom, const Handle(IGESSolid_SolidAssembly)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESSolid_SolidAssembly)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_ToolSolidAssembly_HeaderFile
index 54e45e8d676295529d53b69511f1c3d485131bf2..bfd3ff80d93e35edf2a8c5457e574c8d183fa064 100644 (file)
 #include <IGESSolid_SolidInstance.hxx>
 #include <IGESSolid_ToolSolidInstance.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESSolid_ToolSolidInstance::IGESSolid_ToolSolidInstance ()    {  }
-
 
 void  IGESSolid_ToolSolidInstance::ReadOwnParams
   (const Handle(IGESSolid_SolidInstance)& ent,
@@ -55,21 +52,6 @@ void  IGESSolid_ToolSolidInstance::WriteOwnParams
   IW.Send(ent->Entity());
 }
 
-void  IGESSolid_ToolSolidInstance::OwnShared
-  (const Handle(IGESSolid_SolidInstance)& ent, Interface_EntityIterator& iter) const
-{
-  iter.GetOneItem(ent->Entity());
-}
-
-void  IGESSolid_ToolSolidInstance::OwnCopy
-  (const Handle(IGESSolid_SolidInstance)& another,
-   const Handle(IGESSolid_SolidInstance)& ent, Interface_CopyTool& TC) const
-{
-  DeclareAndCast(IGESData_IGESEntity, tempEntity,
-                TC.Transferred(another->Entity()));
-  ent->Init (tempEntity);
-}
-
 IGESData_DirChecker  IGESSolid_ToolSolidInstance::DirChecker
   (const Handle(IGESSolid_SolidInstance)& /*ent*/) const
 {
@@ -83,12 +65,6 @@ IGESData_DirChecker  IGESSolid_ToolSolidInstance::DirChecker
   return DC;
 }
 
-void  IGESSolid_ToolSolidInstance::OwnCheck
-  (const Handle(IGESSolid_SolidInstance)& /*ent*/,
-   const Interface_ShareTool& , Handle(Interface_Check)& /*ach*/) const
-{
-}
-
 void  IGESSolid_ToolSolidInstance::OwnDump
   (const Handle(IGESSolid_SolidInstance)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
index 936698283e137b33a3525ebda4cb881d44988984..86cf9cfd88a94630709b67be074223451f9b0d1d 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESSolid_ToolSolidInstance 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolSolidInstance, ready to work
-  Standard_EXPORT IGESSolid_ToolSolidInstance();
+  IGESSolid_ToolSolidInstance() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESSolid_SolidInstance)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a SolidInstance <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESSolid_SolidInstance)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESSolid_SolidInstance)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESSolid_SolidInstance)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESSolid_SolidInstance)& entfrom, const Handle(IGESSolid_SolidInstance)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESSolid_SolidInstance)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_ToolSolidInstance_HeaderFile
index 11f20b22c9a5474e68c4275bb8b45452d13a190a..f5b32a3d7083b9296ed09beead068e1135bb8cae 100644 (file)
 #include <IGESSolid_SolidOfLinearExtrusion.hxx>
 #include <IGESSolid_ToolSolidOfLinearExtrusion.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESSolid_ToolSolidOfLinearExtrusion::IGESSolid_ToolSolidOfLinearExtrusion ()
-      {  }
-
 
 void  IGESSolid_ToolSolidOfLinearExtrusion::ReadOwnParams
   (const Handle(IGESSolid_SolidOfLinearExtrusion)& ent,
@@ -94,23 +90,6 @@ void  IGESSolid_ToolSolidOfLinearExtrusion::WriteOwnParams
   IW.Send(ent->ExtrusionDirection().Z());
 }
 
-void  IGESSolid_ToolSolidOfLinearExtrusion::OwnShared
-  (const Handle(IGESSolid_SolidOfLinearExtrusion)& ent, Interface_EntityIterator& iter) const
-{
-  iter.GetOneItem(ent->Curve());
-}
-
-void  IGESSolid_ToolSolidOfLinearExtrusion::OwnCopy
-  (const Handle(IGESSolid_SolidOfLinearExtrusion)& another,
-   const Handle(IGESSolid_SolidOfLinearExtrusion)& ent, Interface_CopyTool& TC) const
-{
-  DeclareAndCast(IGESData_IGESEntity, tempEntity,
-                TC.Transferred(another->Curve()));
-  Standard_Real tempLength = another->ExtrusionLength();
-  gp_XYZ tempDirection = another->ExtrusionDirection().XYZ();
-  ent->Init(tempEntity, tempLength, tempDirection);
-}
-
 IGESData_DirChecker  IGESSolid_ToolSolidOfLinearExtrusion::DirChecker
   (const Handle(IGESSolid_SolidOfLinearExtrusion)& /* ent */ ) const
 {
@@ -125,14 +104,6 @@ IGESData_DirChecker  IGESSolid_ToolSolidOfLinearExtrusion::DirChecker
   return DC;
 }
 
-void  IGESSolid_ToolSolidOfLinearExtrusion::OwnCheck
-  (const Handle(IGESSolid_SolidOfLinearExtrusion)& ent,
-   const Interface_ShareTool& , Handle(Interface_Check)& ach) const
-{
-  if (ent->ExtrusionLength() <= 0.0)
-    ach->AddFail("Length of extrusion : Not Positive");
-}
-
 void  IGESSolid_ToolSolidOfLinearExtrusion::OwnDump
   (const Handle(IGESSolid_SolidOfLinearExtrusion)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
index 100802585f7afd4866692c8dbb4626cfa08972fe..66b5ca48b4422cf13e7c5ebb9539a07d6f041c21 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESSolid_ToolSolidOfLinearExtrusion 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolSolidOfLinearExtrusion, ready to work
-  Standard_EXPORT IGESSolid_ToolSolidOfLinearExtrusion();
+  IGESSolid_ToolSolidOfLinearExtrusion() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESSolid_SolidOfLinearExtrusion)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a SolidOfLinearExtrusion <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESSolid_SolidOfLinearExtrusion)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESSolid_SolidOfLinearExtrusion)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESSolid_SolidOfLinearExtrusion)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESSolid_SolidOfLinearExtrusion)& entfrom, const Handle(IGESSolid_SolidOfLinearExtrusion)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESSolid_SolidOfLinearExtrusion)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_ToolSolidOfLinearExtrusion_HeaderFile
index 13a78cdd5beb57de03215ae2efbdc8e0579bf4b4..628631a614e9f43bee4c590160d49bde1f58662a 100644 (file)
 #include <IGESSolid_SolidOfRevolution.hxx>
 #include <IGESSolid_ToolSolidOfRevolution.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESSolid_ToolSolidOfRevolution::IGESSolid_ToolSolidOfRevolution ()    {  }
-
 
 void  IGESSolid_ToolSolidOfRevolution::ReadOwnParams
   (const Handle(IGESSolid_SolidOfRevolution)& ent,
@@ -125,24 +122,6 @@ void IGESSolid_ToolSolidOfRevolution::WriteOwnParams
   IW.Send(ent->Axis().Z());
 }
 
-void  IGESSolid_ToolSolidOfRevolution::OwnShared
-  (const Handle(IGESSolid_SolidOfRevolution)& ent, Interface_EntityIterator& iter) const
-{
-  iter.GetOneItem(ent->Curve());
-}
-
-void  IGESSolid_ToolSolidOfRevolution::OwnCopy
-  (const Handle(IGESSolid_SolidOfRevolution)& another,
-   const Handle(IGESSolid_SolidOfRevolution)& ent, Interface_CopyTool& TC) const
-{
-  DeclareAndCast(IGESData_IGESEntity, tempEntity,
-                TC.Transferred(another->Curve()));
-  Standard_Real tempFraction = another->Fraction();
-  gp_XYZ tempAxisPoint = another->AxisPoint().XYZ();
-  gp_XYZ tempAxis= another->Axis().XYZ();
-  ent->Init(tempEntity, tempFraction, tempAxisPoint, tempAxis);
-}
-
 IGESData_DirChecker  IGESSolid_ToolSolidOfRevolution::DirChecker
   (const Handle(IGESSolid_SolidOfRevolution)& /* ent */ ) const
 {
@@ -157,14 +136,6 @@ IGESData_DirChecker  IGESSolid_ToolSolidOfRevolution::DirChecker
   return DC;
 }
 
-void  IGESSolid_ToolSolidOfRevolution::OwnCheck
-  (const Handle(IGESSolid_SolidOfRevolution)& ent,
-   const Interface_ShareTool& , Handle(Interface_Check)& ach) const
-{
-  if (ent->Fraction() <= 0 || ent->Fraction() > 1.0)
-    ach->AddFail("Fraction of rotation : Incorrect value");
-}
-
 void  IGESSolid_ToolSolidOfRevolution::OwnDump
   (const Handle(IGESSolid_SolidOfRevolution)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
index 1bde02b2d09f95ea59a412ee9c196b57c57a0273..ab32c060f8fb5b4fe76b1ff43babd5e7a30d7f69 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESSolid_ToolSolidOfRevolution 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolSolidOfRevolution, ready to work
-  Standard_EXPORT IGESSolid_ToolSolidOfRevolution();
+  IGESSolid_ToolSolidOfRevolution() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESSolid_SolidOfRevolution)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a SolidOfRevolution <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESSolid_SolidOfRevolution)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESSolid_SolidOfRevolution)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESSolid_SolidOfRevolution)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESSolid_SolidOfRevolution)& entfrom, const Handle(IGESSolid_SolidOfRevolution)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESSolid_SolidOfRevolution)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_ToolSolidOfRevolution_HeaderFile
index 131dead26c6ee1a59298430455caa69f19fa76fd..c519c40fd666ded940935d696db75ad3621f4bdd 100644 (file)
 #include <IGESSolid_Sphere.hxx>
 #include <IGESSolid_ToolSphere.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESSolid_ToolSphere::IGESSolid_ToolSphere ()    {  }
-
 
 void  IGESSolid_ToolSphere::ReadOwnParams
   (const Handle(IGESSolid_Sphere)& ent,
@@ -84,18 +81,6 @@ void  IGESSolid_ToolSphere::WriteOwnParams
   IW.Send(ent->Center().Z());
 }
 
-void  IGESSolid_ToolSphere::OwnShared
-  (const Handle(IGESSolid_Sphere)& /* ent */, Interface_EntityIterator& /* iter */) const
-{
-}
-
-void  IGESSolid_ToolSphere::OwnCopy
-  (const Handle(IGESSolid_Sphere)& another,
-   const Handle(IGESSolid_Sphere)& ent, Interface_CopyTool& /* TC */) const
-{
-  ent->Init (another->Radius(), another->Center().XYZ());
-}
-
 IGESData_DirChecker  IGESSolid_ToolSphere::DirChecker
   (const Handle(IGESSolid_Sphere)& /* ent */ ) const
 {
@@ -110,14 +95,6 @@ IGESData_DirChecker  IGESSolid_ToolSphere::DirChecker
   return DC;
 }
 
-void  IGESSolid_ToolSphere::OwnCheck
-  (const Handle(IGESSolid_Sphere)& ent,
-   const Interface_ShareTool& , Handle(Interface_Check)& ach) const
-{
-  if (ent->Radius() <= 0.0)
-    ach->AddFail("Radius : Not Positive");
-}
-
 void  IGESSolid_ToolSphere::OwnDump
   (const Handle(IGESSolid_Sphere)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
index ba888fef7ed34905bbf1bc887c33fdfa74b2a944..f911c4858e75c396f66ade68e924c5a101bb9d99 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESSolid_ToolSphere 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolSphere, ready to work
-  Standard_EXPORT IGESSolid_ToolSphere();
+  IGESSolid_ToolSphere() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESSolid_Sphere)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a Sphere <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESSolid_Sphere)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESSolid_Sphere)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESSolid_Sphere)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESSolid_Sphere)& entfrom, const Handle(IGESSolid_Sphere)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESSolid_Sphere)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_ToolSphere_HeaderFile
index 813b8e8ac9fde4b2f2c2c649d733c2a909f941ca..61aa9abf3e40b7438e2fc877e02aab9ea5ee5e63 100644 (file)
 #include <IGESSolid_SphericalSurface.hxx>
 #include <IGESSolid_ToolSphericalSurface.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESSolid_ToolSphericalSurface::IGESSolid_ToolSphericalSurface ()    {  }
-
 
 void  IGESSolid_ToolSphericalSurface::ReadOwnParams
   (const Handle(IGESSolid_SphericalSurface)& ent,
@@ -78,38 +75,6 @@ void  IGESSolid_ToolSphericalSurface::WriteOwnParams
     }
 }
 
-void  IGESSolid_ToolSphericalSurface::OwnShared
-  (const Handle(IGESSolid_SphericalSurface)& ent, Interface_EntityIterator& iter) const
-{
-  iter.GetOneItem(ent->Center());
-  iter.GetOneItem(ent->Axis());
-  iter.GetOneItem(ent->ReferenceDir());
-}
-
-void  IGESSolid_ToolSphericalSurface::OwnCopy
-  (const Handle(IGESSolid_SphericalSurface)& another,
-   const Handle(IGESSolid_SphericalSurface)& ent, Interface_CopyTool& TC) const
-{
-  DeclareAndCast(IGESGeom_Point, tempCenter,
-                TC.Transferred(another->Center()));
-  Standard_Real tempRadius = another->Radius();
-  if (another->IsParametrised())
-    {
-      DeclareAndCast(IGESGeom_Direction, tempAxis,
-                    TC.Transferred(another->Axis()));
-      DeclareAndCast(IGESGeom_Direction, tempRefdir,
-                    TC.Transferred(another->ReferenceDir()));
-      ent->Init (tempCenter, tempRadius, tempAxis, tempRefdir);
-    }
-  else
-    {
-      Handle(IGESGeom_Direction) tempAxis;
-      Handle(IGESGeom_Direction) tempRefdir;
-      ent->Init (tempCenter, tempRadius, tempAxis, tempRefdir);
-    }
-
-}
-
 IGESData_DirChecker  IGESSolid_ToolSphericalSurface::DirChecker
   (const Handle(IGESSolid_SphericalSurface)& /*ent*/) const
 {
@@ -125,20 +90,6 @@ IGESData_DirChecker  IGESSolid_ToolSphericalSurface::DirChecker
   return DC;
 }
 
-void  IGESSolid_ToolSphericalSurface::OwnCheck
-  (const Handle(IGESSolid_SphericalSurface)& ent,
-   const Interface_ShareTool& , Handle(Interface_Check)& ach) const
-{
-  if (ent->Radius() <= 0.0)
-    ach->AddFail("Radius : Not Positive");
-  Standard_Integer fn = 0;
-  if (ent->IsParametrised()) fn = 1;
-  if (fn != ent->FormNumber()) ach->AddFail
-    ("Parametrised Status Mismatches with Form Number");
-  if (ent->Axis().IsNull())  if (ent->IsParametrised()) ach->AddFail
-    ("Parametrised Spherical Surface : no Axis is defined");
-}
-
 void  IGESSolid_ToolSphericalSurface::OwnDump
   (const Handle(IGESSolid_SphericalSurface)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
index d6236f9821c0a1653cd7341399426aee3f7cb505..23e1f8d54964a4b7506268d34b29eb86bc6bc726 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESSolid_ToolSphericalSurface 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolSphericalSurface, ready to work
-  Standard_EXPORT IGESSolid_ToolSphericalSurface();
+  IGESSolid_ToolSphericalSurface() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESSolid_SphericalSurface)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a SphericalSurface <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESSolid_SphericalSurface)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESSolid_SphericalSurface)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESSolid_SphericalSurface)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESSolid_SphericalSurface)& entfrom, const Handle(IGESSolid_SphericalSurface)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESSolid_SphericalSurface)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_ToolSphericalSurface_HeaderFile
index 1106c165e070628bc7efa4ab178ba17e856bc409..8a87bec2ac16833705583e6b3dcf1d918225b5df 100644 (file)
 #include <IGESSolid_ToolToroidalSurface.hxx>
 #include <IGESSolid_ToroidalSurface.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESSolid_ToolToroidalSurface::IGESSolid_ToolToroidalSurface ()    {  }
-
 
 void  IGESSolid_ToolToroidalSurface::ReadOwnParams
   (const Handle(IGESSolid_ToroidalSurface)& ent,
@@ -74,37 +71,6 @@ void  IGESSolid_ToolToroidalSurface::WriteOwnParams
   if (ent->IsParametrised())    IW.Send(ent->ReferenceDir());
 }
 
-void  IGESSolid_ToolToroidalSurface::OwnShared
-  (const Handle(IGESSolid_ToroidalSurface)& ent, Interface_EntityIterator& iter) const
-{
-  iter.GetOneItem(ent->Center());
-  iter.GetOneItem(ent->Axis());
-  iter.GetOneItem(ent->ReferenceDir());
-}
-
-void  IGESSolid_ToolToroidalSurface::OwnCopy
-  (const Handle(IGESSolid_ToroidalSurface)& another,
-   const Handle(IGESSolid_ToroidalSurface)& ent, Interface_CopyTool& TC) const
-{
-  DeclareAndCast(IGESGeom_Point, tempCenter,
-                TC.Transferred(another->Center()));
-  DeclareAndCast(IGESGeom_Direction, tempAxis,
-                TC.Transferred(another->Axis()));
-  Standard_Real majRad = another->MajorRadius();
-  Standard_Real minRad = another->MinorRadius();
-  if (another->IsParametrised())
-    {
-      DeclareAndCast(IGESGeom_Direction, tempRefdir,
-                    TC.Transferred(another->ReferenceDir()));
-      ent->Init (tempCenter, tempAxis, majRad, minRad, tempRefdir);
-    }
-  else
-    {
-      Handle(IGESGeom_Direction) tempRefdir;
-      ent->Init (tempCenter, tempAxis, majRad, minRad, tempRefdir);
-    }
-}
-
 IGESData_DirChecker  IGESSolid_ToolToroidalSurface::DirChecker
   (const Handle(IGESSolid_ToroidalSurface)& /*ent*/) const
 {
@@ -120,22 +86,6 @@ IGESData_DirChecker  IGESSolid_ToolToroidalSurface::DirChecker
   return DC;
 }
 
-void  IGESSolid_ToolToroidalSurface::OwnCheck
-  (const Handle(IGESSolid_ToroidalSurface)& ent,
-   const Interface_ShareTool& , Handle(Interface_Check)& ach) const
-{
-  if (ent->MajorRadius() <= 0.0)
-    ach->AddFail("Major Radius : Not Positive");
-  if (ent->MinorRadius() <= 0.0)
-    ach->AddFail("Minor Radius : Not Positive");
-  if (ent->MinorRadius() >= ent->MajorRadius())
-    ach->AddFail("Minor Radius : Value not < Major radius");
-  Standard_Integer fn = 0;
-  if (ent->IsParametrised()) fn = 1;
-  if (fn != ent->FormNumber()) ach->AddFail
-    ("Parametrised Status Mismatches with Form Number");
-}
-
 void  IGESSolid_ToolToroidalSurface::OwnDump
   (const Handle(IGESSolid_ToroidalSurface)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
index 602e9b6d08e5857901b6038cfe043ba3daffe64d..caf1b9a8870f1cf474d7932c0c3957ecb124156c 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESSolid_ToolToroidalSurface 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolToroidalSurface, ready to work
-  Standard_EXPORT IGESSolid_ToolToroidalSurface();
+  IGESSolid_ToolToroidalSurface() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESSolid_ToroidalSurface)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a ToroidalSurface <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESSolid_ToroidalSurface)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESSolid_ToroidalSurface)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESSolid_ToroidalSurface)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESSolid_ToroidalSurface)& entfrom, const Handle(IGESSolid_ToroidalSurface)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESSolid_ToroidalSurface)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_ToolToroidalSurface_HeaderFile
index 17647e5679c872ab4cce1b6834d04d320ab29234..9d1b61c19f41ed09153b748f2adf10fe51e811f6 100644 (file)
 #include <IGESSolid_ToolTorus.hxx>
 #include <IGESSolid_Torus.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
-IGESSolid_ToolTorus::IGESSolid_ToolTorus ()    {  }
-
 
 void  IGESSolid_ToolTorus::ReadOwnParams
   (const Handle(IGESSolid_Torus)& ent,
@@ -118,19 +115,6 @@ void  IGESSolid_ToolTorus::WriteOwnParams
   IW.Send(ent->Axis().Z());
 }
 
-void  IGESSolid_ToolTorus::OwnShared
-  (const Handle(IGESSolid_Torus)& /* ent */, Interface_EntityIterator& /* iter */) const
-{
-}
-
-void  IGESSolid_ToolTorus::OwnCopy
-  (const Handle(IGESSolid_Torus)& another,
-   const Handle(IGESSolid_Torus)& ent, Interface_CopyTool& /* TC */) const
-{
-  ent->Init (another->MajorRadius(), another->DiscRadius(),
-            another->AxisPoint().XYZ(), another->Axis().XYZ());
-}
-
 IGESData_DirChecker  IGESSolid_ToolTorus::DirChecker
   (const Handle(IGESSolid_Torus)& /* ent */ ) const
 {
@@ -145,18 +129,6 @@ IGESData_DirChecker  IGESSolid_ToolTorus::DirChecker
   return DC;
 }
 
-void  IGESSolid_ToolTorus::OwnCheck
-  (const Handle(IGESSolid_Torus)& ent,
-   const Interface_ShareTool& , Handle(Interface_Check)& ach) const
-{
-  if (ent->MajorRadius() <= 0.0)
-    ach->AddFail("Radius of revolution : Not Positive");
-  if (ent->DiscRadius() <= 0.0)
-    ach->AddFail("Radius of disc : Not Positive");
-  if (ent->DiscRadius() >= ent->MajorRadius())
-    ach->AddFail("Radius of disc : is not Less than Radius of revolution");
-}
-
 void  IGESSolid_ToolTorus::OwnDump
   (const Handle(IGESSolid_Torus)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
index de3ca1f6e05655bf1a45623e1c3e6d6b0d2a552b..5690bab4736fc94d5e31bd53b27f4010add4f1f8 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESSolid_ToolTorus 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolTorus, ready to work
-  Standard_EXPORT IGESSolid_ToolTorus();
+  IGESSolid_ToolTorus() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESSolid_Torus)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a Torus <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESSolid_Torus)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESSolid_Torus)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESSolid_Torus)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESSolid_Torus)& entfrom, const Handle(IGESSolid_Torus)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESSolid_Torus)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_ToolTorus_HeaderFile
index 2b3486dad1e6dd19f13141b7512acbc135763a06..1802362ed11fb740389e06959c9f90a50955dc60 100644 (file)
@@ -28,7 +28,6 @@
 #include <IGESSolid_ToolVertexList.hxx>
 #include <IGESSolid_VertexList.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
 #include <Standard_DomainError.hxx>
 #include <TColgp_HArray1OfXYZ.hxx>
 
-// MGE 03/08/98
-//=======================================================================
-//function : IGESSolid_ToolVertexList
-//purpose  : 
-//=======================================================================
-IGESSolid_ToolVertexList::IGESSolid_ToolVertexList ()
-{
-}
-
 
 //=======================================================================
 //function : ReadOwnParams
@@ -117,40 +107,6 @@ void IGESSolid_ToolVertexList::WriteOwnParams(const Handle(IGESSolid_VertexList)
 }
 
 
-//=======================================================================
-//function : OwnShared
-//purpose  : 
-//=======================================================================
-
-void IGESSolid_ToolVertexList::OwnShared(const Handle(IGESSolid_VertexList)& /* ent */,
-                                         Interface_EntityIterator& /* iter */) const
-{
-}
-
-
-//=======================================================================
-//function : OwnCopy
-//purpose  : 
-//=======================================================================
-
-void IGESSolid_ToolVertexList::OwnCopy(const Handle(IGESSolid_VertexList)& another,
-                                       const Handle(IGESSolid_VertexList)& ent,
-                                       Interface_CopyTool& /* TC */) const
-{
-  Standard_Integer nbitems, i;
-
-  nbitems = another->NbVertices();
-  Handle(TColgp_HArray1OfXYZ) tempVertices = new
-    TColgp_HArray1OfXYZ(1, nbitems);
-
-  for (i=1; i<=nbitems; i++)
-    {
-      tempVertices->SetValue(i, another->Vertex(i).XYZ());
-    }
-  ent->Init(tempVertices);
-}
-
-
 //=======================================================================
 //function : DirChecker
 //purpose  : 
@@ -172,28 +128,6 @@ IGESData_DirChecker IGESSolid_ToolVertexList::DirChecker
 }
 
 
-//=======================================================================
-//function : OwnCheck
-//purpose  : 
-//=======================================================================
-
-void IGESSolid_ToolVertexList::OwnCheck(const Handle(IGESSolid_VertexList)& ent,
-                                        const Interface_ShareTool&,
-                                        Handle(Interface_Check)& ach) const
-{
-  // MGE 03/08/98
-  // Building of messages
-  //========================================
-  //Message_Msg Msg182("XSTEP_182");
-  //========================================
-
-  if (ent->NbVertices() <= 0) {
-    Message_Msg Msg182("XSTEP_182");
-    ach->SendFail(Msg182);
-  }
-}
-
-
 //=======================================================================
 //function : OwnDump
 //purpose  : 
index b0909405370ec6288ae4778ec16edf5cdc8452b6..17a56f9c40e6090b0fe8cf47714b250fd14de482 100644 (file)
@@ -31,7 +31,6 @@ class Interface_EntityIterator;
 class IGESData_DirChecker;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class IGESData_IGESDumper;
 class Message_Messenger;
 
@@ -40,13 +39,12 @@ class Message_Messenger;
 //! (ReadWriteModule, GeneralModule, SpecificModule)
 class IGESSolid_ToolVertexList 
 {
-public:
+ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Returns a ToolVertexList, ready to work
-  Standard_EXPORT IGESSolid_ToolVertexList();
+  IGESSolid_ToolVertexList() {}
   
   //! Reads own parameters from file. <PR> gives access to them,
   //! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
   //! Writes own parameters to IGESWriter
   Standard_EXPORT void WriteOwnParams (const Handle(IGESSolid_VertexList)& ent, IGESData_IGESWriter& IW) const;
   
-  //! Lists the Entities shared by a VertexList <ent>, from
-  //! its specific (own) parameters
-  Standard_EXPORT void OwnShared (const Handle(IGESSolid_VertexList)& ent, Interface_EntityIterator& iter) const;
-  
   //! Returns specific DirChecker
   Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESSolid_VertexList)& ent) const;
   
-  //! Performs Specific Semantic Check
-  Standard_EXPORT void OwnCheck (const Handle(IGESSolid_VertexList)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
-  
-  //! Copies Specific Parameters
-  Standard_EXPORT void OwnCopy (const Handle(IGESSolid_VertexList)& entfrom, const Handle(IGESSolid_VertexList)& entto, Interface_CopyTool& TC) const;
-  
   //! Dump of Specific Parameters
   Standard_EXPORT void OwnDump (const Handle(IGESSolid_VertexList)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_ToolVertexList_HeaderFile
index bf07535bb8e09c261500a6a5b4c098c11a0d0f0d..32eb582d2db8f333af78dbeb3004333dd008cb76 100644 (file)
 #include <IGESGeom_Direction.hxx>
 #include <IGESGeom_Point.hxx>
 #include <IGESSolid_ToroidalSurface.hxx>
-#include <Standard_Type.hxx>
+#include <Interface_EntityIterator.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESSolid_ToroidalSurface,IGESData_IGESEntity)
 
-IGESSolid_ToroidalSurface::IGESSolid_ToroidalSurface ()    {  }
-
-
-    void  IGESSolid_ToroidalSurface::Init
+void IGESSolid_ToroidalSurface::Init
   (const Handle(IGESGeom_Point)& aCenter,
    const Handle(IGESGeom_Direction)& anAxis,
    const Standard_Real majRadius, const Standard_Real minRadius,
@@ -42,43 +39,31 @@ IGESSolid_ToroidalSurface::IGESSolid_ToroidalSurface ()    {  }
   InitTypeAndForm(198, (theRefDir.IsNull() ? 0 : 1) );
 }
 
-    Handle(IGESGeom_Point)  IGESSolid_ToroidalSurface::Center () const
+gp_Pnt IGESSolid_ToroidalSurface::TransformedCenter () const
 {
-  return theCenter;
-}
+  if (!HasTransf())
+    return theCenter->Value();
 
-    gp_Pnt  IGESSolid_ToroidalSurface::TransformedCenter () const
-{
-  if (!HasTransf()) return theCenter->Value();
-  else
-    {
-      gp_XYZ tmp = theCenter->Value().XYZ();
-      Location().Transforms(tmp);
-      return gp_Pnt(tmp);
-    }
-}
-
-    Handle(IGESGeom_Direction)  IGESSolid_ToroidalSurface::Axis () const
-{
-  return theAxis;
-}
-
-    Standard_Real  IGESSolid_ToroidalSurface::MajorRadius () const
-{
-  return theMajorRadius;
-}
-
-    Standard_Real  IGESSolid_ToroidalSurface::MinorRadius () const
-{
-  return theMinorRadius;
+  gp_XYZ tmp = theCenter->Value().XYZ();
+  Location().Transforms(tmp);
+  return gp_Pnt(tmp);
 }
 
-    Handle(IGESGeom_Direction)  IGESSolid_ToroidalSurface::ReferenceDir () const
+void IGESSolid_ToroidalSurface::OwnShared(Interface_EntityIterator &theIter) const
 {
-  return theRefDir;
+  theIter.GetOneItem(Center());
+  theIter.GetOneItem(Axis());
+  theIter.GetOneItem(ReferenceDir());
 }
 
-    Standard_Boolean  IGESSolid_ToroidalSurface::IsParametrised () const
+void IGESSolid_ToroidalSurface::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
 {
-  return !(theRefDir.IsNull());
+  if (MajorRadius() <= 0.0)
+    theCheck->AddFail("Major Radius : Not Positive");
+  if (MinorRadius() <= 0.0)
+    theCheck->AddFail("Minor Radius : Not Positive");
+  if (MinorRadius() >= MajorRadius())
+    theCheck->AddFail("Minor Radius : Value not < Major radius");
+  const Standard_Integer fn = (IsParametrised()? 1 : 0);
+  if (fn != FormNumber()) theCheck->AddFail("Parametrised Status Mismatches with Form Number");
 }
index 0f8dd539b5d297e99851e2bcd75e264f4b3de897..c3f17b2367b7b3051a44d934ca7d0f6cdc508b9b 100644 (file)
 #ifndef _IGESSolid_ToroidalSurface_HeaderFile
 #define _IGESSolid_ToroidalSurface_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
-#include <Standard_Real.hxx>
 #include <IGESData_IGESEntity.hxx>
-#include <Standard_Boolean.hxx>
 class IGESGeom_Point;
 class IGESGeom_Direction;
 class gp_Pnt;
@@ -38,11 +33,9 @@ DEFINE_STANDARD_HANDLE(IGESSolid_ToroidalSurface, IGESData_IGESEntity)
 //! parametrised surface a reference direction is provided.
 class IGESSolid_ToroidalSurface : public IGESData_IGESEntity
 {
+ public:
 
-public:
-
-  
-  Standard_EXPORT IGESSolid_ToroidalSurface();
+  IGESSolid_ToroidalSurface() {}
   
   //! This method is used to set the fields of the class
   //! ToroidalSurface
@@ -55,54 +48,41 @@ public:
   Standard_EXPORT void Init (const Handle(IGESGeom_Point)& aCenter, const Handle(IGESGeom_Direction)& anAxis, const Standard_Real majRadius, const Standard_Real minRadius, const Handle(IGESGeom_Direction)& Refdir);
   
   //! returns the center point coordinates of the surface
-  Standard_EXPORT Handle(IGESGeom_Point) Center() const;
+  const Handle(IGESGeom_Point) & Center() const { return theCenter; }
   
   //! returns the center point coordinates of the surface
   //! after applying TransformationMatrix
   Standard_EXPORT gp_Pnt TransformedCenter() const;
   
   //! returns the direction of the axis
-  Standard_EXPORT Handle(IGESGeom_Direction) Axis() const;
-  
+  const Handle(IGESGeom_Direction) & Axis() const { return theAxis; }
+
   //! returns the major radius of the surface
-  Standard_EXPORT Standard_Real MajorRadius() const;
-  
+  Standard_Real MajorRadius() const { return theMajorRadius; }
+
   //! returns the minor radius of the surface
-  Standard_EXPORT Standard_Real MinorRadius() const;
-  
+  Standard_Real MinorRadius() const { return theMinorRadius; }
+
   //! returns the reference direction (parametrised surface)
   //! Null is returned if the surface is not parametrised
-  Standard_EXPORT Handle(IGESGeom_Direction) ReferenceDir() const;
-  
-  //! Returns True if the surface is parametrised, else False
-  Standard_EXPORT Standard_Boolean IsParametrised() const;
+  const Handle(IGESGeom_Direction) & ReferenceDir() const { return theRefDir; }
 
+  //! Returns True if the surface is parametrised, else False
+  Standard_Boolean IsParametrised() const { return !(theRefDir.IsNull()); }
 
+  Standard_EXPORT virtual void OwnShared(Interface_EntityIterator &theIter) const Standard_OVERRIDE;
 
+  Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
 
   DEFINE_STANDARD_RTTIEXT(IGESSolid_ToroidalSurface,IGESData_IGESEntity)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   Handle(IGESGeom_Point) theCenter;
   Handle(IGESGeom_Direction) theAxis;
   Standard_Real theMajorRadius;
   Standard_Real theMinorRadius;
   Handle(IGESGeom_Direction) theRefDir;
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_ToroidalSurface_HeaderFile
index f2490cbc26750d5ee20ac55fdd4ecb26d85dfe07..0f0863636912ec40c848186f062068d19f644fea 100644 (file)
 #include <gp_Dir.hxx>
 #include <gp_GTrsf.hxx>
 #include <gp_Pnt.hxx>
-#include <gp_XYZ.hxx>
 #include <IGESSolid_Torus.hxx>
-#include <Standard_Type.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESSolid_Torus,IGESData_IGESEntity)
 
-IGESSolid_Torus::IGESSolid_Torus ()    {  }
-
-
-    void  IGESSolid_Torus::Init
+void IGESSolid_Torus::Init
   (const Standard_Real R1,    const Standard_Real R2,
    const gp_XYZ&       Point, const gp_XYZ&       Axisdir)
 {
@@ -39,46 +34,44 @@ IGESSolid_Torus::IGESSolid_Torus ()    {  }
   InitTypeAndForm(160,0);
 }
 
-    Standard_Real  IGESSolid_Torus::MajorRadius () const
+gp_Pnt IGESSolid_Torus::AxisPoint () const
 {
-  return theR1;
+  return gp_Pnt(thePoint);
 }
 
-    Standard_Real  IGESSolid_Torus::DiscRadius () const
+gp_Pnt IGESSolid_Torus::TransformedAxisPoint () const
 {
-  return theR2;
-}
+  if (!HasTransf())
+    return gp_Pnt(thePoint);
 
-    gp_Pnt  IGESSolid_Torus::AxisPoint () const
-{
-  return gp_Pnt(thePoint);
+  gp_XYZ pnt = thePoint;
+  Location().Transforms(pnt);
+  return gp_Pnt(pnt);
 }
 
-    gp_Pnt  IGESSolid_Torus::TransformedAxisPoint () const
+gp_Dir IGESSolid_Torus::Axis () const
 {
-  if (!HasTransf()) return gp_Pnt(thePoint);
-  else
-    {
-      gp_XYZ pnt = thePoint;
-      Location().Transforms(pnt);
-      return gp_Pnt(pnt);
-    }
+  return gp_Dir(theAxis);
 }
 
-    gp_Dir  IGESSolid_Torus::Axis () const
+gp_Dir IGESSolid_Torus::TransformedAxis () const
 {
-  return gp_Dir(theAxis);
+  if (!HasTransf())
+    return gp_Dir(theAxis);
+
+  gp_XYZ pnt = theAxis;
+  gp_GTrsf loc = Location();
+  loc.SetTranslationPart(gp_XYZ(0.,0.,0.));
+  loc.Transforms(pnt);
+  return gp_Dir(pnt);
 }
 
-    gp_Dir  IGESSolid_Torus::TransformedAxis () const
+void IGESSolid_Torus::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
 {
-  if (!HasTransf()) return gp_Dir(theAxis);
-  else
-    {
-      gp_XYZ pnt = theAxis;
-      gp_GTrsf loc = Location();
-      loc.SetTranslationPart(gp_XYZ(0.,0.,0.));
-      loc.Transforms(pnt);
-      return gp_Dir(pnt);
-    }
+  if (MajorRadius() <= 0.0)
+    theCheck->AddFail("Radius of revolution : Not Positive");
+  if (DiscRadius() <= 0.0)
+    theCheck->AddFail("Radius of disc : Not Positive");
+  if (DiscRadius() >= MajorRadius())
+    theCheck->AddFail("Radius of disc : is not Less than Radius of revolution");
 }
index a43e359c1a858166ebbd77bf3d2a3260f693b93a..1ba862a6f50e909175bcebe067bd0e8428c28021 100644 (file)
 #ifndef _IGESSolid_Torus_HeaderFile
 #define _IGESSolid_Torus_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
-#include <Standard_Real.hxx>
 #include <gp_XYZ.hxx>
 #include <IGESData_IGESEntity.hxx>
-class gp_XYZ;
 class gp_Pnt;
 class gp_Dir;
 
@@ -37,11 +32,9 @@ DEFINE_STANDARD_HANDLE(IGESSolid_Torus, IGESData_IGESEntity)
 //! about a specified coplanar axis.
 class IGESSolid_Torus : public IGESData_IGESEntity
 {
+ public:
 
-public:
-
-  
-  Standard_EXPORT IGESSolid_Torus();
+  IGESSolid_Torus() {}
   
   //! This method is used to set the fields of the class Torus
   //! - R1     : distance from center of torus to center
@@ -53,11 +46,11 @@ public:
   
   //! returns the distance from the center of torus to the center of
   //! the disc to be revolved
-  Standard_EXPORT Standard_Real MajorRadius() const;
-  
+  Standard_Real MajorRadius() const { return theR1; }
+
   //! returns the radius of the disc to be revolved
-  Standard_EXPORT Standard_Real DiscRadius() const;
-  
+  Standard_Real DiscRadius() const { return theR2; }
+
   //! returns the center of torus
   Standard_EXPORT gp_Pnt AxisPoint() const;
   
@@ -70,31 +63,16 @@ public:
   //! returns direction of the axis after applying TransformationMatrix
   Standard_EXPORT gp_Dir TransformedAxis() const;
 
-
-
+  Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
 
   DEFINE_STANDARD_RTTIEXT(IGESSolid_Torus,IGESData_IGESEntity)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   Standard_Real theR1;
   Standard_Real theR2;
   gp_XYZ thePoint;
   gp_XYZ theAxis;
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_Torus_HeaderFile
index fdc89cfc76d8eb4469f89a194d29ab67176409c5..ada57ad069a4adef96bfda4f763b3321d9a422b3 100644 (file)
 #include <IGESSolid_VertexList.hxx>
 #include <Standard_DimensionMismatch.hxx>
 #include <Standard_OutOfRange.hxx>
-#include <Standard_Type.hxx>
+#include <Message_Msg.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESSolid_VertexList,IGESData_IGESEntity)
 
-IGESSolid_VertexList::IGESSolid_VertexList ()    {  }
-
-
-    void  IGESSolid_VertexList::Init
+void IGESSolid_VertexList::Init
   (const Handle(TColgp_HArray1OfXYZ)& Vertices)
 {
   if (Vertices.IsNull() || Vertices->Lower() != 1)
@@ -36,12 +33,20 @@ IGESSolid_VertexList::IGESSolid_VertexList ()    {  }
   InitTypeAndForm(502,1);
 }
 
-    Standard_Integer  IGESSolid_VertexList::NbVertices () const
+Standard_Integer IGESSolid_VertexList::NbVertices () const
 {
   return (theVertices.IsNull() ? 0 : theVertices->Length());
 }
 
-    gp_Pnt  IGESSolid_VertexList::Vertex (const Standard_Integer Index) const
+gp_Pnt IGESSolid_VertexList::Vertex (const Standard_Integer Index) const
 {
   return gp_Pnt(theVertices->Value(Index));
 }
+
+void IGESSolid_VertexList::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
+{
+  if (NbVertices() <= 0) {
+    Message_Msg Msg182("XSTEP_182");
+    theCheck->SendFail(Msg182);
+  }
+}
index d8f0ed8d944bb427353455a9c03b9c3ed9064471..aafe0cbdc96d6d072832258d4f4bf83d6ff9281c 100644 (file)
 #ifndef _IGESSolid_VertexList_HeaderFile
 #define _IGESSolid_VertexList_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
 #include <TColgp_HArray1OfXYZ.hxx>
 #include <IGESData_IGESEntity.hxx>
-#include <Standard_Integer.hxx>
-class Standard_OutOfRange;
 class gp_Pnt;
 
 
@@ -37,11 +32,9 @@ DEFINE_STANDARD_HANDLE(IGESSolid_VertexList, IGESData_IGESEntity)
 //! It contains one or more vertices.
 class IGESSolid_VertexList : public IGESData_IGESEntity
 {
+ public:
 
-public:
-
-  
-  Standard_EXPORT IGESSolid_VertexList();
+  IGESSolid_VertexList() {}
   
   //! This method is used to set the fields of the class
   //! VertexList
@@ -55,28 +48,13 @@ public:
   //! raises exception if num  <= 0 or num > NbVertices()
   Standard_EXPORT gp_Pnt Vertex (const Standard_Integer num) const;
 
-
-
+  Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
 
   DEFINE_STANDARD_RTTIEXT(IGESSolid_VertexList,IGESData_IGESEntity)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   Handle(TColgp_HArray1OfXYZ) theVertices;
-
-
 };
 
-
-
-
-
-
-
 #endif // _IGESSolid_VertexList_HeaderFile
index c464c83316828ee96d09d60b3e009baecd238a4d..64735ec5163e993138fb2f96a0c18c433f4f4bbe 100644 (file)
 #include <BRepLib.hxx>
 #include <BRepTools_Modifier.hxx>
 #include <gp_Trsf.hxx>
-#include <IGESAppli.hxx>
-#include <IGESAppli_Protocol.hxx>
-#include <IGESData_FileProtocol.hxx>
 #include <IGESData_GlobalSection.hxx>
 #include <IGESData_IGESEntity.hxx>
 #include <IGESData_IGESModel.hxx>
 #include <IGESFile_Read.hxx>
-#include <IGESSolid.hxx>
-#include <IGESSolid_Protocol.hxx>
+#include <IGESControl_Controller.hxx>
 #include <IGESToBRep.hxx>
 #include <IGESToBRep_Actor.hxx>
 #include <IGESToBRep_CurveAndSurface.hxx>
@@ -64,9 +60,6 @@
 #else
 #include <errno.h>
 #endif
-//extern int errno;
-
-static Handle(IGESData_FileProtocol) protocol;
 
 
 //=======================================================================
@@ -76,13 +69,10 @@ static Handle(IGESData_FileProtocol) protocol;
 
 IGESToBRep_Reader::IGESToBRep_Reader ()
 {
+  IGESControl_Controller::Init();
+  IGESControl_Controller::DefineProtocol();
+
   theDone = Standard_False;
-  if (protocol.IsNull()) {
-    IGESAppli::Init();  IGESSolid::Init();
-    protocol = new IGESData_FileProtocol;
-    protocol->Add(IGESAppli::Protocol());
-    protocol->Add(IGESSolid::Protocol());
-  }
   theActor = new IGESToBRep_Actor;
   theProc = new Transfer_TransientProcess;
 }
@@ -111,6 +101,7 @@ Standard_Integer IGESToBRep_Reader::LoadFile (const Standard_CString filename)
 
   OSD_Timer c; c.Reset(); c.Start();    
   char *pfilename=(char *)filename;
+  const Handle(IGESData_Protocol) &protocol = IGESControl_Controller::DefineProtocol();
   Standard_Integer StatusFile = IGESFile_Read(pfilename,model,protocol);
   if (StatusFile != 0) {
     // Sending of message : IGES file opening error 
@@ -214,6 +205,7 @@ void IGESToBRep_Reader::SetModel (const Handle(IGESData_IGESModel)& model)
 
 Standard_Boolean  IGESToBRep_Reader::Check (const Standard_Boolean withprint) const
 {
+  const Handle(IGESData_Protocol) &protocol = IGESControl_Controller::DefineProtocol();
   Interface_CheckTool cht (theModel,protocol);
   Interface_CheckIterator chl = cht.CompleteCheckList();
   if (withprint && !theProc.IsNull()) 
@@ -281,7 +273,7 @@ void  IGESToBRep_Reader::TransferRoots (const Standard_Boolean onlyvisible)
   theProc->SetModel (theModel);
   theProc->SetActor (theActor);
 
-  const Handle(Interface_Protocol) aProtocol = protocol; // to avoid ambiguity
+  const Handle(Interface_Protocol) aProtocol = IGESControl_Controller::DefineProtocol();
   Interface_ShareFlags SH (theModel, aProtocol);
   Standard_Integer nb = theModel->NbEntities();
   ShapeExtend_Explorer SBE;
index cc0c7289ed0df0097cc012599cc033b275942fb5..42ffbfc9e1dc7e680f8510ea2b4d32a563c5eca3 100755 (executable)
@@ -12,12 +12,6 @@ Interface_CheckIterator.hxx
 Interface_CheckStatus.hxx
 Interface_CheckTool.cxx
 Interface_CheckTool.hxx
-Interface_CopyControl.cxx
-Interface_CopyControl.hxx
-Interface_CopyMap.cxx
-Interface_CopyMap.hxx
-Interface_CopyTool.cxx
-Interface_CopyTool.hxx
 Interface_DataMapIteratorOfDataMapOfTransientInteger.hxx
 Interface_DataMapOfTransientInteger.hxx
 Interface_DataState.hxx
diff --git a/src/Interface/Interface_CopyControl.cxx b/src/Interface/Interface_CopyControl.cxx
deleted file mode 100644 (file)
index 6e34d37..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-// Copyright (c) 1999-2014 OPEN CASCADE SAS
-//
-// This file is part of Open CASCADE Technology software library.
-//
-// This library is free software; you can redistribute it and/or modify it under
-// the terms of the GNU Lesser General Public License version 2.1 as published
-// by the Free Software Foundation, with special exception defined in the file
-// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-// distribution for complete text of the license and disclaimer of any warranty.
-//
-// Alternatively, this file may be used under the terms of Open CASCADE
-// commercial license or contractual agreement.
-
-
-#include <Interface_CopyControl.hxx>
-#include <Interface_InterfaceError.hxx>
-#include <Standard_Transient.hxx>
-#include <Standard_Type.hxx>
-
-IMPLEMENT_STANDARD_RTTIEXT(Interface_CopyControl,MMgt_TShared)
\ No newline at end of file
diff --git a/src/Interface/Interface_CopyControl.hxx b/src/Interface/Interface_CopyControl.hxx
deleted file mode 100644 (file)
index 666de64..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-// Created on: 1993-04-08
-// Created by: Christian CAILLET
-// Copyright (c) 1993-1999 Matra Datavision
-// Copyright (c) 1999-2014 OPEN CASCADE SAS
-//
-// This file is part of Open CASCADE Technology software library.
-//
-// This library is free software; you can redistribute it and/or modify it under
-// the terms of the GNU Lesser General Public License version 2.1 as published
-// by the Free Software Foundation, with special exception defined in the file
-// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-// distribution for complete text of the license and disclaimer of any warranty.
-//
-// Alternatively, this file may be used under the terms of Open CASCADE
-// commercial license or contractual agreement.
-
-#ifndef _Interface_CopyControl_HeaderFile
-#define _Interface_CopyControl_HeaderFile
-
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
-#include <MMgt_TShared.hxx>
-#include <Standard_Boolean.hxx>
-class Interface_InterfaceError;
-class Standard_Transient;
-
-
-class Interface_CopyControl;
-DEFINE_STANDARD_HANDLE(Interface_CopyControl, MMgt_TShared)
-
-//! This deferred class describes the services required by
-//! CopyTool to work. They are very simple and correspond
-//! basically to the management of an indexed map.
-//! But they can be provided by various classes which can
-//! control a Transfer. Each Starting Entity have at most
-//! one Result (Mapping one-one)
-class Interface_CopyControl : public MMgt_TShared
-{
-
-public:
-
-  
-  //! Clears List of Copy Results. Gets Ready to begin another Copy
-  //! Process.
-  Standard_EXPORT virtual void Clear() = 0;
-  
-  //! Bind a Result to a Starting Entity identified by its Number
-  Standard_EXPORT virtual void Bind (const Handle(Standard_Transient)& ent, const Handle(Standard_Transient)& res) = 0;
-  
-  //! Searches for the Result bound to a Startingf Entity identified
-  //! by its Number.
-  //! If Found, returns True and fills <res>
-  //! Else, returns False and nullifies <res>
-  Standard_EXPORT virtual Standard_Boolean Search (const Handle(Standard_Transient)& ent, Handle(Standard_Transient)& res) const = 0;
-
-
-
-
-  DEFINE_STANDARD_RTTIEXT(Interface_CopyControl,MMgt_TShared)
-
-protected:
-
-
-
-
-private:
-
-
-
-
-};
-
-
-
-
-
-
-
-#endif // _Interface_CopyControl_HeaderFile
diff --git a/src/Interface/Interface_CopyMap.cxx b/src/Interface/Interface_CopyMap.cxx
deleted file mode 100644 (file)
index 803a4ac..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright (c) 1999-2014 OPEN CASCADE SAS
-//
-// This file is part of Open CASCADE Technology software library.
-//
-// This library is free software; you can redistribute it and/or modify it under
-// the terms of the GNU Lesser General Public License version 2.1 as published
-// by the Free Software Foundation, with special exception defined in the file
-// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-// distribution for complete text of the license and disclaimer of any warranty.
-//
-// Alternatively, this file may be used under the terms of Open CASCADE
-// commercial license or contractual agreement.
-
-
-#include <Interface_CopyMap.hxx>
-#include <Interface_InterfaceError.hxx>
-#include <Interface_InterfaceModel.hxx>
-#include <Standard_Transient.hxx>
-#include <Standard_Type.hxx>
-
-IMPLEMENT_STANDARD_RTTIEXT(Interface_CopyMap,Interface_CopyControl)
-
-//  CopyMap : rien de plus qu une Map passive
-Interface_CopyMap::Interface_CopyMap
-  (const Handle(Interface_InterfaceModel)& amodel)
-    : theres (0,amodel->NbEntities())
-      {  themod = amodel;  }
-
-
-    void Interface_CopyMap::Clear ()
-{
-  Standard_Integer nb = theres.Upper();
-  Handle(Standard_Transient) bid;  // Null
-  for (Standard_Integer i = 1; i <= nb; i ++) theres.SetValue(i,bid);
-}
-
-    Handle(Interface_InterfaceModel) Interface_CopyMap::Model () const
-      {  return themod;  }
-
-    void Interface_CopyMap::Bind
-  (const Handle(Standard_Transient)& ent,
-   const Handle(Standard_Transient)& res)
-{
-  Standard_Integer num = themod->Number(ent);
-  if (num == 0 || num > theres.Upper()) Interface_InterfaceError::Raise
-    ("CopyMap : Bind, Starting Entity not issued from Starting Model");
-  if (!theres.Value(num).IsNull()) Interface_InterfaceError::Raise
-    ("CopyMap : Bind, Starting Entity already bound");
-  theres.SetValue(num,res);
-}
-
-
-    Standard_Boolean Interface_CopyMap::Search
-  (const Handle(Standard_Transient)& ent,
-   Handle(Standard_Transient)& res) const
-{
-  Standard_Integer num = themod->Number(ent);
-  if (num == 0) return Standard_False;
-  res = theres.Value(num);
-  return (!res.IsNull());
-}
diff --git a/src/Interface/Interface_CopyMap.hxx b/src/Interface/Interface_CopyMap.hxx
deleted file mode 100644 (file)
index a3b838f..0000000
+++ /dev/null
@@ -1,88 +0,0 @@
-// Created on: 1993-03-16
-// Created by: Christian CAILLET
-// Copyright (c) 1993-1999 Matra Datavision
-// Copyright (c) 1999-2014 OPEN CASCADE SAS
-//
-// This file is part of Open CASCADE Technology software library.
-//
-// This library is free software; you can redistribute it and/or modify it under
-// the terms of the GNU Lesser General Public License version 2.1 as published
-// by the Free Software Foundation, with special exception defined in the file
-// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-// distribution for complete text of the license and disclaimer of any warranty.
-//
-// Alternatively, this file may be used under the terms of Open CASCADE
-// commercial license or contractual agreement.
-
-#ifndef _Interface_CopyMap_HeaderFile
-#define _Interface_CopyMap_HeaderFile
-
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
-#include <TColStd_Array1OfTransient.hxx>
-#include <Interface_CopyControl.hxx>
-#include <Standard_Boolean.hxx>
-class Interface_InterfaceModel;
-class Interface_InterfaceError;
-class Standard_Transient;
-
-
-class Interface_CopyMap;
-DEFINE_STANDARD_HANDLE(Interface_CopyMap, Interface_CopyControl)
-
-//! Manages a Map for the need of single Transfers, such as Copies
-//! In such transfer, Starting Entities are read from a unique
-//! Starting Model, and each transferred Entity is bound to one
-//! and only one Result, which cannot be changed later.
-class Interface_CopyMap : public Interface_CopyControl
-{
-
-public:
-
-  
-  //! Creates a CopyMap adapted to work from a Model
-  Standard_EXPORT Interface_CopyMap(const Handle(Interface_InterfaceModel)& amodel);
-  
-  //! Clears Transfer List. Gets Ready to begin another Transfer
-  Standard_EXPORT void Clear() Standard_OVERRIDE;
-  
-  //! Returns the InterfaceModel used at Creation time
-  Standard_EXPORT Handle(Interface_InterfaceModel) Model() const;
-  
-  //! Binds a Starting Entity identified by its Number <num> in the
-  //! Starting Model, to a Result of Transfer <res>
-  Standard_EXPORT void Bind (const Handle(Standard_Transient)& ent, const Handle(Standard_Transient)& res) Standard_OVERRIDE;
-  
-  //! Search for the result of a Starting Object (i.e. an Entity,
-  //! identified by its Number <num> in the Starting Model)
-  //! Returns True  if a  Result is Bound (and fills <res>)
-  //! Returns False if no result is Bound (and nullifies <res>)
-  Standard_EXPORT Standard_Boolean Search (const Handle(Standard_Transient)& ent, Handle(Standard_Transient)& res) const Standard_OVERRIDE;
-
-
-
-
-  DEFINE_STANDARD_RTTIEXT(Interface_CopyMap,Interface_CopyControl)
-
-protected:
-
-
-
-
-private:
-
-
-  Handle(Interface_InterfaceModel) themod;
-  TColStd_Array1OfTransient theres;
-
-
-};
-
-
-
-
-
-
-
-#endif // _Interface_CopyMap_HeaderFile
diff --git a/src/Interface/Interface_CopyTool.cxx b/src/Interface/Interface_CopyTool.cxx
deleted file mode 100644 (file)
index 9c36b0a..0000000
+++ /dev/null
@@ -1,314 +0,0 @@
-// Copyright (c) 1999-2014 OPEN CASCADE SAS
-//
-// This file is part of Open CASCADE Technology software library.
-//
-// This library is free software; you can redistribute it and/or modify it under
-// the terms of the GNU Lesser General Public License version 2.1 as published
-// by the Free Software Foundation, with special exception defined in the file
-// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-// distribution for complete text of the license and disclaimer of any warranty.
-//
-// Alternatively, this file may be used under the terms of Open CASCADE
-// commercial license or contractual agreement.
-
-
-#include <Interface_CopyControl.hxx>
-#include <Interface_CopyMap.hxx>
-#include <Interface_CopyTool.hxx>
-#include <Interface_EntityIterator.hxx>
-#include <Interface_GeneralLib.hxx>
-#include <Interface_GeneralModule.hxx>
-#include <Interface_InterfaceError.hxx>
-#include <Interface_InterfaceModel.hxx>
-#include <Interface_Protocol.hxx>
-#include <Interface_ReportEntity.hxx>
-#include <Standard_Transient.hxx>
-#include <TCollection_HAsciiString.hxx>
-
-// Se souvenir qu une version plus riche de CopyTool existe : c est
-// TransferDispatch (package Transfer). Cette classe offre beaucoup plus de
-// possibilite (parametrage des actions, gestion du Mapping ...)
-// Mais le principe (transfert en 2 passes) reste le meme, a savoir :
-// Passe 1 normale : les entites a transferer sont designees, elles entrainent
-// leurs sous-references vraies
-// Passe 2 : une fois tous les transferts faits, les relations "Imply" sont
-// mises, pour les entites designees ET QUI ONT ETE AUSSI TRANSFEREES, la
-// relation est reconduite (pas de nouveau Share)
-//  #####################################################################
-//  ....                        CONSTRUCTEURS                        ....
-Interface_CopyTool::Interface_CopyTool
-  (const Handle(Interface_InterfaceModel)& amodel,
-   const Interface_GeneralLib& lib)
-    : thelib (lib) , thelst (amodel->NbEntities())
-{
-  thelst.Init(Standard_False);
-  themod = amodel;
-  themap = new Interface_CopyMap (amodel);
-  therep = new Interface_CopyMap (amodel);
-  thelev = 0;  theimp = Standard_False;
-}
-
-    Interface_CopyTool::Interface_CopyTool
-  (const Handle(Interface_InterfaceModel)& amodel,
-   const Handle(Interface_Protocol)& protocol)
-    : thelib (protocol) , thelst (amodel->NbEntities())
-{
-  thelst.Init(Standard_False);
-  themod = amodel;
-  themap = new Interface_CopyMap (amodel);
-  therep = new Interface_CopyMap (amodel);
-  thelev = 0;  theimp = Standard_False;
-}
-
-    Handle(Interface_InterfaceModel)  Interface_CopyTool::Model () const
-      {  return themod;  }
-
-    void Interface_CopyTool::SetControl
-  (const Handle(Interface_CopyControl)& othermap)
-      {  themap = othermap;  }
-
-    Handle(Interface_CopyControl)  Interface_CopyTool::Control () const
-      {  return themap;  }
-
-
-//  #####################################################################
-//  ....                    Actions Individuelles                    ....
-
-    void Interface_CopyTool::Clear ()
-{
-  themap->Clear();
-  therep->Clear();
-  thelev = 0;  theimp = Standard_False;
-  therts.Clear();
-  ClearLastFlags();
-}
-
-    Standard_Boolean Interface_CopyTool::NewVoid
-  (const Handle(Standard_Transient)& entfrom,
-   Handle(Standard_Transient)& entto)
-{
-  if (entfrom == theent) {
-    if (themdu.IsNull()) return Standard_False;
-    return themdu->NewVoid(theCN,entto);
-  }
-  theent = entfrom;
-  Standard_Boolean res = thelib.Select (entfrom,themdu,theCN);
-  if (res)   res   = themdu->NewVoid (theCN,entto);
-  if (!res)  res   = themdu->NewCopiedCase (theCN,entfrom,entto,*this);
-  return res;
-}
-
-
-    Standard_Boolean Interface_CopyTool::Copy
-  (const Handle(Standard_Transient)& entfrom,
-   Handle(Standard_Transient)& entto,
-   const Standard_Boolean mapped, const Standard_Boolean errstat)
-{
-  Standard_Boolean res = Standard_True;
-  if (entfrom == theent) {
-    if (themdu.IsNull()) res = Standard_False;
-  } else {
-    theent = entfrom;
-    res = thelib.Select(entfrom,themdu,theCN);
-  }
-  if (!res) {
-//  Built-in :
-    if (entfrom.IsNull()) return res;
-    if (entfrom->DynamicType() == STANDARD_TYPE(TCollection_HAsciiString)) {
-      entto = new TCollection_HAsciiString
-       ( Handle(TCollection_HAsciiString)::DownCast(entfrom)->ToCString() );
-      res = Standard_True;
-    }
-    return res;
-  }
-//  On cree l Entite vide (NewVoid), la Copie reste a faire
-  res = NewVoid(entfrom,entto);
-  if (mapped) themap->Bind (entfrom,entto);    // Mapper avant de continuer ...
-
-//  A present, on effectue la Copie (selon cas; si ShallowCopy ne suffit pas :
-//  c est <themdu> qui decide)
-
-//    Une Entite en Erreur n est pas copiee (pas de sens et c est risque ...)
-//    Cependant, elle est "Copiee a Vide (NewVoid)" donc referencable
-  if (!errstat)    themdu->CopyCase(theCN,entfrom,entto,*this);
-  return res;
-}
-
-    void  Interface_CopyTool::Implied
-  (const Handle(Standard_Transient)& entfrom,
-   const Handle(Standard_Transient)& entto)
-{
-  Handle(Interface_GeneralModule) module;
-  Standard_Integer CN;
-  if (thelib.Select(entfrom,module,CN))
-    module->RenewImpliedCase(CN,entfrom,entto,*this);
-}
-
-
-//  ....                Alimentation de la Map                ....
-
-    Handle(Standard_Transient) Interface_CopyTool::Transferred
-  (const Handle(Standard_Transient)& ent)
-{
-  Handle(Standard_Transient) res;
-  if (ent.IsNull()) return res;    // Copie d un Null : tres simple ...
-  Standard_Integer nument = themod->Number(ent);
-
-//  <nument> == 0 -> Peut etre une sous-partie non partagee ...
-//  On accepte mais on se protege contre un bouclage
-  if (nument == 0 && thelev > 100) Interface_InterfaceError::Raise
-    ("CopyTool : Transferred, Entity is not contained in Starting Model");
-  if (!themap->Search(ent,res)) {       // deja transfere ? sinon, le faire
-
-//  On opere la Copie (enfin, on tente)
-//  En cas d echec, rien n est enregistre
-    if (!Copy(ent,res, (nument != 0), themod->IsRedefinedContent(nument) ))
-      return res;
-
-    thelev ++;
-    if (nument != 0) thelst.SetTrue (nument);
-    Handle(Interface_ReportEntity) rep;
-    if (nument != 0) rep = themod->ReportEntity (nument);
-    if (!rep.IsNull()) {
-//  ATTENTION ATTENTION, si ReportEntity : Copier aussi Content et refaire une
-//  ReportEntity avec les termes initiaux
-      if (rep->IsUnknown()) therep->Bind
-       (ent, new Interface_ReportEntity(res));
-      else {
-       Handle(Standard_Transient) contfrom, contto;
-       contfrom = rep->Content();
-       Handle(Interface_ReportEntity) repto =
-         new Interface_ReportEntity (rep->Check(),res);
-       if (!contfrom.IsNull()) {
-         if (contfrom == ent) contto = res;
-         else  Copy (contfrom,contto, themod->Contains(contfrom), Standard_False);
-         repto->SetContent (contto);
-       }
-       therep->Bind (ent,repto);
-      }
-    }
-//    Gerer le niveau d imbrication (0 = racine du transfert)
-    thelev --;
-  }
-  if (thelev == 0 && nument > 0) therts.Append(nument);
-  return res;
-}
-
-    void Interface_CopyTool::Bind
-  (const Handle(Standard_Transient)& ent,
-   const Handle(Standard_Transient)& res)
-{
-  Standard_Integer num = themod->Number(ent);
-  themap->Bind (ent,res);
-  thelst.SetTrue (num);
-}
-
-    Standard_Boolean Interface_CopyTool::Search
-  (const Handle(Standard_Transient)& ent,
-   Handle(Standard_Transient)& res) const
-      {  return themap->Search (ent,res);  }
-
-//  ##    ##    ##    ##    ##    ##    ##    ##    ##    ##    ##    ##    ##
-//                              LastFlag
-
-    void Interface_CopyTool::ClearLastFlags ()
-      {  thelst.Init(Standard_False);  }
-
-    Standard_Integer  Interface_CopyTool::LastCopiedAfter
-  (const Standard_Integer numfrom,
-   Handle(Standard_Transient)& ent, Handle(Standard_Transient)& res) const
-{
-  Standard_Integer nb = thelst.Length();
-  for (Standard_Integer num = numfrom + 1; num <= nb; num ++) {
-    if (thelst.Value(num)) {
-      ent = themod->Value(num);
-      if (themap->Search(ent,res)) return num;
-    }
-  }
-  return 0;
-}
-
-
-//  #########################################################################
-//  ....                        Actions Generales                        ....
-
-    void Interface_CopyTool::TransferEntity
-  (const Handle(Standard_Transient)& ent)
-      {  Handle(Standard_Transient) res = Transferred(ent);  }
-
-    void Interface_CopyTool::RenewImpliedRefs ()
-{
-  if (theimp) return;    // deja fait
-  theimp = Standard_True;
-
-//  Transfert Passe 2 : recuperation des relations non "Share" (mais "Imply")
-//  c-a-d portant sur des entites qui ont pu ou non etre transferees
-//  (Et que la 1re passe n a pas copie mais laisse en Null)
-//  N.B. : on devrait interdire de commander des nouveaux transferts ...
-
-  Standard_Integer nb = themod->NbEntities();
-  for (Standard_Integer i = 1; i <= nb; i ++) {
-    Handle(Standard_Transient) ent = themod->Value(i);
-    Handle(Standard_Transient) res;
-    if (!themap->Search(ent,res)) continue;        // entite pas transferee
-//    Reconduction des references "Imply".  Attention, ne pas copier si non chargee
-    Handle(Standard_Transient) aRep;
-    if (!therep->Search(ent,aRep))
-    {
-      Implied (ent,res);
-    }
-    else 
-    {
-      Handle(Interface_ReportEntity) rep = Handle(Interface_ReportEntity)::DownCast (aRep);
-      if (! rep.IsNull() && ! rep->HasNewContent())
-        Implied (ent,res);
-    }
-  }
-}
-
-
-    Interface_EntityIterator Interface_CopyTool::CompleteResult
-  (const Standard_Boolean withreports) const
-{
-  Interface_EntityIterator iter;
-  Standard_Integer nb = themod->NbEntities();
-  for (Standard_Integer i = 1; i <= nb; i ++) {
-    Handle(Standard_Transient) ent = themod->Value(i);
-    Handle(Standard_Transient) res;
-    if (!themap->Search(ent,res)) continue;
-    if (withreports) {
-      Handle(Standard_Transient) rep;
-      if (therep->Search(ent,rep)) res = rep;
-    }
-    iter.GetOneItem(res);
-  }
-  return iter;
-}
-
-    Interface_EntityIterator Interface_CopyTool::RootResult
-  (const Standard_Boolean withreports) const
-{
-  Interface_EntityIterator iter;
-  Standard_Integer nb = therts.Length();
-  for (Standard_Integer i = 1; i <= nb; i ++) {
-    Standard_Integer j = therts.Value(i);
-    Handle(Standard_Transient) ent = themod->Value(j);
-    Handle(Standard_Transient) res;
-    if (!themap->Search(ent,res)) continue;
-    if (withreports) {
-      Handle(Standard_Transient) rep;
-      if (therep->Search(ent,rep)) res = rep;
-    }
-    iter.GetOneItem(res);
-  }
-  return iter;
-}
-
-//=======================================================================
-//function : ~Interface_CopyTool
-//purpose  : Destructor
-//=======================================================================
-
-Interface_CopyTool::~Interface_CopyTool()
-{
-}
diff --git a/src/Interface/Interface_CopyTool.hxx b/src/Interface/Interface_CopyTool.hxx
deleted file mode 100644 (file)
index a63d841..0000000
+++ /dev/null
@@ -1,218 +0,0 @@
-// Created on: 1993-02-02
-// Created by: Christian CAILLET
-// Copyright (c) 1993-1999 Matra Datavision
-// Copyright (c) 1999-2014 OPEN CASCADE SAS
-//
-// This file is part of Open CASCADE Technology software library.
-//
-// This library is free software; you can redistribute it and/or modify it under
-// the terms of the GNU Lesser General Public License version 2.1 as published
-// by the Free Software Foundation, with special exception defined in the file
-// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-// distribution for complete text of the license and disclaimer of any warranty.
-//
-// Alternatively, this file may be used under the terms of Open CASCADE
-// commercial license or contractual agreement.
-
-#ifndef _Interface_CopyTool_HeaderFile
-#define _Interface_CopyTool_HeaderFile
-
-#include <Standard.hxx>
-#include <Standard_DefineAlloc.hxx>
-#include <Standard_Handle.hxx>
-
-#include <Interface_BitMap.hxx>
-#include <Interface_GeneralLib.hxx>
-#include <Standard_Integer.hxx>
-#include <TColStd_SequenceOfInteger.hxx>
-#include <Standard_Boolean.hxx>
-class Interface_InterfaceModel;
-class Interface_CopyControl;
-class Interface_CopyMap;
-class Standard_Transient;
-class Interface_GeneralModule;
-class Interface_InterfaceError;
-class Interface_GeneralLib;
-class Interface_Protocol;
-class Interface_EntityIterator;
-
-
-//! Performs Deep Copies of sets of Entities
-//! Allows to perform Copy of Interface Entities from a Model to
-//! another one. Works by calling general services GetFromAnother
-//! and GetImplied.
-//! Uses a CopyMap to bind a unique Result to each Copied Entity
-//!
-//! It is possible to command Copies of Entities (and those they
-//! reference) by call to the General Service Library, or to
-//! enforce results for transfer of some Entities (calling Bind)
-//!
-//! A Same CopyTool can be used for several successive Copies from
-//! the same Model : either by restarting from scratch (e.g. to
-//! copy different parts of a starting Model to several Targets),
-//! or incremental : in that case, it is possible to know what is
-//! the content of the last increment (defined by last call to
-//! ClearLastFlags  and queried by call to LastCopiedAfter)
-//!
-//! Works in two times : first, create the list of copied Entities
-//! second, pushes them to a target Model (manages also Model's
-//! Header) or returns the Result as an Iterator, as desired
-//!
-//! The core action (Copy) works by using ShallowCopy (method
-//! attached to each class) and Copy from GeneralLib (itself using
-//! dedicated tools). It can be redefined for specific actions.
-class Interface_CopyTool 
-{
-public:
-
-  DEFINE_STANDARD_ALLOC
-
-  //! Creates a CopyTool adapted to work from a Model. Works
-  //! with a General Service Library, given as an argument
-  Standard_EXPORT Interface_CopyTool(const Handle(Interface_InterfaceModel)& amodel, const Interface_GeneralLib& lib);
-  
-  //! Same as above, but Library is defined through a Protocol
-  Standard_EXPORT Interface_CopyTool(const Handle(Interface_InterfaceModel)& amodel, const Handle(Interface_Protocol)& protocol);
-  
-  //! Returns the Model on which the CopyTool works
-  Standard_EXPORT Handle(Interface_InterfaceModel) Model() const;
-  
-  //! Changes the Map of Result for another one. This allows to work
-  //! with a more sophisticated Mapping Control than the Standard
-  //! one which is CopyMap (e.g. TransferProcess from Transfer)
-  Standard_EXPORT void SetControl (const Handle(Interface_CopyControl)& othermap);
-  
-  //! Returns the object used for Control
-  Standard_EXPORT Handle(Interface_CopyControl) Control() const;
-  
-  //! Clears Transfer List. Gets Ready to begin another Transfer
-  Standard_EXPORT virtual void Clear();
-  
-  //! Creates the CounterPart of an Entity (by ShallowCopy), Binds
-  //! it, then Copies the content of the former Entity to the other
-  //! one (same Type), by call to the General Service Library
-  //! It may command the Copy of Referenced Entities
-  //! Then, its returns True.
-  //!
-  //! If <mapped> is True, the Map is used to store the Result
-  //! Else, the Result is simply produced : it can be used to Copy
-  //! internal sub-parts of Entities, which are not intended to be
-  //! shared (Strings, Arrays, etc...)
-  //! If <errstat> is True, this means that the Entity is recorded
-  //! in the Model as Erroneous : in this case, the General Service
-  //! for Deep Copy is not called (this could be dangerous) : hence
-  //! the Counter-Part is produced but empty, it can be referenced.
-  //!
-  //! This method does nothing and returns False if the Protocol
-  //! does not recognize <ent>.
-  //! It basically makes a Deep Copy without changing the Types.
-  //! It can be redefined for special uses.
-  Standard_EXPORT virtual Standard_Boolean Copy (const Handle(Standard_Transient)& entfrom, Handle(Standard_Transient)& entto, const Standard_Boolean mapped, const Standard_Boolean errstat);
-  
-  //! Transfers one Entity, if not yet bound to a result
-  //! Remark : For an Entity which is reported in the Starting Model,
-  //! the ReportEntity will also be copied with its Content if it
-  //! has one (at least ShallowCopy; Complete Copy if the Protocol
-  //! recognizes the Content : see method Copy)
-  Standard_EXPORT Handle(Standard_Transient) Transferred (const Handle(Standard_Transient)& ent);
-  
-  //! Defines a Result for the Transfer of a Starting object.
-  //! Used by method Transferred (which performs a normal Copy),
-  //! but can also be called to enforce a result : in the latter
-  //! case, the enforced result must be compatible with the other
-  //! Transfers which are performed
-  Standard_EXPORT void Bind (const Handle(Standard_Transient)& ent, const Handle(Standard_Transient)& res);
-  
-  //! Search for the result of a Starting Object (i.e. an Entity)
-  //! Returns True  if a  Result is Bound (and fills "result")
-  //! Returns False if no result is Bound
-  Standard_EXPORT Standard_Boolean Search (const Handle(Standard_Transient)& ent, Handle(Standard_Transient)& res) const;
-  
-  //! Clears LastFlags only. This allows to know what Entities are
-  //! copied after its call (see method LastCopiedAfter). It can be
-  //! used when copies are done by increments, which must be
-  //! distinghished. ClearLastFlags is also called by Clear.
-  Standard_EXPORT void ClearLastFlags();
-  
-  //! Returns an copied Entity and its Result which were operated
-  //! after last call to ClearLastFlags. It returns the first
-  //! "Last Copied Entity" which Number follows <numfrom>, Zero if
-  //! none. It is used in a loop as follow :
-  //! Integer num = 0;
-  //! while ( (num = CopyTool.LastCopiedAfter(num,ent,res)) ) {
-  //! .. Process Starting <ent> and its Result <res>
-  //! }
-  Standard_EXPORT Standard_Integer LastCopiedAfter (const Standard_Integer numfrom, Handle(Standard_Transient)& ent, Handle(Standard_Transient)& res) const;
-  
-  //! Transfers one Entity and records result into the Transfer List
-  //! Calls method Transferred
-  Standard_EXPORT void TransferEntity (const Handle(Standard_Transient)& ent);
-  
-  //! Renews the Implied References. These References do not involve
-  //! Copying of referenced Entities. For such a Reference, if the
-  //! Entity which defines it AND the referenced Entity are both
-  //! copied, then this Reference is renewed. Else it is deleted in
-  //! the copied Entities.
-  //! Remark : this concerns only some specific references, such as
-  //! "back pointers".
-  Standard_EXPORT void RenewImpliedRefs();
-  
-  //! Returns the complete list of copied Entities
-  //! If <withreports> is given True, the entities which were
-  //! reported in the Starting Model are replaced in the list
-  //! by the copied ReportEntities
-  Standard_EXPORT Interface_EntityIterator CompleteResult (const Standard_Boolean withreports = Standard_False) const;
-  
-  //! Returns the list of Root copied Entities (those which were
-  //! asked for copy by the user of CopyTool, not by copying
-  //! another Entity)
-  Standard_EXPORT Interface_EntityIterator RootResult (const Standard_Boolean withreports = Standard_False) const;
-  Standard_EXPORT virtual ~Interface_CopyTool();
-
-
-
-
-protected:
-
-  
-  //! Creates a new void instance (just created) of the same class
-  //! as <entfrom>. Uses the general service GeneralModule:NewVoid
-  //! Returns True if OK (Recognize has succeeded), False else
-  //! (in such a case, the standard method ShallowCopy is called
-  //! to produce <ento> from <entfrom> : hence it is not void)
-  //!
-  //! No mapping is managed by this method
-  Standard_EXPORT virtual Standard_Boolean NewVoid (const Handle(Standard_Transient)& entfrom, Handle(Standard_Transient)& entto);
-
-
-  Interface_GeneralLib thelib;
-
-
-private:
-
-  
-  //! Renews the Implied References of one already Copied Entity
-  Standard_EXPORT virtual void Implied (const Handle(Standard_Transient)& entfrom, const Handle(Standard_Transient)& entto);
-
-
-  Handle(Interface_InterfaceModel) themod;
-  Handle(Interface_CopyControl) themap;
-  Handle(Interface_CopyMap) therep;
-  Interface_BitMap thelst;
-  Standard_Integer thelev;
-  TColStd_SequenceOfInteger therts;
-  Standard_Boolean theimp;
-  Handle(Standard_Transient) theent;
-  Handle(Interface_GeneralModule) themdu;
-  Standard_Integer theCN;
-
-
-};
-
-
-
-
-
-
-
-#endif // _Interface_CopyTool_HeaderFile
index 65b3c662e6941f11e57a4b423159eb715cde44ae..fcdf413681a4d5c1138fdd82c12c87cb67a57051 100644 (file)
@@ -21,7 +21,6 @@
 #include <Interface_InterfaceMismatch.hxx>
 #include <Interface_InterfaceModel.hxx>
 #include <Interface_Protocol.hxx>
-#include <Interface_ReaderLib.hxx>
 #include <Interface_ReaderModule.hxx>
 #include <Interface_ReportEntity.hxx>
 #include <Message.hxx>
 //purpose  : 
 //=======================================================================
 
-Interface_FileReaderTool::Interface_FileReaderTool ()
-: themessenger(Message::DefaultMessenger()),
+Interface_FileReaderTool::Interface_FileReaderTool (const Handle(Interface_Protocol)& protocol)
+: theglib(protocol),
+  therlib(protocol),
+  themessenger(Message::DefaultMessenger()),
   thetrace(1),
   thenbrep0(0),
   thenbreps(0)
@@ -98,14 +99,13 @@ void Interface_FileReaderTool::SetEntities ()
   for (num = thereader->FindNextRecord(0);  num > 0;
        num = thereader->FindNextRecord(num)) {
     Handle(Standard_Transient) newent;
-    Handle(Interface_Check) ach = new Interface_Check;
-    Standard_Boolean res = Recognize (num,ach,newent);
-    if (!res) newent = theproto->UnknownEntity();
-       else res = ((ach->NbFails() + ach->NbWarnings()) == 0) || newent.IsNull();
+    const Standard_Boolean res = Recognize (num,newent);
     if (!res) {
-      if (thereports.IsNull()) thereports = new TColStd_HArray1OfTransient (1,thereader->NbRecords());
+      newent = theproto->UnknownEntity();
+      if (thereports.IsNull())
+        thereports = new TColStd_HArray1OfTransient (1,thereader->NbRecords());
       thenbreps ++;  thenbrep0 ++;
-      thereports->SetValue (num,new Interface_ReportEntity(ach,newent));
+      thereports->SetValue (num,new Interface_ReportEntity(newent));
     }
     thereader->BindEntity (num,newent);
   }
@@ -119,7 +119,7 @@ void Interface_FileReaderTool::SetEntities ()
 
 void Interface_FileReaderTool::EndRead(const Handle(Interface_InterfaceModel)& )
 {
-}    // par defaut, ne fait rien; redefinissable selon besoin
+}
 
 
 //  ....               (Sa Majeste le) CHARGEMENT DU MODELE               ....
@@ -378,9 +378,6 @@ Handle(Standard_Transient) Interface_FileReaderTool::LoadedEntity (const Standar
 //=======================================================================
 
 Standard_Boolean Interface_FileReaderTool::RecognizeByLib(const Standard_Integer num,
-                                                          Interface_GeneralLib& glib,
-                                                          Interface_ReaderLib& rlib,
-                                                          Handle(Interface_Check)& ach,
                                                           Handle(Standard_Transient)& ent) const
 {
   Handle(Interface_GeneralModule) gmod;
@@ -388,22 +385,21 @@ Standard_Boolean Interface_FileReaderTool::RecognizeByLib(const Standard_Integer
   Handle(Interface_Protocol) proto;
   Standard_Integer CN = 0;
 //   Chercher dans ReaderLib : Reconnaissance de cas -> CN , proto
-  for (rlib.Start(); rlib.More(); rlib.Next()) {
-    rmod = rlib.Module();
+  for (therlib.Start(); therlib.More(); therlib.Next()) {
+    rmod = therlib.Module();
     if (rmod.IsNull()) continue;
     CN = rmod->CaseNum(thereader,num);
-    if (CN > 0)  {  proto = rlib.Protocol();  break;  }
+    if (CN > 0)  {  proto = therlib.Protocol();  break;  }
   }
   if (CN <= 0 || proto.IsNull()) return Standard_False;
 //   Se recaler dans GeneralLib : Creation de l entite vide
   Handle(Standard_Type) typrot = proto->DynamicType();
-  for (glib.Start(); glib.More(); glib.Next()) {
-    proto = glib.Protocol();
+  for (theglib.Start(); theglib.More(); theglib.Next()) {
+    proto = theglib.Protocol();
     if (proto.IsNull()) continue;
     if (proto->DynamicType() != typrot) continue;
-    Standard_Boolean res = glib.Module()->NewVoid(CN,ent);
+    Standard_Boolean res = theglib.Module()->NewVoid(CN,ent);
     if (res) return res;
-    if (!rmod.IsNull()) return rmod->NewRead (CN,thereader,num,ach,ent);
   }
   return Standard_False;
 }
index 228b0fde2a52ca3755598756e96b0a20168c8e94..997089d4c8601d51906a37c002e960cc0f2d252b 100644 (file)
 #include <Standard_DefineAlloc.hxx>
 #include <Standard_Handle.hxx>
 
-#include <Standard_Integer.hxx>
-#include <Standard_Boolean.hxx>
+#include <Interface_GeneralLib.hxx>
+#include <Interface_ReaderLib.hxx>
 #include <TColStd_HArray1OfTransient.hxx>
 class Interface_Protocol;
 class Interface_FileReaderData;
 class Interface_InterfaceModel;
 class Message_Messenger;
-class Standard_DomainError;
-class Standard_NoSuchObject;
 class Interface_Check;
-class Standard_Transient;
-class Interface_GeneralLib;
-class Interface_ReaderLib;
 
 
 //! Defines services which are required to load an InterfaceModel
@@ -119,18 +114,13 @@ public:
  protected:
 
   //! Constructor; sets default fields
-  Standard_EXPORT Interface_FileReaderTool();
+  Standard_EXPORT Interface_FileReaderTool(const Handle(Interface_Protocol)& protocol);
   
   //! Recognizes a record with the help of Libraries. Can be used
   //! to implement the method Recognize.
-  //! <rlib> is used to find Protocol and CaseNumber to apply
-  //! <glib> performs the creation (by service NewVoid, or NewRead
-  //! if NewVoid gave no result)
-  //! <ach> is a check, which is transmitted to NewRead if it is
-  //! called, gives a result but which is false
   //! <ent> is the result
   //! Returns False if recognition has failed, True else
-  Standard_EXPORT Standard_Boolean RecognizeByLib (const Standard_Integer num, Interface_GeneralLib& glib, Interface_ReaderLib& rlib, Handle(Interface_Check)& ach, Handle(Standard_Transient)& ent) const;
+  Standard_EXPORT Standard_Boolean RecognizeByLib (const Standard_Integer num, Handle(Standard_Transient)& ent) const;
   
   //! Recognizes a record, given its number. Specific to each
   //! Interface; called by SetEntities. It can call the basic method
@@ -142,7 +132,7 @@ public:
   //!
   //! Note that it works thru a Recognizer (method Evaluate) which
   //! has to be memorized before starting
-  Standard_EXPORT virtual Standard_Boolean Recognize (const Standard_Integer num, Handle(Interface_Check)& ach, Handle(Standard_Transient)& ent) = 0;
+  Standard_EXPORT virtual Standard_Boolean Recognize (const Standard_Integer num, Handle(Standard_Transient)& ent) = 0;
   
   //! Fills model's header; each Interface defines for its Model its
   //! own file header; this method fills it from FileReaderTool.+
@@ -165,9 +155,12 @@ public:
   
   //! Ends file reading after reading all the entities
   //! default is doing nothing; redefinable as necessary
-  Standard_EXPORT virtual void EndRead (const Handle(Interface_InterfaceModel)& amodel) = 0;
+  Standard_EXPORT virtual void EndRead (const Handle(Interface_InterfaceModel)& amodel);
 
- private:
+ protected:
+
+  mutable Interface_GeneralLib theglib;
+  mutable Interface_ReaderLib therlib;
 
   Handle(Interface_Protocol) theproto;
   Handle(Interface_FileReaderData) thereader;
index 019ffa04d2bf8ddde1749b363118ccc5b460f3e6..5d5b430848ca17d5c3be61ba012fdd1d45bb1de2 100644 (file)
@@ -13,7 +13,6 @@
 
 
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_GeneralModule.hxx>
 #include <Interface_InterfaceModel.hxx>
@@ -52,35 +51,6 @@ void  Interface_GeneralModule::FillShared
    Interface_EntityIterator& /*iter*/) const
 {  }  // Par defaut, pas d Imply
 
-
-    Standard_Boolean  Interface_GeneralModule::CanCopy
-  (const Standard_Integer /*CN*/, const Handle(Standard_Transient)& /*ent*/) const
-      {  return Standard_False;  }
-
-    Standard_Boolean  Interface_GeneralModule::Dispatch
-  (const Standard_Integer, const Handle(Standard_Transient)& entfrom,
-   Handle(Standard_Transient)& entto, Interface_CopyTool& ) const
-      {  entto = entfrom;  return Standard_False;  }
-
-    Standard_Boolean  Interface_GeneralModule::NewCopiedCase
-  (const Standard_Integer, const Handle(Standard_Transient)&,
-   Handle(Standard_Transient)&, Interface_CopyTool& ) const
-      {  return Standard_False;  }
-
-
-    void  Interface_GeneralModule::RenewImpliedCase
-  (const Standard_Integer /*casenum*/,
-   const Handle(Standard_Transient)& /*entfrom*/,
-   const Handle(Standard_Transient)& /*entto*/,
-   const Interface_CopyTool& /*TC*/) const 
-{  }    // Par defaut, ne fait rien
-
-    void  Interface_GeneralModule::WhenDeleteCase
-  (const Standard_Integer /*casenum*/,
-   const Handle(Standard_Transient)& /*ent*/,
-   const Standard_Boolean /*dispatched*/) const
-{  }    // par defaut, ne fait rien
-
     Standard_Integer  Interface_GeneralModule::CategoryNumber
   (const Standard_Integer , const Handle(Standard_Transient)& ,
    const Interface_ShareTool& ) const
index ce2219c764e7c587b3dc018c5ba607c547fd82eb..d516c61419c9a528ab0f58766043ec2c53614ce5 100644 (file)
@@ -28,7 +28,6 @@ class Standard_Transient;
 class Interface_EntityIterator;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class TCollection_HAsciiString;
 
 
@@ -45,10 +44,8 @@ DEFINE_STANDARD_HANDLE(Interface_GeneralModule, MMgt_TShared)
 //! GeneralModule belongs to.
 class Interface_GeneralModule : public MMgt_TShared
 {
+ public:
 
-public:
-
-  
   //! Specific filling of the list of Entities shared by an Entity
   //! <ent>, according a Case Number <CN> (formerly computed by
   //! CaseNum), considered in the context of a Model <model>
@@ -88,84 +85,11 @@ public:
   //! Can check context queried through a ShareTool, as required
   Standard_EXPORT virtual void CheckCase (const Standard_Integer CN, const Handle(Standard_Transient)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const = 0;
   
-  //! Specific answer to the question "is Copy properly implemented"
-  //! Remark that it should be in phase with the implementation of
-  //! NewVoid+CopyCase/NewCopyCase
-  //! Default returns always False, can be redefined
-  Standard_EXPORT virtual Standard_Boolean CanCopy (const Standard_Integer CN, const Handle(Standard_Transient)& ent) const;
-  
-  //! Dispatches an entity
-  //! Returns True if it works by copy, False if it just duplicates
-  //! the starting Handle
-  //!
-  //! Dispatching means producing a new entity, image of the
-  //! starting one, in order to be put into a new Model, this Model
-  //! being itself the result of a dispatch from an original Model
-  //!
-  //! According to the cases, dispatch can either
-  //! * just return <entto> as equating <entfrom>
-  //! -> the new model designates the starting entity : it is
-  //! lighter, but the dispatched entity being shared might not be
-  //! modified for dispatch
-  //! * copy <entfrom> to <entto>
-  //! by calling NewVoid+CopyCase (two steps) or NewCopiedCase (1)
-  //! -> the dispatched entity is a COPY, hence it can be modified
-  //!
-  //! The provided default just duplicates the handle without
-  //! copying, then returns False. Can be redefined
-  Standard_EXPORT virtual Standard_Boolean Dispatch (const Standard_Integer CN, const Handle(Standard_Transient)& entfrom, Handle(Standard_Transient)& entto, Interface_CopyTool& TC) const;
-  
   //! Creates a new void entity <entto> according to a Case Number
   //! This entity remains to be filled, by reading from a file or
   //! by copying from another entity of same type (see CopyCase)
   Standard_EXPORT virtual Standard_Boolean NewVoid (const Standard_Integer CN, Handle(Standard_Transient)& entto) const = 0;
-  
-  //! Specific Copy ("Deep") from <entfrom> to <entto> (same type)
-  //! by using a CopyTool which provides its working Map.
-  //! Use method Transferred from CopyTool to work
-  Standard_EXPORT virtual void CopyCase (const Standard_Integer CN, const Handle(Standard_Transient)& entfrom, const Handle(Standard_Transient)& entto, Interface_CopyTool& TC) const = 0;
-  
-  //! Specific operator (create+copy) defaulted to do nothing.
-  //! It can be redefined : When it is not possible to work in two
-  //! steps (NewVoid then CopyCase). This can occur when there is
-  //! no default constructor : hence the result <entto> must be
-  //! created with an effective definition.
-  //! Remark : if NewCopiedCase is defined, CopyCase has nothing to do
-  //! Returns True if it has produced something, false else
-  Standard_EXPORT virtual Standard_Boolean NewCopiedCase (const Standard_Integer CN, const Handle(Standard_Transient)& entfrom, Handle(Standard_Transient)& entto, Interface_CopyTool& TC) const;
-  
-  //! Specific Copying of Implied References
-  //! A Default is provided which does nothing (must current case !)
-  //! Already copied references (by CopyFrom) must remain unchanged
-  //! Use method Search from CopyTool to work
-  Standard_EXPORT virtual void RenewImpliedCase (const Standard_Integer CN, const Handle(Standard_Transient)& entfrom, const Handle(Standard_Transient)& entto, const Interface_CopyTool& TC) const;
-  
-  //! Prepares an entity to be deleted. What does it mean :
-  //! Basically, any class of entity may define its own destructor
-  //! By default, it does nothing but calling destructors on fields
-  //! With the Memory Manager, it is useless to call destructor,
-  //! it is done automatically when the Handle is nullified(cleared)
-  //! BUT this is ineffective in looping structures (whatever these
-  //! are "Implied" references or not).
-  //!
-  //! THUS : if no loop may appear in definitions, a class which
-  //! inherits from TShared is correctly managed by automatic way
-  //! BUT if there can be loops (or simply back pointers), they must
-  //! be broken, for instance by clearing fields of one of the nodes
-  //! The default does nothing, to be redefined if a loop can occur
-  //! (Implied generally requires WhenDelete, but other cases can
-  //! occur)
-  //!
-  //! Warning : <dispatched> tells if the entity to be deleted has been
-  //! produced by Dispatch or not. Hence WhenDelete must be in
-  //! coherence with Dispatch
-  //! Dispatch can either copy or not.
-  //! If it copies the entity, this one should be deleted
-  //! If it doesnt (i.e. duplicates the handle) nothing to do
-  //!
-  //! If <dispatch> is False, normal deletion is to be performed
-  Standard_EXPORT virtual void WhenDeleteCase (const Standard_Integer CN, const Handle(Standard_Transient)& ent, const Standard_Boolean dispatched) const;
-  
   //! Returns a category number which characterizes an entity
   //! Category Numbers are managed by the class Category
   //! <shares> can be used to evaluate this number in the context
@@ -181,27 +105,7 @@ public:
   //! field, the returned value must be copied before.
   Standard_EXPORT virtual Handle(TCollection_HAsciiString) Name (const Standard_Integer CN, const Handle(Standard_Transient)& ent, const Interface_ShareTool& shares) const;
 
-
-
-
   DEFINE_STANDARD_RTTIEXT(Interface_GeneralModule,MMgt_TShared)
-
-protected:
-
-
-
-
-private:
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _Interface_GeneralModule_HeaderFile
index df25e2f44919d938a21f81d9d3e0c1e69e7a5a5d..15dc390fcdf9f4c01d6e5ea9c13cacd70ab9b1df 100644 (file)
@@ -45,7 +45,7 @@ DEFINE_STANDARD_HANDLE(Interface_Protocol, MMgt_TShared)
 class Interface_Protocol : public MMgt_TShared
 {
  public:
-  
+
   //! Returns count of Protocol used as Resources (level one)
   Standard_EXPORT virtual Standard_Integer NbResources() const;
   
@@ -90,9 +90,6 @@ class Interface_Protocol : public MMgt_TShared
   //! Creates an empty Model of the considered Norm
   Standard_EXPORT virtual Handle(Interface_InterfaceModel) NewModel() const = 0;
   
-  //! Returns True if <model> is a Model of the considered Norm
-  Standard_EXPORT virtual Standard_Boolean IsSuitableModel (const Handle(Interface_InterfaceModel)& model) const = 0;
-  
   //! Creates a new Unknown Entity for the considered Norm
   Standard_EXPORT virtual Handle(Standard_Transient) UnknownEntity() const = 0;
   
index b3dd26e2692ffc1a43188cdcfe2b4e460e722ae9..d147863c7dab9d8803041f9db29554e342e2be69 100644 (file)
 // Alternatively, this file may be used under the terms of Open CASCADE
 // commercial license or contractual agreement.
 
-
 #include <Interface_ReaderModule.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(Interface_ReaderModule,MMgt_TShared)
-
-Standard_Boolean Interface_ReaderModule::NewRead(const Standard_Integer,
-                                                 const Handle(Interface_FileReaderData)&,
-                                                 const Standard_Integer,
-                                                 Handle(Interface_Check)&,
-                                                 Handle(Standard_Transient)& ) const
-{
-  return Standard_False;
-}
index 78e6cc47e21d72af2525e5c9eb1f5ea65719ed12..73871fbac3ce7f033f072712a71ff83127547eb1 100644 (file)
@@ -50,18 +50,6 @@ class Interface_ReaderModule : public MMgt_TShared
   //! In case of Error or Warning, fills <ach> with messages
   //! Remark that the Case Number comes from translating a record
   Standard_EXPORT virtual void Read (const Standard_Integer casenum, const Handle(Interface_FileReaderData)& data, const Standard_Integer num, Handle(Interface_Check)& ach, const Handle(Standard_Transient)& ent) const = 0;
-  
-  //! Specific operator (create+read) defaulted to do nothing.
-  //! It can be redefined when it is not possible to work in two
-  //! steps (NewVoid then Read). This occurs when no default
-  //! constructor is defined : hence the result <ent> must be
-  //! created with an effective definition from the reader.
-  //! Remark : if NewRead is defined, Copy has nothing to do.
-  //!
-  //! Returns True if it has produced something, false else.
-  //! If nothing was produced, <ach> should be filled : it will be
-  //! treated as "Unrecognized case" by reader tool.
-  Standard_EXPORT virtual Standard_Boolean NewRead (const Standard_Integer casenum, const Handle(Interface_FileReaderData)& data, const Standard_Integer num, Handle(Interface_Check)& ach, Handle(Standard_Transient)& ent) const;
 
   DEFINE_STANDARD_RTTIEXT(Interface_ReaderModule,MMgt_TShared)
 };
index 1d596b4e0981b65993a07618cd134da05253639f..250c40744bdf82db72635d57023dce19fee442a9 100644 (file)
@@ -14,8 +14,6 @@
 
 #include <Interface_Check.hxx>
 #include <Interface_ReportEntity.hxx>
-#include <Standard_Transient.hxx>
-#include <Standard_Type.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(Interface_ReportEntity,MMgt_TShared)
 
@@ -23,11 +21,12 @@ IMPLEMENT_STANDARD_RTTIEXT(Interface_ReportEntity,MMgt_TShared)
 //function : Interface_ReportEntity
 //purpose  : 
 //=======================================================================
-Interface_ReportEntity::Interface_ReportEntity
-  (const Handle(Standard_Transient)& unknown)
+
+Interface_ReportEntity::Interface_ReportEntity (const Handle(Standard_Transient)& unknown)
+: thecheck(new Interface_Check),
+  theconcerned(unknown),
+  thecontent(unknown)
 {
-  theconcerned = unknown;
-  thecontent = unknown;
 }
 
 
@@ -36,73 +35,14 @@ Interface_ReportEntity::Interface_ReportEntity
 //purpose  : 
 //=======================================================================
 
-Interface_ReportEntity::Interface_ReportEntity
-  (const Handle(Interface_Check)& acheck,
-   const Handle(Standard_Transient)& concerned)
-:  thecheck(acheck)
+Interface_ReportEntity::Interface_ReportEntity (const Handle(Interface_Check)& acheck, const Handle(Standard_Transient)& concerned)
+:  thecheck(acheck),
+   theconcerned(concerned)
 {
-  theconcerned = concerned;
   thecheck->SetEntity(concerned);
 }
 
 
-//=======================================================================
-//function : SetContent
-//purpose  : 
-//=======================================================================
-
-void Interface_ReportEntity::SetContent(const Handle(Standard_Transient)& content)
-{
-  thecontent = content;
-}
-
-//  ....                        CONSULTATION                        ....
-
-
-//=======================================================================
-//function : Check
-//purpose  : 
-//=======================================================================
-
-const Handle(Interface_Check)& Interface_ReportEntity::Check () const
-{
-  return thecheck;
-}
-
-
-//=======================================================================
-//function : CCheck
-//purpose  : 
-//=======================================================================
-
-Handle(Interface_Check)& Interface_ReportEntity::CCheck ()
-{
-  return thecheck;
-}
-
-
-//=======================================================================
-//function : Concerned
-//purpose  : 
-//=======================================================================
-
-Handle(Standard_Transient) Interface_ReportEntity::Concerned  () const
-{
-  return theconcerned;
-}
-
-
-//=======================================================================
-//function : HasContent
-//purpose  : 
-//=======================================================================
-
-Standard_Boolean Interface_ReportEntity::HasContent () const 
-{
-  return (!thecontent.IsNull());
-}
-
-
 //=======================================================================
 //function : HasNewContent
 //purpose  : 
@@ -114,17 +54,6 @@ Standard_Boolean Interface_ReportEntity::HasNewContent () const
 }
 
 
-//=======================================================================
-//function : Content
-//purpose  : 
-//=======================================================================
-
-Handle(Standard_Transient) Interface_ReportEntity::Content () const
-{
-  return thecontent;
-}
-
-
 //=======================================================================
 //function : IsError
 //purpose  : 
@@ -143,6 +72,5 @@ Standard_Boolean Interface_ReportEntity::IsError () const
 
 Standard_Boolean Interface_ReportEntity::IsUnknown () const
 {
-  return ((thecheck->NbFails() == 0) && (thecheck->NbWarnings() == 0)
-         && (theconcerned == thecontent));
+  return ((thecheck->NbFails() == 0) && (thecheck->NbWarnings() == 0) && (theconcerned == thecontent));
 }
index 4d80905981cf3932e6991cc90efc20aa17a21948..ec4e16d1c5375cfb4078058deb4866722c86208f 100644 (file)
@@ -21,9 +21,7 @@
 #include <Standard_Type.hxx>
 
 #include <MMgt_TShared.hxx>
-#include <Standard_Boolean.hxx>
 class Interface_Check;
-class Standard_Transient;
 
 
 class Interface_ReportEntity;
@@ -54,37 +52,35 @@ DEFINE_STANDARD_HANDLE(Interface_ReportEntity, MMgt_TShared)
 //! only the specific part remains to be defined for each norm.
 class Interface_ReportEntity : public MMgt_TShared
 {
+ public:
 
-public:
-
-  
   //! Creates a ReportEntity for an Unknown Entity : Check is empty,
   //! and Concerned equates Content (i.e. the Unknown Entity)
-  Standard_EXPORT Interface_ReportEntity(const Handle(Standard_Transient)& unknown);
-  
+  Standard_EXPORT Interface_ReportEntity (const Handle(Standard_Transient)& unknown);
+
   //! Creates a ReportEntity with its features :
   //! - <acheck> is the Check to be memorised
   //! - <concerned> is the Entity to which the Check is bound
   //! Later, a Content can be set : it is required for an Error
-  Standard_EXPORT Interface_ReportEntity(const Handle(Interface_Check)& acheck, const Handle(Standard_Transient)& concerned);
+  Standard_EXPORT Interface_ReportEntity (const Handle(Interface_Check)& acheck, const Handle(Standard_Transient)& concerned);
   
   //! Sets a Content : it brings non interpreted data which belong
   //! to the Concerned Entity. It can be empty then loaded later.
   //! Remark that for an Unknown Entity, Content is set by Create.
-  Standard_EXPORT void SetContent (const Handle(Standard_Transient)& content);
+  void SetContent (const Handle(Standard_Transient)& content) { thecontent = content; }
   
   //! Returns the stored Check
-  Standard_EXPORT const Handle(Interface_Check)& Check() const;
+  const Handle(Interface_Check) & Check () const { return thecheck; }
   
   //! Returns the stored Check in order to change it
-  Standard_EXPORT Handle(Interface_Check)& CCheck();
+  Handle(Interface_Check) & CCheck () { return thecheck; }
   
   //! Returns the stored Concerned Entity. It equates the Content
   //! in the case of an Unknown Entity
-  Standard_EXPORT Handle(Standard_Transient) Concerned() const;
+  const Handle(Standard_Transient) & Concerned() const { return theconcerned; }
   
   //! Returns True if a Content is stored (it can equate Concerned)
-  Standard_EXPORT Standard_Boolean HasContent() const;
+  Standard_Boolean HasContent() const { return (!thecontent.IsNull()); }
   
   //! Returns True if a Content is stored AND differs from Concerned
   //! (i.e. redefines content) : used when Concerned could not be
@@ -94,7 +90,7 @@ public:
   //! Returns the stored Content, or a Null Handle
   //! Remark that it must be an "Unknown Entity" suitable for
   //! the norm of the containing Model
-  Standard_EXPORT Handle(Standard_Transient) Content() const;
+  const Handle(Standard_Transient) & Content() const { return thecontent; }
   
   //! Returns True for an Error Entity, i.e. if the Check
   //! brings at least one Fail message
@@ -104,30 +100,13 @@ public:
   //! is empty and Concerned equates Content
   Standard_EXPORT Standard_Boolean IsUnknown() const;
 
-
-
-
   DEFINE_STANDARD_RTTIEXT(Interface_ReportEntity,MMgt_TShared)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   Handle(Interface_Check) thecheck;
   Handle(Standard_Transient) theconcerned;
   Handle(Standard_Transient) thecontent;
-
-
 };
 
-
-
-
-
-
-
 #endif // _Interface_ReportEntity_HeaderFile
index d4b3dbd338b3c9d7bfffb331675a9c31390d38be..e4d74837a39915aae1a607f3d74f7ac98d325252 100644 (file)
@@ -12,7 +12,6 @@
 // commercial license or contractual agreement.
 
 
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityList.hxx>
 #include <Interface_InterfaceError.hxx>
 #include <Interface_InterfaceMismatch.hxx>
@@ -291,27 +290,3 @@ Interface_UndefinedContent::ParamValue
 
     Interface_EntityList Interface_UndefinedContent::EntityList () const
       {  return theentities;  }
-
-
-
-//    toutes les recopies de UndefinedEntity se ressemblent ... Partie commune
-    void Interface_UndefinedContent::GetFromAnother
-  (const Handle(Interface_UndefinedContent)& other,  Interface_CopyTool& TC)
-{
-  Standard_Integer nb = other->NbParams();
-  theentities.Clear();
-  thevalues.Nullify();
-  theparams.Nullify();
-  Reservate (nb,other->NbLiterals());
-
-  Handle(Standard_Transient) ent;
-  for (Standard_Integer i = 1; i <= nb; i ++) {
-    Interface_ParamType ptype;
-    Handle(TCollection_HAsciiString) val;
-    if (other->ParamData (i, ptype,ent,val)) {
-      ent = TC.Transferred(ent);
-      AddEntity  (ptype,ent);
-    }
-    else AddLiteral (ptype,val);
-  }
-}
index ce62d2222169b6d4406c1efcb06ac41a50dfd517..0527e461fa645e94ce51d1990aeafe5e95713685 100644 (file)
@@ -34,7 +34,6 @@ class Interface_InterfaceError;
 class Standard_Transient;
 class TCollection_HAsciiString;
 class Interface_EntityList;
-class Interface_CopyTool;
 
 
 class Interface_UndefinedContent;
@@ -64,10 +63,8 @@ DEFINE_STANDARD_HANDLE(Interface_UndefinedContent, MMgt_TShared)
 //! Recognize Unknown Entities of this norm
 class Interface_UndefinedContent : public MMgt_TShared
 {
+ public:
 
-public:
-
-  
   //! Defines an empty UndefinedContent
   Standard_EXPORT Interface_UndefinedContent();
   
@@ -124,38 +121,16 @@ public:
   //! Returns globally the list of param entities. Note that it can
   //! be used as shared entity list for the UndefinedEntity
   Standard_EXPORT Interface_EntityList EntityList() const;
-  
-  //! Copies contents of undefined entities; deigned to be called by
-  //! GetFromAnother method from Undefined entity of each Interface
-  //! (the basic operation is the same regardless the norm)
-  Standard_EXPORT void GetFromAnother (const Handle(Interface_UndefinedContent)& other, Interface_CopyTool& TC);
-
-
-
 
   DEFINE_STANDARD_RTTIEXT(Interface_UndefinedContent,MMgt_TShared)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   Standard_Integer thenbparams;
   Standard_Integer thenbstr;
   Handle(TColStd_HArray1OfInteger) theparams;
   Handle(Interface_HArray1OfHAsciiString) thevalues;
   Interface_EntityList theentities;
-
-
 };
 
-
-
-
-
-
-
 #endif // _Interface_UndefinedContent_HeaderFile
index 7e9edac52eb7d6f8e7b75a9712d80e1879711fc1..cf808ffd1364a07f3042f92a41b54de7d379b29c 100644 (file)
@@ -67,19 +67,17 @@ static Handle(LibCtl_Node) thelast;
 //  D abord, ajouter celui-ci a la liste : chercher le Node
   Handle(LibCtl_GlobalNode) curr;
   for (curr = theglobal; !curr.IsNull(); ) {        // curr->Next : plus loin
-    const Handle(Interface_Protocol)& protocol = curr->Protocol();
-    if (!protocol.IsNull()) {
 //  Match Protocol ?
-      if (protocol->DynamicType() == aprotocol->DynamicType()) {
-       if (thelist.IsNull()) thelist = new LibCtl_Node;
-       thelist->AddNode(curr);
-       break;  // UN SEUL MODULE PAR PROTOCOLE
-      }
+    const Handle(Interface_Protocol)& protocol = curr->Protocol();
+    if (!protocol.IsNull() && (protocol->DynamicType() == aprotocol->DynamicType())) {
+      if (thelist.IsNull()) thelist = new LibCtl_Node;
+      thelist->AddNode(curr);
+      break;  // UN SEUL MODULE PAR PROTOCOLE
     }
     curr = curr->Next();  // cette formule est refusee dans "for"
   }
 //  Ensuite, Traiter les ressources
-  Standard_Integer nb = aprotocol->NbResources();
+  const Standard_Integer nb = aprotocol->NbResources();
   for (Standard_Integer i = 1; i <= nb; i ++) {
     AddProtocol (aprotocol->Resource(i));
   }
index 64a39431ad5a98425b250e155e7c2878b6dadc25..7a612ce8096ce5936a4f62af558bcc63935e04aa 100644 (file)
@@ -18,7 +18,6 @@
 #include <HeaderSection_FileSchema.hxx>
 #include <HeaderSection_Protocol.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_GeneralLib.hxx>
 #include <Interface_HArray1OfHAsciiString.hxx>
@@ -55,100 +54,26 @@ void RWHeaderSection_GeneralModule::CheckCase(const Standard_Integer,
 {
 }
 
-
-void RWHeaderSection_GeneralModule::CopyCase(const Standard_Integer CN, const Handle(Standard_Transient)& entfrom, const Handle(Standard_Transient)& entto, Interface_CopyTool& TC) const
-{
-//   ajout manuel
-  switch (CN) {
-
-    case 1 : {
-      Standard_Integer i;
-      DeclareAndCast(HeaderSection_FileName,enfr,entfrom);
-      DeclareAndCast(HeaderSection_FileName,ento,entto);
-      Handle(TCollection_HAsciiString) name =
-       new TCollection_HAsciiString (enfr->Name());
-      Handle(TCollection_HAsciiString) time =
-       new TCollection_HAsciiString (enfr->TimeStamp());
-      Standard_Integer nba = enfr->NbAuthor();
-      Handle(Interface_HArray1OfHAsciiString) auth =
-       new Interface_HArray1OfHAsciiString (1,nba);
-      for (i = 1; i <= nba; i ++) auth->SetValue
-       (i, new TCollection_HAsciiString (enfr->AuthorValue(i)) );
-      Standard_Integer nbo = enfr->NbOrganization();
-      Handle(Interface_HArray1OfHAsciiString) orga =
-       new Interface_HArray1OfHAsciiString (1,nbo);
-      for (i = 1; i <= nbo; i ++) orga->SetValue
-       (i, new TCollection_HAsciiString (enfr->OrganizationValue(i)) );
-      Handle(TCollection_HAsciiString) prep =
-       new TCollection_HAsciiString (enfr->PreprocessorVersion());
-      Handle(TCollection_HAsciiString) orig =
-       new TCollection_HAsciiString (enfr->OriginatingSystem());
-      Handle(TCollection_HAsciiString) autr =
-       new TCollection_HAsciiString (enfr->Authorisation());
-      ento->Init (name,time,auth,orga,prep,orig,autr);
-    }
-    break;
-
-    case 2 : {
-      Standard_Integer i;
-      DeclareAndCast(HeaderSection_FileDescription,enfr,entfrom);
-      DeclareAndCast(HeaderSection_FileDescription,ento,entto);
-      Standard_Integer nbd = enfr->NbDescription();
-      Handle(Interface_HArray1OfHAsciiString) desc =
-       new Interface_HArray1OfHAsciiString (1,nbd);
-      for (i = 1; i <= nbd; i ++) desc->SetValue
-       (i, new TCollection_HAsciiString (enfr->DescriptionValue(i)) );
-      Handle(TCollection_HAsciiString) impl =
-       new TCollection_HAsciiString (enfr->ImplementationLevel());
-      ento->Init (desc,impl);
-    }
-    break;
-
-    case 3 : {
-      Standard_Integer i;
-      DeclareAndCast(HeaderSection_FileSchema,enfr,entfrom);
-      DeclareAndCast(HeaderSection_FileSchema,ento,entto);
-      Standard_Integer nbs = enfr->NbSchemaIdentifiers();
-      Handle(Interface_HArray1OfHAsciiString) sche =
-       new Interface_HArray1OfHAsciiString (1,nbs);
-      for (i = 1; i <= nbs; i ++) sche->SetValue
-       (i, new TCollection_HAsciiString (enfr->SchemaIdentifiersValue(i)) );
-      ento->Init (sche);
-    }
-    break;
-
-    case 4 : {
-      DeclareAndCast(StepData_UndefinedEntity,undfrom,entfrom);
-      DeclareAndCast(StepData_UndefinedEntity,undto,entto);
-      undto->GetFromAnother(undfrom,TC);  //  On pourrait rapatrier cela
-    }
-    break;
-
-    default : break;
-  }
-}
        // --- Construction of empty class ---
 
 Standard_Boolean RWHeaderSection_GeneralModule::NewVoid
        (const Standard_Integer CN, Handle(Standard_Transient)& ent) const
 {
-       if (CN == 0) return Standard_False;
-       switch (CN) {
-         case 1 : 
-           ent = new HeaderSection_FileName;
-           break;
-         case 2 : 
-           ent = new HeaderSection_FileDescription;
-           break;
-         case 3 : 
-           ent = new HeaderSection_FileSchema;
-           break;
-         case 4 : 
-           ent = new StepData_UndefinedEntity;
-           break;
-         default : return Standard_False;
-       }
+  switch (CN) {
+    case 1 : 
+      ent = new HeaderSection_FileName;
+      break;
+    case 2 : 
+      ent = new HeaderSection_FileDescription;
+      break;
+    case 3 : 
+      ent = new HeaderSection_FileSchema;
+      break;
+    case 4 : 
+      ent = new StepData_UndefinedEntity;
+      break;
+    default : return Standard_False;
+  }
 
-return Standard_True;
+  return Standard_True;
 }
-
index cbfd209da24cc1f654138847e5254dc7918992a7..028e74f80666db06d3c214fba60f7a251e7c03f8 100644 (file)
@@ -27,7 +27,6 @@ class Standard_Transient;
 class Interface_EntityIterator;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 
 
 class RWHeaderSection_GeneralModule;
@@ -38,10 +37,8 @@ DEFINE_STANDARD_HANDLE(RWHeaderSection_GeneralModule, StepData_GeneralModule)
 //! Depends (for case numbers) of Protocol from HeaderSection
 class RWHeaderSection_GeneralModule : public StepData_GeneralModule
 {
+ public:
 
-public:
-
-  
   //! Creates a GeneralModule
   Standard_EXPORT RWHeaderSection_GeneralModule();
   
@@ -53,34 +50,9 @@ public:
   //! Specific Checking of an Entity <ent>
   Standard_EXPORT void CheckCase (const Standard_Integer CN, const Handle(Standard_Transient)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const Standard_OVERRIDE;
   
-  //! Specific Copy ("Deep") from <entfrom> to <entto> (same type)
-  //! by using a CopyTool which provides its working Map.
-  //! Use method Transferred from CopyTool to work
-  Standard_EXPORT void CopyCase (const Standard_Integer CN, const Handle(Standard_Transient)& entfrom, const Handle(Standard_Transient)& entto, Interface_CopyTool& TC) const Standard_OVERRIDE;
-  
   Standard_EXPORT Standard_Boolean NewVoid (const Standard_Integer CN, Handle(Standard_Transient)& ent) const Standard_OVERRIDE;
 
-
-
-
   DEFINE_STANDARD_RTTIEXT(RWHeaderSection_GeneralModule,StepData_GeneralModule)
-
-protected:
-
-
-
-
-private:
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _RWHeaderSection_GeneralModule_HeaderFile
index 7cdb5cdd9a6cc0bbe7f52ae56941bad1dbbd8f18..4d4e59e13cf1e6a60564ba125f41e49c7b18154b 100644 (file)
@@ -17,7 +17,6 @@
 
 #include <Interface_Category.hxx>
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_GeneralLib.hxx>
 #include <Interface_Macros.hxx>
@@ -5237,19 +5236,6 @@ void RWStepAP214_GeneralModule::CheckCase(const Standard_Integer CN,
     }
 }
 
-
-//=======================================================================
-//function : CopyCase
-//purpose  : 
-//=======================================================================
-
-void RWStepAP214_GeneralModule::CopyCase(const Standard_Integer /*CN*/, 
-                                        const Handle(Standard_Transient)& /*entfrom*/, 
-                                        const Handle(Standard_Transient)& /*entto*/, 
-                                        Interface_CopyTool& /*TC*/) const
-{  
-}
-
 // --- Construction of empty classe ---
 
 //=======================================================================
index afc626d11d2d6d3079dc2992d718855431629923..3637f4d378f454793404d7d6bf7735d4b66d95f7 100644 (file)
@@ -27,7 +27,6 @@ class Standard_Transient;
 class Interface_EntityIterator;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 class TCollection_HAsciiString;
 
 
@@ -42,7 +41,6 @@ class RWStepAP214_GeneralModule : public StepData_GeneralModule
 
 public:
 
-  
   //! Creates a GeneralModule
   Standard_EXPORT RWStepAP214_GeneralModule();
   
@@ -54,11 +52,6 @@ public:
   //! Specific Checking of an Entity <ent>
   Standard_EXPORT void CheckCase (const Standard_Integer CN, const Handle(Standard_Transient)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const Standard_OVERRIDE;
   
-  //! Specific Copy ("Deep") from <entfrom> to <entto> (same type)
-  //! by using a CopyTool which provides its working Map.
-  //! Use method Transferred from CopyTool to work
-  Standard_EXPORT void CopyCase (const Standard_Integer CN, const Handle(Standard_Transient)& entfrom, const Handle(Standard_Transient)& entto, Interface_CopyTool& TC) const Standard_OVERRIDE;
-  
   Standard_EXPORT Standard_Boolean NewVoid (const Standard_Integer CN, Handle(Standard_Transient)& ent) const Standard_OVERRIDE;
   
   Standard_EXPORT virtual Standard_Integer CategoryNumber (const Standard_Integer CN, const Handle(Standard_Transient)& ent, const Interface_ShareTool& shares) const Standard_OVERRIDE;
@@ -66,27 +59,7 @@ public:
   //! Returns the name of a STEP Entity according to its type
   Standard_EXPORT virtual Handle(TCollection_HAsciiString) Name (const Standard_Integer CN, const Handle(Standard_Transient)& ent, const Interface_ShareTool& shares) const Standard_OVERRIDE;
 
-
-
-
   DEFINE_STANDARD_RTTIEXT(RWStepAP214_GeneralModule,StepData_GeneralModule)
-
-protected:
-
-
-
-
-private:
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _RWStepAP214_GeneralModule_HeaderFile
index b811e4b32fb796a77307f896eb06e431390ac21e..d7bbca5597a887a6a68981e532d8e19aad659044 100644 (file)
@@ -26,7 +26,6 @@ class Standard_Transient;
 class Interface_EntityIterator;
 class Interface_ShareTool;
 class Interface_Check;
-class Interface_CopyTool;
 
 
 class StepData_GeneralModule;
index aec8d7e61049ffd039c1162cc0a6488af8cb0a6d..f2c6b3bfba9b77789a3cc0f260672bc63373fc53 100644 (file)
@@ -66,13 +66,6 @@ Handle(Interface_InterfaceModel)  StepData_Protocol::NewModel () const
 }
 
 
-Standard_Boolean  StepData_Protocol::IsSuitableModel
-  (const Handle(Interface_InterfaceModel)& model) const 
-{
-  return model->IsKind(STANDARD_TYPE(StepData_StepModel));
-}
-
-
 Handle(Standard_Transient)  StepData_Protocol::UnknownEntity () const
 {
   return new StepData_UndefinedEntity;
index a0120a56a634f92ffc1eb111cd390e4433560185..25177fa4810bb676d14a31b4ce0488c024d700b8 100644 (file)
@@ -69,9 +69,6 @@ class StepData_Protocol : public Interface_Protocol
   //! Creates an empty Model for Step Norm
   Standard_EXPORT Handle(Interface_InterfaceModel) NewModel() const Standard_OVERRIDE;
   
-  //! Returns True if <model> is a Model of Step Norm
-  Standard_EXPORT Standard_Boolean IsSuitableModel (const Handle(Interface_InterfaceModel)& model) const Standard_OVERRIDE;
-  
   //! Creates a new Unknown Entity for Step (UndefinedEntity)
   Standard_EXPORT Handle(Standard_Transient) UnknownEntity() const Standard_OVERRIDE;
   
index 2de7f06139461f17df31b35a39c78b021d1ad9ea..b2fa6b9e90d5b183681290cc430d1f9d47a2022d 100644 (file)
 #include <Standard_Type.hxx>
 
 #include <Interface_ReaderModule.hxx>
-#include <Standard_Integer.hxx>
 #include <TColStd_SequenceOfAsciiString.hxx>
-#include <Standard_Boolean.hxx>
-class Standard_DomainError;
 class Interface_FileReaderData;
 class TCollection_AsciiString;
 class Interface_Check;
-class Standard_Transient;
 class StepData_StepReaderData;
 class StepData_StepWriter;
 
@@ -45,10 +41,8 @@ DEFINE_STANDARD_HANDLE(StepData_ReadWriteModule, Interface_ReaderModule)
 //! as the Protocol does for the corresponding Entity)
 class StepData_ReadWriteModule : public Interface_ReaderModule
 {
+ public:
 
-public:
-
-  
   //! Translate the Type of record <num> in <data> to a positive
   //! Case Number, or 0 if failed.
   //! Works with a StepReaderData, in which the Type of an Entity
@@ -107,27 +101,7 @@ public:
   //! Write Function, switched by CaseNum
   Standard_EXPORT virtual void WriteStep (const Standard_Integer CN, StepData_StepWriter& SW, const Handle(Standard_Transient)& ent) const = 0;
 
-
-
-
   DEFINE_STANDARD_RTTIEXT(StepData_ReadWriteModule,Interface_ReaderModule)
-
-protected:
-
-
-
-
-private:
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _StepData_ReadWriteModule_HeaderFile
index baec99859ebef1d51b44669db4d6055b166d55b6..af69474829d58876c62f5e0255d50090bdeafd43 100644 (file)
@@ -13,7 +13,6 @@
 
 
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_GeneralLib.hxx>
 #include <Interface_GeneralModule.hxx>
index 7dc87355e154a6235cdb3cfa17215ee8ca412da8..80fc4cca56963da461d2ee9d2b019b3c24db2e76 100644 (file)
@@ -34,7 +34,7 @@
 StepData_StepReaderTool::StepData_StepReaderTool
   (const Handle(StepData_StepReaderData)& reader,
    const Handle(StepData_Protocol)& protocol)
-:  theglib(protocol) , therlib(protocol)
+: Interface_FileReaderTool(protocol)
 {
   SetData(reader,protocol);
 }
@@ -50,41 +50,14 @@ StepData_StepReaderTool::StepData_StepReaderTool
 
 void StepData_StepReaderTool::Prepare ()
 {
-//   SetEntityNumbers a ete mis du cote de ReaderData, because beaucoup acces
-  DeclareAndCast(StepData_StepReaderData,stepdat,Data());
-  try {
-    OCC_CATCH_SIGNALS
-    stepdat->SetEntityNumbers(Standard_True);
-    SetEntities();
-  }
-  catch(Standard_Failure) {
-    const Handle(Message_Messenger) &sout = Message::DefaultMessenger();
-    sout << " Exception Raised during Preparation :\n";
-    sout << Standard_Failure::Caught()->GetMessageString();
-    sout << "\n Now, trying to continue, but with presomption of failure\n";
-  }
-}
-
-
 // ....            Gestion du Header : Preparation, lecture            .... //
-
-
-//=======================================================================
-//function : PrepareHeader
-//purpose  : 
-//=======================================================================
-
-void StepData_StepReaderTool::PrepareHeader ()
-{
   Standard_Integer i = 0;
 
 // Reconnaissance des types
   DeclareAndCast(StepData_StepReaderData,stepdat,Data());
   while ( (i = stepdat->FindNextHeaderRecord(i)) != 0) {
     Handle(Standard_Transient) ent;
-//  Reconnaissance par la librairie
-    Handle(Interface_Check) ach = new Interface_Check;    // faudrait le lister ... ?
-    RecognizeByLib (i,theglib,therlib,ach,ent);
+    RecognizeByLib (i,ent);
     if (ent.IsNull()) ent = Protocol()->UnknownEntity();
     stepdat->BindEntity(i,ent);
   }
@@ -92,6 +65,19 @@ void StepData_StepReaderTool::PrepareHeader ()
 //  Reste la Resolution des references : ne concerne que les sous-listes
 //  Assuree par ReaderData
   stepdat->PrepareHeader();
+
+//   SetEntityNumbers a ete mis du cote de ReaderData, because beaucoup acces
+  try {
+    OCC_CATCH_SIGNALS
+    stepdat->SetEntityNumbers(Standard_True);
+    SetEntities();
+  }
+  catch(Standard_Failure) {
+    const Handle(Message_Messenger) &sout = Message::DefaultMessenger();
+    sout << " Exception Raised during Preparation :\n";
+    sout << Standard_Failure::Caught()->GetMessageString();
+    sout << "\n Now, trying to continue, but with presomption of failure\n";
+  }
 }
 
 
@@ -100,12 +86,9 @@ void StepData_StepReaderTool::PrepareHeader ()
 //purpose  : 
 //=======================================================================
 
-Standard_Boolean StepData_StepReaderTool::Recognize(const Standard_Integer num,
-                                                    Handle(Interface_Check)& ach,
-                                                    Handle(Standard_Transient)& ent)
+Standard_Boolean StepData_StepReaderTool::Recognize (const Standard_Integer num, Handle(Standard_Transient)& ent)
 {
-//  Reconnaissance par la librairie
-  return RecognizeByLib (num,theglib,therlib,ach,ent);
+  return RecognizeByLib (num,ent);
 }
 
 
index 998827823cb73994924d41b3bbe268f16cee58c5..f322ecfff7e38688ba06cdaf92b3ad4e9f90a9b6 100644 (file)
@@ -21,8 +21,6 @@
 #include <Standard_DefineAlloc.hxx>
 #include <Standard_Handle.hxx>
 
-#include <Interface_GeneralLib.hxx>
-#include <Interface_ReaderLib.hxx>
 #include <Interface_FileReaderTool.hxx>
 class StepData_StepReaderData;
 class StepData_Protocol;
@@ -34,7 +32,7 @@ class Interface_InterfaceModel;
 //! provides references evaluation, plus access to litteral data
 //! and specific methods defined by FileReaderTool
 //! Remarks : works with a ReaderLib to load Entities
-class StepData_StepReaderTool  : public Interface_FileReaderTool
+class StepData_StepReaderTool : public Interface_FileReaderTool
 {
  public:
 
@@ -44,21 +42,17 @@ class StepData_StepReaderTool  : public Interface_FileReaderTool
   //! to a Step Protocol. Defines the ReaderLib at this time
   Standard_EXPORT StepData_StepReaderTool(const Handle(StepData_StepReaderData)& reader, const Handle(StepData_Protocol)& protocol);
   
-  //! Bounds empty entities to records
-  //! Works only on data entities (skips header)
-  Standard_EXPORT void Prepare ();
-  
   //! Bounds empty entities and sub-lists to header records
+  //! Bounds empty entities to records
   //! works like Prepare + SetEntityNumbers, but for header
   //! (N.B.: in Header, no Ident and no reference)
-  Standard_EXPORT void PrepareHeader ();
+  //! Then works only on data entities
+  Standard_EXPORT void Prepare ();
 
  private:
   
-  //! recognizes records, by asking either ReaderLib (default) or
-  //! FileRecognizer (if defined) to do so. <ach> is to call
-  //! RecognizeByLib
-  Standard_EXPORT virtual Standard_Boolean Recognize (const Standard_Integer num, Handle(Interface_Check)& ach, Handle(Standard_Transient)& ent) Standard_OVERRIDE;
+  //! recognizes records, by asking ReaderLib.
+  Standard_EXPORT virtual Standard_Boolean Recognize (const Standard_Integer num, Handle(Standard_Transient)& ent) Standard_OVERRIDE;
   
   //! fills model's header; that is, gives to it Header entities
   //! and commands their loading. Also fills StepModel's Global
@@ -73,9 +67,6 @@ class StepData_StepReaderTool  : public Interface_FileReaderTool
   //! Ends file reading after reading all the entities
   //! Here, it binds in the model, Idents to Entities (for checks)
   Standard_EXPORT virtual void EndRead (const Handle(Interface_InterfaceModel)& amodel) Standard_OVERRIDE;
-
-  Interface_GeneralLib theglib;
-  Interface_ReaderLib therlib;
 };
 
 #endif // _StepData_StepReaderTool_HeaderFile
index fdbadedb53bcc8cc8255f1f0a75a90ca09a782a9..2e2c119683eebf3ca88d1fda09b65ee49931341a 100644 (file)
@@ -13,7 +13,6 @@
 
 
 #include <Interface_Check.hxx>
-#include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ParamType.hxx>
@@ -130,21 +129,6 @@ void StepData_UndefinedEntity::WriteParams (StepData_StepWriter& SW) const
   thenext->WriteParams(SW);
 }
 
-    void  StepData_UndefinedEntity::GetFromAnother
-  (const Handle(StepData_UndefinedEntity)& another,
-   Interface_CopyTool& TC)
-{
-//  DeclareAndCast(StepData_UndefinedEntity,another,other);
-  thetype = new TCollection_HAsciiString (another->StepType());
-  thecont = new Interface_UndefinedContent;
-  thecont->GetFromAnother(another->UndefinedContent(),TC);
-
-  thesub = another->IsSub();
-  if (another->IsComplex()) thenext =
-    GetCasted(StepData_UndefinedEntity,TC.Transferred(another->Next()));
-  else thenext.Nullify();
-}
-
 
     void  StepData_UndefinedEntity::FillShared
   (Interface_EntityIterator& list) const
index 281db09d004664b56820d750b4a39d03e2dbbccd..32490b24139ff36bf568e3d273a6766b9f761464 100644 (file)
@@ -29,7 +29,6 @@ class Interface_UndefinedContent;
 class StepData_StepReaderData;
 class Interface_Check;
 class StepData_StepWriter;
-class Interface_CopyTool;
 class Interface_EntityIterator;
 
 
@@ -43,10 +42,8 @@ DEFINE_STANDARD_HANDLE(StepData_UndefinedEntity, MMgt_TShared)
 //! ANDOR clause in Express).
 class StepData_UndefinedEntity : public MMgt_TShared
 {
+ public:
 
-public:
-
-  
   //! creates an Unknown entity
   Standard_EXPORT StepData_UndefinedEntity();
   
@@ -84,37 +81,17 @@ public:
   //! write data to StepWriter, taken from UndefinedContent
   Standard_EXPORT void WriteParams (StepData_StepWriter& SW) const;
   
-  //! reads another UndefinedEntity from StepData
-  Standard_EXPORT void GetFromAnother (const Handle(StepData_UndefinedEntity)& other, Interface_CopyTool& TC);
-  
   //! Fills the list of shared entities
   Standard_EXPORT void FillShared (Interface_EntityIterator& list) const;
 
-
-
-
   DEFINE_STANDARD_RTTIEXT(StepData_UndefinedEntity,MMgt_TShared)
 
-protected:
-
-
-
-
-private:
-
+ private:
 
   Handle(TCollection_HAsciiString) thetype;
   Handle(Interface_UndefinedContent) thecont;
   Standard_Boolean thesub;
   Handle(StepData_UndefinedEntity) thenext;
-
-
 };
 
-
-
-
-
-
-
 #endif // _StepData_UndefinedEntity_HeaderFile
index a4cce789586e01f10c9eb697e876cce1df8e2d35..7c8d031438686e5ff008b872f4d479d7ddbea4d4 100644 (file)
 #include <Standard_DefineAlloc.hxx>
 #include <Standard_Handle.hxx>
 
-#include <Standard_Boolean.hxx>
-#include <Standard_Integer.hxx>
 class Interface_Protocol;
 class StepData_NodeOfWriterLib;
 class StepData_ReadWriteModule;
 class StepData_GlobalNodeOfWriterLib;
 
 
-
 class StepData_WriterLib 
 {
  public:
@@ -46,10 +43,6 @@ class StepData_WriterLib
   //! which are bound to the given Protocol and its Resources
   Standard_EXPORT StepData_WriterLib(const Handle(Interface_Protocol)& aprotocol);
   
-  //! Creates an empty Library : it will later by filled by method
-  //! AddProtocol
-  Standard_EXPORT StepData_WriterLib();
-  
   //! Adds a couple (Module-Protocol) to the Library, given the
   //! class of a Protocol. Takes Resources into account.
   //! (if <aprotocol> is not of type TheProtocol, it is not added)
@@ -85,6 +78,9 @@ class StepData_WriterLib
   Standard_EXPORT const Handle(Interface_Protocol)& Protocol() const;
 
  private:
+  
+  //! Creates an empty Library : it will later by filled by method AddProtocol
+  Standard_EXPORT StepData_WriterLib();
 
   Handle(StepData_NodeOfWriterLib) thelist;
   Handle(StepData_NodeOfWriterLib) thecurr;
index f8baa7b5d2c436778d9c59c2e5acfe9a05362b11..b6a55bfa372f3c15207c2f8040694ef13b9b1e39 100644 (file)
@@ -158,8 +158,6 @@ Standard_Integer StepFile_Read
 //   Analyse : par StepReaderTool
 
   StepData_StepReaderTool readtool (undirec,protocol);
-
-  readtool.PrepareHeader();
   readtool.Prepare();
 
 #ifdef CHRONOMESURE
index 309212946a8ddc0bdc912fd163597a43d6511f1b..230a47c28f889a68cd83eedc8c318f0df350b459 100644 (file)
@@ -28,13 +28,11 @@ static TCollection_AsciiString lastvalue;
 
 
 StepSelect_StepType::StepSelect_StepType ()
-: IFSelect_Signature ("Step Type")
+: IFSelect_Signature ("Step Type"),
+  thelib(StepAP214::Protocol()),
+  theproto(StepAP214::Protocol())
 {
-  const Handle(StepAP214_Protocol) &proto = StepAP214::Protocol();
-  if (proto.IsNull()) Interface_InterfaceError::Raise("StepSelect_StepType");
-  theproto = proto;
-  thelib.Clear();
-  thelib.AddProtocol (theproto);
+  if (theproto.IsNull()) Interface_InterfaceError::Raise("StepSelect_StepType");
   thename.Clear();
   thename.AssignCat ("Step Type (Schema ");
   thename.AssignCat (theproto->SchemaName());
index f278647059fa227795bb4a319577d82e8816039b..1f23ddad347bcb98909ef42107a13ea5e6063d84 100644 (file)
@@ -32,7 +32,6 @@
 #include <IGESData_IGESModel.hxx>
 #include <IGESData_Protocol.hxx>
 #include <IGESToBRep.hxx>
-#include <IGESToBRep_Reader.hxx>
 #include <Interface_Check.hxx>
 #include <Interface_CheckIterator.hxx>
 #include <Interface_InterfaceModel.hxx>