]> OCCT Git - occt-copy.git/commitdiff
0024023: Revamp the OCCT Handle -- general
authorabv <abv@opencascade.com>
Tue, 30 Jun 2015 07:25:12 +0000 (10:25 +0300)
committerabv <abv@opencascade.com>
Sat, 11 Jul 2015 09:08:02 +0000 (12:08 +0300)
Missing headers added; includes of headers "Handle_...hxx" removed.

Misuses of macro Handle() and its use in typedefs corrected.

Alias classes Profile and Option are removed from IFSelect; ones defined in MoniTool are used directly.

Removed header files defining only Handle classes (except Image_PixMap_Handle.hxx)

Classes SelectMgr_BaseFrustum and now inherit Standard_Transient and can be manipulated by Handle (not NCollection_Handle)

Fixed reference-type local variable pointing to temporary object

Use of handle in conditional expressions and comparisons to NULL are replaced by call to method IsNull()

311 files changed:
src/AIS/AIS_AngleDimension.hxx
src/AIS/AIS_DiameterDimension.hxx
src/AIS/AIS_Dimension.hxx
src/AIS/AIS_GraphicTool.cxx
src/AIS/AIS_InteractiveContext.cxx
src/AIS/AIS_InteractiveContext_2.cxx
src/AIS/AIS_MaxRadiusDimension.cxx
src/AIS/AIS_MinRadiusDimension.cxx
src/AIS/AIS_PointCloud.hxx
src/AIS/AIS_RadiusDimension.hxx
src/BOPAlgo/BOPAlgo_PaveFiller_6.cxx
src/BOPAlgo/BOPAlgo_PaveFiller_7.cxx
src/BOPDS/BOPDS_ListOfPaveBlock.hxx
src/BOPTools/BOPTools_AlgoTools2D.cxx
src/BRepCheck/BRepCheck_Solid.cxx
src/BRepFill/BRepFill_Filling.cxx
src/BRepFill/BRepFill_Sweep.cxx
src/BRepGProp/BRepGProp_Gauss.cxx
src/BRepGProp/BRepGProp_Gauss.hxx
src/BRepMAT2d/BRepMAT2d_BisectingLocus.cxx
src/BRepMAT2d/BRepMAT2d_Explorer.cxx
src/BRepMesh/BRepMesh.hxx
src/BRepMesh/BRepMesh_EdgeTessellationExtractor.hxx
src/BRepMesh/BRepMesh_FastDiscretFace.cxx
src/BRepMesh/BRepMesh_ShapeTool.hxx
src/BRepOffset/BRepOffset_Inter2d.cxx
src/BRepOffset/BRepOffset_MakeOffset.cxx
src/BRepOffset/BRepOffset_Offset.cxx
src/BRepOffsetAPI/BRepOffsetAPI_ThruSections.cxx
src/BRepTest/BRepTest_BasicCommands.cxx
src/BRepTest/BRepTest_FilletCommands.cxx
src/BRepTools/BRepTools_Modifier.cxx
src/BRepTools/BRepTools_ShapeSet.cxx
src/BVH/BVH.cxx
src/BinTObjDrivers/BinTObjDrivers_DocumentRetrievalDriver.cxx
src/BinTObjDrivers/BinTObjDrivers_DocumentStorageDriver.cxx
src/BinTools/BinTools_ShapeSet.cxx
src/ChFi2d/ChFi2d_ChamferAPI.cxx
src/ChFi3d/ChFi3d_Builder_2.cxx
src/ChFi3d/ChFi3d_Builder_C2.cxx
src/ChFi3d/ChFi3d_Builder_CnCrn.cxx
src/ChFi3d/ChFi3d_Builder_SpKP.cxx
src/ChFi3d/ChFi3d_ChBuilder_C3.cxx
src/ChFi3d/ChFi3d_FilBuilder_C2.cxx
src/ChFi3d/ChFi3d_FilBuilder_C3.cxx
src/DBRep/DBRep_IsoBuilder.cxx
src/Draw/Draw_VariableCommands.cxx
src/DrawFairCurve/DrawFairCurve_Batten.cxx
src/Expr/Expr_Array1OfNamedUnknown.hxx
src/Font/Font_BRepFont.cxx
src/Geom/Geom_Axis1Placement.cxx
src/Geom/Geom_Axis2Placement.cxx
src/Geom/Geom_AxisPlacement.cxx
src/Geom/Geom_CartesianPoint.cxx
src/Geom/Geom_Circle.cxx
src/Geom/Geom_ConicalSurface.cxx
src/Geom/Geom_Curve.cxx
src/Geom/Geom_CylindricalSurface.cxx
src/Geom/Geom_Direction.cxx
src/Geom/Geom_ElementarySurface.cxx
src/Geom/Geom_Ellipse.cxx
src/Geom/Geom_Geometry.cxx
src/Geom/Geom_Hyperbola.cxx
src/Geom/Geom_OffsetCurve.cxx
src/Geom/Geom_OffsetSurface.cxx
src/Geom/Geom_Parabola.cxx
src/Geom/Geom_Plane.cxx
src/Geom/Geom_Point.cxx
src/Geom/Geom_RectangularTrimmedSurface.cxx
src/Geom/Geom_SphericalSurface.cxx
src/Geom/Geom_Surface.cxx
src/Geom/Geom_SurfaceOfLinearExtrusion.cxx
src/Geom/Geom_SurfaceOfRevolution.cxx
src/Geom/Geom_ToroidalSurface.cxx
src/Geom/Geom_Transformation.cxx
src/Geom/Geom_TrimmedCurve.cxx
src/Geom/Geom_Vector.cxx
src/Geom/Geom_VectorWithMagnitude.cxx
src/Geom2d/Geom2d_AxisPlacement.cxx
src/Geom2d/Geom2d_CartesianPoint.cxx
src/Geom2d/Geom2d_Circle.cxx
src/Geom2d/Geom2d_Curve.cxx
src/Geom2d/Geom2d_Direction.cxx
src/Geom2d/Geom2d_Ellipse.cxx
src/Geom2d/Geom2d_Geometry.cxx
src/Geom2d/Geom2d_Hyperbola.cxx
src/Geom2d/Geom2d_Line.cxx
src/Geom2d/Geom2d_OffsetCurve.cxx
src/Geom2d/Geom2d_Parabola.cxx
src/Geom2d/Geom2d_Point.cxx
src/Geom2d/Geom2d_Transformation.cxx
src/Geom2d/Geom2d_TrimmedCurve.cxx
src/Geom2d/Geom2d_Vector.cxx
src/Geom2d/Geom2d_VectorWithMagnitude.cxx
src/Geom2dConvert/Geom2dConvert.cxx
src/Geom2dConvert/Geom2dConvert_BSplineCurveKnotSplitting.cxx
src/Geom2dGcc/Geom2dGcc_Circ2dTanCen.cxx
src/Geom2dGcc/Geom2dGcc_Circ2dTanOnRad.cxx
src/GeomConvert/GeomConvert.cxx
src/GeomConvert/GeomConvert_1.cxx
src/GeomConvert/GeomConvert_BSplineCurveKnotSplitting.cxx
src/GeomConvert/GeomConvert_BSplineSurfaceKnotSplitting.cxx
src/GeomFill/GeomFill_ConstrainedFilling.cxx
src/GeomPlate/GeomPlate_BuildPlateSurface.cxx
src/GeomPlate/GeomPlate_CurveConstraint.cxx
src/GeomToStep/GeomToStep_MakeBoundedCurve.cxx
src/GeomToStep/GeomToStep_MakeBoundedSurface.cxx
src/GeomToStep/GeomToStep_MakeCircle.cxx
src/GeomToStep/GeomToStep_MakeConic.cxx
src/GeomToStep/GeomToStep_MakeCurve.cxx
src/GeomToStep/GeomToStep_MakeElementarySurface.cxx
src/GeomToStep/GeomToStep_MakeEllipse.cxx
src/GeomToStep/GeomToStep_MakeHyperbola.cxx
src/GeomToStep/GeomToStep_MakeParabola.cxx
src/GeomToStep/GeomToStep_MakeSurface.cxx
src/GeomToStep/GeomToStep_MakeSweptSurface.cxx
src/Graphic3d/Graphic3d_CAspectMarker.hxx
src/Graphic3d/Graphic3d_CStructure.hxx
src/Graphic3d/Graphic3d_ClipPlane.cxx
src/Graphic3d/Graphic3d_MapOfStructure.hxx
src/Graphic3d/Graphic3d_MarkerImage.cxx
src/Graphic3d/Graphic3d_MarkerImage.hxx
src/Graphic3d/Graphic3d_NMapOfTransient.hxx
src/Graphic3d/Graphic3d_ShaderProgram.hxx
src/IFSelect/IFSelect.cdl
src/IFSelect/IFSelect_Activator.cxx
src/IFSelect/IFSelect_Functions.cxx
src/IFSelect/IFSelect_SessionFile.cxx
src/IGESCAFControl/IGESCAFControl_Writer.cxx
src/IGESControl/IGESControl_ActorWrite.cxx
src/IGESControl/IGESControl_Controller.cxx
src/IGESControl/IGESControl_Writer.cxx
src/IGESData/IGESData_IGESDumper.cxx
src/IGESSelect/IGESSelect_SelectDrawingFrom.cxx
src/IGESSelect/IGESSelect_SelectFromDrawing.cxx
src/IGESSelect/IGESSelect_SelectFromSingleView.cxx
src/IGESSelect/IGESSelect_SelectSingleViewFrom.cxx
src/IGESSelect/IGESSelect_WorkLibrary.cxx
src/IGESToBRep/IGESToBRep_CurveAndSurface.lxx
src/IVtk/IVtk_IShape.hxx
src/IVtk/IVtk_IShapeData.hxx
src/IVtk/IVtk_IShapeMesher.hxx
src/IVtk/IVtk_IShapePickerAlgo.hxx
src/IVtk/IVtk_IView.hxx
src/IVtk/IVtk_Interface.hxx
src/IVtkDraw/IVtkDraw.cxx
src/IVtkDraw/IVtkDraw_HighlightAndSelectionPipeline.hxx
src/IVtkOCC/IVtkOCC_SelectableObject.cxx
src/IVtkOCC/IVtkOCC_Shape.hxx
src/IVtkOCC/IVtkOCC_ShapeMesher.cxx
src/IVtkOCC/IVtkOCC_ShapeMesher.hxx
src/IVtkOCC/IVtkOCC_ShapePickerAlgo.cxx
src/IVtkOCC/IVtkOCC_ShapePickerAlgo.hxx
src/IVtkTools/IVtkTools_ShapeDataSource.cxx
src/IVtkVTK/IVtkVTK_ShapeData.hxx
src/IVtkVTK/IVtkVTK_View.hxx
src/IntPatch/IntPatch_RstInt.cxx
src/IntPolyh/IntPolyh_MaillageAffinage.cxx
src/LDOM/FILES
src/LDOM/Handle_LDOM_MemManager.hxx [deleted file]
src/LDOM/LDOMString.hxx
src/LDOM/LDOM_Document.hxx
src/LDOM/LDOM_MemManager.hxx
src/LDOM/LDOM_Node.hxx
src/Law/Law_BSplineKnotSplitting.cxx
src/MeshVS/MeshVS_PrsBuilder.cxx
src/Message/Message_Algorithm.cxx
src/Message/Message_HArrayOfMsg.hxx
src/MoniTool/MoniTool_DataMapOfTimer.hxx
src/MoniTool/MoniTool_ValueInterpret.hxx
src/NCollection/NCollection_WinHeapAllocator.cxx
src/OpenGl/FILES
src/OpenGl/Handle_OpenGl_Context.hxx [deleted file]
src/OpenGl/Handle_OpenGl_FrameBuffer.hxx [deleted file]
src/OpenGl/Handle_OpenGl_GraphicDriver.hxx [deleted file]
src/OpenGl/Handle_OpenGl_PointSprite.hxx [deleted file]
src/OpenGl/Handle_OpenGl_Sampler.hxx [deleted file]
src/OpenGl/Handle_OpenGl_ShaderManager.hxx [deleted file]
src/OpenGl/Handle_OpenGl_ShaderObject.hxx [deleted file]
src/OpenGl/Handle_OpenGl_ShaderProgram.hxx [deleted file]
src/OpenGl/Handle_OpenGl_Texture.hxx [deleted file]
src/OpenGl/Handle_OpenGl_View.hxx [deleted file]
src/OpenGl/Handle_OpenGl_Window.hxx [deleted file]
src/OpenGl/Handle_OpenGl_Workspace.hxx [deleted file]
src/OpenGl/OpenGl_AspectFace.cxx
src/OpenGl/OpenGl_AspectFace.hxx
src/OpenGl/OpenGl_AspectLine.hxx
src/OpenGl/OpenGl_AspectMarker.hxx
src/OpenGl/OpenGl_AspectText.hxx
src/OpenGl/OpenGl_BVHClipPrimitiveSet.cxx
src/OpenGl/OpenGl_BVHTreeSelector.cxx
src/OpenGl/OpenGl_BackgroundArray.cxx
src/OpenGl/OpenGl_CappingAlgo.cxx
src/OpenGl/OpenGl_CappingAlgo.hxx
src/OpenGl/OpenGl_CappingPlaneResource.hxx
src/OpenGl/OpenGl_Clipping.hxx
src/OpenGl/OpenGl_Context.cxx
src/OpenGl/OpenGl_Context.hxx
src/OpenGl/OpenGl_Element.hxx
src/OpenGl/OpenGl_FrameBuffer.hxx
src/OpenGl/OpenGl_GraduatedTrihedron.cxx
src/OpenGl/OpenGl_GraphicDriver.hxx
src/OpenGl/OpenGl_Group.cxx
src/OpenGl/OpenGl_Layer.cxx
src/OpenGl/OpenGl_LayerList.cxx
src/OpenGl/OpenGl_PointSprite.hxx
src/OpenGl/OpenGl_RenderFilter.hxx
src/OpenGl/OpenGl_Sampler.hxx
src/OpenGl/OpenGl_SceneGeometry.cxx
src/OpenGl/OpenGl_ShaderManager.hxx
src/OpenGl/OpenGl_ShaderObject.hxx
src/OpenGl/OpenGl_ShaderProgram.hxx
src/OpenGl/OpenGl_StructureShadow.cxx
src/OpenGl/OpenGl_Text.cxx
src/OpenGl/OpenGl_Text.hxx
src/OpenGl/OpenGl_Texture.hxx
src/OpenGl/OpenGl_Trihedron.cxx
src/OpenGl/OpenGl_View.hxx
src/OpenGl/OpenGl_View_2.cxx
src/OpenGl/OpenGl_View_Raytrace.cxx
src/OpenGl/OpenGl_Window.cxx
src/OpenGl/OpenGl_Window.hxx
src/OpenGl/OpenGl_Workspace.cxx
src/OpenGl/OpenGl_Workspace.hxx
src/OpenGl/OpenGl_Workspace_2.cxx
src/OpenGl/OpenGl_Workspace_5.cxx
src/Poly/Poly_MakeLoops.hxx
src/Prs3d/Prs3d_Drawer.hxx
src/Prs3d/Prs3d_WFShape.hxx
src/PrsMgr/PrsMgr_Presentation.lxx
src/PrsMgr/PrsMgr_PresentationManager.lxx
src/QABugs/QABugs_11.cxx
src/QABugs/QABugs_19.cxx
src/RWHeaderSection/RWHeaderSection_GeneralModule.cxx
src/RWStepAP214/RWStepAP214_ReadWriteModule.cxx
src/RWStepShape/RWStepShape_RWSeamEdge.cxx
src/STEPCAFControl/STEPCAFControl_Reader.cxx
src/STEPCAFControl/STEPCAFControl_Writer.cxx
src/STEPConstruct/STEPConstruct_AP203Context.cxx
src/STEPConstruct/STEPConstruct_ContextTool.cxx
src/STEPControl/STEPControl_ActorWrite.cxx
src/STEPControl/STEPControl_Controller.cxx
src/STEPEdit/STEPEdit.cxx
src/STEPEdit/STEPEdit_EditContext.cxx
src/Select3D/Select3D_EntitySequence.hxx
src/SelectMgr/SelectMgr_BaseFrustum.hxx
src/SelectMgr/SelectMgr_IndexedMapOfOwner.hxx
src/SelectMgr/SelectMgr_SelectableObject.cxx
src/SelectMgr/SelectMgr_Selection.cxx
src/SelectMgr/SelectMgr_SelectionManager.cxx
src/SelectMgr/SelectMgr_TriangularFrustum.hxx
src/SelectMgr/SelectMgr_TriangularFrustumSet.cxx
src/SelectMgr/SelectMgr_TriangularFrustumSet.hxx
src/ShapeAnalysis/ShapeAnalysis_Curve.cxx
src/ShapeFix/ShapeFix_Wire.cxx
src/ShapeUpgrade/ShapeUpgrade_ShapeDivideAngle.cxx
src/ShapeUpgrade/ShapeUpgrade_ShapeDivideClosed.cxx
src/ShapeUpgrade/ShapeUpgrade_ShapeDivideClosedEdges.cxx
src/ShapeUpgrade/ShapeUpgrade_ShellSewing.cxx
src/ShapeUpgrade/ShapeUpgrade_SplitCurve.cxx
src/StdPrs/StdPrs_WFDeflectionRestrictedFace.cxx
src/StdPrs/StdPrs_WFRestrictedFace.cxx
src/StepAP209/StepAP209_Construct.cxx
src/StepAP214/StepAP214_Protocol.cxx
src/StepData/StepData_DefaultGeneral.cxx
src/StepToTopoDS/StepToTopoDS_PointPairHasher.cxx
src/StepToTopoDS/StepToTopoDS_TranslateCurveBoundedSurface.cxx
src/StepToTopoDS/StepToTopoDS_TranslateEdgeLoop.cxx
src/Storage/Storage_ArrayOfSchema.hxx
src/TDF/TDF_AttributeIndexedMap.hxx
src/TDF/TDF_Label.lxx
src/TDocStd/TDocStd_ApplicationDelta.cxx
src/TDocStd/TDocStd_Document.cxx
src/TDocStd/TDocStd_MultiTransactionManager.cxx
src/TObj/FILES
src/TObj/Handle_TObj_Model.hxx [deleted file]
src/TObj/Handle_TObj_Object.hxx [deleted file]
src/TObj/TObj_Assistant.hxx
src/TObj/TObj_Model.hxx
src/TObj/TObj_Object.hxx
src/TObj/TObj_ObjectIterator.hxx
src/TObj/TObj_SequenceOfObject.hxx
src/TObj/TObj_TModel.hxx
src/TObj/TObj_TNameContainer.hxx
src/TObj/TObj_TReference.hxx
src/TestTopOpeDraw/TestTopOpeDraw_Displayer.cxx
src/TopoDS/TopoDS_Shape.lxx
src/TopoDSToStep/TopoDSToStep_MakeStepEdge.cxx
src/TopoDSToStep/TopoDSToStep_MakeStepFace.cxx
src/TopoDSToStep/TopoDSToStep_WireframeBuilder.cxx
src/Transfer/Transfer_ActorOfFinderProcess.cxx
src/Transfer/Transfer_ActorOfTransientProcess.cxx
src/V3d/V3d_Plane.cxx
src/V3d/V3d_Plane.hxx
src/ViewerTest/ViewerTest_ObjectCommands.cxx
src/ViewerTest/ViewerTest_OpenGlCommands.cxx
src/ViewerTest/ViewerTest_ViewerCommands.cxx
src/Visual3d/Visual3d_Layer.cxx
src/Visual3d/Visual3d_View.cxx
src/VrmlData/VrmlData_ShapeConvert.hxx
src/XCAFDoc/XCAFDoc_GraphNodeSequence.hxx
src/XSControl/XSControl.cdl
src/XSControl/XSControl_Controller.cdl
src/XSControl/XSControl_Controller.cxx
src/XSControl/XSControl_Functions.cxx
src/XSControl/XSControl_TransferWriter.cxx
src/XSControl/XSControl_WorkSession.cxx
src/XmlLDrivers/XmlLDrivers_DocumentRetrievalDriver.cxx
src/XmlMNaming/XmlMNaming_NamedShapeDriver.cxx
src/XmlTObjDrivers/XmlTObjDrivers_DocumentRetrievalDriver.cxx
src/XmlTObjDrivers/XmlTObjDrivers_DocumentStorageDriver.cxx

index a1bb750e0f7b4a261b02556bd0599bc56cb37318..1020029d2e3dfda26456ed2acd45c1607788e724 100755 (executable)
@@ -34,6 +34,7 @@
 #include <TopoDS_Face.hxx>
 #include <TopoDS_Vertex.hxx>
 
+class AIS_AngleDimension;
 DEFINE_STANDARD_HANDLE (AIS_AngleDimension, AIS_Dimension)
 
 //! Angle dimension. Can be constructed:
index 5d6dd8c14253845a2b044efb263006a07503b647..3547b52a001957034a41473a28a584b135cb494f 100644 (file)
@@ -24,6 +24,7 @@
 #include <Standard_Macro.hxx>
 #include <Standard_Type.hxx>
 
+class AIS_DiameterDimension;
 DEFINE_STANDARD_HANDLE (AIS_DiameterDimension, AIS_Dimension)
 
 //! Diameter dimension. Can be constructued:
index 07f687e8ad4874d4ccdb569d13aeafc210f357be..12de7352476b0269057162e8a6ed5d876e1dd802 100755 (executable)
@@ -42,6 +42,7 @@
 #include <NCollection_Sequence.hxx>
 #include <NCollection_Handle.hxx>
 
+class AIS_Dimension;
 DEFINE_STANDARD_HANDLE(AIS_Dimension, AIS_InteractiveObject)
 
 //! AIS_Dimension is a base class for 2D presentations of linear (length, diameter, radius)
index cd0ddf4c813f1ab37b8580e604e60daa6c17daef..dbaead1df3d1966cad25a6ac6e479116bf3a3227 100644 (file)
@@ -28,7 +28,7 @@
 #include <Aspect_InteriorStyle.hxx>
 
 #include <Prs3d_ShadingAspect.hxx>
-
+#include <Prs3d_IsoAspect.hxx>
 
 static Handle(Prs3d_LineAspect) GetLineAspect(const Handle(Prs3d_Drawer)& Dr,
                                              const AIS_TypeOfAttribute Att)
index 7c59a444edfda81e65ec210be238c93c6c117e83..111128118836e719612ab09a1ffaa4ff55b5a015 100644 (file)
@@ -395,11 +395,11 @@ void AIS_InteractiveContext::SetViewAffinity (const Handle(AIS_InteractiveObject
   anAffinity->SetVisible (aCView->ViewId, theIsVisible == Standard_True);
   if (theIsVisible)
   {
-    theView->View()->ChangeHiddenObjects()->Remove (theIObj);
+    theView->View()->ChangeHiddenObjects()->Remove (theIObj.get());
   }
   else
   {
-    theView->View()->ChangeHiddenObjects()->Add (theIObj);
+    theView->View()->ChangeHiddenObjects()->Add (theIObj.get());
   }
 }
 
@@ -2435,7 +2435,7 @@ void AIS_InteractiveContext::ClearGlobal (const Handle(AIS_InteractiveObject)& t
   myMainVwr->Viewer()->UnregisterObject (theIObj);
   for (myMainVwr->InitDefinedViews(); myMainVwr->MoreDefinedViews(); myMainVwr->NextDefinedViews())
   {
-    myMainVwr->DefinedView()->View()->ChangeHiddenObjects()->Remove (theIObj);
+    myMainVwr->DefinedView()->View()->ChangeHiddenObjects()->Remove (theIObj.get());
   }
 
   if (theToUpdateviewer
@@ -2826,7 +2826,7 @@ void AIS_InteractiveContext::Disconnect (const Handle(AIS_InteractiveObject)& th
     theObj->Disconnect (theObjToDisconnect);
     mgrSelector->Remove (theObjToDisconnect);
   }
-  else if (theAssembly->IsInstance ("AIS_ConnectedInteractive") && theObjToDisconnect == NULL)
+  else if (theAssembly->IsInstance ("AIS_ConnectedInteractive") && theObjToDisconnect.IsNull())
   {
     const Handle(AIS_ConnectedInteractive)& theObj =
       Handle(AIS_ConnectedInteractive)::DownCast (theAssembly);
index 0fef9640fac633b9734c9622fe7a3e8009df28e1..0b58c79f90599d80a296b2ede0333daa6a06392f 100644 (file)
@@ -674,7 +674,7 @@ Standard_Integer AIS_InteractiveContext::PurgeDisplay()
 //=======================================================================
 Standard_Integer AIS_InteractiveContext::PurgeViewer(const Handle(V3d_Viewer)& Vwr)
 {
-  const Handle(Graphic3d_StructureManager)& GSM = Vwr->Viewer();
+  Handle(Graphic3d_StructureManager) GSM = Vwr->Viewer();
   Standard_Integer NbCleared(0);
   Graphic3d_MapOfStructure SOS;
   GSM->DisplayedStructures(SOS);
index 695ec446606758efebe38cd136a9a313927895dd..cb60705562aad9186bbf08487009ad72c6666059 100644 (file)
@@ -41,6 +41,7 @@
 #include <BRepAdaptor_Curve.hxx>
 
 #include <Geom_Ellipse.hxx>
+#include <Geom_OffsetCurve.hxx>
 #include <Geom_TrimmedCurve.hxx>
 #include <Geom_Plane.hxx>
 #include <Geom_Surface.hxx>
@@ -323,7 +324,7 @@ void AIS_MaxRadiusDimension::ComputeSelection(const Handle(SelectMgr_Selection)&
            else 
              parStart = par;
 
-           Handle(Geom_TrimmedCurve)TrimCurve;
+           Handle(Geom_Curve)TrimCurve;
            if(myIsOffset)
              {
                Handle(Geom_Curve) aCurve = myOffsetCurve;
index 861f2d0549a06bce87a4ddae5c5a826acd73ebfb..b130c9bf075941dbeea06b850dfd9994a7521cf1 100644 (file)
@@ -42,6 +42,7 @@
 #include <BRepAdaptor_Curve.hxx>
 
 #include <Geom_Ellipse.hxx>
+#include <Geom_OffsetCurve.hxx>
 #include <Geom_TrimmedCurve.hxx>
 #include <Geom_Plane.hxx>
 #include <Geom_Surface.hxx>
@@ -325,7 +326,7 @@ void AIS_MinRadiusDimension::ComputeSelection(const Handle(SelectMgr_Selection)&
            }
            else 
              parStart = par;
-           Handle(Geom_TrimmedCurve)TrimCurve;
+           Handle(Geom_Curve)TrimCurve;
            if(myIsOffset)
              {
                Handle(Geom_Curve) aCurve = myOffsetCurve;
index 18ef98efe2566d34bf34abbfb02eca0d231136b8..fa38a5c0936a5faac311023e3ccc05ac5adf2bfc 100644 (file)
@@ -27,6 +27,7 @@
 #include <TColgp_HArray1OfDir.hxx>
 #include <TColgp_HArray1OfPnt.hxx>
 
+class AIS_PointCloud;
 DEFINE_STANDARD_HANDLE(AIS_PointCloud, AIS_InteractiveObject)
 
 //! Interactive object for set of points.
index 07bb31664985b3a99107192ac3878185edab2a1b..b484a0988a4a00b1db7b14fb561202c200e18458 100644 (file)
@@ -22,6 +22,7 @@
 #include <Standard.hxx>
 #include <Standard_Macro.hxx>
 
+class AIS_RadiusDimension;
 DEFINE_STANDARD_HANDLE (AIS_RadiusDimension,AIS_Dimension)
 
 //! Radius dimension. Can be constructued:
index 850f5828b2a8541afd97a8d8a507edd47938ea7e..9fa26e3e40ff44d6a51b6aadbfe205b303d51982 100644 (file)
@@ -1131,7 +1131,7 @@ void BOPAlgo_PaveFiller::UpdateFaceInfo
      const BOPDS_Curve& theNC,
      const Standard_Real theTolR3D,
      const BOPDS_IndexedMapOfPaveBlock& theMPBOnIn,
-     Handle(BOPDS_PaveBlock&) aPBOut)
+     Handle(BOPDS_PaveBlock)& aPBOut)
 {
   Standard_Boolean bRet;
   Standard_Real aT1, aT2, aTm, aTx;
index 445f7ec23374de929174e379d17a860ac6368fd0..2bf9f0615e857ec1ae726e361ad203c07c35f9f1 100644 (file)
@@ -516,7 +516,7 @@ void BOPAlgo_PaveFiller::MakePCurves()
       }
       //
       Handle(BOPDS_CommonBlock) aCB=myDS->CommonBlock(aPB);
-      if (!aCB) {
+      if (aCB.IsNull()) {
         continue;
       }
       //
index 11dfd45e4c6cedd9673e8ca39f7340a0a2332fbc..8692313da88cbad17efbffcdc48999ecc5cf71f9 100644 (file)
@@ -17,6 +17,7 @@
 
 #include <NCollection_List.hxx>   
 
+class BOPDS_PaveBlock;
 typedef NCollection_List<Handle(BOPDS_PaveBlock)> BOPDS_ListOfPaveBlock; 
 typedef BOPDS_ListOfPaveBlock::Iterator BOPDS_ListIteratorOfListOfPaveBlock;
 
index 6b607820261caabd83b9a6537f01ecb09555dd6e..c371bd7603093faf4bebe4dd37ef15281924a9dc 100644 (file)
@@ -31,6 +31,7 @@
 #include <Geom2d_Parabola.hxx>
 #include <Geom2d_Hyperbola.hxx>
 #include <Geom2d_TrimmedCurve.hxx>
+#include <Geom2d_BSplineCurve.hxx>
 
 #include <Geom2dAdaptor.hxx>
 
index 27312e5a57333f206c981cfec9cb9d6cb032b088..3a95e87a47c4592860d9d55b1f23850dbd6b0719 100644 (file)
@@ -41,7 +41,7 @@
 #include <BRepCheck.hxx>
 #include <BRepCheck_ListOfStatus.hxx>
 
-
+class BRepCheck_HSC;
 DEFINE_STANDARD_HANDLE(BRepCheck_HSC, MMgt_TShared);
 //=======================================================================
 //class    : BRepCheck_HSC
index 56e108abc193442f84880c8fd57bd620d6cc7334..d903b476f2c2d30cad07756e537e7914c71e9afa 100644 (file)
@@ -60,7 +60,7 @@
 
 #include <Geom2d_BezierCurve.hxx>
 #include <Geom2d_TrimmedCurve.hxx>
-#include <Geom_Surface.hxx>
+#include <Geom_BSplineSurface.hxx>
 
 #include <TColgp_SequenceOfXY.hxx>
 #include <GeomPlate_PlateG0Criterion.hxx>
index c7aec1750e0cd77a2b364459d951bd3394b97042..d35de2d78d364ba549129524d543ae60f2959c43 100644 (file)
@@ -45,7 +45,7 @@
 #include <Geom_BezierCurve.hxx>
 #include <Geom_BSplineCurve.hxx>
 #include <Geom2d_Line.hxx>
-#include <Geom2d_Curve.hxx>
+#include <Geom2d_BSplineCurve.hxx>
 #include <Geom2d_TrimmedCurve.hxx>
 #include <GeomLib.hxx>
 #include <GeomLib_IsPlanarSurface.hxx>
index 526d1eacb8e6478663ac639d2094e65cfe7dad54..2db9abbc3b4076ec595b3ce4ddbfa75eb15540e9 100644 (file)
@@ -176,7 +176,7 @@ Standard_Integer BRepGProp_Gauss::MaxSubs(const Standard_Integer theN,
 //function : Init
 //purpose  : 
 //=======================================================================
-void BRepGProp_Gauss::Init(Handle(Vector)&         theOutVec,
+void BRepGProp_Gauss::Init(NCollection_Handle<math_Vector>&         theOutVec,
                            const Standard_Real    theValue,
                            const Standard_Integer theFirst,
                            const Standard_Integer theLast)
@@ -227,10 +227,10 @@ Standard_Integer BRepGProp_Gauss::FillIntervalBounds(
   const TColStd_Array1OfReal& theKnots,
   const Standard_Integer      theNumSubs,
   InertiaArray&               theInerts,
-  Handle(Vector)&              theParam1,
-  Handle(Vector)&              theParam2,
-  Handle(Vector)&              theError,
-  Handle(Vector)&              theCommonError)
+  NCollection_Handle<math_Vector>&              theParam1,
+  NCollection_Handle<math_Vector>&              theParam2,
+  NCollection_Handle<math_Vector>&              theError,
+  NCollection_Handle<math_Vector>&              theCommonError)
 {
   const Standard_Integer aSize =
     Max(theKnots.Upper(), MaxSubs(theKnots.Upper() - 1, theNumSubs));
@@ -550,10 +550,10 @@ Standard_Real BRepGProp_Gauss::Compute(
   InertiaArray anInertiaU = new NCollection_Array1<Inertia>(1, SM);
 
   // Prepare Gauss points and weights
-  Handle(Vector) LGaussP[2];
-  Handle(Vector) LGaussW[2];
-  Handle(Vector) UGaussP[2];
-  Handle(Vector) UGaussW[2];
+  NCollection_Handle<math_Vector> LGaussP[2];
+  NCollection_Handle<math_Vector> LGaussW[2];
+  NCollection_Handle<math_Vector> UGaussP[2];
+  NCollection_Handle<math_Vector> UGaussW[2];
 
   const Standard_Integer aNbGaussPoint =
     RealToInt(Ceiling(ERROR_ALGEBR_RATIO * GPM));
@@ -568,14 +568,14 @@ Standard_Real BRepGProp_Gauss::Compute(
   UGaussW[0] = new math_Vector(1, GPM);
   UGaussW[1] = new math_Vector(1, aNbGaussPoint);
 
-  Handle(Vector) L1 = new math_Vector(1, SM);
-  Handle(Vector) L2 = new math_Vector(1, SM);
-  Handle(Vector) U1 = new math_Vector(1, SM);
-  Handle(Vector) U2 = new math_Vector(1, SM);
+  NCollection_Handle<math_Vector> L1 = new math_Vector(1, SM);
+  NCollection_Handle<math_Vector> L2 = new math_Vector(1, SM);
+  NCollection_Handle<math_Vector> U1 = new math_Vector(1, SM);
+  NCollection_Handle<math_Vector> U2 = new math_Vector(1, SM);
 
-  Handle(Vector) ErrL  = new math_Vector(1, SM, 0.0);
-  Handle(Vector) ErrU  = new math_Vector(1, SM, 0.0);
-  Handle(Vector) ErrUL = new math_Vector(1, SM, 0.0);
+  NCollection_Handle<math_Vector> ErrL  = new math_Vector(1, SM, 0.0);
+  NCollection_Handle<math_Vector> ErrU  = new math_Vector(1, SM, 0.0);
+  NCollection_Handle<math_Vector> ErrUL = new math_Vector(1, SM, 0.0);
 
   // Face parametrization in U and V direction
   Standard_Real BV1, BV2, BU1, BU2;
@@ -746,7 +746,7 @@ Standard_Real BRepGProp_Gauss::Compute(
                 if (Abs(u2 - u1) < EPS_PARAM)
                   continue;
 
-                Handle(Vector) aDummy;
+                NCollection_Handle<math_Vector> aDummy;
                 iUSubEnd = FillIntervalBounds(u1, u2, UKnots, NumSubs, anInertiaU, U1, U2, ErrU, aDummy);
                 UMaxSubs = BRepGProp_Gauss::MaxSubs(iUSubEnd);
 
index 8607820b897f5a50ac96e475c3a94047f177c7f2..825b15f00edc1a538fe6f24aa4a5d293f09f15c5 100644 (file)
@@ -251,7 +251,7 @@ private: //! @name private methods
     const Standard_Integer theCoeff = 32);
 
   static void Init(
-    Handle(Vector)&         theOutVec,
+    NCollection_Handle<math_Vector>&         theOutVec,
     const Standard_Real    theValue,
     const Standard_Integer theFirst = 0,
     const Standard_Integer theLast  = 0);
@@ -268,10 +268,10 @@ private: //! @name private methods
     const TColStd_Array1OfReal& theKnots,
     const Standard_Integer      theNumSubs,
     InertiaArray&               theInerts,
-    Handle(Vector)&              theParam1,
-    Handle(Vector)&              theParam2,
-    Handle(Vector)&              theError,
-    Handle(Vector)&              theCommonError);
+    NCollection_Handle<math_Vector>&              theParam1,
+    NCollection_Handle<math_Vector>&              theParam2,
+    NCollection_Handle<math_Vector>&              theError,
+    NCollection_Handle<math_Vector>&              theCommonError);
 
 private: //! @name private fields
 
index d96a6d8f8424bbf911db49421432e145116ac76f..4a34d3f05bb576ea1a15c25d1ad8f93aa39868e9 100644 (file)
@@ -30,7 +30,7 @@
 # include <MAT_ListOfBisector.hxx>
 # include <MAT_DataMapOfIntegerBasicElt.hxx>
 # include <MAT_DataMapIteratorOfDataMapOfIntegerBasicElt.hxx>
-# include <Geom2d_Curve.hxx>
+# include <Geom2d_TrimmedCurve.hxx>
 # include <gp_Pnt2d.hxx>
 # include <TColGeom2d_SequenceOfGeometry.hxx>
 # include <Precision.hxx>
index ff505452a14e26bdf8dc7150acceb3243b8dffca..42c38e040b15d2ca0f998090aea31f1a42e4c201 100644 (file)
@@ -613,12 +613,12 @@ void AdjustCurveEnd(Handle(Geom2d_BoundedCurve)& theC2d, const gp_Pnt2d theP,
     if(isFirst)
     {
       gp_Pnt2d aP = theC2d->Value(theC2d->LastParameter());
-      theC2d = GCE2d_MakeSegment(theP, aP);
+      theC2d = GCE2d_MakeSegment(theP, aP).Value();
     }
     else
     {
       gp_Pnt2d aP = theC2d->Value(theC2d->FirstParameter());
-      theC2d = GCE2d_MakeSegment(aP, theP);
+      theC2d = GCE2d_MakeSegment(aP, theP).Value();
     }
   }
   else
index 74c7b7a7bbf57fec6458355e0b437cd2a90521e9..e4c4279668f46025511fc22321c2e65958ab52e3 100644 (file)
@@ -47,6 +47,7 @@
 class BRepMesh_Vertex;
 class TopoDS_Edge;
 class TopoDS_Vertex;
+class BRepMesh_FaceAttribute;
 class BRepMesh_VertexInspector;
 class BRepMesh_CircleInspector;
 class BRepMesh_Classifier;
index 8c4b40f77b9b8c61417992752c24dead4d22808a..432e075516d53ff4a9b7d517f6c288fb55e5f552 100644 (file)
@@ -28,6 +28,7 @@ class Poly_Triangulation;
 class Poly_PolygonOnTriangulation;
 class TopoDS_Edge;
 class TopoDS_Face;
+class Geom2d_Curve;
 
 //! Auxiliary class implements functionality retrieving tessellated
 //! representation of an edge stored in polygon.
index 4e443877ee1eee257f5f4ca31c714c141423fa62..3db143d9f7ff3a526bc70cab49b6b183f220e6c9 100644 (file)
@@ -32,6 +32,7 @@
 #include <GeomLib.hxx>
 #include <Geom_Surface.hxx>
 #include <Geom_BSplineSurface.hxx>
+#include <Geom_BezierSurface.hxx>
 #include <GCPnts_TangentialDeflection.hxx>
 #include <GCPnts_AbscissaPoint.hxx>
 
index b65c9d9f11618c4085c6b06e2b0bec3af794c9a9..35192a6fdc25177f3941147e48623b3d28c77979 100644 (file)
 #include <Standard.hxx>
 #include <Standard_DefineAlloc.hxx>
 #include <Standard_Macro.hxx>
+#include <BRepAdaptor_HSurface.hxx>
 #include <BRepMesh_FaceAttribute.hxx>
 #include <BRepMesh.hxx>
 
+class Poly_Triangulation;
 class TopoDS_Face;
 class TopoDS_Edge;
 class Bnd_Box;
index c81c40161f6451b540f2198f7e18b75a5b6d05f4..ee39bcc952291b5b24d9c1fe01a8552a18ea15aa 100644 (file)
@@ -49,6 +49,7 @@
 #include <Geom_Line.hxx>
 #include <Geom_Plane.hxx>
 #include <Geom_TrimmedCurve.hxx>
+#include <Geom_BSplineCurve.hxx>
 #include <GeomConvert_CompCurveToBSplineCurve.hxx>
 #include <Precision.hxx>
 #include <Geom2d_TrimmedCurve.hxx>
index d59481a8e67e09abce3ca53e5e34e080ccd4df32..e7d65a0b1d3e6619285b03123a4aba1c8ca367e5 100644 (file)
@@ -92,6 +92,7 @@
 #include <BRepAdaptor_Curve2d.hxx>
 #include <TopTools_DataMapIteratorOfDataMapOfShapeListOfShape.hxx>
 #include <Geom_SphericalSurface.hxx>
+#include <Geom_CylindricalSurface.hxx>
 #include <TopoDS_Wire.hxx>
 #include <BRepTools_Substitution.hxx>
 #include <Geom_TrimmedCurve.hxx>
index 29fb26e7f5f84c0f235d2d91560963c0a4f3cbc0..c5665831395f886971f1c1dccf82eae7d89ea184 100644 (file)
@@ -186,8 +186,8 @@ static void UpdateEdge (const TopoDS_Edge& E,
 //=======================================================================
 
 static void ComputeCurve3d(TopoDS_Edge           Edge,
-                          Handle(Geom2d_Curve)  Curve,
-                          Handle(Geom_Surface)  Surf,
+                          const Handle(Geom2d_Curve)& Curve,
+                          const Handle(Geom_Surface)& Surf,
                           const TopLoc_Location Loc,
                           Standard_Real         Tol)
 {
index db5178fca00fe2b273064d7abe88f502957cf8df..c35f32ff96f90a910e6cedcba6c0e8546a30f74d 100644 (file)
@@ -55,6 +55,7 @@
 
 #include <GeomAbs_Shape.hxx>
 #include <Geom_Curve.hxx>
+#include <Geom_Plane.hxx>
 #include <Geom_BSplineSurface.hxx>
 #include <Geom_TrimmedCurve.hxx>
 #include <Geom_BezierCurve.hxx>
index 6b45689c47a6836bbd20c29221fc4763ae452401..13a97aa416565d9e10b0d2e321b046d1fb4031af 100644 (file)
@@ -48,6 +48,7 @@
 #include <ProjLib_ComputeApproxOnPolarSurface.hxx>
 #include <DrawTrSurf.hxx>
 
+#include <Geom_Plane.hxx>
 
 #include <Draw_Segment3D.hxx>
 #include <Draw_Marker3D.hxx>
index 7fd071035b835a69df8793245a7bf4d0186d6c4b..c4de2d21ad009c058d79dceaa4a78c5626a3f054 100644 (file)
@@ -634,7 +634,7 @@ static Standard_Integer blend1(Draw_Interpretor& di, Standard_Integer narg, cons
    for (i=1;i<=nb;i++)
     {Standard_Integer s=aRakk.NbSection(i);
     for (j=1;j<=s;j++)
-     {Handle(Geom_TrimmedCurve Sec);
+     {Handle(Geom_TrimmedCurve) Sec;
      aRakk.Section(i,j,Sec);
     Sprintf(localname, "%s%d%d" ,"sec",i,j);
      temp =localname;
index 059eb9a4402eb8244416dd995643ed3f05c0e008..b63c2c18680076e4d291b0ae45d4c233122078a8 100644 (file)
@@ -52,7 +52,7 @@
 #include <gp_Trsf.hxx>
 #include <BRepTools_TrsfModification.hxx>
 #include <Message_ProgressSentry.hxx>
-
+#include <Geom_Surface.hxx>
 
 
 //=======================================================================
index 9bed5ed0de77a54a6ea00a2825390c5e2aa96ec3..3f035334b1e219e5e9222258c09cdf0ebe5d9f8e 100644 (file)
@@ -52,6 +52,7 @@
 #include <TColStd_HArray1OfReal.hxx>
 #include <Poly_Triangulation.hxx>
 #include <Poly_PolygonOnTriangulation.hxx>
+#include <Poly_Polygon2D.hxx>
 
 #include <Message_ProgressIndicator.hxx>
 #include <Message_ProgressSentry.hxx>
index 48fd7c09eb60c56d061d21e7fa40373934ca5b63..15844cd07b2b0d962cf70763039d0e917e3f55d3 100644 (file)
@@ -21,6 +21,8 @@
 #include <BVH_SweepPlaneBuilder.hxx>
 #include <BVH_SpatialMedianBuilder.hxx>
 
+#include <Standard_Real.hxx>
+
 // Specific instantiations of struct templates to avoid compilation warnings
 
 template class BVH_Box<Standard_Real, 2>;
index e56a75239a55c7eb0d0ef8fc602499a6ffea8c3d..22bd57bc1d8d1910f45027c27d9a73285042df27 100644 (file)
 #include <BinLDrivers.hxx>
 #include <BinTObjDrivers.hxx>
 
-IMPLEMENT_STANDARD_HANDLE (BinTObjDrivers_DocumentRetrievalDriver,
-                           BinLDrivers_DocumentRetrievalDriver)
-IMPLEMENT_STANDARD_RTTIEXT(BinTObjDrivers_DocumentRetrievalDriver,
-                           BinLDrivers_DocumentRetrievalDriver)
-
 //=======================================================================
 //function : BinTObjDrivers_DocumentRetrievalDriver
 //purpose  : 
index dc94d3822ba6eb4e7ef62f90536fe8af961877e7..c0bf4002b2b2f31db54883e0c66120332cd18049 100644 (file)
 #include <BinLDrivers.hxx>
 #include <BinTObjDrivers.hxx>
 
-IMPLEMENT_STANDARD_HANDLE (BinTObjDrivers_DocumentStorageDriver,
-                           BinLDrivers_DocumentStorageDriver)
-IMPLEMENT_STANDARD_RTTIEXT(BinTObjDrivers_DocumentStorageDriver,
-                           BinLDrivers_DocumentStorageDriver)
-
 //=======================================================================
 //function : BinTObjDrivers_DocumentStorageDriver
 //purpose  : 
index 6f0eb7a984ce5493580324ce8d8290a013df4eab..731f67aca5d03588f7ef3021aed34b284bef5195 100644 (file)
@@ -23,6 +23,7 @@
 #include <Poly_PolygonOnTriangulation.hxx>
 #include <Poly_Polygon3D.hxx>
 #include <Poly_Triangulation.hxx>
+#include <Poly_Polygon2D.hxx>
 #include <BRepTools.hxx>
 #include <BRep_Tool.hxx>
 #include <BRep_TVertex.hxx>
index 8e72cdfbec23a49af432a4c0c8bb752d73884918..9a0224b433f1e28d242437c448c9fc31414350c9 100644 (file)
@@ -16,6 +16,7 @@
 #include <Precision.hxx>
 #include <gp_Pnt.hxx>
 #include <GC_MakeLine.hxx>
+#include <Geom_Line.hxx>
 #include <BRep_Tool.hxx>
 #include <BRepBuilderAPI_MakeEdge.hxx>
 #include <TopoDS_Iterator.hxx>
index 11da929924665d2a68b9f53ebe6be11f728df1b0..86e3c4fc71d384f4fd1906b20fb9cfbe5a5f99a5 100644 (file)
@@ -34,6 +34,7 @@
 #include <ElCLib.hxx>
 
 #include <Geom_BSplineCurve.hxx>
+#include <Geom_BSplineSurface.hxx>
 #include <Geom_Line.hxx>
 #include <Geom_Plane.hxx>
 #include <Geom2d_Curve.hxx>
index 9025eb6f0757bc9a0bc419a584058ab3aa477f90..00304917705eacd0ad53e459ac1a8ff88d57a550 100644 (file)
@@ -93,7 +93,7 @@ static void Reduce(const Standard_Real& p1,
 {
   GeomAdaptor_Surface& s1 = hs1->ChangeSurface();
   GeomAdaptor_Surface& s2 = hs2->ChangeSurface();
-  const Handle(Geom_Surface&) surf = s1.Surface();
+  const Handle(Geom_Surface)& surf = s1.Surface();
   Standard_Real ud,uf,vd,vf;
   surf->Bounds(ud,uf,vd,vf);
   Standard_Real milmoins = 0.51*vd+0.49*vf, milplus = 0.49*vd+0.51*vf;
index 3881f494183b4ad3b1c1d6512e2341cef99062d5..f8a8c91dc34a42268d37caf90f0ae8cd824920fa 100644 (file)
@@ -64,6 +64,7 @@
 #include <Geom2d_Line.hxx>
 #include <Geom_Line.hxx>
 #include <Geom_Curve.hxx>
+#include <Geom_BSplineSurface.hxx>
 #include <Geom2d_TrimmedCurve.hxx>
 #include <GeomInt_IntSS.hxx>
 #include <GeomLib.hxx>
index 68253f768c1816f386726461b84de95dfc0e136c..bea362efcebae1acb7abfe8f80cfb916020e17a6 100644 (file)
@@ -580,7 +580,7 @@ static void FillSD (TopOpeBRepDS_DataStructure& DStr,
       for(;trouve;) {
        const HatchGen_PointOnElement& PEtemp = pPH->Point(LeType);
        IE = PEtemp.Index();
-       Handle(BRepAdaptor_HCurve2d) HE = Handle(BRepAdaptor_HCurve2d::DownCast(M(IE)));
+       Handle(BRepAdaptor_HCurve2d) HE = Handle(BRepAdaptor_HCurve2d)::DownCast(M(IE));
        if(!HE.IsNull()) {
          const TopoDS_Edge& Etemp = HE->ChangeCurve2d().Edge();
          TopExp::Vertices(Etemp,V1,V2);
index d0a9966fa15d2c5dcc600b2d3f699fc74c14f7b5..9c41f276de8b5b6bd568c59dac32ba6b27fc2854 100644 (file)
@@ -48,6 +48,7 @@
 #include <Geom_Plane.hxx>
 #include <Geom2d_Line.hxx>
 #include <Geom_Line.hxx>
+#include <Geom_BSplineSurface.hxx>
 #include <GeomAdaptor_HSurface.hxx>
 
 #include <BRepAdaptor_Surface.hxx>
index 80f181b114224c63bb8dbc23297730b19381d61f..48b078fbf1cb6755df60a19df2ddfb5e6a06edc4 100644 (file)
@@ -38,6 +38,7 @@
 #include <Geom_BSplineCurve.hxx>
 #include <Geom2d_TrimmedCurve.hxx>
 #include <Geom2d_BSplineCurve.hxx>
+#include <Geom_BSplineSurface.hxx>
 #include <Law_Linear.hxx>
 #include <BRepBlend_CSCircular.hxx>
 #include <BRepBlend_Line.hxx>
index 78aa137df980fcc464d2647c649a9834da512c00..3dd8229b1be041569510c76360df09f9a14415ea 100644 (file)
@@ -45,6 +45,7 @@
 #include <Geom2d_Curve.hxx>
 #include <Geom2d_TrimmedCurve.hxx>
 #include <Geom2d_Line.hxx>
+#include <Geom_BSplineSurface.hxx>
 
 #include <IntAna_QuadQuadGeo.hxx>
 #include <IntCurveSurface_IntersectionPoint.hxx>
index 024ad877141c9f1c7970e01072ca3e9baabf0cd1..7a9167147ea6cd0f68a9dd8efee2de842bf958c0 100644 (file)
@@ -188,7 +188,8 @@ Geom2dHatch_Hatcher (Geom2dHatch_Intersector (IntersectorConfusion,
       // if U1 and U2 coincide-->do nothing
       if (Abs (U1 - U2) <= Precision::PConfusion()) continue;
       Handle (Geom2d_TrimmedCurve) TrimPCurve = new Geom2d_TrimmedCurve (PCurve, U1, U2);
-      AddElement (TrimPCurve, TopologicalEdge.Orientation());
+      Geom2dAdaptor_Curve aGAC (TrimPCurve);
+      AddElement (aGAC, TopologicalEdge.Orientation());
     }
   }
 
index 9b067ccfe5f30648041366c177f710d5a7a7f3e7..e9a37c7ec7c94a3e8350f291b9ca2870576b3c57 100644 (file)
@@ -527,7 +527,7 @@ static Standard_Integer copy(Draw_Interpretor& , Standard_Integer n, const char*
        D = D->Copy();
       else 
        // clear old name
-       Draw::Set(a[i],Handle(Draw_Drawable3D()));
+       Draw::Set(a[i],Handle(Draw_Drawable3D)());
 
       Draw::Set(a[i+1],D);
     }
index 332a5d9df01e6e1e0fdc3d71306568fb1d642e24..5155dcec1e8c46b9b34be12af012db83dff96336 100644 (file)
@@ -19,6 +19,7 @@
 #include <FairCurve_Batten.hxx>
 #include <FairCurve_AnalysisCode.hxx>
 #include <GeomTools_Curve2dSet.hxx>
+#include <Geom2d_BSplineCurve.hxx>
 
 DrawFairCurve_Batten::DrawFairCurve_Batten(const Standard_Address TheBatten)
                      : DrawTrSurf_BSplineCurve2d( ((FairCurve_Batten*)TheBatten)->Curve()),
index 24621d3a743b351be6b263adc991c63b6febc88b..02b06eb51700edaa2d1b588edfcc57b7c91d3779 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <NCollection_Array1.hxx>
 
+class Expr_NamedUnknown;
 typedef NCollection_Array1<Handle(Expr_NamedUnknown)> Expr_Array1OfNamedUnknown;
 
 
index 2b82c164bea3fb19252ca22d42ed2f11865bd1a7..d25b1557b86a97c451739e301a5d5e64fec884f5 100755 (executable)
@@ -22,6 +22,7 @@
 #include <GC_MakeSegment.hxx>
 #include <Geom_BezierCurve.hxx>
 #include <Geom_BSplineCurve.hxx>
+#include <Geom2d_TrimmedCurve.hxx>
 #include <Geom_Plane.hxx>
 #include <Geom2d_BezierCurve.hxx>
 #include <Geom2d_BSplineCurve.hxx>
index 53be0a22546affa0afe5b3a8449dfcdee68124fc..b27bbf785630047af62c55422c8227c143823b2a 100644 (file)
@@ -17,7 +17,6 @@
 #include <Geom_Axis1Placement.ixx>
 
 typedef Geom_Axis1Placement         Axis1Placement;
-typedef Handle(Geom_Axis1Placement) Handle(Axis1Placement);
 typedef gp_Ax2  Ax2;
 typedef gp_Dir  Dir;
 typedef gp_Pnt  Pnt;
@@ -31,7 +30,7 @@ typedef gp_Vec  Vec;
 
 Handle(Geom_Geometry) Geom_Axis1Placement::Copy() const {
 
-  Handle(Axis1Placement) A1;
+  Handle(Geom_Axis1Placement) A1;
   A1 = new Axis1Placement (axis);
   return A1;
 }
@@ -66,7 +65,7 @@ void Geom_Axis1Placement::Reverse()  { axis.Reverse(); }
 
 void Geom_Axis1Placement::Transform (const Trsf& T) { axis.Transform (T); }
 
-Handle(Axis1Placement) Geom_Axis1Placement::Reversed() const {
+Handle(Geom_Axis1Placement) Geom_Axis1Placement::Reversed() const {
 
    gp_Ax1 A1 = axis;
    A1.Reverse();
index 1d374a6e509e2cac0e051fce15ce8b1f647ce11c..6f4652f975020bc920dd15f364f8d423574f36ee 100644 (file)
@@ -16,7 +16,6 @@
 
 #include <Geom_Axis2Placement.ixx>
 
-typedef Handle(Geom_Axis2Placement) Handle(Axis2Placement);
 typedef Geom_Axis2Placement Axis2Placement;
 typedef gp_Ax1  Ax1;
 typedef gp_Dir  Dir;
@@ -32,7 +31,7 @@ typedef gp_Vec  Vec;
 
 Handle(Geom_Geometry) Geom_Axis2Placement::Copy() const {
 
-  Handle(Axis2Placement) A2;
+  Handle(Geom_Axis2Placement) A2;
   A2 = new Axis2Placement (axis.Location(), axis.Direction(), vxdir, vydir);
   return A2;
 }
index 5b8cfbb29b69ce1eb685d00d41dd1ee5148c6ef3..0a1d02ed76691fb0245892e37ee2f8da98df8393 100644 (file)
@@ -16,7 +16,6 @@
 
 #include <Geom_AxisPlacement.ixx>
 
-typedef Handle(Geom_AxisPlacement) Handle(AxisPlacement);
 typedef gp_Ax1 Ax1;
 typedef gp_Dir Dir;
 typedef gp_Pnt Pnt;
@@ -34,7 +33,7 @@ void Geom_AxisPlacement::SetAxis (const Ax1& A1) { axis = A1; }
 
 void Geom_AxisPlacement::SetLocation (const Pnt& P) {axis.SetLocation (P);}
 
-Standard_Real Geom_AxisPlacement::Angle (const Handle(AxisPlacement)& Other) const {
+Standard_Real Geom_AxisPlacement::Angle (const Handle(Geom_AxisPlacement)& Other) const {
  return axis.Angle (Other->Axis());
 }
 
index 4f95be620da76d90f6c1a6b09fd61610ec9ff5b6..595824a0877334b60e08e57f0137cf180fb28c99 100644 (file)
 #include <Geom_CartesianPoint.ixx>
 
 typedef Geom_CartesianPoint         CartesianPoint;
-typedef Handle(Geom_CartesianPoint) Handle(CartesianPoint);
 typedef gp_Ax1  Ax1;
 typedef gp_Ax2  Ax2;
 typedef gp_Vec  Vec;
 typedef gp_Trsf Trsf;
 
-
-
 //=======================================================================
 //function : Geom_CartesianPoint
 //purpose  : 
@@ -49,7 +46,7 @@ const Standard_Real X, const Standard_Real Y, const Standard_Real Z) : gpPnt (X,
 
 Handle(Geom_Geometry) Geom_CartesianPoint::Copy() const {
 
-  Handle(CartesianPoint) P;
+  Handle(Geom_CartesianPoint) P;
   P = new CartesianPoint (gpPnt);
   return P; 
 }
index c9cc6183fcf77942a76ec42638a9e14ab9e4de9b..34f7ad35dd54e5f2418212affcbcb05d18629e46 100644 (file)
@@ -21,7 +21,6 @@
 #include <Standard_ConstructionError.hxx> 
 
 typedef Geom_Circle         Circle;
-typedef Handle(Geom_Circle) Handle(Circle);
 typedef gp_Ax2  Ax2;
 typedef gp_Pnt  Pnt;
 typedef gp_Trsf Trsf;
@@ -38,7 +37,7 @@ typedef gp_XYZ  XYZ;
 
 Handle(Geom_Geometry) Geom_Circle::Copy() const {
 
-  Handle(Circle) C;
+  Handle(Geom_Circle) C;
   C = new Circle (pos, radius);
   return C;
 }
index b7fe2406a64b6ad3620ab8218f27052407631e69..9e0cbc7a47cf9771191ea1d8f104c6ae45c492fb 100644 (file)
@@ -32,7 +32,6 @@
 #include <Geom_Circle.hxx>
 
 typedef Geom_ConicalSurface         ConicalSurface;
-typedef Handle(Geom_ConicalSurface) Handle(ConicalSurface);
 typedef gp_Ax1  Ax1;
 typedef gp_Ax2  Ax2;
 typedef gp_Ax3  Ax3;
@@ -44,9 +43,6 @@ typedef gp_Trsf Trsf;
 typedef gp_Vec  Vec;
 typedef gp_XYZ  XYZ;
 
-
-
-
 //=======================================================================
 //function : Copy
 //purpose  : 
@@ -54,7 +50,7 @@ typedef gp_XYZ  XYZ;
 
 Handle(Geom_Geometry) Geom_ConicalSurface::Copy () const {
  
-   Handle(ConicalSurface) Cs;
+   Handle(Geom_ConicalSurface) Cs;
    Cs = new ConicalSurface (pos, semiAngle, radius);
    return Cs;
 }
index 5019f2e5c7a5ab2bf9654fb23a31ffb07e261e15..1aa1e528904fc5079889b8eaf545a61a9d1c891a 100644 (file)
 #include <Geom_Curve.ixx>
 
 typedef Geom_Curve         Curve;
-typedef Handle(Geom_Curve) Handle(Curve);
-
 
 //=======================================================================
 //function : Reversed
 //purpose  : 
 //=======================================================================
 
-Handle(Curve) Geom_Curve::Reversed () const
+Handle(Geom_Curve) Geom_Curve::Reversed () const
 {
-  Handle(Curve) C = Handle(Curve)::DownCast(Copy());
+  Handle(Geom_Curve) C = Handle(Geom_Curve)::DownCast(Copy());
   C->Reverse();
   return C;
 }
index 55e97b7208b1560bf27ba031710e076911514b91..2e655654634f1d8faca6379f391dd42411d84b7e 100644 (file)
@@ -31,7 +31,6 @@
 #include <ElSLib.hxx>
 
 typedef Geom_CylindricalSurface         CylindricalSurface;
-typedef Handle(Geom_CylindricalSurface) Handle(CylindricalSurface);
 
 typedef gp_Ax1  Ax1;
 typedef gp_Ax2  Ax2;
@@ -53,7 +52,7 @@ typedef gp_XYZ  XYZ;
 
 Handle(Geom_Geometry) Geom_CylindricalSurface::Copy () const {
 
-   Handle(CylindricalSurface) Cs;
+   Handle(Geom_CylindricalSurface) Cs;
    Cs = new CylindricalSurface (pos, radius);
    return Cs;
 }
index 457acaa58dd8778debea262d9e5129b3d344433e..db4a5d3c03b5486904783c84f05f74f4f19c42c8 100644 (file)
@@ -19,9 +19,7 @@
 #include <Standard_ConstructionError.hxx>
 
 typedef Geom_Direction         Direction;
-typedef Handle(Geom_Direction) Handle(Direction);
 typedef Geom_Vector            Vector;
-typedef Handle(Geom_Vector)    Handle(Vector);
 typedef gp_Ax1  Ax1;
 typedef gp_Ax2  Ax2;
 typedef gp_Pnt  Pnt;
@@ -36,7 +34,7 @@ typedef gp_Trsf Trsf;
 
 Handle(Geom_Geometry) Geom_Direction::Copy() const {
 
-  Handle(Direction) D;
+  Handle(Geom_Direction) D;
   D = new Direction (gpVec);
   return D; 
 }
@@ -95,7 +93,7 @@ void Geom_Direction::SetZ (const Standard_Real Z) {
 }
 
 
-void Geom_Direction::Cross (const Handle(Vector)& Other) {
+void Geom_Direction::Cross (const Handle(Geom_Vector)& Other) {
 
   gp_Dir V (gpVec.Crossed(Other->Vec()));
   gpVec = V;
@@ -103,14 +101,14 @@ void Geom_Direction::Cross (const Handle(Vector)& Other) {
 
 
 void Geom_Direction::CrossCross (
-const Handle(Vector)& V1, const Handle(Vector)& V2) {
+const Handle(Geom_Vector)& V1, const Handle(Geom_Vector)& V2) {
 
   gp_Dir V (gpVec.CrossCrossed (V1->Vec(), V2->Vec()));
   gpVec = V;
 }
 
 
-Handle(Vector) Geom_Direction::Crossed (const Handle(Vector)& Other)
+Handle(Geom_Vector) Geom_Direction::Crossed (const Handle(Geom_Vector)& Other)
 const {
 
    gp_Dir V (gpVec.Crossed (Other->Vec()));
@@ -118,8 +116,8 @@ const {
 }
 
 
-Handle(Vector) Geom_Direction::CrossCrossed (
-const Handle(Vector)& V1, const Handle(Vector)& V2) const {
+Handle(Geom_Vector) Geom_Direction::CrossCrossed (
+const Handle(Geom_Vector)& V1, const Handle(Geom_Vector)& V2) const {
 
   gp_Dir V (gpVec.CrossCrossed (V1->Vec(), V2->Vec()));
   return new Direction (V);
index e7710716ff1962995e001a8c9cc9d98a6f37ed85..e3bd20802be095713d0733744e99da9805dec9d9 100644 (file)
 
 #include <Geom_ElementarySurface.ixx>
 
-
-
 typedef Geom_ElementarySurface         ElementarySurface;
-typedef Handle(Geom_ElementarySurface) Handle(ElementarySurface);
-typedef Handle(Geom_Surface)           Handle(Surface);
-
 typedef gp_Ax1 Ax1;
 typedef gp_Ax2 Ax2;
 typedef gp_Ax3 Ax3;
@@ -29,9 +24,6 @@ typedef gp_Dir Dir;
 typedef gp_Pnt Pnt;
 typedef gp_Vec Vec;
 
-
-
-
 //=======================================================================
 //function : Continuity
 //purpose  : 
index 5f0434030e6ede71d099ced8922df132d5d6fd12..7c39f5e506b07c55c7d5da3dca78b08e675babf4 100644 (file)
@@ -21,7 +21,6 @@
 #include <Standard_RangeError.hxx>
 
 typedef Geom_Ellipse         Ellipse;
-typedef Handle(Geom_Ellipse) Handle(Ellipse);
 typedef gp_Ax1  Ax1;
 typedef gp_Ax2  Ax2;
 typedef gp_Pnt  Pnt;
@@ -29,10 +28,6 @@ typedef gp_Vec  Vec;
 typedef gp_Trsf Trsf;
 typedef gp_XYZ  XYZ;
 
-
-
-
-
 //=======================================================================
 //function : Copy
 //purpose  : 
@@ -40,7 +35,7 @@ typedef gp_XYZ  XYZ;
 
 Handle(Geom_Geometry) Geom_Ellipse::Copy() const
 {
-  Handle(Ellipse) E;
+  Handle(Geom_Ellipse) E;
   E = new Ellipse (pos, majorRadius, minorRadius);
   return E;
 }
index 5b0ee695757555a9826ac7d50b06bda28742fbbe..2eb107cc233a1fce3a6b848e2741f338c361f994 100644 (file)
@@ -20,7 +20,6 @@
 #include <Geom_Geometry.ixx>
 #include <Standard_ConstructionError.hxx>
 
-typedef Handle(Geom_Geometry) Handle(Geometry);
 typedef Geom_Geometry         Geometry;
 typedef gp_Pnt                Pnt;
 typedef gp_Vec                Vec;
@@ -28,8 +27,6 @@ typedef gp_Ax1                Ax1;
 typedef gp_Ax2                Ax2;
 typedef gp_Trsf               Trsf;
 
-
-
 Handle(Geom_Geometry) Geom_Geometry::Copy() const {
 
    Handle(Geom_Geometry) G;
@@ -94,85 +91,69 @@ void Geom_Geometry::Translate (const gp_Pnt& P1, const gp_Pnt& P2) {
 }
 
 
-Handle(Geometry) Geom_Geometry::Mirrored (const gp_Pnt& P) const {
-
-  Handle(Geometry) me = this;
-  Handle(Geometry) G  = me->Copy();
+Handle(Geom_Geometry) Geom_Geometry::Mirrored (const gp_Pnt& P) const
+{
+  Handle(Geom_Geometry) G  = Copy();
   G->Mirror (P);
   return G;
 }
 
 
-Handle(Geometry) Geom_Geometry::Mirrored (const gp_Ax1& A1) const {
-
-  Handle(Geometry) me = this;
-  Handle(Geometry) G = me->Copy();
+Handle(Geom_Geometry) Geom_Geometry::Mirrored (const gp_Ax1& A1) const
+{
+  Handle(Geom_Geometry) G = Copy();
   G->Mirror (A1);
   return G;
 }
 
 
-Handle(Geometry) Geom_Geometry::Mirrored (const gp_Ax2& A2) const {
-
-  Handle(Geometry) me = this;
-  Handle(Geometry) G = me->Copy();
+Handle(Geom_Geometry) Geom_Geometry::Mirrored (const gp_Ax2& A2) const
+{
+  Handle(Geom_Geometry) G = Copy();
   G->Mirror (A2);
   return G;
 }
 
 
 
-Handle(Geometry) Geom_Geometry::Rotated (
-
-const gp_Ax1& A1, 
-const Standard_Real Ang
-) const {
-
-  Handle(Geometry) me = this;
-  Handle(Geometry) G  = me->Copy();
+Handle(Geom_Geometry) Geom_Geometry::Rotated (const gp_Ax1& A1, const Standard_Real Ang) const
+{
+  Handle(Geom_Geometry) G = Copy();
   G->Rotate (A1, Ang);
   return G;
 }
 
 
 
-Handle(Geometry) Geom_Geometry::Scaled (const gp_Pnt& P, const Standard_Real S) const {
-
-  Handle(Geometry) me = this;
-  Handle(Geometry) G  = me->Copy();
+Handle(Geom_Geometry) Geom_Geometry::Scaled (const gp_Pnt& P, const Standard_Real S) const
+{
+  Handle(Geom_Geometry) G = Copy();
   G->Scale (P, S);
   return G;
 }
 
 
 
-Handle(Geometry) Geom_Geometry::Transformed (const gp_Trsf& T) const {
-
-  Handle(Geometry) me = this;
-  Handle(Geometry) G  = me->Copy();
+Handle(Geom_Geometry) Geom_Geometry::Transformed (const gp_Trsf& T) const
+{
+  Handle(Geom_Geometry) G = Copy();
   G->Transform (T);
   return G;
 }
 
 
 
-Handle(Geometry) Geom_Geometry::Translated (const gp_Vec& V) const {
-
-  Handle(Geometry) me = this;
-  Handle(Geometry) G  = me->Copy();
+Handle(Geom_Geometry) Geom_Geometry::Translated (const gp_Vec& V) const
+{
+  Handle(Geom_Geometry) G = Copy();
   G->Translate (V);
   return G;
 }
 
 
-Handle(Geometry) Geom_Geometry::Translated (
-
-const gp_Pnt& P1,
-const gp_Pnt& P2
-) const {
-
-   Handle(Geometry) me = this;
-   Handle(Geometry) G  = me->Copy();
+Handle(Geom_Geometry) Geom_Geometry::Translated (const gp_Pnt& P1, const gp_Pnt& P2) const
+{
+   Handle(Geom_Geometry) G = Copy();
    G->Translate (P1, P2);
    return G;
 }
index e52f1e5d55fd3831f919eafb1075d62e957a6d45..72bcf83fdda376dad4c9e2c8d053c1bf53a42117 100644 (file)
@@ -24,7 +24,6 @@
 
 
 typedef Geom_Hyperbola         Hyperbola;
-typedef Handle(Geom_Hyperbola) Handle(Hyperbola);
 typedef gp_Ax1  Ax1;
 typedef gp_Ax2  Ax2;
 typedef gp_Pnt  Pnt;
@@ -32,10 +31,6 @@ typedef gp_Vec  Vec;
 typedef gp_Trsf Trsf;
 typedef gp_XYZ  XYZ;
 
-
-
-
-
 //=======================================================================
 //function : Copy
 //purpose  : 
@@ -43,7 +38,7 @@ typedef gp_XYZ  XYZ;
 
 Handle(Geom_Geometry) Geom_Hyperbola::Copy() const {
 
-  Handle(Hyperbola) H;
+  Handle(Geom_Hyperbola) H;
   H = new Hyperbola (pos, majorRadius, minorRadius);
   return H;
 }
index a4a996c51207ebd43d5ed538e641ff18fc50924a..c80867d117e42d3e05a3757e73f9dd98cf1edaf7 100644 (file)
 #include <CSLib_Offset.hxx>
 
 typedef Geom_OffsetCurve         OffsetCurve;
-typedef Handle(Geom_OffsetCurve) Handle(OffsetCurve);
 typedef Geom_Curve               Curve;
-typedef Handle(Geom_Curve)       Handle(Curve);
-typedef Handle(Geom_Geometry)    Handle(Geometry);
-
 typedef gp_Dir  Dir;
 typedef gp_Pnt  Pnt;
 typedef gp_Trsf Trsf;
 typedef gp_Vec  Vec;
 typedef gp_XYZ  XYZ;
 
-
-
-
 //ordre de derivation maximum pour la recherche de la premiere 
 //derivee non nulle
 static const int maxDerivOrder = 3;
@@ -79,7 +72,7 @@ static Standard_Boolean AdjustDerivative(
 
 Handle(Geom_Geometry) Geom_OffsetCurve::Copy () const {
 
- Handle(OffsetCurve) C;
+ Handle(Geom_OffsetCurve) C;
  C = new OffsetCurve (basisCurve, offsetValue, direction);
  return C;
 }
@@ -174,12 +167,12 @@ Standard_Real Geom_OffsetCurve::Period () const
 //purpose  : 
 //=======================================================================
 
-void Geom_OffsetCurve::SetBasisCurve (const Handle(Curve)& C,
+void Geom_OffsetCurve::SetBasisCurve (const Handle(Geom_Curve)& C,
                                       const Standard_Boolean isNotCheckC0)
 {
   const Standard_Real aUf = C->FirstParameter(),
                       aUl = C->LastParameter();
-  Handle(Curve) aCheckingCurve =  Handle(Curve)::DownCast(C->Copy());
+  Handle(Geom_Curve) aCheckingCurve =  Handle(Geom_Curve)::DownCast(C->Copy());
   Standard_Boolean isTrimmed = Standard_False;
 
   while(aCheckingCurve->IsKind(STANDARD_TYPE(Geom_TrimmedCurve)) ||
@@ -255,7 +248,7 @@ void Geom_OffsetCurve::SetBasisCurve (const Handle(Curve)& C,
 //purpose  : 
 //=======================================================================
 
-Handle(Curve) Geom_OffsetCurve::BasisCurve () const 
+Handle(Geom_Curve) Geom_OffsetCurve::BasisCurve () const 
 { 
   return basisCurve;
 }
index 049a5c1387b36b6d8ac4281e61e91bdcc4db3594..ae7a26dddc1ca82f55c83fd32698695e6b3c0e63 100644 (file)
 #include <GeomAbs_Shape.hxx>
 #include <GeomAbs_CurveType.hxx>
 
-typedef Handle(Geom_OffsetCurve)   Handle(OffsetCurve);
 typedef Geom_OffsetCurve           OffsetCurve;
-typedef Handle(Geom_Curve)         Handle(Curve);
-typedef Handle(Geom_Surface)       Handle(Surface);
-typedef Handle(Geom_OffsetSurface) Handle(OffsetSurface);
 typedef Geom_OffsetSurface         OffsetSurface;
-typedef Handle(Geom_Geometry)      Handle(Geometry);
 typedef gp_Dir  Dir;
 typedef gp_Vec  Vec;
 typedef gp_Pnt  Pnt;
@@ -210,7 +205,7 @@ static void derivatives(Standard_Integer MaxOrder,
 
 Handle(Geom_Geometry) Geom_OffsetSurface::Copy () const {
 
-  Handle(OffsetSurface) S;
+  Handle(Geom_OffsetSurface) S;
   S = new OffsetSurface (basisSurf, offsetValue);
   return S;
 }
@@ -240,13 +235,13 @@ Geom_OffsetSurface::Geom_OffsetSurface (const Handle(Geom_Surface)& theSurf,
 //purpose  : 
 //=======================================================================
 
-void Geom_OffsetSurface::SetBasisSurface (const Handle(Surface)& S,
+void Geom_OffsetSurface::SetBasisSurface (const Handle(Geom_Surface)& S,
   const Standard_Boolean isNotCheckC0)
 {
   Standard_Real aUf, aUl, aVf, aVl;
   S->Bounds(aUf, aUl, aVf, aVl);
 
-  Handle(Surface) aCheckingSurf = Handle(Surface)::DownCast(S->Copy());
+  Handle(Geom_Surface) aCheckingSurf = Handle(Geom_Surface)::DownCast(S->Copy());
   Standard_Boolean isTrimmed = Standard_False;
 
   while(aCheckingSurf->IsKind(STANDARD_TYPE(Geom_RectangularTrimmedSurface)) ||
@@ -429,7 +424,7 @@ Standard_Real Geom_OffsetSurface::VReversedParameter( const Standard_Real V) con
 //purpose  : 
 //=======================================================================
 
-Handle(Surface) Geom_OffsetSurface::BasisSurface () const 
+Handle(Geom_Surface) Geom_OffsetSurface::BasisSurface () const 
 {
   return basisSurf;
 }
@@ -1280,7 +1275,8 @@ Handle(Geom_Curve) Geom_OffsetSurface::UIso (const Standard_Real UU) const
     GeomAbs_Shape Cont = GeomAbs_C1;
     Standard_Integer MaxSeg = 100, MaxDeg =14;
 
-    Geom_OffsetSurface_UIsoEvaluator ev (this, UU);
+    Handle(Geom_OffsetSurface) me (this);
+    Geom_OffsetSurface_UIsoEvaluator ev (me, UU);
     AdvApprox_ApproxAFunction Approx(Num1, Num2, Num3, T1, T2, T3,
       V1, V2, Cont,
       MaxDeg,MaxSeg, ev);
@@ -1347,7 +1343,8 @@ Handle(Geom_Curve) Geom_OffsetSurface::VIso (const Standard_Real VV) const
     GeomAbs_Shape Cont = GeomAbs_C1;
     Standard_Integer MaxSeg = 100, MaxDeg =14;  
 
-    Geom_OffsetSurface_VIsoEvaluator ev (this, VV);
+    Handle(Geom_OffsetSurface) me (this);
+    Geom_OffsetSurface_VIsoEvaluator ev (me, VV);
     AdvApprox_ApproxAFunction Approx (Num1, Num2, Num3, T1, T2, T3,
       U1, U2, Cont, MaxDeg, MaxSeg, ev);
 
@@ -1447,13 +1444,13 @@ Standard_Real Geom_OffsetSurface::VPeriod() const
 Standard_Boolean Geom_OffsetSurface::IsUClosed () const { 
 
   Standard_Boolean UClosed;
-  Handle(Surface) SBasis = BasisSurface();
+  Handle(Geom_Surface) SBasis = BasisSurface();
 
   if (SBasis->IsKind (STANDARD_TYPE(Geom_RectangularTrimmedSurface))) {
     Handle(Geom_RectangularTrimmedSurface) St = 
       Handle(Geom_RectangularTrimmedSurface)::DownCast(SBasis);
 
-    Handle(Surface) S = Handle(Surface)::DownCast(St->BasisSurface());
+    Handle(Geom_Surface) S = Handle(Geom_Surface)::DownCast(St->BasisSurface());
     if (S->IsKind (STANDARD_TYPE(Geom_ElementarySurface))) {
       UClosed = SBasis->IsUClosed();
     }
@@ -1461,7 +1458,7 @@ Standard_Boolean Geom_OffsetSurface::IsUClosed () const {
       Handle(Geom_SurfaceOfLinearExtrusion) Extru = 
         Handle(Geom_SurfaceOfLinearExtrusion)::DownCast(S);
 
-      Handle(Curve) C = Extru->BasisCurve();
+      Handle(Geom_Curve) C = Extru->BasisCurve();
       if (C->IsKind (STANDARD_TYPE(Geom_Circle)) || C->IsKind (STANDARD_TYPE(Geom_Ellipse))) {
         UClosed = SBasis->IsUClosed();
       }
@@ -1480,7 +1477,7 @@ Standard_Boolean Geom_OffsetSurface::IsUClosed () const {
       Handle(Geom_SurfaceOfLinearExtrusion) Extru = 
         Handle(Geom_SurfaceOfLinearExtrusion)::DownCast(SBasis);
 
-      Handle(Curve) C = Extru->BasisCurve();
+      Handle(Geom_Curve) C = Extru->BasisCurve();
       UClosed = (C->IsKind(STANDARD_TYPE(Geom_Circle)) || C->IsKind(STANDARD_TYPE(Geom_Ellipse)));
     }
     else if (SBasis->IsKind (STANDARD_TYPE(Geom_SurfaceOfRevolution))) { 
@@ -1500,13 +1497,13 @@ Standard_Boolean Geom_OffsetSurface::IsUClosed () const {
 Standard_Boolean Geom_OffsetSurface::IsVClosed () const {  
 
   Standard_Boolean VClosed;
-  Handle(Surface) SBasis = BasisSurface();
+  Handle(Geom_Surface) SBasis = BasisSurface();
 
   if (SBasis->IsKind (STANDARD_TYPE(Geom_RectangularTrimmedSurface))) {
     Handle(Geom_RectangularTrimmedSurface) St = 
       Handle(Geom_RectangularTrimmedSurface)::DownCast(SBasis);
 
-    Handle(Surface) S = Handle(Surface)::DownCast(St->BasisSurface());
+    Handle(Geom_Surface) S = Handle(Geom_Surface)::DownCast(St->BasisSurface());
     if (S->IsKind (STANDARD_TYPE(Geom_ElementarySurface))) {
       VClosed = SBasis->IsVClosed();
     }
index 723aecb3820af5b13bc0852735094fa94dd57e50..c0ea0263daaa1cbe762a6a1154da9af763b03f86 100644 (file)
@@ -23,7 +23,6 @@
 #include <Standard_RangeError.hxx>
 
 typedef Geom_Parabola         Parabola;
-typedef Handle(Geom_Parabola) Handle(Parabola);
 typedef gp_Ax1  Ax1;
 typedef gp_Ax2  Ax2;
 typedef gp_Pnt  Pnt;
@@ -31,11 +30,6 @@ typedef gp_Trsf Trsf;
 typedef gp_Vec  Vec;
 typedef gp_XYZ  XYZ;
 
-
-
-
-
-
 //=======================================================================
 //function : Copy
 //purpose  : 
@@ -43,7 +37,7 @@ typedef gp_XYZ  XYZ;
 
 Handle(Geom_Geometry) Geom_Parabola::Copy() const {
 
-   Handle(Parabola) Prb;
+   Handle(Geom_Parabola) Prb;
    Prb = new Parabola (pos, focalLength);
    return Prb;
 }
index 81fd89732b52363cee22e101e427322ef1966882..fbadc272b80ef986f9eaff63cfe97d28dd16df27 100644 (file)
@@ -28,9 +28,6 @@
 #include <GeomAbs_UVSense.hxx>
 
 typedef Geom_Plane         Plane;
-typedef Handle(Geom_Plane) Handle(Plane);
-typedef Handle(Geom_Line)  Handle(Line);
-
 typedef gp_Ax1  Ax1;
 typedef gp_Ax2  Ax2;
 typedef gp_Ax3  Ax3;
@@ -42,8 +39,6 @@ typedef gp_Trsf Trsf;
 typedef gp_Vec  Vec;
 typedef gp_XYZ  XYZ;
 
-
-
 //=======================================================================
 //function : Copy
 //purpose  : 
@@ -51,7 +46,7 @@ typedef gp_XYZ  XYZ;
 
 Handle(Geom_Geometry) Geom_Plane::Copy () const {
  
-  Handle(Plane) Pl = new Plane ( pos);
+  Handle(Geom_Plane) Pl = new Plane ( pos);
   return Pl;
 }
 
index 7a828d22ce764f8b149c89a2a78b2dceb76f6ef7..35be2b66bb9d3d96217881d1de335ab99ba31904 100644 (file)
 
 #include <Geom_Point.ixx>
 
-
-typedef Handle(Geom_Point) Handle(Point);
 typedef Geom_Point         Point;
 
-
-Standard_Real Geom_Point::Distance (const Handle(Point)& Other) const {
+Standard_Real Geom_Point::Distance (const Handle(Geom_Point)& Other) const {
 
   gp_Pnt P1 = this->Pnt ();
   gp_Pnt P2 = Other->Pnt ();
@@ -29,7 +26,7 @@ Standard_Real Geom_Point::Distance (const Handle(Point)& Other) const {
 }
 
 
-Standard_Real Geom_Point::SquareDistance (const Handle(Point)& Other) const {
+Standard_Real Geom_Point::SquareDistance (const Handle(Geom_Point)& Other) const {
 
   gp_Pnt P1 = this->Pnt ();
   gp_Pnt P2 = Other->Pnt ();
index c247e3124e0a8c0bbff38cff3e13ca070e252a96..64d5fc6fd2fccd256069a786213c0b49f9367dcc 100644 (file)
 #include <Precision.hxx>
 #include <ElCLib.hxx>
 
-typedef Handle(Geom_Surface)           Handle(Surface);
-typedef Handle(Geom_Geometry)          Handle(Geometry);
 typedef Geom_RectangularTrimmedSurface RectangularTrimmedSurface;
-typedef Handle(Geom_RectangularTrimmedSurface) Handle(RectangularTrimmedSurface);
-
 typedef gp_Ax1  Ax1;
 typedef gp_Ax2  Ax2;
 typedef gp_Pnt  Pnt;
 typedef gp_Trsf Trsf;
 typedef gp_Vec  Vec;
 
-
-
-
-
 //=======================================================================
 //function : Copy
 //purpose  : 
@@ -64,7 +56,7 @@ typedef gp_Vec  Vec;
 
 Handle(Geom_Geometry) Geom_RectangularTrimmedSurface::Copy () const {
 
-  Handle(RectangularTrimmedSurface) S;
+  Handle(Geom_RectangularTrimmedSurface) S;
 
   if ( isutrimmed && isvtrimmed ) 
     S = new RectangularTrimmedSurface (basisSurf,
@@ -91,7 +83,7 @@ Handle(Geom_Geometry) Geom_RectangularTrimmedSurface::Copy () const {
 
 Geom_RectangularTrimmedSurface::Geom_RectangularTrimmedSurface (
 
-const Handle(Surface)& S, 
+const Handle(Geom_Surface)& S, 
 const Standard_Real             U1, 
 const Standard_Real             U2, 
 const Standard_Real             V1,
@@ -111,9 +103,9 @@ const Standard_Boolean          VSense)
   Handle(Geom_RectangularTrimmedSurface) T =
     Handle(Geom_RectangularTrimmedSurface)::DownCast(S);
   if (!T.IsNull())
-    basisSurf = Handle(Surface)::DownCast(T->BasisSurface()->Copy());
+    basisSurf = Handle(Geom_Surface)::DownCast(T->BasisSurface()->Copy());
   else
-    basisSurf = Handle(Surface)::DownCast(S->Copy());
+    basisSurf = Handle(Geom_Surface)::DownCast(S->Copy());
 
   Handle(Geom_OffsetSurface) O =
     Handle(Geom_OffsetSurface)::DownCast(basisSurf);
@@ -122,7 +114,7 @@ const Standard_Boolean          VSense)
     Handle(Geom_RectangularTrimmedSurface) S2 = 
            new Geom_RectangularTrimmedSurface( O->BasisSurface(),U1,U2, V1, V2, USense, VSense);
     Handle(Geom_OffsetSurface) OS = new Geom_OffsetSurface(S2, O->Offset());
-    basisSurf = Handle(Surface)::DownCast(OS);
+    basisSurf = Handle(Geom_Surface)::DownCast(OS);
   }  
 
   SetTrim( U1, U2, V1, V2, USense, VSense);
@@ -147,9 +139,9 @@ Geom_RectangularTrimmedSurface::Geom_RectangularTrimmedSurface (
   Handle(Geom_RectangularTrimmedSurface) T =
     Handle(Geom_RectangularTrimmedSurface)::DownCast(S);
   if (!T.IsNull())
-    basisSurf = Handle(Surface)::DownCast(T->BasisSurface()->Copy());
+    basisSurf = Handle(Geom_Surface)::DownCast(T->BasisSurface()->Copy());
   else
-    basisSurf = Handle(Surface)::DownCast(S->Copy());
+    basisSurf = Handle(Geom_Surface)::DownCast(S->Copy());
 
   Handle(Geom_OffsetSurface) O =
     Handle(Geom_OffsetSurface)::DownCast(basisSurf);
@@ -158,7 +150,7 @@ Geom_RectangularTrimmedSurface::Geom_RectangularTrimmedSurface (
     Handle(Geom_RectangularTrimmedSurface) S2 = 
            new Geom_RectangularTrimmedSurface( O->BasisSurface(),Param1,Param2, UTrim, Sense);
     Handle(Geom_OffsetSurface) OS = new Geom_OffsetSurface(S2, O->Offset());
-    basisSurf = Handle(Surface)::DownCast(OS);
+    basisSurf = Handle(Geom_Surface)::DownCast(OS);
   }  
 
   SetTrim(Param1, Param2, UTrim, Sense);
@@ -380,7 +372,7 @@ Standard_Real Geom_RectangularTrimmedSurface::VReversedParameter( const Standard
 //purpose  : 
 //=======================================================================
 
-Handle(Surface) Geom_RectangularTrimmedSurface::BasisSurface () const
+Handle(Geom_Surface) Geom_RectangularTrimmedSurface::BasisSurface () const
 {
   return basisSurf;
 }
index ffd8307da72878eb9fea166d4e170ab332705a3d..65abe10062524836d31740d070f6cde43670428f 100644 (file)
@@ -26,9 +26,6 @@
 
 typedef Geom_Circle                   Circle;
 typedef Geom_SphericalSurface         SphericalSurface;
-typedef Handle(Geom_SphericalSurface) Handle(SphericalSurface);
-typedef Handle(Geom_Curve)            Handle(Curve);
-typedef Handle(Geom_Circle)           Handle(Circle);
 typedef gp_Ax2  Ax2;
 typedef gp_Ax3  Ax3;
 typedef gp_Circ Circ;
@@ -38,9 +35,6 @@ typedef gp_Trsf Trsf;
 typedef gp_XYZ  XYZ;
 typedef gp_Vec  Vec;
 
-
-
-
 //=======================================================================
 //function : Copy
 //purpose  : 
@@ -48,7 +42,7 @@ typedef gp_Vec  Vec;
 
 Handle(Geom_Geometry) Geom_SphericalSurface::Copy () const {
  
-  Handle(SphericalSurface) Cs;
+  Handle(Geom_SphericalSurface) Cs;
   Cs = new SphericalSurface (pos, radius);
   return Cs;
 }
@@ -313,7 +307,7 @@ gp_Sphere Geom_SphericalSurface::Sphere () const {
 //purpose  : 
 //=======================================================================
 
-Handle(Curve) Geom_SphericalSurface::UIso (const Standard_Real U) const 
+Handle(Geom_Curve) Geom_SphericalSurface::UIso (const Standard_Real U) const 
 {
   Handle(Geom_Circle) GC = new Geom_Circle(ElSLib::SphereUIso(pos,radius,U));
   Handle(Geom_TrimmedCurve) iso = new Geom_TrimmedCurve(GC,-M_PI/2.,M_PI/2);
@@ -326,7 +320,7 @@ Handle(Curve) Geom_SphericalSurface::UIso (const Standard_Real U) const
 //purpose  : 
 //=======================================================================
 
-Handle(Curve) Geom_SphericalSurface::VIso (const Standard_Real V) const 
+Handle(Geom_Curve) Geom_SphericalSurface::VIso (const Standard_Real V) const 
 {
   Handle(Geom_Circle) 
     GC = new Geom_Circle(ElSLib::SphereVIso(pos,radius,V));
index 670a4f41bb95bf71bc75f8160beee43431c4e562..de793ca4d5ef1b8a23406d4416bc1eb9d40db633 100644 (file)
 #include <Geom_Surface.ixx>
 
 typedef Geom_Surface         Surface;
-typedef Handle(Geom_Surface) Handle(Surface);
-
 
 //=======================================================================
 //function : UReversed
 //purpose  : 
 //=======================================================================
 
-Handle(Surface) Geom_Surface::UReversed () const
+Handle(Geom_Surface) Geom_Surface::UReversed () const
 {
-  Handle(Surface) S = Handle(Surface)::DownCast(Copy());
+  Handle(Geom_Surface) S = Handle(Geom_Surface)::DownCast(Copy());
   S->UReverse();
   return S;
 }
@@ -38,9 +36,9 @@ Handle(Surface) Geom_Surface::UReversed () const
 //purpose  : 
 //=======================================================================
 
-Handle(Surface) Geom_Surface::VReversed () const
+Handle(Geom_Surface) Geom_Surface::VReversed () const
 {
-  Handle(Surface) S = Handle(Surface)::DownCast(Copy());
+  Handle(Geom_Surface) S = Handle(Geom_Surface)::DownCast(Copy());
   S->VReverse();
   return S;
 }
index dfeac3a2e60b696e1688b8406823399a4dcd07d5..aa3a7ccd289ab4c991d46925b26e631735117aca 100644 (file)
@@ -44,9 +44,7 @@
 #define  FMULTS   (BSplCLib::NoMults())
 
 typedef Geom_SurfaceOfLinearExtrusion         SurfaceOfLinearExtrusion;
-typedef Handle(Geom_SurfaceOfLinearExtrusion) Handle(SurfaceOfLinearExtrusion);
 typedef Geom_Curve                            Curve;
-typedef Handle(Geom_Curve)                    Handle(Curve);
 typedef gp_Dir  Dir;
 typedef gp_Pnt  Pnt;
 typedef gp_Trsf Trsf;
@@ -131,10 +129,10 @@ Handle(Geom_Geometry) Geom_SurfaceOfLinearExtrusion::Copy () const
 //=======================================================================
 
 Geom_SurfaceOfLinearExtrusion::Geom_SurfaceOfLinearExtrusion 
-  ( const Handle(Curve)& C, 
+  ( const Handle(Geom_Curve)& C, 
     const Dir& V) {
 
-   basisCurve = Handle(Curve)::DownCast(C->Copy());  // Copy 10-03-93
+   basisCurve = Handle(Geom_Curve)::DownCast(C->Copy());  // Copy 10-03-93
    direction  = V;
    smooth     = C->Continuity();
  }
@@ -202,10 +200,10 @@ void Geom_SurfaceOfLinearExtrusion::SetDirection (const Dir& V) {
 //purpose  : 
 //=======================================================================
 
-void Geom_SurfaceOfLinearExtrusion::SetBasisCurve (const Handle(Curve)& C) {
+void Geom_SurfaceOfLinearExtrusion::SetBasisCurve (const Handle(Geom_Curve)& C) {
 
    smooth = C->Continuity();
-   basisCurve = Handle(Curve)::DownCast(C->Copy());  // Copy 10-03-93
+   basisCurve = Handle(Geom_Curve)::DownCast(C->Copy());  // Copy 10-03-93
 }
 
 
@@ -491,11 +489,11 @@ Handle(Geom_Curve) Geom_SurfaceOfLinearExtrusion::UIso (const Standard_Real U) c
 //purpose  : 
 //=======================================================================
 
-Handle(Curve) Geom_SurfaceOfLinearExtrusion::VIso (const Standard_Real V) const {
+Handle(Geom_Curve) Geom_SurfaceOfLinearExtrusion::VIso (const Standard_Real V) const {
     
   Vec Vdir (direction);
   Vdir.Multiply (V);
-  Handle(Curve) C;
+  Handle(Geom_Curve) C;
   C = Handle(Geom_Curve)::DownCast(basisCurve->Translated(Vdir));
   return C;
 }
index b2fc9ba9c18ef50daf88083d91a420c74410b498..d756ce8d9a8c05786c7a64bc79f1ac1467df04df 100644 (file)
 #define  FMULTS   (BSplCLib::NoMults())
 
 typedef Geom_SurfaceOfRevolution         SurfaceOfRevolution;
-typedef Handle(Geom_SurfaceOfRevolution) Handle(SurfaceOfRevolution);
-typedef Handle(Geom_Geometry)            Handle(Geometry);
 typedef Geom_Curve                       Curve;
-typedef Handle(Geom_Curve)               Handle(Curve);
 typedef gp_Ax1  Ax1;
 typedef gp_Ax2  Ax2;
 typedef gp_Dir  Dir;
@@ -50,6 +47,7 @@ typedef gp_Pnt  Pnt;
 typedef gp_Trsf Trsf;
 typedef gp_Vec  Vec;
 typedef gp_XYZ  XYZ;
+
 //=======================================================================
 //function : LocateSide
 //purpose  : This  method locates U parameter on basis BSpline curve 
@@ -135,10 +133,10 @@ Handle(Geom_Geometry) Geom_SurfaceOfRevolution::Copy () const {
 //=======================================================================
 
 Geom_SurfaceOfRevolution::Geom_SurfaceOfRevolution 
-  (const Handle(Curve)& C , 
+  (const Handle(Geom_Curve)& C , 
    const Ax1&           A1 ) : loc (A1.Location()) {
 
-  basisCurve = Handle(Curve)::DownCast(C->Copy());
+  basisCurve = Handle(Geom_Curve)::DownCast(C->Copy());
   direction  = A1.Direction();
   smooth     = C->Continuity();
 }
@@ -300,9 +298,9 @@ void Geom_SurfaceOfRevolution::SetDirection (const Dir& V) {
 //purpose  : 
 //=======================================================================
 
-void Geom_SurfaceOfRevolution::SetBasisCurve (const Handle(Curve)& C) {
+void Geom_SurfaceOfRevolution::SetBasisCurve (const Handle(Geom_Curve)& C) {
 
-   basisCurve = Handle(Curve)::DownCast(C->Copy());
+   basisCurve = Handle(Geom_Curve)::DownCast(C->Copy());
    smooth     = C->Continuity();
 }
 
@@ -1111,9 +1109,9 @@ Ax2 Geom_SurfaceOfRevolution::ReferencePlane() const {
 //purpose  : 
 //=======================================================================
 
-Handle(Curve) Geom_SurfaceOfRevolution::UIso (const Standard_Real U) const {
+Handle(Geom_Curve) Geom_SurfaceOfRevolution::UIso (const Standard_Real U) const {
 
-   Handle(Curve) C = Handle(Curve)::DownCast(basisCurve->Copy());
+   Handle(Geom_Curve) C = Handle(Geom_Curve)::DownCast(basisCurve->Copy());
    Ax1 RotAxis = Ax1 (loc, direction);
    C->Rotate (RotAxis, U);
    return C;
index 96e2e1baa446386ee391b3d3849a269c383af27f..cac1824eb19005129c599b86cf6f704f3d7a3703 100644 (file)
@@ -28,7 +28,6 @@
 #include <Standard_RangeError.hxx>
 
 typedef Geom_ToroidalSurface         ToroidalSurface;
-typedef Handle(Geom_ToroidalSurface) Handle(ToroidalSurface);
 typedef TColStd_Array1OfReal      Array1OfReal;
 typedef gp_Ax1  Ax1;
 typedef gp_Ax2  Ax2;
@@ -49,7 +48,7 @@ typedef gp_XYZ  XYZ;
 
 Handle(Geom_Geometry) Geom_ToroidalSurface::Copy () const {
  
-   Handle(ToroidalSurface) Cs;
+   Handle(Geom_ToroidalSurface) Cs;
    Cs = new ToroidalSurface (pos, majorRadius, minorRadius);
    return Cs;
 }
index f9726c02f07eed501a9d009fe690906d105ea7ba..9829fe292fa2a64ee32e5bb45b956d9163f83479 100644 (file)
@@ -16,7 +16,6 @@
 
 #include <Geom_Transformation.ixx>
 
-typedef Handle(Geom_Transformation) Handle(Transformation);
 typedef Geom_Transformation         Transformation;
 typedef gp_Ax1      Ax1;
 typedef gp_Ax2      Ax2;
@@ -25,9 +24,6 @@ typedef gp_Pnt      Pnt;
 typedef gp_TrsfForm TrsfForm;
 typedef gp_Vec      Vec;
 
-
-
-
 Geom_Transformation::Geom_Transformation () { }
 
 
@@ -37,7 +33,7 @@ Geom_Transformation::Geom_Transformation (const gp_Trsf& T)
 
 Handle(Geom_Transformation) Geom_Transformation::Copy() const {
 
-  Handle(Transformation) T;
+  Handle(Geom_Transformation) T;
   T = new Transformation (gpTrsf);
   return T; 
 }
@@ -104,13 +100,13 @@ Standard_Real Geom_Transformation::Value (const Standard_Integer Row, const Stan
 void Geom_Transformation::Invert () { gpTrsf.Invert(); }
 
 
-Handle(Transformation) Geom_Transformation::Inverted () const {
+Handle(Geom_Transformation) Geom_Transformation::Inverted () const {
 
    return new Transformation (gpTrsf.Inverted());
 }
 
 
-Handle(Transformation) Geom_Transformation::Multiplied (
+Handle(Geom_Transformation) Geom_Transformation::Multiplied (
 const Handle(Geom_Transformation)& Other) const {
 
    return new Transformation (gpTrsf.Multiplied (Other->Trsf()));
@@ -126,7 +122,7 @@ void Geom_Transformation::Multiply (const Handle(Geom_Transformation)& Other) {
 void Geom_Transformation::Power (const Standard_Integer N) { gpTrsf.Power (N); }
 
 
-Handle(Transformation) Geom_Transformation::Powered (const Standard_Integer N) const {
+Handle(Geom_Transformation) Geom_Transformation::Powered (const Standard_Integer N) const {
 
   gp_Trsf T = gpTrsf;
   T.Power (N);  
index eac903311fad521e38e7e88c0984b38e39427db6..0caccacdd6103a1722401bdb96211cda154c9090 100644 (file)
 #include <Precision.hxx>
 #include <ElCLib.hxx>
 
-
-typedef Handle(Geom_TrimmedCurve) Handle(TrimmedCurve);
 typedef Geom_TrimmedCurve         TrimmedCurve;
-typedef Handle(Geom_Curve)        Handle(Curve);
-typedef Handle(Geom_Geometry)     Handle(Geometry);
 typedef gp_Ax1  Ax1;
 typedef gp_Ax2  Ax2;
 typedef gp_Pnt  Pnt;
@@ -49,7 +45,7 @@ typedef gp_Vec  Vec;
 
 Handle(Geom_Geometry) Geom_TrimmedCurve::Copy () const {
  
-  Handle(TrimmedCurve) Tc = new TrimmedCurve (basisCurve, uTrim1, uTrim2);
+  Handle(Geom_TrimmedCurve) Tc = new TrimmedCurve (basisCurve, uTrim1, uTrim2);
   return Tc;
 }
 
@@ -70,9 +66,9 @@ Geom_TrimmedCurve::Geom_TrimmedCurve (const Handle(Geom_Curve)& C,
   // kill trimmed basis curves
   Handle(Geom_TrimmedCurve) T = Handle(Geom_TrimmedCurve)::DownCast(C);
   if (!T.IsNull())
-    basisCurve = Handle(Curve)::DownCast(T->BasisCurve()->Copy());
+    basisCurve = Handle(Geom_Curve)::DownCast(T->BasisCurve()->Copy());
   else
-    basisCurve = Handle(Curve)::DownCast(C->Copy());
+    basisCurve = Handle(Geom_Curve)::DownCast(C->Copy());
 
   SetTrim(U1, U2, Sense, theAdjustPeriodic);
 }
@@ -207,7 +203,7 @@ GeomAbs_Shape Geom_TrimmedCurve::Continuity () const {
 //purpose  : 
 //=======================================================================
 
-Handle(Curve) Geom_TrimmedCurve::BasisCurve () const { 
+Handle(Geom_Curve) Geom_TrimmedCurve::BasisCurve () const { 
 
   return basisCurve;
 }
index 409ca791582a0689033203f0794bfa2c4b013a37..3362bdd5575b3c67a89650f3f57191fbba339633 100644 (file)
 #include <Geom_Vector.ixx>
 
 typedef Geom_Vector         Vector;
-typedef Handle(Geom_Vector) Handle(Vector);
 typedef gp_Ax1  Ax1;
 typedef gp_Ax2  Ax2;
 typedef gp_Pnt  Pnt;
 typedef gp_Trsf Trsf;
 
-
-
-
 void Geom_Vector::Reverse ()                  { gpVec.Reverse(); }
 
 Standard_Real Geom_Vector::X () const                  { return gpVec.X(); }
@@ -36,22 +32,22 @@ Standard_Real Geom_Vector::Z () const                  { return gpVec.Z(); }
 
 const gp_Vec& Geom_Vector::Vec () const              { return gpVec; }
 
-Handle(Vector) Geom_Vector::Reversed () const
+Handle(Geom_Vector) Geom_Vector::Reversed () const
 {
-  Handle(Vector) V = Handle(Vector)::DownCast(Copy());
+  Handle(Geom_Vector) V = Handle(Geom_Vector)::DownCast(Copy());
   V->Reverse();
   return V;
 }
 
 
-Standard_Real Geom_Vector::Angle (const Handle(Vector)& Other) const { 
+Standard_Real Geom_Vector::Angle (const Handle(Geom_Vector)& Other) const { 
 
   return gpVec.Angle (Other->Vec());
 }
 
 
 Standard_Real Geom_Vector::AngleWithRef (
-const Handle(Vector)& Other, const Handle(Vector)& VRef) const {
+const Handle(Geom_Vector)& Other, const Handle(Geom_Vector)& VRef) const {
 
    return gpVec.AngleWithRef (Other->Vec(), VRef->Vec());
 }
@@ -63,14 +59,14 @@ void Geom_Vector::Coord (Standard_Real& X, Standard_Real& Y, Standard_Real& Z) c
 }
  
 
-Standard_Real Geom_Vector::Dot (const Handle(Vector)& Other) const  { 
+Standard_Real Geom_Vector::Dot (const Handle(Geom_Vector)& Other) const  { 
 
   return gpVec.Dot (Other->Vec());
 }
 
 
 Standard_Real Geom_Vector::DotCross (
-const Handle(Vector)& V1, const Handle(Vector)& V2) const {
+const Handle(Geom_Vector)& V1, const Handle(Geom_Vector)& V2) const {
 
   return gpVec.DotCross (V1->Vec(), V2->Vec());
 }
index 3e4f774f66fc5bea08e33706d7f27f9a17764a76..da5b3292623b8526f2cfc9c638b7d6dec4d823e1 100644 (file)
 #include <Geom_VectorWithMagnitude.ixx>
 
 typedef Geom_VectorWithMagnitude         VectorWithMagnitude;
-typedef Handle(Geom_VectorWithMagnitude) Handle(VectorWithMagnitude);
 typedef Geom_Vector                      Vector;
-typedef Handle(Geom_Vector)              Handle(Vector);
-typedef Handle(Geom_Geometry)            Handle(Geometry);
 typedef gp_Ax1  Ax1;
 typedef gp_Ax2  Ax2;
 typedef gp_Pnt  Pnt;
 typedef gp_Trsf Trsf;
 
-
-
-
 //=======================================================================
 //function : Geom_VectorWithMagnitude
 //purpose  : 
@@ -63,7 +57,7 @@ const Pnt& P1, const Pnt& P2) { gpVec = gp_Vec (P1, P2); }
 
 Handle(Geom_Geometry) Geom_VectorWithMagnitude::Copy() const {
 
-  Handle(VectorWithMagnitude) V;
+  Handle(Geom_VectorWithMagnitude) V;
   V = new VectorWithMagnitude (gpVec);
   return V; 
 }
@@ -128,7 +122,7 @@ Standard_Real Geom_VectorWithMagnitude::SquareMagnitude () const {
 //purpose  : 
 //=======================================================================
 
-void Geom_VectorWithMagnitude::Add (const Handle(Vector)& Other) { 
+void Geom_VectorWithMagnitude::Add (const Handle(Geom_Vector)& Other) { 
 
   gpVec.Add (Other->Vec());
 }
@@ -139,8 +133,8 @@ void Geom_VectorWithMagnitude::Add (const Handle(Vector)& Other) {
 //purpose  : 
 //=======================================================================
 
-Handle(VectorWithMagnitude) Geom_VectorWithMagnitude::Added (
-const Handle(Vector)& Other) const { 
+Handle(Geom_VectorWithMagnitude) Geom_VectorWithMagnitude::Added (
+const Handle(Geom_Vector)& Other) const { 
 
    gp_Vec V1 = gpVec;
    V1.Add (Other->Vec());
@@ -153,7 +147,7 @@ const Handle(Vector)& Other) const {
 //purpose  : 
 //=======================================================================
 
-void  Geom_VectorWithMagnitude::Cross (const Handle(Vector)& Other) { 
+void  Geom_VectorWithMagnitude::Cross (const Handle(Geom_Vector)& Other) { 
 
   gpVec.Cross (Other->Vec());
 }
@@ -165,8 +159,8 @@ void  Geom_VectorWithMagnitude::Cross (const Handle(Vector)& Other) {
 //purpose  : 
 //=======================================================================
 
-Handle(Vector) Geom_VectorWithMagnitude::Crossed (
-const Handle(Vector)& Other) const { 
+Handle(Geom_Vector) Geom_VectorWithMagnitude::Crossed (
+const Handle(Geom_Vector)& Other) const { 
 
   gp_Vec V (gpVec);
   V.Cross (Other->Vec());
@@ -180,7 +174,7 @@ const Handle(Vector)& Other) const {
 //=======================================================================
 
 void Geom_VectorWithMagnitude::CrossCross (
-const Handle(Vector)& V1, const Handle(Vector)& V2) {
+const Handle(Geom_Vector)& V1, const Handle(Geom_Vector)& V2) {
 
   gpVec.CrossCross (V1->Vec(), V2->Vec());
 }
@@ -191,8 +185,8 @@ const Handle(Vector)& V1, const Handle(Vector)& V2) {
 //purpose  : 
 //=======================================================================
 
-Handle(Vector) Geom_VectorWithMagnitude::CrossCrossed (
-const Handle(Vector)& V1, const Handle(Vector)& V2) const { 
+Handle(Geom_Vector) Geom_VectorWithMagnitude::CrossCrossed (
+const Handle(Geom_Vector)& V1, const Handle(Geom_Vector)& V2) const { 
 
   gp_Vec V (gpVec);
   V.CrossCross (V1->Vec(), V2->Vec());
@@ -216,7 +210,7 @@ void Geom_VectorWithMagnitude::Divide (const Standard_Real Scalar) {
 //purpose  : 
 //=======================================================================
 
-Handle(VectorWithMagnitude) Geom_VectorWithMagnitude::Divided (
+Handle(Geom_VectorWithMagnitude) Geom_VectorWithMagnitude::Divided (
 const Standard_Real Scalar) const { 
 
   gp_Vec V (gpVec);
@@ -230,7 +224,7 @@ const Standard_Real Scalar) const {
 //purpose  : 
 //=======================================================================
 
-Handle(VectorWithMagnitude) Geom_VectorWithMagnitude::Multiplied (
+Handle(Geom_VectorWithMagnitude) Geom_VectorWithMagnitude::Multiplied (
 const Standard_Real Scalar) const { 
 
   gp_Vec V (gpVec);
@@ -263,7 +257,7 @@ void Geom_VectorWithMagnitude::Normalize () { gpVec.Normalize (); }
 //purpose  : 
 //=======================================================================
 
-Handle(VectorWithMagnitude) Geom_VectorWithMagnitude::Normalized () const { 
+Handle(Geom_VectorWithMagnitude) Geom_VectorWithMagnitude::Normalized () const { 
 
   gp_Vec V (gpVec);
   V.Normalize ();
@@ -276,7 +270,7 @@ Handle(VectorWithMagnitude) Geom_VectorWithMagnitude::Normalized () const {
 //purpose  : 
 //=======================================================================
 
-void Geom_VectorWithMagnitude::Subtract (const Handle(Vector)& Other) { 
+void Geom_VectorWithMagnitude::Subtract (const Handle(Geom_Vector)& Other) { 
 
   gpVec.Subtract (Other->Vec());
 }
@@ -287,8 +281,8 @@ void Geom_VectorWithMagnitude::Subtract (const Handle(Vector)& Other) {
 //purpose  : 
 //=======================================================================
 
-Handle(VectorWithMagnitude) Geom_VectorWithMagnitude::Subtracted (
-const Handle(Vector)& Other) const { 
+Handle(Geom_VectorWithMagnitude) Geom_VectorWithMagnitude::Subtracted (
+const Handle(Geom_Vector)& Other) const { 
 
   gp_Vec V (gpVec);
   V.Subtract (Other->Vec());
index a569cc825f187f1fe16db2f113e6bf327f03854c..5daf50ac805cf11145f4f12bcea5c35515dce524 100644 (file)
@@ -19,7 +19,6 @@
 
 
 typedef Geom2d_AxisPlacement          AxisPlacement;
-typedef Handle(Geom2d_AxisPlacement)  Handle(AxisPlacement);
 typedef gp_Dir2d  Dir2d;
 typedef gp_Pnt2d  Pnt2d;
 typedef gp_Trsf2d Trsf2d;
@@ -30,7 +29,7 @@ typedef gp_Vec2d  Vec2d;
 
 Handle(Geom2d_Geometry) Geom2d_AxisPlacement::Copy() const {
 
-  Handle(AxisPlacement) A;
+  Handle(Geom2d_AxisPlacement) A;
   A = new AxisPlacement (axis);
   return A;
 }
@@ -56,11 +55,11 @@ Pnt2d Geom2d_AxisPlacement::Location () const { return axis.Location(); }
 
 void Geom2d_AxisPlacement::Reverse()        { axis.Reverse(); }
 
-Handle(AxisPlacement) Geom2d_AxisPlacement::Reversed() const {
+Handle(Geom2d_AxisPlacement) Geom2d_AxisPlacement::Reversed() const {
 
   gp_Ax2d A = axis;
   A.Reverse();
-  Handle(AxisPlacement) Temp = new AxisPlacement (A);
+  Handle(Geom2d_AxisPlacement) Temp = new AxisPlacement (A);
   return Temp;
 }
 
@@ -76,7 +75,7 @@ void Geom2d_AxisPlacement::SetDirection (const Dir2d& V) {
   axis.SetDirection(V);
 }
 
-Standard_Real Geom2d_AxisPlacement::Angle (const Handle(AxisPlacement)& Other) const {
+Standard_Real Geom2d_AxisPlacement::Angle (const Handle(Geom2d_AxisPlacement)& Other) const {
 
   return axis.Angle (Other->Ax2d());
 }
index 36d34cb03740c89ab4cefb55d319fe51562b9b89..9883047141c98909d113406571b324aaae3f0471 100644 (file)
@@ -17,7 +17,6 @@
 #include <Geom2d_CartesianPoint.ixx>
 
 typedef Geom2d_CartesianPoint         CartesianPoint;
-typedef Handle(Geom2d_CartesianPoint) Handle(CartesianPoint);
 typedef gp_Ax2d   Ax2d;
 typedef gp_Vec2d  Vec2d;
 typedef gp_Trsf2d Trsf2d;
@@ -33,7 +32,7 @@ Geom2d_CartesianPoint::Geom2d_CartesianPoint (const Standard_Real X, const Stand
 
 Handle(Geom2d_Geometry) Geom2d_CartesianPoint::Copy() const {
 
-  Handle(CartesianPoint) P;
+  Handle(Geom2d_CartesianPoint) P;
   P = new CartesianPoint (gpPnt2d);
   return P; 
 }
index db9a337b882699bbf0aa13b0e216ebadc05ad721..6ba24ee429f8c0041db11f503158001bf4feb493 100644 (file)
@@ -22,7 +22,6 @@
 
 
 typedef Geom2d_Circle         Circle;
-typedef Handle(Geom2d_Circle) Handle(Circle);
 typedef gp_Ax2d   Ax2d;
 typedef gp_Dir2d  Dir2d;
 typedef gp_Pnt2d  Pnt2d;
@@ -30,13 +29,6 @@ typedef gp_Trsf2d Trsf2d;
 typedef gp_Vec2d  Vec2d;
 typedef gp_XY     XY;
 
-
-
-
-
-
-
-
 //=======================================================================
 //function : Copy
 //purpose  : 
@@ -44,7 +36,7 @@ typedef gp_XY     XY;
 
 Handle(Geom2d_Geometry) Geom2d_Circle::Copy() const 
 {
-  Handle(Circle) C;
+  Handle(Geom2d_Circle) C;
   C = new Circle (pos, radius);
   return C;
 }
index 814409d2899e24deb7f7f132e8dcc2d55606f19b..af01f5b0e8c636e8744e5c95dedec63dd870187c 100644 (file)
@@ -19,7 +19,6 @@
 
 
 typedef Geom2d_Curve         Curve;
-typedef Handle(Geom2d_Curve) Handle(Curve);
 
 
 //=======================================================================
@@ -29,7 +28,7 @@ typedef Handle(Geom2d_Curve) Handle(Curve);
 
 Handle(Geom2d_Curve) Geom2d_Curve::Reversed () const
 {
-  Handle(Curve) C = Handle(Curve)::DownCast(Copy());
+  Handle(Geom2d_Curve) C = Handle(Geom2d_Curve)::DownCast(Copy());
   C->Reverse();
   return C;
 }
index 074fa728f731ee77fc7f92d32d5d724e3a8adfbc..bb389246e1f9771109264e10994a61e31ba331e7 100644 (file)
@@ -19,8 +19,6 @@
 #include <Standard_ConstructionError.hxx>
 
 typedef Geom2d_Direction         Direction;
-typedef Handle(Geom2d_Direction) Handle(Direction);
-typedef Handle(Geom2d_Vector)    Handle(Vector);
 typedef gp_Ax2d   Ax2d;
 typedef gp_Pnt2d  Pnt2d;
 typedef gp_Trsf2d Trsf2d;
@@ -31,7 +29,7 @@ typedef gp_Trsf2d Trsf2d;
 
 Handle(Geom2d_Geometry) Geom2d_Direction::Copy() const {
 
-  Handle(Direction) D;
+  Handle(Geom2d_Direction) D;
   D = new Direction (gpVec2d);
   return D; 
 }
@@ -88,7 +86,7 @@ Standard_Real Geom2d_Direction::Magnitude () const { return 1.0; }
 Standard_Real Geom2d_Direction::SquareMagnitude () const { return 1.0; }
 
 
-Standard_Real Geom2d_Direction::Crossed (const Handle(Vector)& Other) const {
+Standard_Real Geom2d_Direction::Crossed (const Handle(Geom2d_Vector)& Other) const {
 
    return gpVec2d.Crossed (Other->Vec2d());
 }
index 0912d2fa6c34201d66c0ddcdb36b65618f14d89b..38d88c16d132746370f53fc8dd671cf70f563e39 100644 (file)
@@ -22,9 +22,7 @@
 #include <Standard_RangeError.hxx>
 #include <Standard_ConstructionError.hxx>
 
-
 typedef Geom2d_Ellipse         Ellipse;
-typedef Handle(Geom2d_Ellipse) Handle(Ellipse);
 typedef gp_Ax2d   Ax2d;
 typedef gp_Dir2d  Dir2d;
 typedef gp_Pnt2d  Pnt2d;
@@ -32,10 +30,6 @@ typedef gp_Vec2d  Vec2d;
 typedef gp_Trsf2d Trsf2d;
 typedef gp_XY     XY;
 
-
-
-
-
 //=======================================================================
 //function : Copy
 //purpose  : 
@@ -43,7 +37,7 @@ typedef gp_XY     XY;
 
 Handle(Geom2d_Geometry) Geom2d_Ellipse::Copy() const 
 {
-  Handle(Ellipse) E;
+  Handle(Geom2d_Ellipse) E;
   E = new Ellipse (pos, majorRadius, minorRadius);
   return E;
 }
index f8dec2ca26411df177d82a0fa68877a34a8701de..e2f24fdbfa5b8ed42f2725b03f54dcdec141f9a1 100644 (file)
 #include <Geom2d_Geometry.ixx>
 #include <Standard_ConstructionError.hxx>
 
-typedef Handle(Geom2d_Geometry) Handle(Geometry);
 typedef Geom2d_Geometry Geometry;
 typedef gp_Ax2d   Ax2d;
 typedef gp_Pnt2d  Pnt2d;
 typedef gp_Vec2d  Vec2d;
 typedef gp_Trsf2d Trsf2d;
 
-
-
 void Geom2d_Geometry::Mirror (const gp_Pnt2d& P) {
    
   Trsf2d T;
@@ -74,67 +71,57 @@ void Geom2d_Geometry::Translate (const gp_Pnt2d& P1, const gp_Pnt2d& P2) {
 }
 
 
- Handle(Geometry) Geom2d_Geometry::Mirrored (const gp_Pnt2d& P) const {
-
-  Handle(Geometry) me = this;
-  Handle(Geometry) G = me->Copy();
+ Handle(Geom2d_Geometry) Geom2d_Geometry::Mirrored (const gp_Pnt2d& P) const
+ {
+  Handle(Geom2d_Geometry) G = Copy();
   G->Mirror (P);
   return G;
 }
 
 
-Handle(Geometry) Geom2d_Geometry::Mirrored (const gp_Ax2d& A) const {
-
-  Handle(Geometry) me = this;
-  Handle(Geometry) G = me->Copy();
+Handle(Geom2d_Geometry) Geom2d_Geometry::Mirrored (const gp_Ax2d& A) const
+{
+  Handle(Geom2d_Geometry) G = Copy();
   G->Mirror (A);
   return G;
 }
 
 
-Handle(Geometry) Geom2d_Geometry::Rotated (
-const gp_Pnt2d& P, const Standard_Real Ang) const {
-
-  Handle(Geometry) me = this;
-  Handle(Geometry) G = me->Copy();
+Handle(Geom2d_Geometry) Geom2d_Geometry::Rotated (const gp_Pnt2d& P, const Standard_Real Ang) const
+{
+  Handle(Geom2d_Geometry) G = Copy();
   G->Rotate (P, Ang);
   return G;
 }
 
 
-Handle(Geometry) Geom2d_Geometry::Scaled (
-const gp_Pnt2d& P,  const Standard_Real S) const {
-
-  Handle(Geometry) me = this;
-  Handle(Geometry) G = me->Copy();
+Handle(Geom2d_Geometry) Geom2d_Geometry::Scaled (const gp_Pnt2d& P,  const Standard_Real S) const
+{
+  Handle(Geom2d_Geometry) G = Copy();
   G->Scale (P, S);
   return G;
 }
 
 
-Handle(Geometry) Geom2d_Geometry::Transformed (const gp_Trsf2d& T) const {
-
-  Handle(Geometry) me = this;
-  Handle(Geometry) G = me->Copy();
+Handle(Geom2d_Geometry) Geom2d_Geometry::Transformed (const gp_Trsf2d& T) const
+{
+  Handle(Geom2d_Geometry) G = Copy();
   G->Transform (T);
   return G;
 }
 
 
-Handle(Geometry) Geom2d_Geometry::Translated (const gp_Vec2d& V) const {
-
-  Handle(Geometry) me = this;
-  Handle(Geometry) G = me->Copy();
+Handle(Geom2d_Geometry) Geom2d_Geometry::Translated (const gp_Vec2d& V) const
+{
+  Handle(Geom2d_Geometry) G = Copy();
   G->Translate (V);
   return G;
 }
 
 
-Handle(Geometry) Geom2d_Geometry::Translated (
-const gp_Pnt2d& P1, const gp_Pnt2d& P2) const {
-
-  Handle(Geometry) me = this;
-  Handle(Geometry) G = me->Copy();
+Handle(Geom2d_Geometry) Geom2d_Geometry::Translated (const gp_Pnt2d& P1, const gp_Pnt2d& P2) const
+{
+  Handle(Geom2d_Geometry) G = Copy();
   G->Translate (P1, P2);
   return G;
 }
index 99e005f841c37e4db19a48a1889d29a18e176783..6e95aa9f7a03c89093e75056fe2aabeef8b6729c 100644 (file)
 #include <Standard_DomainError.hxx>
 #include <Standard_RangeError.hxx>
 
-
-
 typedef Geom2d_Hyperbola         Hyperbola;
-typedef Handle(Geom2d_Hyperbola) Handle(Hyperbola);
 typedef gp_Ax2d   Ax2d;
 typedef gp_Dir2d  Dir2d;
 typedef gp_Pnt2d  Pnt2d;
@@ -36,10 +33,6 @@ typedef gp_Vec2d  Vec2d;
 typedef gp_Trsf2d Trsf2d;
 typedef gp_XY     XY;
 
-
-
-
-
 //=======================================================================
 //function : Copy
 //purpose  : 
@@ -47,7 +40,7 @@ typedef gp_XY     XY;
 
 Handle(Geom2d_Geometry) Geom2d_Hyperbola::Copy() const 
 {
-  Handle(Hyperbola) H;
+  Handle(Geom2d_Hyperbola) H;
   H = new Hyperbola (pos, majorRadius, minorRadius);
   return H;
 }
index 738e7601c3236607a0ce370fac58342143215fe9..8ed80bf987ae4b45bebd71a7717927c98dab6b49 100644 (file)
@@ -21,9 +21,7 @@
 #include <gp_XY.hxx>
 #include <Standard_RangeError.hxx>
 
-
 typedef Geom2d_Line         Line;
-typedef Handle(Geom2d_Line) Handle(Line);
 typedef gp_Ax2d   Ax2d;
 typedef gp_Dir2d  Dir2d;
 typedef gp_Pnt2d  Pnt2d;
@@ -31,10 +29,6 @@ typedef gp_Vec2d  Vec2d;
 typedef gp_Trsf2d Trsf2d;
 typedef gp_XY     XY;
 
-
-
-
-
 //=======================================================================
 //function : Copy
 //purpose  : 
@@ -42,7 +36,7 @@ typedef gp_XY     XY;
 
 Handle(Geom2d_Geometry) Geom2d_Line::Copy() const 
 {
-  Handle(Line) L;
+  Handle(Geom2d_Line) L;
   L = new Line (pos);
   return L;
 }
index 79d86bad0e4f0252a92716db1b4283348bf4dcb5..82a38185eceab58099320c695ea892d13b81ae8e 100644 (file)
 #include <gp_XY.hxx>
 #include <Precision.hxx>
 
-typedef Handle(Geom2d_OffsetCurve) Handle(OffsetCurve);
 typedef Geom2d_OffsetCurve         OffsetCurve;
-typedef Handle(Geom2d_Geometry)    Handle(Geometry);
-typedef Handle(Geom2d_Curve)       Handle(Curve);
 typedef Geom2d_Curve               Curve;
 typedef gp_Dir2d  Dir2d;
 typedef gp_Pnt2d  Pnt2d;
@@ -70,7 +67,7 @@ static Standard_Boolean AdjustDerivative(const Handle(Geom2d_Curve)& theCurve, S
 
 Handle(Geom2d_Geometry) Geom2d_OffsetCurve::Copy () const 
 {
-  Handle(OffsetCurve) C;
+  Handle(Geom2d_OffsetCurve) C;
   C = new OffsetCurve (basisCurve, offsetValue);
   return C;
 }
@@ -116,7 +113,7 @@ Standard_Real Geom2d_OffsetCurve::ReversedParameter( const Standard_Real U) cons
 //purpose  : 
 //=======================================================================
 
-void Geom2d_OffsetCurve::SetBasisCurve (const Handle(Curve)& C,
+void Geom2d_OffsetCurve::SetBasisCurve (const Handle(Geom2d_Curve)& C,
                                         const Standard_Boolean isNotCheckC0) 
 {
   const Standard_Real aUf = C->FirstParameter(),
@@ -189,7 +186,7 @@ void Geom2d_OffsetCurve::SetOffsetValue (const Standard_Real D) { offsetValue =
 //purpose  : 
 //=======================================================================
 
-Handle(Curve) Geom2d_OffsetCurve::BasisCurve () const 
+Handle(Geom2d_Curve) Geom2d_OffsetCurve::BasisCurve () const 
 { 
   return basisCurve;
 }
index ba33179d5e94c68d1d9af40e2cd8665d17596d1a..dfeeb94ff81c4ed08567785bd057a6f79be73700 100644 (file)
@@ -24,7 +24,6 @@
 #include <Standard_RangeError.hxx>
 
 typedef Geom2d_Parabola         Parabola;
-typedef Handle(Geom2d_Parabola) Handle(Parabola);
 typedef gp_Ax2d   Ax2d;
 typedef gp_Dir2d  Dir2d;
 typedef gp_Pnt2d  Pnt2d;
@@ -32,11 +31,6 @@ typedef gp_Vec2d  Vec2d;
 typedef gp_Trsf2d Trsf2d;
 typedef gp_XY     XY;
 
-
-
-
-
-
 //=======================================================================
 //function : Copy
 //purpose  : 
@@ -44,7 +38,7 @@ typedef gp_XY     XY;
 
 Handle(Geom2d_Geometry) Geom2d_Parabola::Copy() const 
 {
-  Handle(Parabola) Prb;
+  Handle(Geom2d_Parabola) Prb;
   Prb = new Parabola (pos, focalLength);
   return Prb;
 }
index cd4f9d3588ccdee80b95d4e5e91d651923b663b3..0d42c13f6e3f78237daca9d31f732b6bb0ba56f1 100644 (file)
 #include <Geom2d_Point.ixx>
 
 typedef Geom2d_Point Point;
-typedef Handle(Geom2d_Point) Handle(Point);
 
-
-Standard_Real Geom2d_Point::Distance (const Handle(Point)& Other) const {
+Standard_Real Geom2d_Point::Distance (const Handle(Geom2d_Point)& Other) const {
 
   gp_Pnt2d P1 = this-> Pnt2d ();
   gp_Pnt2d P2 = Other->Pnt2d ();
@@ -28,7 +26,7 @@ Standard_Real Geom2d_Point::Distance (const Handle(Point)& Other) const {
 }
 
 
-Standard_Real Geom2d_Point::SquareDistance (const Handle(Point)& Other) const {
+Standard_Real Geom2d_Point::SquareDistance (const Handle(Geom2d_Point)& Other) const {
 
   gp_Pnt2d P1 = this-> Pnt2d ();
   gp_Pnt2d P2 = Other->Pnt2d ();
index 4a464236f1f4b4c8391f4d39a784297743fc48fc..04802a7a6d3f2410a38f6663d1bb1db9c191df39 100644 (file)
 
 
 typedef Geom2d_Transformation         Transformation;
-typedef Handle(Geom2d_Transformation) Handle(Transformation);
-
 typedef gp_Ax2d     Ax2d;
 typedef gp_Pnt2d    Pnt2d;
 typedef gp_TrsfForm TrsfForm;
 typedef gp_Vec2d    Vec2d;
 
-
-
-
-
-
-
-
 Handle(Geom2d_Transformation) Geom2d_Transformation::Copy() const {
 
-  Handle(Transformation) T;
+  Handle(Geom2d_Transformation) T;
   T = new Transformation (gpTrsf2d);
   return T; 
 }
@@ -49,21 +40,21 @@ Geom2d_Transformation::Geom2d_Transformation (const gp_Trsf2d& T)
 :  gpTrsf2d (T) { }
 
 
-Handle(Transformation) Geom2d_Transformation::Inverted () const {
+Handle(Geom2d_Transformation) Geom2d_Transformation::Inverted () const {
 
    return new Transformation (gpTrsf2d.Inverted());
 }
 
 
-Handle(Transformation) Geom2d_Transformation::Multiplied (
+Handle(Geom2d_Transformation) Geom2d_Transformation::Multiplied (
 
-const Handle(Transformation)& Other) const {
+const Handle(Geom2d_Transformation)& Other) const {
 
    return new Transformation (gpTrsf2d.Multiplied (Other->Trsf2d()));
 }
 
 
-Handle(Transformation) Geom2d_Transformation::Powered (const Standard_Integer N) const{
+Handle(Geom2d_Transformation) Geom2d_Transformation::Powered (const Standard_Integer N) const{
 
   gp_Trsf2d Temp = gpTrsf2d;
   Temp.Power (N);
@@ -168,7 +159,7 @@ void Geom2d_Transformation::Power (const Standard_Integer N) { gpTrsf2d.Power (N
 
 
 void Geom2d_Transformation::PreMultiply (
-const Handle(Transformation)& Other) {
+const Handle(Geom2d_Transformation)& Other) {
 
   gpTrsf2d.PreMultiply (Other->Trsf2d());
 }
index ed19ec5c3c0f67e827d31f854d992e1c2123c231..5d259874d072b43b21861dce64b184982d4a957a 100644 (file)
 #include <Precision.hxx>
 
 
-typedef Handle(Geom2d_TrimmedCurve) Handle(TrimmedCurve);
 typedef Geom2d_TrimmedCurve         TrimmedCurve;
-typedef Handle(Geom2d_Curve)        Handle(Curve);
-typedef Handle(Geom2d_Geometry)     Handle(Geometry);
 typedef gp_Ax2d   Ax2d;
 typedef gp_Pnt2d  Pnt2d;
 typedef gp_Trsf2d Trsf2d;
 typedef gp_Vec2d  Vec2d;
 
-
-
-
-
 //=======================================================================
 //function : Copy
 //purpose  : 
@@ -51,7 +44,7 @@ typedef gp_Vec2d  Vec2d;
 
 Handle(Geom2d_Geometry) Geom2d_TrimmedCurve::Copy () const 
 {
-  Handle(TrimmedCurve) Tc;
+  Handle(Geom2d_TrimmedCurve) Tc;
   Tc = new TrimmedCurve (basisCurve, uTrim1, uTrim2);
   return Tc;
 }
@@ -73,9 +66,9 @@ Geom2d_TrimmedCurve::Geom2d_TrimmedCurve (const Handle(Geom2d_Curve)& C,
   // kill trimmed basis curves
   Handle(Geom2d_TrimmedCurve) T = Handle(Geom2d_TrimmedCurve)::DownCast(C);
   if (!T.IsNull())
-    basisCurve = Handle(Curve)::DownCast(T->BasisCurve()->Copy());
+    basisCurve = Handle(Geom2d_Curve)::DownCast(T->BasisCurve()->Copy());
   else
-    basisCurve = Handle(Curve)::DownCast(C->Copy());
+    basisCurve = Handle(Geom2d_Curve)::DownCast(C->Copy());
 
   SetTrim(U1, U2, Sense, theAdjustPeriodic);
 }
@@ -160,7 +153,7 @@ void Geom2d_TrimmedCurve::SetTrim (const Standard_Real U1,
 //purpose  : 
 //=======================================================================
 
-Handle(Curve) Geom2d_TrimmedCurve::BasisCurve () const 
+Handle(Geom2d_Curve) Geom2d_TrimmedCurve::BasisCurve () const 
 { 
   return basisCurve;
 }
index c699fa01348644ad0a703699378af51fc0c1e304..f06c30c01fa07e956967d6701981009b13c994e2 100644 (file)
 #include <Geom2d_Vector.ixx>
 
 typedef Geom2d_Vector         Vector;
-typedef Handle(Geom2d_Vector) Handle(Vector);
 typedef gp_Ax2d  Ax2d;
 typedef gp_Pnt2d Pnt2d;
 
-
-
 Standard_Real Geom2d_Vector::Angle (
 const Handle(Geom2d_Vector)& Other) const { 
 
@@ -39,9 +36,9 @@ Standard_Real Geom2d_Vector::X () const              { return gpVec2d.X(); }
 Standard_Real Geom2d_Vector::Y () const              { return gpVec2d.Y(); }
 
 
-Handle(Vector) Geom2d_Vector::Reversed () const {
+Handle(Geom2d_Vector) Geom2d_Vector::Reversed () const {
 
-  Handle(Vector) V = Handle(Vector)::DownCast(Copy());
+  Handle(Geom2d_Vector) V = Handle(Geom2d_Vector)::DownCast(Copy());
   V->Reverse();
   return V;
 }
@@ -53,7 +50,7 @@ void Geom2d_Vector::Coord (Standard_Real& X, Standard_Real& Y) const {
 }
  
 
-Standard_Real Geom2d_Vector::Dot (const Handle(Vector)& Other) const  { 
+Standard_Real Geom2d_Vector::Dot (const Handle(Geom2d_Vector)& Other) const  { 
 
   return gpVec2d.Dot (Other->Vec2d());
 }
index 375d78d535cbddfb1dd450cad09da614cefcf5da..9a93639d9e233872b5c86ae9238d5b81ef7bd3db 100644 (file)
 
 typedef Geom2d_Vector Vector;
 typedef Geom2d_VectorWithMagnitude         VectorWithMagnitude;
-typedef Handle(Geom2d_VectorWithMagnitude) Handle(VectorWithMagnitude);
-typedef Handle(Geom2d_Vector)              Handle(Vector);
-
 typedef gp_Ax2d   Ax2d;
 typedef gp_Pnt2d  Pnt2d;
 typedef gp_Trsf2d Trsf2d;
 
-
-
 Geom2d_VectorWithMagnitude::Geom2d_VectorWithMagnitude (const gp_Vec2d& V) 
 { gpVec2d = V; }
 
@@ -42,7 +37,7 @@ const Pnt2d& P1, const Pnt2d& P2) { gpVec2d = gp_Vec2d (P1, P2); }
 
 Handle(Geom2d_Geometry) Geom2d_VectorWithMagnitude::Copy() const {
 
-  Handle(VectorWithMagnitude) V;
+  Handle(Geom2d_VectorWithMagnitude) V;
   V = new VectorWithMagnitude (gpVec2d);
   return V; 
 }
@@ -74,15 +69,15 @@ Standard_Real Geom2d_VectorWithMagnitude::SquareMagnitude () const {
 }
 
 
-void Geom2d_VectorWithMagnitude::Add (const Handle(Vector)& Other) { 
+void Geom2d_VectorWithMagnitude::Add (const Handle(Geom2d_Vector)& Other) { 
 
   gpVec2d.Add (Other->Vec2d());
 }
 
 
-Handle(VectorWithMagnitude) Geom2d_VectorWithMagnitude::Added (
+Handle(Geom2d_VectorWithMagnitude) Geom2d_VectorWithMagnitude::Added (
 
-const Handle(Vector)& Other) const { 
+const Handle(Geom2d_Vector)& Other) const { 
      
  gp_Vec2d Temp = Other->Vec2d();
  Temp.Add (gpVec2d);  
@@ -90,7 +85,7 @@ const Handle(Vector)& Other) const {
 }
 
 
-Standard_Real Geom2d_VectorWithMagnitude::Crossed (const Handle(Vector)& Other) const{ 
+Standard_Real Geom2d_VectorWithMagnitude::Crossed (const Handle(Geom2d_Vector)& Other) const{ 
 
   return gpVec2d.Crossed (Other->Vec2d());
 }
@@ -102,7 +97,7 @@ void Geom2d_VectorWithMagnitude::Divide (const Standard_Real Scalar) {
 }
 
 
-Handle(VectorWithMagnitude) Geom2d_VectorWithMagnitude::Divided (
+Handle(Geom2d_VectorWithMagnitude) Geom2d_VectorWithMagnitude::Divided (
 const Standard_Real Scalar) const { 
 
   gp_Vec2d V (gpVec2d);
@@ -111,7 +106,7 @@ const Standard_Real Scalar) const {
 }
 
 
-Handle(VectorWithMagnitude) Geom2d_VectorWithMagnitude::Multiplied (
+Handle(Geom2d_VectorWithMagnitude) Geom2d_VectorWithMagnitude::Multiplied (
 const Standard_Real Scalar) const { 
 
   gp_Vec2d V(gpVec2d);
@@ -129,7 +124,7 @@ void Geom2d_VectorWithMagnitude::Multiply (const Standard_Real Scalar) {
 void Geom2d_VectorWithMagnitude::Normalize () { gpVec2d.Normalize (); }
 
 
-Handle(VectorWithMagnitude) Geom2d_VectorWithMagnitude::Normalized () const { 
+Handle(Geom2d_VectorWithMagnitude) Geom2d_VectorWithMagnitude::Normalized () const { 
 
    gp_Vec2d V = gpVec2d;
    V.Normalized ();
@@ -137,14 +132,14 @@ Handle(VectorWithMagnitude) Geom2d_VectorWithMagnitude::Normalized () const {
 }
 
 
-void Geom2d_VectorWithMagnitude::Subtract (const Handle(Vector)& Other) { 
+void Geom2d_VectorWithMagnitude::Subtract (const Handle(Geom2d_Vector)& Other) { 
 
   gpVec2d.Subtract (Other->Vec2d());
 }
 
 
-Handle(VectorWithMagnitude) Geom2d_VectorWithMagnitude::Subtracted (
-const Handle(Vector)& Other) const { 
+Handle(Geom2d_VectorWithMagnitude) Geom2d_VectorWithMagnitude::Subtracted (
+const Handle(Geom2d_Vector)& Other) const { 
 
   gp_Vec2d V = gpVec2d;
   V.Subtract (Other->Vec2d());
index 911c17193743e43bf2576edf9302511a2861295e..cffae29d560558c5a70d51d85b4fda16c2a708cf 100644 (file)
@@ -78,39 +78,24 @@ typedef gp_Hypr2d  Hypr2d;
 typedef gp_Parab2d Parab2d;
 typedef gp_Pnt2d   Pnt2d;
 typedef gp_Trsf2d  Trsf2d;
-
 typedef Geom2d_Curve                Curve;
 typedef Geom2d_BSplineCurve         BSplineCurve;
-typedef Handle(Geom2d_Curve)        Handle(Curve);
-typedef Handle(Geom2d_Conic)        Handle(Conic);
-typedef Handle(Geom2d_Circle)       Handle(Circle);
-typedef Handle(Geom2d_Ellipse)      Handle(Ellipse);
-typedef Handle(Geom2d_Hyperbola)    Handle(Hyperbola);
-typedef Handle(Geom2d_Parabola)     Handle(Parabola);
-typedef Handle(Geom2d_Geometry)     Handle(Geometry);
-typedef Handle(Geom2d_BezierCurve)  Handle(BezierCurve);
-typedef Handle(Geom2d_TrimmedCurve) Handle(TrimmedCurve);
-typedef Handle(Geom2d_BSplineCurve) Handle(BSplineCurve);
-
-
 typedef TColStd_Array1OfReal                 Array1OfReal;
 typedef TColStd_Array1OfInteger              Array1OfInteger;
 typedef TColgp_Array1OfPnt2d                 Array1OfPnt2d;
 
-
-
 //=======================================================================
 //function : BSplineCurveBuilder
 //purpose  : 
 //=======================================================================
 
-static Handle(BSplineCurve) BSplineCurveBuilder (
+static Handle(Geom2d_BSplineCurve) BSplineCurveBuilder (
 
-const Handle(Conic)&                TheConic,
+const Handle(Geom2d_Conic)&                TheConic,
 const Convert_ConicToBSplineCurve&  Convert
 ) {
 
-   Handle(BSplineCurve) TheCurve;
+   Handle(Geom2d_BSplineCurve) TheCurve;
    Standard_Integer NbPoles = Convert.NbPoles();
    Standard_Integer NbKnots = Convert.NbKnots();
    Array1OfPnt2d   Poles   (1, NbPoles);
@@ -140,8 +125,8 @@ const Convert_ConicToBSplineCurve&  Convert
 
    Trsf2d T;
    T.SetTransformation (TheConic->XAxis(), gp::OX2d());
-   Handle(BSplineCurve) Cres = 
-     Handle(BSplineCurve)::DownCast(TheCurve->Transformed (T));
+   Handle(Geom2d_BSplineCurve) Cres = 
+     Handle(Geom2d_BSplineCurve)::DownCast(TheCurve->Transformed (T));
    return Cres;
 }
 
@@ -151,9 +136,9 @@ const Convert_ConicToBSplineCurve&  Convert
 //purpose  : 
 //=======================================================================
 
-Handle(BSplineCurve) Geom2dConvert::SplitBSplineCurve (
+Handle(Geom2d_BSplineCurve) Geom2dConvert::SplitBSplineCurve (
 
-const Handle(BSplineCurve)& C,
+const Handle(Geom2d_BSplineCurve)& C,
 const Standard_Integer               FromK1, 
 const Standard_Integer               ToK2,
 const Standard_Boolean               SameOrientation
@@ -166,7 +151,7 @@ const Standard_Boolean               SameOrientation
   Standard_Integer LastK  = Max (FromK1, ToK2);
   if (FirstK < TheFirst || LastK > TheLast) Standard_OutOfRange::Raise();
 
-  Handle(BSplineCurve) NewCurve = Handle(BSplineCurve)::DownCast(C->Copy());
+  Handle(Geom2d_BSplineCurve) NewCurve = Handle(Geom2d_BSplineCurve)::DownCast(C->Copy());
 
   NewCurve->Segment(C->Knot(FirstK),C->Knot(LastK));
 
@@ -185,9 +170,9 @@ const Standard_Boolean               SameOrientation
 //purpose  : 
 //=======================================================================
 
-Handle(BSplineCurve) Geom2dConvert::SplitBSplineCurve (
+Handle(Geom2d_BSplineCurve) Geom2dConvert::SplitBSplineCurve (
 
-const Handle(BSplineCurve)& C, 
+const Handle(Geom2d_BSplineCurve)& C, 
 const Standard_Real                  FromU1, 
 const Standard_Real                  ToU2,
 const Standard_Real, // ParametricTolerance,
@@ -218,9 +203,9 @@ const Standard_Boolean               SameOrientation
 //purpose  : 
 //=======================================================================
 
-Handle(BSplineCurve)  Geom2dConvert::CurveToBSplineCurve (
+Handle(Geom2d_BSplineCurve)  Geom2dConvert::CurveToBSplineCurve (
 
-const Handle(Curve)& C,
+const Handle(Geom2d_Curve)& C,
 const Convert_ParameterisationType  Parameterisation) 
 {
     
@@ -228,7 +213,7 @@ const Convert_ParameterisationType  Parameterisation)
     
   if (C->IsKind(STANDARD_TYPE(Geom2d_TrimmedCurve))) {
     Handle (Curve) Curv;
-    Handle(TrimmedCurve) Ctrim = Handle(TrimmedCurve)::DownCast(C);
+    Handle(Geom2d_TrimmedCurve) Ctrim = Handle(Geom2d_TrimmedCurve)::DownCast(C);
     Curv = Ctrim->BasisCurve();
     Standard_Real U1 = Ctrim->FirstParameter();
     Standard_Real U2 = Ctrim->LastParameter();
@@ -259,7 +244,7 @@ const Convert_ParameterisationType  Parameterisation)
     }
     
     else if (Curv->IsKind(STANDARD_TYPE(Geom2d_Circle))) {
-      Handle(Circle) TheConic= Handle(Circle)::DownCast(Curv);
+      Handle(Geom2d_Circle) TheConic= Handle(Geom2d_Circle)::DownCast(Curv);
       Circ2d C2d (gp::OX2d(), TheConic->Radius());
       if(Parameterisation != Convert_RationalC1) {
        Convert_CircleToBSplineCurve Convert (C2d,
@@ -306,7 +291,7 @@ const Convert_ParameterisationType  Parameterisation)
     }
     
     else if (Curv->IsKind(STANDARD_TYPE(Geom2d_Ellipse))) {
-      Handle(Ellipse) TheConic = Handle(Ellipse)::DownCast(Curv);
+      Handle(Geom2d_Ellipse) TheConic = Handle(Geom2d_Ellipse)::DownCast(Curv);
       
       Elips2d E2d (gp::OX2d(),
                    TheConic->MajorRadius(),
@@ -356,7 +341,7 @@ const Convert_ParameterisationType  Parameterisation)
     }
     
     else if (Curv->IsKind(STANDARD_TYPE(Geom2d_Hyperbola))) {
-      Handle(Hyperbola) TheConic = Handle(Hyperbola)::DownCast(Curv);
+      Handle(Geom2d_Hyperbola) TheConic = Handle(Geom2d_Hyperbola)::DownCast(Curv);
       
       Hypr2d H2d (gp::OX2d(),
                  TheConic->MajorRadius(), TheConic->MinorRadius());
@@ -365,7 +350,7 @@ const Convert_ParameterisationType  Parameterisation)
     }
     
     else if (Curv->IsKind(STANDARD_TYPE(Geom2d_Parabola))) {
-      Handle(Parabola) TheConic = Handle(Parabola)::DownCast(Curv);
+      Handle(Geom2d_Parabola) TheConic = Handle(Geom2d_Parabola)::DownCast(Curv);
       
       Parab2d Prb2d (gp::OX2d(), TheConic->Focal());
       Convert_ParabolaToBSplineCurve Convert (Prb2d, U1, U2);
@@ -374,7 +359,7 @@ const Convert_ParameterisationType  Parameterisation)
     
     else if (Curv->IsKind (STANDARD_TYPE(Geom2d_BezierCurve))) {
       
-      Handle(BezierCurve) CBez = Handle(BezierCurve)::DownCast(Curv->Copy());
+      Handle(Geom2d_BezierCurve) CBez = Handle(Geom2d_BezierCurve)::DownCast(Curv->Copy());
       
       CBez->Segment (U1, U2);
       Standard_Integer NbPoles = CBez->NbPoles();
@@ -422,7 +407,7 @@ const Convert_ParameterisationType  Parameterisation)
   else { 
     
     if (C->IsKind(STANDARD_TYPE(Geom2d_Ellipse))) {
-      Handle(Ellipse) TheConic = Handle(Ellipse)::DownCast(C);
+      Handle(Geom2d_Ellipse) TheConic = Handle(Geom2d_Ellipse)::DownCast(C);
       
       Elips2d E2d (gp::OX2d(),
                   TheConic->MajorRadius(), TheConic->MinorRadius());
@@ -433,7 +418,7 @@ const Convert_ParameterisationType  Parameterisation)
     }
     
     else if (C->IsKind(STANDARD_TYPE(Geom2d_Circle))) {
-      Handle(Circle) TheConic = Handle(Circle)::DownCast(C);
+      Handle(Geom2d_Circle) TheConic = Handle(Geom2d_Circle)::DownCast(C);
       
       Circ2d C2d (gp::OX2d(), TheConic->Radius());
       Convert_CircleToBSplineCurve Convert (C2d,
@@ -443,7 +428,7 @@ const Convert_ParameterisationType  Parameterisation)
     }
     
     else if (C->IsKind (STANDARD_TYPE(Geom2d_BezierCurve))) {
-      Handle(BezierCurve) CBez = Handle(BezierCurve)::DownCast(C);
+      Handle(Geom2d_BezierCurve) CBez = Handle(Geom2d_BezierCurve)::DownCast(C);
       
       Standard_Integer NbPoles = CBez->NbPoles();
       Standard_Integer Degree  = CBez->Degree();
@@ -1477,7 +1462,7 @@ void Geom2dConvert::C0BSplineToC1BSplineCurve(Handle(Geom2d_BSplineCurve)& BS,
      
      U2=BSKnots(j);
      j++;
-     Handle(Geom2d_BSplineCurve) BSbis=Handle(Geom2d_BSplineCurve::DownCast(BS->Copy()));
+     Handle(Geom2d_BSplineCurve) BSbis=Handle(Geom2d_BSplineCurve)::DownCast(BS->Copy());
      BSbis->Segment(U1,U2);
      ArrayOfCurves(i)=BSbis;
    }
@@ -1566,7 +1551,7 @@ void Geom2dConvert::C0BSplineToArrayOfC1BSplineCurve(const Handle(Geom2d_BSpline
        j++;
       U2=BSKnots(j);
       j++;
-      Handle(Geom2d_BSplineCurve) BSbis=Handle(Geom2d_BSplineCurve::DownCast(BS->Copy()));
+      Handle(Geom2d_BSplineCurve) BSbis=Handle(Geom2d_BSplineCurve)::DownCast(BS->Copy());
       BSbis->Segment(U1,U2);
       ArrayOfCurves(i)=BSbis;
     }
index 3f044d780ad217c6c78c5f72d35184919e97f27f..235ed3a6866010ff67401a2a06b9405334208012 100644 (file)
 
 #include <BSplCLib.hxx>
 
-typedef Handle(Geom2d_BSplineCurve)     Handle(BSplineCurve);
 typedef TColStd_Array1OfInteger         Array1OfInteger;
 typedef TColStd_HArray1OfInteger         HArray1OfInteger;
 
-
-
-
 Geom2dConvert_BSplineCurveKnotSplitting::
 Geom2dConvert_BSplineCurveKnotSplitting (
 
-const Handle(BSplineCurve)& BasisCurve, 
+const Handle(Geom2d_BSplineCurve)& BasisCurve, 
 const Standard_Integer      ContinuityRange
 
 ) {
index 5d9245b579175965102dfa0f12d30f56944b2c7f..72a84c30a43e8db7c147fc0450264d2552067da3 100644 (file)
 #include <GccEnt_BadQualifier.hxx>
 #include <Geom2d_Circle.hxx>
 #include <Geom2d_Line.hxx>
+#include <Geom2d_Point.hxx>
 #include <GccEnt_QualifiedCirc.hxx>
 #include <GccEnt_QualifiedLin.hxx>
 #include <StdFail_NotDone.hxx>
 
 Geom2dGcc_Circ2dTanCen::
    Geom2dGcc_Circ2dTanCen (const Geom2dGcc_QualifiedCurve& Qualified1 ,
-                          const Handle(Geom2d_Point&)     PCenter    ,
+                          const Handle(Geom2d_Point)&     PCenter    ,
                           const Standard_Real             Tolerance  ):
   cirsol(1,2)   ,
   qualifier1(1,2),
index 609b48c09c9195c6b06bfee3a2652889f77c9dcb..8e4e5dd71eb63ce6dab69af42b739b017f504eca 100644 (file)
@@ -140,7 +140,7 @@ Geom2dGcc_Circ2dTanOnRad::
 }
 
 Geom2dGcc_Circ2dTanOnRad::
-   Geom2dGcc_Circ2dTanOnRad (const Handle(Geom2d_Point&)     Point1     ,
+   Geom2dGcc_Circ2dTanOnRad (const Handle(Geom2d_Point)&     Point1     ,
                             const Geom2dAdaptor_Curve&     OnCurve    ,
                             const Standard_Real             Radius     ,
                             const Standard_Real             Tolerance  ):
index 35012a4c91e9d8081d572c0b172e36ea830a16fe..8f830873bc6b590a28276413dc53aab18c625901 100644 (file)
@@ -1331,7 +1331,7 @@ void GeomConvert::C0BSplineToArrayOfC1BSplineCurve(
      U2=BSKnots(j);
      j++;
      Handle(Geom_BSplineCurve) 
-       BSbis=Handle(Geom_BSplineCurve::DownCast(BS->Copy()));
+       BSbis=Handle(Geom_BSplineCurve)::DownCast(BS->Copy());
      BSbis->Segment(U1,U2);
      ArrayOfCurves(i)=BSbis;
    }
index 601f041c1bf8c079c4bf4351d4c9efef788fb7a0..6903378173f0e4957fa41c50fcbaba32a6a4e12a 100644 (file)
 #include <gp_Trsf.hxx>
 #include <gp_GTrsf.hxx>
 
-
-
 typedef Geom_Surface                          Surface;
 typedef Geom_BSplineSurface                   BSplineSurface;
-typedef Handle(Geom_Curve)                    Handle(Curve);
-typedef Handle(Geom_BSplineCurve)             Handle(BSplineCurve);
-typedef Handle(Geom_BezierSurface)            Handle(BezierSurface);
-typedef Handle(Geom_Geometry)                 Handle(Geometry);
-typedef Handle(Geom_Surface)                  Handle(Surface);
-typedef Handle(Geom_Plane)                    Handle(Plane);
-typedef Handle(Geom_CylindricalSurface)       Handle(CylindricalSurface);
-typedef Handle(Geom_ConicalSurface)           Handle(ConicalSurface);
-typedef Handle(Geom_SphericalSurface)         Handle(SphericalSurface);
-typedef Handle(Geom_ToroidalSurface)          Handle(ToroidalSurface);
-typedef Handle(Geom_BSplineSurface)           Handle(BSplineSurface);
-typedef Handle(Geom_SurfaceOfRevolution)      Handle(SurfaceOfRevolution);
-typedef Handle(Geom_SurfaceOfLinearExtrusion) Handle(SurfaceOfLinearExtrusion);
-typedef Handle(Geom_RectangularTrimmedSurface) 
-  Handle(RectangularTrimmedSurface);
-
-
 typedef TColStd_Array1OfReal                 Array1OfReal;
 typedef TColStd_Array2OfReal                 Array2OfReal;
 typedef TColStd_Array1OfInteger              Array1OfInteger;
 typedef TColStd_Array2OfInteger              Array2OfInteger;
 typedef TColgp_Array2OfPnt                          Array2OfPnt;
 typedef TColgp_Array1OfPnt                          Array1OfPnt;
-
-
 typedef gp_Pnt Pnt;
 
-
 //=======================================================================
 //function : BSplineSurfaceBuilder
 //purpose  : 
 //=======================================================================
 
-Handle(BSplineSurface) BSplineSurfaceBuilder 
+Handle(Geom_BSplineSurface) BSplineSurfaceBuilder 
   (const Convert_ElementarySurfaceToBSplineSurface& Convert) 
 {
-  Handle(BSplineSurface) TheSurface;
+  Handle(Geom_BSplineSurface) TheSurface;
   Standard_Integer UDegree  = Convert.UDegree ();
   Standard_Integer VDegree  = Convert.VDegree ();
   Standard_Integer NbUPoles = Convert.NbUPoles();
@@ -148,8 +126,8 @@ Handle(BSplineSurface) BSplineSurfaceBuilder
 //purpose  : 
 //=======================================================================
 
-Handle(BSplineSurface) GeomConvert::SplitBSplineSurface 
-  (const Handle(BSplineSurface)& S,
+Handle(Geom_BSplineSurface) GeomConvert::SplitBSplineSurface 
+  (const Handle(Geom_BSplineSurface)& S,
   const Standard_Integer FromUK1, 
   const Standard_Integer ToUK2,
   const Standard_Integer FromVK1, 
@@ -169,7 +147,7 @@ Handle(BSplineSurface) GeomConvert::SplitBSplineSurface
   if (FirstUK < FirstU || LastUK > LastU || 
     FirstVK < FirstV || LastVK > LastV) { Standard_DomainError::Raise(); }
 
-  Handle(BSplineSurface) S1= Handle(BSplineSurface)::DownCast(S->Copy());
+  Handle(Geom_BSplineSurface) S1= Handle(Geom_BSplineSurface)::DownCast(S->Copy());
 
   S1->Segment(S1->UKnot(FirstUK),S1->UKnot(LastUK),
     S1->VKnot(FirstVK),S1->VKnot(LastVK));
@@ -195,8 +173,8 @@ Handle(BSplineSurface) GeomConvert::SplitBSplineSurface
 //purpose  : 
 //=======================================================================
 
-Handle(BSplineSurface) GeomConvert::SplitBSplineSurface 
-  (const Handle(BSplineSurface)& S,
+Handle(Geom_BSplineSurface) GeomConvert::SplitBSplineSurface 
+  (const Handle(Geom_BSplineSurface)& S,
   const Standard_Integer FromK1,
   const Standard_Integer ToK2,
   const Standard_Boolean USplit, 
@@ -205,7 +183,7 @@ Handle(BSplineSurface) GeomConvert::SplitBSplineSurface
   if (FromK1 == ToK2)   Standard_DomainError::Raise();
 
 
-  Handle(BSplineSurface) S1 = Handle(BSplineSurface)::DownCast(S->Copy());
+  Handle(Geom_BSplineSurface) S1 = Handle(Geom_BSplineSurface)::DownCast(S->Copy());
 
   if (USplit) {
 
@@ -258,8 +236,8 @@ Handle(BSplineSurface) GeomConvert::SplitBSplineSurface
 //purpose  : 
 //=======================================================================
 
-Handle(BSplineSurface) GeomConvert::SplitBSplineSurface 
-  (const Handle(BSplineSurface)& S, 
+Handle(Geom_BSplineSurface) GeomConvert::SplitBSplineSurface 
+  (const Handle(Geom_BSplineSurface)& S, 
   const Standard_Real FromU1, 
   const Standard_Real ToU2,
   const Standard_Real FromV1, 
@@ -300,8 +278,8 @@ Handle(BSplineSurface) GeomConvert::SplitBSplineSurface
 //purpose  : 
 //=======================================================================
 
-Handle(BSplineSurface) GeomConvert::SplitBSplineSurface 
-  (const Handle(BSplineSurface)& S, 
+Handle(Geom_BSplineSurface) GeomConvert::SplitBSplineSurface 
+  (const Handle(Geom_BSplineSurface)& S, 
   const Standard_Real                    FromParam1, 
   const Standard_Real                    ToParam2,
   const Standard_Boolean                 USplit, 
@@ -311,7 +289,7 @@ Handle(BSplineSurface) GeomConvert::SplitBSplineSurface
   if (Abs (FromParam1 - ToParam2) <= Abs(ParametricTolerance)) {
     Standard_DomainError::Raise();
   }
-  Handle(BSplineSurface) NewSurface
+  Handle(Geom_BSplineSurface) NewSurface
     = Handle(Geom_BSplineSurface)::DownCast(S->Copy());
 
   if (USplit) {
@@ -356,7 +334,7 @@ Handle(BSplineSurface) GeomConvert::SplitBSplineSurface
 //=======================================================================
 
 Handle(Geom_BSplineSurface) GeomConvert::SurfaceToBSplineSurface
-  (const Handle(Surface)& Sr) 
+  (const Handle(Geom_Surface)& Sr) 
 {
   Standard_Real U1, U2, V1, V2;
   Sr->Bounds (U1, U2, V1, V2);
@@ -374,7 +352,7 @@ Handle(Geom_BSplineSurface) GeomConvert::SurfaceToBSplineSurface
   }
 
   Handle(Geom_BSplineSurface) TheSurface;
-  Handle(Surface) S; 
+  Handle(Geom_Surface) S; 
   Handle(Geom_OffsetSurface) OffsetSur;
   if (Sr->IsKind(STANDARD_TYPE(Geom_OffsetSurface))) {
     OffsetSur = *((Handle(Geom_OffsetSurface)*)& Sr);
index 68f2daaf77cc340d975a237a23ca503a2ebe6a3e..8e2b5211dd6dc39515a265f9c91968ce8b7fb858 100644 (file)
 
 #include <BSplCLib.hxx>
 
-typedef Handle(Geom_BSplineCurve)        Handle(BSplineCurve);
 typedef TColStd_Array1OfInteger      Array1OfInteger;
 typedef TColStd_HArray1OfInteger      HArray1OfInteger;
 
-
-
-
 GeomConvert_BSplineCurveKnotSplitting::GeomConvert_BSplineCurveKnotSplitting (
 
-const Handle(BSplineCurve)& BasisCurve, 
+const Handle(Geom_BSplineCurve)& BasisCurve, 
 const Standard_Integer      ContinuityRange
 
 ) {
index 519bc4d75964d7b930be84b8b61838040db02a56..e38cdc5f506cfb21fe45da4ba431b139456458dc 100644 (file)
 #include <Standard_RangeError.hxx>
 
 #include <BSplCLib.hxx>
-typedef Handle(Geom_BSplineSurface)     Handle(BSplineSurface);
+
 typedef TColStd_Array1OfInteger      Array1OfInteger;
 typedef TColStd_HArray1OfInteger HArray1OfInteger;
 
-
-
-
 GeomConvert_BSplineSurfaceKnotSplitting::
 GeomConvert_BSplineSurfaceKnotSplitting (
 
-const Handle(BSplineSurface)& BasisSurface, 
+const Handle(Geom_BSplineSurface)& BasisSurface, 
 const Standard_Integer        UContinuityRange,
 const Standard_Integer        VContinuityRange
 
index 1f289e602c7ccaedc6332bd86c6e792b31afa93b..b0f7b5fcda785074ae6811b6b0cd6a915e1fddd0 100644 (file)
@@ -29,6 +29,7 @@
 #include <Law.hxx>
 #include <Law_Linear.hxx>
 #include <Law_BSpline.hxx>
+#include <Law_BSpFunc.hxx>
 #include <GeomFill_DegeneratedBound.hxx>
 #include <GeomFill_TgtOnCoons.hxx>
 
index 48ac483978402f4df237e0c3c72868f24c72b512..870cfaddd8c004a8a516cc474fae8cb8c5abffa8 100644 (file)
@@ -67,6 +67,7 @@
 #include <GeomAdaptor_HSurface.hxx>
 #include <GeomLProp_SLProps.hxx>
 #include <Geom2d_BezierCurve.hxx>
+#include <Geom2d_BSplineCurve.hxx>
 #include <TColgp_Array1OfPnt2d.hxx>
 
 #include <TColStd_SequenceOfInteger.hxx>
@@ -75,6 +76,7 @@
 #include <Geom_BSplineSurface.hxx>
 #include <GeomPlate_SequenceOfAij.hxx>
 #include <GeomPlate_MakeApprox.hxx>
+#include <Geom_Plane.hxx>
 
 #ifdef DRAW
 #include <DrawTrSurf.hxx>
index 1cb0550e94d926172f56f05defb1cfdb0d3130ae..988865ad37d38c3c686a95fd92de0c938a98dd1c 100644 (file)
@@ -31,6 +31,7 @@
 #include <Approx_Curve2d.hxx>
 #include <GeomAbs_Shape.hxx>
 #include <BRepAdaptor_HSurface.hxx>
+#include <Geom2d_BSplineCurve.hxx>
 
 //---------------------------------------------------------
 //         Constructeur vide
index 018bde46a9ac21fdd4bb2eec25f61e0901304e65..a729bb984d4ed9e3c270fdaab0cc204555cdcec5 100644 (file)
@@ -26,7 +26,8 @@
 #include <Geom2dConvert.hxx>
 #include <GeomToStep_MakeBSplineCurveWithKnots.hxx>
 #include <GeomToStep_MakeBSplineCurveWithKnotsAndRationalBSplineCurve.hxx>
-
+#include <StepGeom_BSplineCurveWithKnotsAndRationalBSplineCurve.hxx>
+#include <StepGeom_BSplineCurveWithKnots.hxx>
 
 //=============================================================================
 // Creation d' une BoundedCurve de prostep a partir d' une BoundedCurve de Geom
index 3173e799f912ea0d8f8f5fabbafd0475b46a5e59..5745460e90e032b9f6f6f3b48034b55bd4aba9d8 100644 (file)
@@ -17,6 +17,9 @@
 #include <GeomToStep_MakeBoundedSurface.ixx>
 #include <StdFail_NotDone.hxx>
 #include <StepGeom_BoundedSurface.hxx>
+#include <StepGeom_BSplineSurfaceWithKnots.hxx>
+#include <StepGeom_RectangularTrimmedSurface.hxx>
+#include <StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface.hxx>
 #include <GeomToStep_MakeBoundedSurface.hxx>
 #include <Geom_BSplineSurface.hxx>
 #include <Geom_RectangularTrimmedSurface.hxx>
index b25677ec6b37b61a2c96ff99da4a0b04a82da4a4..5164956de831fba907f03c1f5eea6b66a9203086 100644 (file)
@@ -22,6 +22,8 @@
 #include <gp_Circ2d.hxx>
 #include <Geom_Circle.hxx>
 #include <StepGeom_Circle.hxx>
+#include <StepGeom_Axis2Placement2d.hxx>
+#include <StepGeom_Axis2Placement3d.hxx>
 #include <TCollection_HAsciiString.hxx>
 #include <UnitsMethods.hxx>
 
index a5d63ec6bcc041294e1b9093fcf45f35ea0e1a63..9adffe733c1396d06aabc4a1dab14caf8ee7d8a7 100644 (file)
 
 #include <GeomToStep_MakeConic.ixx>
 #include <StdFail_NotDone.hxx>
-#include <StepGeom_Conic.hxx>
+#include <StepGeom_Circle.hxx>
+#include <StepGeom_Ellipse.hxx>
+#include <StepGeom_Hyperbola.hxx>
+#include <StepGeom_Parabola.hxx>
 #include <GeomToStep_MakeConic.hxx>
 #include <Geom_Circle.hxx>
 #include <Geom_Ellipse.hxx>
index 33a2af90cf9701ce73401df7b2324ae4eb196319..732727f99fada7a03469ffe6a1aa403db1d33ab3 100644 (file)
 
 #include <GeomToStep_MakeCurve.ixx>
 #include <StdFail_NotDone.hxx>
-#include <StepGeom_Curve.hxx>
+#include <StepGeom_Conic.hxx>
+#include <StepGeom_Line.hxx>
+#include <StepGeom_BoundedCurve.hxx>
+#include <StepGeom_Axis2Placement3d.hxx>
 #include <GeomToStep_MakeCurve.hxx>
 #include <Geom_Line.hxx>
 #include <Geom2d_Line.hxx>
index c1315e24bdffbaabd1c25cefbdbf248f29c00d5a..1cd0fed314b66dc1ecfc276a99993949be357b4c 100644 (file)
 #include <GeomToStep_MakeElementarySurface.ixx>
 #include <StdFail_NotDone.hxx>
 #include <StepGeom_ElementarySurface.hxx>
+#include <StepGeom_CylindricalSurface.hxx>
+#include <StepGeom_ConicalSurface.hxx>
+#include <StepGeom_SphericalSurface.hxx>
+#include <StepGeom_ToroidalSurface.hxx>
+#include <StepGeom_Plane.hxx>
 #include <GeomToStep_MakeElementarySurface.hxx>
 #include <Geom_CylindricalSurface.hxx>
 #include <Geom_ConicalSurface.hxx>
index c086fe8cfae0f6c243b90310f2754292bef1c115..1a4a38458f7a0312769a6a2f733a0cf9b2e3a028 100644 (file)
@@ -21,6 +21,8 @@
 #include <Geom_Ellipse.hxx>
 #include <gp_Elips2d.hxx>
 #include <StepGeom_Ellipse.hxx>
+#include <StepGeom_Axis2Placement2d.hxx>
+#include <StepGeom_Axis2Placement3d.hxx>
 #include <TCollection_HAsciiString.hxx>
 #include <UnitsMethods.hxx>
 
index 25d05025edf8e5dd191971fffe92e04904d7e53f..d69bb52cba6c16a3e4737921ba5df38eee4e9e05 100644 (file)
@@ -14,6 +14,8 @@
 #include <GeomToStep_MakeHyperbola.ixx>
 
 #include <StepGeom_Hyperbola.hxx>
+#include <StepGeom_Axis2Placement2d.hxx>
+#include <StepGeom_Axis2Placement3d.hxx>
 #include <gp_Hypr.hxx>
 #include <gp_Hypr2d.hxx>
 #include <Geom_Hyperbola.hxx>
index 0d91ace93f040b5df5d29a872e350381b5380cea..a06a252a571864a5e30695c7ed4c34bbf69de935 100644 (file)
@@ -14,6 +14,8 @@
 #include <GeomToStep_MakeParabola.ixx>
 
 #include <StepGeom_Parabola.hxx>
+#include <StepGeom_Axis2Placement2d.hxx>
+#include <StepGeom_Axis2Placement3d.hxx>
 #include <gp_Parab.hxx>
 #include <gp_Parab2d.hxx>
 #include <Geom_Parabola.hxx>
index 35785d36575d37c909610ddd39245fe1bdd4405f..f9c9e2f0078e3130dcae0b3dfd786475e904c519 100644 (file)
@@ -16,7 +16,9 @@
 
 #include <GeomToStep_MakeSurface.ixx>
 #include <StdFail_NotDone.hxx>
-#include <StepGeom_Surface.hxx>
+#include <StepGeom_BoundedSurface.hxx>
+#include <StepGeom_ElementarySurface.hxx>
+#include <StepGeom_SweptSurface.hxx>
 #include <GeomToStep_MakeSurface.hxx>
 #include <Geom_BoundedSurface.hxx>
 #include <GeomToStep_MakeBoundedSurface.hxx>
index 33d11815770c722a1e0aa82999040813921c1717..7c223aa0c9ce7dabccfab6d78c1551c23831e00a 100644 (file)
@@ -17,6 +17,8 @@
 #include <GeomToStep_MakeSweptSurface.ixx>
 #include <StdFail_NotDone.hxx>
 #include <StepGeom_SweptSurface.hxx>
+#include <StepGeom_SurfaceOfLinearExtrusion.hxx>
+#include <StepGeom_SurfaceOfRevolution.hxx>
 #include <GeomToStep_MakeSweptSurface.hxx>
 #include <Geom_SurfaceOfLinearExtrusion.hxx>
 #include <Geom_SurfaceOfRevolution.hxx>
index 2060bfa143cf100b3c80f26ef5494948d1c41f42..f57b69bda50daa860adb8d2d16bd54be12fef2ce 100644 (file)
@@ -29,8 +29,7 @@ public:
   : IsDef (0),
     IsSet (0),
     MarkerType (Aspect_TOM_POINT),
-    Scale (0),
-    MarkerImage (NULL)
+    Scale (0)
   {
     memset (&Color, 0, sizeof(Color));
   }
index 19ab6fc24152e65ba4fbce04c5ad881fb44b7aae..90239d6d59e58a043f262fb9825741a7b9f63d45 100644 (file)
 #include <Graphic3d_SequenceOfHClipPlane.hxx>
 #include <Graphic3d_TypeOfComposition.hxx>
 #include <Graphic3d_ViewAffinity.hxx>
-#include <Graphic3d_StructureManager.hxx>
 #include <Graphic3d_Vec3.hxx>
 #include <Graphic3d_ZLayerId.hxx>
-#include <Standard_Transient.hxx>
 
-//! Forward declaration.
+class Graphic3d_GraphicDriver;
+class Graphic3d_StructureManager;
 
 //! Low-level graphic structure interface
 class Graphic3d_CStructure : public Standard_Transient
index 549c68d25911d3416d49b578e98d4ed2ad687c73..2776bcac5480ed370f2dbd7f67ff602219198668 100755 (executable)
@@ -33,7 +33,6 @@ Graphic3d_ClipPlane::Graphic3d_ClipPlane()
   myIsOn (Standard_True),
   myIsCapping (Standard_False),
   myMaterial (Graphic3d_NOM_DEFAULT),
-  myTexture (NULL),
   myHatch (Aspect_HS_HORIZONTAL),
   myHatchOn (Standard_False),
   myId(),
@@ -52,7 +51,6 @@ Graphic3d_ClipPlane::Graphic3d_ClipPlane(const Equation& theEquation)
   myIsOn (Standard_True),
   myIsCapping (Standard_False),
   myMaterial (Graphic3d_NOM_DEFAULT),
-  myTexture (NULL),
   myHatch (Aspect_HS_HORIZONTAL),
   myHatchOn (Standard_False),
   myId(),
@@ -91,7 +89,6 @@ Graphic3d_ClipPlane::Graphic3d_ClipPlane(const gp_Pln& thePlane)
   myIsOn (Standard_True),
   myIsCapping (Standard_False),
   myMaterial (Graphic3d_NOM_DEFAULT),
-  myTexture (NULL),
   myHatch (Aspect_HS_HORIZONTAL),
   myHatchOn (Standard_False),
   myId(),
index 62987252c602e4ee52a314076a3f2bb2153a8952..b90cb1cb1cf07df5634f2d9c4c7145ce2a2aa62f 100644 (file)
@@ -18,6 +18,7 @@
 
 #include <NCollection_Map.hxx>
 
+class Graphic3d_Structure;
 typedef NCollection_Map<Handle(Graphic3d_Structure)> Graphic3d_MapOfStructure;
 
 #endif // _Graphic3d_MapOfStructure
index 3899367c0ad551108701644f3ebc91b22c81dc60..436494c4ead741c86769094854a9b276a9cec88d 100755 (executable)
@@ -30,9 +30,7 @@ namespace
 // purpose  :
 // =======================================================================
 Graphic3d_MarkerImage::Graphic3d_MarkerImage (const Handle(Image_PixMap)& theImage)
-: myBitMap (NULL),
-  myImage  (theImage),
-  myImageAlpha (NULL),
+: myImage  (theImage),
   myMargin (1),
   myWidth  ((Standard_Integer )theImage->Width()),
   myHeight ((Standard_Integer )theImage->Height())
@@ -52,8 +50,6 @@ Graphic3d_MarkerImage::Graphic3d_MarkerImage (const Handle(TColStd_HArray1OfByte
                                               const Standard_Integer& theWidth,
                                               const Standard_Integer& theHeight)
 : myBitMap (theBitMap),
-  myImage  (NULL),
-  myImageAlpha (NULL),
   myMargin (1),
   myWidth  (theWidth),
   myHeight (theHeight)
index 3fabaffef1e01cb6cb163ef01ccb69559dfd68b6..75e89a2a8e2d8d6401cd8e3362ff8a5e0f8d2391 100755 (executable)
 #define _Graphic3d_MarkerImage_H__
 
 #include <TColStd_HArray1OfByte.hxx>
-#include <Image_PixMap_Handle.hxx>
 #include <Quantity_Parameter.hxx>
 #include <TCollection_AsciiString.hxx>
 
+class Image_PixMap;
+
 //! This class is used to store bitmaps and images for markers rendering.
 //! It can convert bitmap texture stored in TColStd_HArray1OfByte to Image_PixMap and vice versa.
 class Graphic3d_MarkerImage : public Standard_Transient
index c661e99e8cee20b7baa1286a20c5af2cb236dfeb..db2ee1359a9d8034a4f4b745c16e9517cb4759b4 100644 (file)
@@ -17,9 +17,8 @@
 
 #include <Standard_Transient.hxx>
 #include <NCollection_Map.hxx>
-#include <NCollection_Handle.hxx>
+#include <NCollection_Shared.hxx>
 
-typedef NCollection_Map<const Standard_Transient* >          Graphic3d_NMapOfTransient;
-typedef NCollection_Handle<Graphic3d_NMapOfTransient> Handle(Graphic3d_NMapOfTransient);
+typedef NCollection_Shared< NCollection_Map<const Standard_Transient* > > Graphic3d_NMapOfTransient;
 
 #endif // _Graphic3d_NMapOfTransient_HeaderFile
index 674836832dc5c5d8c7c89dd742186b6a21b16796..1627308234e4d3ba16f2b899aaf0d225651f8768 100755 (executable)
@@ -18,6 +18,7 @@
 
 #include <Graphic3d_ShaderObject.hxx>
 #include <Graphic3d_ShaderVariable.hxx>
+#include <Graphic3d_TextureParams.hxx>
 #include <NCollection_Sequence.hxx>
 
 //! List of shader objects.
index 0080f62220f9d93455647f534cf8014716bb647c..7d5f27ce7dbaac62c4e1f2b72828e09897e23fc7 100644 (file)
@@ -128,9 +128,6 @@ is
     class WorkSession;           -- a set of useful facilities
     deferred class WorkLibrary;  -- capability of user extents
 
-    alias Option  is  Option from MoniTool;                -- pre-defined values for a field
-    alias Profile is  Profile from MoniTool;               -- set of options bound/piloted together
-
     class SessionFile;
     deferred class SessionDumper;
        class BasicDumper;
index 1282a39867eead30f154ac9f0d0b6759fb79f1a8..11f3afecd2af596378749be13e6add6a4bc8ab28 100644 (file)
@@ -18,8 +18,8 @@
 #include <TColStd_SequenceOfTransient.hxx>
 #include <Standard_DomainError.hxx>
 
-#include <IFSelect_Profile.hxx>
-#include <IFSelect_Option.hxx>
+#include <MoniTool_Profile.hxx>
+#include <MoniTool_Option.hxx>
 #include <TCollection_HAsciiString.hxx>
 
 #include <Interface_Macros.hxx>
@@ -29,7 +29,7 @@ static Handle(Dico_DictionaryOfInteger) thedico; // = new Dico_DictionaryOfInteg
 static TColStd_SequenceOfInteger   thenums, themodes;
 static TColStd_SequenceOfTransient theacts;
 
-static Handle(IFSelect_Profile) thealiases;
+static Handle(MoniTool_Profile) thealiases;
 
 
     void IFSelect_Activator::Adding
@@ -61,7 +61,6 @@ static Handle(IFSelect_Profile) thealiases;
   (const Standard_Integer number, const Standard_CString command) const
       {  Adding (this,number,command,1);  }
 
-
     void IFSelect_Activator::Remove (const Standard_CString command)
       {  thedico->RemoveItem(command);  }
 
@@ -76,10 +75,10 @@ static Handle(IFSelect_Profile) thealiases;
   (const Standard_CString conf,
    const Standard_CString command, const Standard_CString alias)
 {
-  if (thealiases.IsNull()) thealiases = new IFSelect_Profile;
-  Handle(IFSelect_Option) opt = thealiases->Option(command);
+  if (thealiases.IsNull()) thealiases = new MoniTool_Profile;
+  Handle(MoniTool_Option) opt = thealiases->Option(command);
   if (opt.IsNull()) {
-    opt = new IFSelect_Option(STANDARD_TYPE(TCollection_HAsciiString),command);
+    opt = new MoniTool_Option(STANDARD_TYPE(TCollection_HAsciiString),command);
     thealiases->AddOption (opt);
   }
   opt->Add (conf,new TCollection_HAsciiString(alias));
@@ -101,7 +100,7 @@ static Handle(IFSelect_Profile) thealiases;
   Handle(TCollection_HAsciiString) val;
   if (!thealiases->Value(command,val)) return str;
   str.AssignCat (val->ToCString());
-  return str;
+    return str;
 }
 
 
index d207082ab6f51f287801b680b232cf2ad545bf42..032f8fd4c0577b35b3c5c3fa64ff39e879496cc8 100644 (file)
@@ -21,6 +21,7 @@
 #include <TCollection_HAsciiString.hxx>
 #include <IFSelect_SignType.hxx>
 #include <IFSelect_SignatureList.hxx>
+#include <IFSelect_ShareOut.hxx>
 #include <IFSelect_IntParam.hxx>
 #include <TColStd_HSequenceOfAsciiString.hxx>
 #include <TColStd_HSequenceOfHAsciiString.hxx>
index b448b7c9264f96daee79fc3501bc34f794949ebf..b1bd13a2dc6d3a9227b8f69928e56d8eb8113baa 100644 (file)
@@ -22,6 +22,7 @@
 #include <IFSelect_SelectCombine.hxx>
 #include <IFSelect_SelectAnyType.hxx>
 #include <IFSelect_SelectAnyList.hxx>
+#include <IFSelect_ShareOut.hxx>
 #include <IFSelect_Dispatch.hxx>
 #include <IFSelect_Modifier.hxx>
 #include <IFSelect_Transformer.hxx>
index 3014933004fb3cfc11a0394e4c0ba89f881b2af9..73447d8d26565106dfb1d69b770ad559809bc7a1 100644 (file)
@@ -46,6 +46,7 @@
 #include <TColStd_HSequenceOfExtendedString.hxx>
 #include <NCollection_DataMap.hxx>
 #include <IGESData_IGESEntity.hxx>
+#include <IGESData_IGESModel.hxx>
 
 namespace
 {
index 7e2bfc09e739071bf156c5caa711960156002cc9..3ee5222275048e18803b3a5b239af87b4897d71e 100644 (file)
 #include <TransferBRep_ShapeMapper.hxx>
 #include <Interface_Macros.hxx>
 #include <IGESData_IGESModel.hxx>
+#include <IGESData_IGESEntity.hxx>
 
 #include <BRepToIGES_BREntity.hxx>
 #include <BRepToIGESBRep_Entity.hxx>
 
 #include <Transfer_TransientMapper.hxx>
+#include <Transfer_SimpleBinderOfTransient.hxx>
 #include <Geom_Curve.hxx>
 #include <Geom_Surface.hxx>
 #include <GeomToIGES_GeomCurve.hxx>
index fddb82c36050e82b864401b096a015e74ad35d85..974ae11e1dc9485fa94c2a9ea84b7f0315feab19 100644 (file)
@@ -18,6 +18,7 @@
 #include <IGESSelect_WorkLibrary.hxx>
 #include <IGESToBRep_Actor.hxx>
 #include <IGESData_IGESModel.hxx>
+#include <IGESData_Protocol.hxx>
 #include <IGESSolid.hxx>
 #include <IGESAppli.hxx>
 
index 6a210a539b26155a544006f68401d9e273225be3..5eb4aeb8c2394b3b2da6cefe4acb1f3df58fe44e 100644 (file)
@@ -26,6 +26,7 @@
 #include <GeomToIGES_GeomCurve.hxx>
 #include <GeomToIGES_GeomSurface.hxx>
 #include <IGESData_IGESWriter.hxx>
+#include <IGESData_Protocol.hxx>
 #include <XSControl_TransferWriter.hxx>
 
 #include <Interface_Macros.hxx>
index 612ad18495879317eb66b86021353588d1e4af9e..429791875688b9c7946326d162da2fbcc762d47d 100644 (file)
 #include <Interface_EntityIterator.hxx>
 #include <IGESData_SpecificLib.hxx>
 #include <IGESData_SpecificModule.hxx>
+#include <IGESData_TransfEntity.hxx>
+#include <IGESData_ViewKindEntity.hxx>
+#include <IGESData_LineFontEntity.hxx>
+#include <IGESData_LevelListEntity.hxx>
+#include <IGESData_LabelDisplayEntity.hxx>
+#include <IGESData_ColorEntity.hxx>
 #include <TCollection_HAsciiString.hxx>
 #include <Message_Messenger.hxx>
 
index 5a1f5c2d8e5320a81e1ddde2853fc3ee8dfff418..c7aa727b7d71a11954a8fa6ec90233798ae3e424 100644 (file)
@@ -14,6 +14,7 @@
 #include <IGESSelect_SelectDrawingFrom.ixx>
 #include <IGESSelect_ViewSorter.hxx>
 #include <IGESData_IGESModel.hxx>
+#include <IGESData_IGESEntity.hxx>
 #include <Interface_Macros.hxx>
 
 
index af54ab13ad124f550487cfab8affb5e32671023c..957464bd05d2b2b6f3346a3113c3aa47b28ba6de 100644 (file)
@@ -13,6 +13,7 @@
 
 #include <IGESSelect_SelectFromDrawing.ixx>
 #include <IGESData_IGESEntity.hxx>
+#include <IGESData_ViewKindEntity.hxx>
 #include <Interface_Macros.hxx>
 
 #define PourDrawing 404
index 614d34a45ef094ad7d4ada3adb605bda8cb5c6bd..6c81a9a8743a7afaf412f3c346ed35690584dcda 100644 (file)
@@ -13,6 +13,7 @@
 
 #include <IGESSelect_SelectFromSingleView.ixx>
 #include <IGESData_IGESEntity.hxx>
+#include <IGESData_ViewKindEntity.hxx>
 #include <Interface_Macros.hxx>
 
 
index 64e2b4286906ee9d9b81afbee51327f66ceb7343..521e571f47cbac7f15c231f5d62143436246db00 100644 (file)
@@ -14,6 +14,7 @@
 #include  <IGESSelect_SelectSingleViewFrom.ixx>
 #include <IGESSelect_ViewSorter.hxx>
 #include <IGESData_IGESModel.hxx>
+#include <IGESData_IGESEntity.hxx>
 #include <Interface_Macros.hxx>
 
 
index b7f0aa49021ce247950f09709437e3816b9ab964..31f6391e173d6241b7e5f6353f6b2861ee5db4fa 100644 (file)
@@ -35,6 +35,8 @@
 #include <Interface_ReportEntity.hxx>
 #include <IGESData_IGESEntity.hxx>
 #include <IGESData_IGESDumper.hxx>
+#include <IGESSolid_Protocol.hxx>
+#include <IGESAppli_Protocol.hxx>
 
 #include <Interface_Check.hxx>
 
index 834de02eca2758903e635b84efa858534d42a913..608da83b3b3867e58af994ecf4b611f20b2b23d8 100644 (file)
@@ -14,6 +14,7 @@
 // commercial license or contractual agreement.
 
 #include <Transfer_TransientProcess.hxx>
+#include <IGESData_IGESEntity.hxx>
 
 //=======================================================================
 //function : SetEpsilon
index ee250bad184072e75a22e3506cbe3ce7c9cd544b..769b59b98e35638d9cbb74ea60d8d09f0a410273 100644 (file)
@@ -19,6 +19,7 @@
 #include <IVtk_Interface.hxx>
 #include <IVtk_Types.hxx>
 
+class IVtk_IShape;
 DEFINE_STANDARD_HANDLE( IVtk_IShape, IVtk_Interface )
 
 //! @class IVtk_IShape 
index 6f875db7639118a3933f034b7f312e242305a563..50bf820c96734b3899369f83fab41f3792b37d62 100644 (file)
@@ -19,6 +19,7 @@
 #include <IVtk_Interface.hxx>
 #include <IVtk_Types.hxx>
 
+class IVtk_IShapeData;
 DEFINE_STANDARD_HANDLE( IVtk_IShapeData, IVtk_Interface )
 
 //! @class IVtk_IShapeData
index 264a534130cfd85e7ce5f37bf4ebd0f706df1ef5..4259e8b8d76b08d02f4c09fe7d3ff47038e2126e 100644 (file)
@@ -20,6 +20,7 @@
 #include <IVtk_IShape.hxx>
 #include <IVtk_IShapeData.hxx>
 
+class IVtk_IShapeMesher;
 DEFINE_STANDARD_HANDLE( IVtk_IShapeMesher, IVtk_Interface )
 
 //! @class  IVtk_IShapeMesher 
index 1feb2e4a424f1067e00a8bb0e7f31dc44ed1e093..d7d348cdf24597617e8abb85398a6f6ec1800e93 100644 (file)
@@ -19,6 +19,7 @@
 #include <IVtk_IView.hxx>
 #include <IVtk_IShape.hxx>
 
+class IVtk_IShapePickerAlgo;
 DEFINE_STANDARD_HANDLE( IVtk_IShapePickerAlgo, IVtk_Interface )
 
 //! @class IVtk_IShapePickerAlgo 
index a212cb83faf19807692864370645f70353a740f0..8ba72bcd077de9825cebf8d2a5f2663eb21dd8cc 100644 (file)
@@ -22,6 +22,7 @@
 #include <gp_Pnt.hxx>
 #include <Graphic3d_Mat4d.hxx>
 
+class IVtk_IView;
 DEFINE_STANDARD_HANDLE( IVtk_IView, IVtk_Interface )
 
 //! @class IVtk_IView 
index d2d4725016a7257792febe3de2f4e6f362774f77..3f4f5c736d095b0593636a03ae0493e0638f10f4 100644 (file)
@@ -19,6 +19,7 @@
 #include <Standard_Type.hxx>
 #include <Standard_Transient.hxx>
 
+class IVtk_Interface;
 DEFINE_STANDARD_HANDLE( IVtk_Interface, Standard_Transient )
 
 //! @class IVtk_Interface 
index 3310415df4e516d9cb20b886593327ca0dbd370d..7e9b53c7748a2991d2a508aa0dd72dd035593c11 100644 (file)
@@ -137,7 +137,6 @@ typedef NCollection_DoubleMap<TopoDS_Shape, TCollection_AsciiString> DoubleMapOf
 typedef NCollection_DoubleMap<vtkSmartPointer<vtkActor>, TCollection_AsciiString> DoubleMapOfActorsAndNames;
 
 typedef IVtkDraw_HighlightAndSelectionPipeline PipelinePtr;
-typedef Handle(IVtkDraw_HighlightAndSelectionPipeline) Handle(PipelinePtr);
 
 //================================================================
 // GLOBAL VARIABLES
index 8b442013d4aeb40e191f1ccd95fef44464552a66..d667b3f651d231eae2476f8d27b7e4e46d22a8cf 100644 (file)
 #ifndef _IVtkDraw_HighlightAndSelectionPipeline_HeaderFile
 #define _IVtkDraw_HighlightAndSelectionPipeline_HeaderFile
 
-#ifndef _Standard_HeaderFile
-#include <Standard.hxx>
-#endif
-#ifndef _Standard_Macro_HeaderFile
-#include <Standard_Macro.hxx>
-#endif
-#ifndef _Handle_MMgt_TShared_HeaderFile
-#endif
-
 #include <NCollection_DataMap.hxx>
-#include <NCollection_Handle.hxx>
+#include <NCollection_Shared.hxx>
 #include <Standard_Transient.hxx>
 #include <TopoDS_Shape.hxx>
 
@@ -43,6 +34,7 @@
 typedef NCollection_DataMap <IVtk_IdType, vtkSmartPointer<IVtkTools_DisplayModeFilter> > DisplayModeFiltersMap;
 typedef NCollection_DataMap <IVtk_IdType, vtkSmartPointer<IVtkTools_SubPolyDataFilter> > SubShapesFiltersMap;
 
+class IVtkDraw_HighlightAndSelectionPipeline;
 DEFINE_STANDARD_HANDLE(IVtkDraw_HighlightAndSelectionPipeline, Standard_Transient)
 
 class IVtkDraw_HighlightAndSelectionPipeline : public Standard_Transient
@@ -121,6 +113,6 @@ private:
 
 //! Mapping between OCCT topological shape IDs and their correspondent
 //! visualization pipelines.
-typedef NCollection_DataMap<IVtk_IdType, Handle(IVtkDraw_HighlightAndSelectionPipeline)> ShapePipelineMap;
+typedef NCollection_Shared< NCollection_DataMap<IVtk_IdType, Handle(IVtkDraw_HighlightAndSelectionPipeline)> > ShapePipelineMap;
 
 #endif
index c38a7a4a31063f238e46aac4f449e143004fea88..50ea5232fe8914e3c514366bc3702a75472e386c 100644 (file)
@@ -61,7 +61,7 @@ IVtkOCC_SelectableObject::IVtkOCC_SelectableObject()
 void IVtkOCC_SelectableObject::SetShape (const IVtkOCC_Shape::Handle& theShape)
 {
   myShape = theShape;
-  if (myShape)
+  if (! myShape.IsNull())
   {
     myShape->SetSelectableObject (this);
   }
@@ -78,7 +78,7 @@ void IVtkOCC_SelectableObject::SetShape (const IVtkOCC_Shape::Handle& theShape)
 void IVtkOCC_SelectableObject::ComputeSelection (const Handle(SelectMgr_Selection)& theSelection,
                                                  const Standard_Integer theMode)
 {
-  if (!myShape)
+  if (myShape.IsNull())
   {
     return;
   }
@@ -143,7 +143,7 @@ void IVtkOCC_SelectableObject::ComputeSelection (const Handle(SelectMgr_Selectio
 //============================================================================
 const Bnd_Box& IVtkOCC_SelectableObject::BoundingBox()
 {
-  if (!myShape)
+  if (myShape.IsNull())
   {
     myBndBox.SetVoid();
     return myBndBox;
index c3a76649dacc36c864b04be73d9f9747a28063f6..44ae5f9b0343fa87d64a97bf67059fd819caae1a 100644 (file)
@@ -21,6 +21,7 @@
 #include <TopTools_IndexedMapOfShape.hxx>
 #include <SelectMgr_SelectableObject.hxx>
 
+class IVtkOCC_Shape;
 DEFINE_STANDARD_HANDLE( IVtkOCC_Shape, IVtk_IShape )
 
 //! @class IVtkOCC_Shape
index 811fcba9a95eaff74f282ad7edace4d0795df0e0..fe705329067e065a0f0f6110e63c58e3e0dc5787 100644 (file)
@@ -25,6 +25,8 @@
 #include <Hatch_Hatcher.hxx>
 #include <GCPnts_QuasiUniformDeflection.hxx>
 #include <GCPnts_TangentialDeflection.hxx>
+#include <Geom_BezierSurface.hxx>
+#include <Geom_BSplineSurface.hxx>
 #include <Geom2dAdaptor_Curve.hxx>
 #include <GeomAdaptor_Curve.hxx>
 #include <gp_Dir2d.hxx>
index 045997285480231574a6ca8071ecffd095b4404d..ae9c2132936acf376c859fdef1d90b1acd6a6058 100644 (file)
@@ -34,6 +34,7 @@ typedef NCollection_DataMap <TopoDS_Shape, IVtk_MeshType, TopTools_ShapeMapHashe
 typedef NCollection_Sequence <gp_Pnt> IVtk_Polyline;
 typedef NCollection_List <IVtk_Polyline> IVtk_PolylineList;
 
+class IVtkOCC_ShapeMesher;
 DEFINE_STANDARD_HANDLE( IVtkOCC_ShapeMesher, IVtk_IShapeMesher )
 
 //! @class IVtkOCC_ShapeMesher 
index 5c1a67063e50f9c6e739a191955ea837882943ab..0648234e1a17fce26ad601c5630217612511c4bd 100644 (file)
@@ -57,7 +57,7 @@ IVtk_SelectionModeList IVtkOCC_ShapePickerAlgo::GetSelectionModes (
 {
   IVtk_SelectionModeList aRes;
 
-  if (theShape)
+  if (! theShape.IsNull())
   {
     // Get shape implementation from shape interface.
     Handle(IVtkOCC_Shape) aShapeImpl = Handle(IVtkOCC_Shape)::DownCast(theShape);
@@ -90,7 +90,7 @@ void IVtkOCC_ShapePickerAlgo::SetSelectionMode (const IVtk_IShape::Handle& theSh
                                                 const IVtk_SelectionMode theMode,
                                                 const bool theIsTurnOn)
 {
-  if (!theShape)
+  if (theShape.IsNull())
   {
     return;
   }
@@ -305,14 +305,14 @@ bool IVtkOCC_ShapePickerAlgo::processPicked()
       Handle(IVtkOCC_SelectableObject) aSelectable =
         Handle(IVtkOCC_SelectableObject)::DownCast (anEntityOwner->Selectable());
 
-      if (!aSelectable)
+      if (aSelectable.IsNull())
       {
         anOutput << "Error: EntityOwner having null SelectableObject picked!";
         continue;
       }
 
       Handle(IVtkOCC_Shape) aSelShape = aSelectable->GetShape();
-      if (!aSelShape)
+      if (aSelShape.IsNull())
       {
         anOutput << "Error: SelectableObject with null OccShape pointer picked!";
         continue;
index afed0970e000c2955ee1659939308f50d097c9eb..924962fbb948f734eb98c31e9a0b86cc51b749d1 100644 (file)
@@ -19,6 +19,7 @@
 #include <IVtk_IShapePickerAlgo.hxx>
 #include <IVtkOCC_ViewerSelector.hxx>
 
+class IVtkOCC_ShapePickerAlgo;
 DEFINE_STANDARD_HANDLE( IVtkOCC_ShapePickerAlgo, IVtk_IShapePickerAlgo )
 
 //! @class IVtkOCC_ShapePickerAlgo 
index dda4ec5cb6048526e63a3c871833409d8690e93d..f783887b49d03f422a3142116e9364aa69ce1ed4 100644 (file)
@@ -170,7 +170,7 @@ vtkSmartPointer<vtkIdTypeArray> IVtkTools_ShapeDataSource::SubShapeIDs()
 //================================================================
 IVtk_IdType IVtkTools_ShapeDataSource::GetId() const
 {
-  return myOccShape ? myOccShape->GetId() : -1;
+  return myOccShape.IsNull() ? -1 : myOccShape->GetId();
 }
 
 //================================================================
index be4bc86b2f851c2e9aad800f8b26df672d8176c7..ee99eea05d6152ddc1427c02a0a359452b02168d 100644 (file)
@@ -23,6 +23,7 @@
 class vtkIdTypeArray;
 class vtkPolyData;
 
+class IVtkVTK_ShapeData;
 DEFINE_STANDARD_HANDLE( IVtkVTK_ShapeData, IVtk_IShapeData )
 
 // macros to export static field in class
index 038e4922ff372a70ce7cdcefd4c9d5a7ffe5edb5..6f86eb661bcebf4fac929e994202d447d3f7770c 100644 (file)
@@ -20,6 +20,7 @@
 
 class vtkRenderer;
 
+class IVtkVTK_View;
 DEFINE_STANDARD_HANDLE( IVtkVTK_View, IVtk_IView )
 
 //! @class IVtkVTK_View
index e2c909b6e07b1c7270630e8d499b856224a32953..2b34977076f0acce3d1a6cb2f0f01b9c1563eb6b 100644 (file)
@@ -189,9 +189,9 @@ static void GetLinePoint2d (const Handle(IntPatch_Line)& L,
                            const Standard_Boolean OnFirst,
                            Standard_Real& U, Standard_Real& V)
 {
+  Handle(IntPatch_WLine) wlin = Handle(IntPatch_WLine)::DownCast(L);
+  Handle(IntPatch_RLine) rlin = Handle(IntPatch_RLine)::DownCast(L);
   IntPatch_IType typL = L->ArcType();
-  const Handle(IntPatch_WLine)& wlin = (const Handle(IntPatch_WLine)&)L;
-  const Handle(IntPatch_RLine)& rlin = (const Handle(IntPatch_RLine)&)L;
   Standard_Integer Nbptlin = (typL == IntPatch_Walking
                              ? wlin->NbPnts()
                              : rlin->NbPnts());
@@ -446,7 +446,7 @@ void IntPatch_RstInt::PutVertexOnLine (Handle(IntPatch_Line)& L,
                                       const Handle(Adaptor3d_HSurface)& OtherSurf,
                                       const Standard_Boolean OnFirst,
                                       const Standard_Real Tol,
-               const Standard_Boolean hasBeenAdded)
+                                       const Standard_Boolean hasBeenAdded)
  {
 
 // Domain est le domaine de restriction de la surface Surf.
index 28abdb744e6cba1c7737464750c25c77281322b4..b7134e993f8611e878cda06495521568aac9330c 100644 (file)
@@ -202,7 +202,7 @@ void IntPolyh_MaillageAffinage::FillArrayOfPnt
   Standard_Integer NbSamplesU, NbSamplesV, i, aNbSamplesU1, aNbSamplesV1;
   Standard_Real u0, u1, v0, v1, aU, aV, dU, dV;
   //
-  const Handle(Adaptor3d_HSurface&) MaSurface=(SurfID==1)? MaSurface1 : MaSurface2;
+  const Handle(Adaptor3d_HSurface)& MaSurface=(SurfID==1)? MaSurface1 : MaSurface2;
   NbSamplesU=(SurfID==1)? NbSamplesU1:NbSamplesU2;
   NbSamplesV=(SurfID==1)? NbSamplesV1:NbSamplesV2;
   //
index d209063d6d07b66a345347c2f8ee7ae0231b53dc..d9f84384db0f34409208848ff2c86c37afc61d7a 100755 (executable)
@@ -41,4 +41,3 @@ LDOMString.cxx
 LDOMString.hxx
 LDOM_OSStream.cxx
 LDOM_OSStream.hxx
-Handle_LDOM_MemManager.hxx
diff --git a/src/LDOM/Handle_LDOM_MemManager.hxx b/src/LDOM/Handle_LDOM_MemManager.hxx
deleted file mode 100644 (file)
index bc7baa4..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-// Created on: 2002-02-12
-// Created by: Alexander GRIGORIEV
-// Copyright (c) 2002-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 Handle_LDOM_MemManager_HeaderFile
-#define Handle_LDOM_MemManager_HeaderFile
-
-#include <MMgt_TShared.hxx>
-#include <Standard_Type.hxx>
-
-class LDOM_MemManager;
-
-// Define handle class for LDOM_MemManager
-DEFINE_STANDARD_HANDLE (LDOM_MemManager, MMgt_TShared)
-
-#endif
index 0ce1cdf47fb35fb1bec0a1be7add89e04e0816a2..908d7d2ab73647a1f67685368280dea0b19331b9 100644 (file)
@@ -18,6 +18,8 @@
 
 #include <LDOMBasicString.hxx>
 
+class LDOM_MemManager;
+
 //  Class LDOMString
 //  Represents various object types which can be mapped to XML strings
 //  LDOMString is not an independent type: you must be sure that the owner
index cd671d6812450f1d51d7a66eb9c6dab617e35c3f..fbe48a9f4902653e39f14daffe78d767248e8e6d 100644 (file)
@@ -21,6 +21,8 @@
 #include <LDOM_CDATASection.hxx>
 #include <LDOM_Comment.hxx>
 
+class LDOM_MemManager;
+
 //  Class LDOM_Document
 
 class LDOM_Document 
index 7caf9cbe3ca063f6f25fb0b2db64e132eb9fa454..f2e15b40932a8f2b836a9a0b9781880b1ef445b5 100644 (file)
 #include <LDOM_Document.hxx>
 
 class LDOM_BasicElement;
+class LDOM_MemManager;
+
+// Define handle class for LDOM_MemManager
+DEFINE_STANDARD_HANDLE (LDOM_MemManager, MMgt_TShared)
 
 //  Class LDOM_MemManager (underlying structure of LDOM_Document)
 //
index 85a4a96cce9f23370eeb2193ac47dbb4230bd360..008eb98d1f87516b92cab1273df689ab975898b7 100644 (file)
@@ -24,6 +24,7 @@
 #include <LDOMString.hxx>
 
 class LDOM_BasicNode;
+class LDOM_MemManager;
 
 //  LDOM_Node : base class for LDOM interface objects
 //              references LDOM_BasicNode - the real data stored in Document
index 82293be4d2b6321dc163793cd79a046028109a4d..bf38350da64045b543a2790f25529988082b457b 100644 (file)
 
 #include <BSplCLib.hxx>
 
-typedef Handle(Law_BSpline)             Handle(BSplineCurve);
 typedef TColStd_Array1OfInteger         Array1OfInteger;
 typedef TColStd_HArray1OfInteger        HArray1OfInteger;
 
-
-
-
 Law_BSplineKnotSplitting::
-Law_BSplineKnotSplitting (
-
-const Handle(BSplineCurve)& BasisCurve, 
-const Standard_Integer               ContinuityRange
-
-) {
-
-
+Law_BSplineKnotSplitting (const Handle(Law_BSpline)& BasisCurve, 
+                          const Standard_Integer ContinuityRange)
+{
   if (ContinuityRange < 0)  Standard_RangeError::Raise();
 
   Standard_Integer FirstIndex = BasisCurve->FirstUKnotIndex();
index 8d1eb199ade6583e31dbc9317ea2173541576059..4c40dd41b4c6120459a9d2a5d1937fd9a9ce0c86 100644 (file)
@@ -28,7 +28,7 @@ MeshVS_PrsBuilder::MeshVS_PrsBuilder ( const Handle(MeshVS_Mesh)& Parent,
                                        const Standard_Integer Id,
                                        const MeshVS_BuilderPriority& Priority )
 {
-  if (Id<0 && Parent!=0 )
+  if (Id<0 && ! Parent.IsNull())
     myId = Parent->GetFreeId();
   else
     myId = Id;
index 8c4a317e698a6894aa3fb7d4d01f1e5cd0180ab3..cb51c2364890037d47234d921f3c5e85cc64b58f 100644 (file)
@@ -197,9 +197,9 @@ void Message_Algorithm::SendStatusMessages (const Message_ExecStatus& theStatus,
       continue;
     }
 
-    Handle(Message_Msg) aMsgCustom = !myReportMessages.IsNull()
-                                    ? myReportMessages->Value (i)
-                                    : Handle(Message_Msg)();
+    NCollection_Handle<Message_Msg> aMsgCustom;
+    if (! myReportMessages.IsNull())
+      aMsgCustom = myReportMessages->Value (i);
     if (!aMsgCustom.IsNull())
     {
       // print custom message
index 2fb2db12776797d0abefdf32b016532d7d99656d..4114e9c42bf64340d58e43423d8558360f3024c3 100644 (file)
@@ -18,7 +18,7 @@
 #include <NCollection_Array1.hxx>
 #include <NCollection_Handle.hxx>
 
-typedef NCollection_Array1<Handle(Message_Msg)> Message_ArrayOfMsg;
-typedef Handle(Message_ArrayOfMsg)              Message_HArrayOfMsg;
+typedef NCollection_Array1<NCollection_Handle<Message_Msg> > Message_ArrayOfMsg;
+typedef NCollection_Handle<Message_ArrayOfMsg>  Message_HArrayOfMsg;
 
 #endif // _Message_HArrayOfMsg_HeaderFile
index 292535291b74405792f51c5581267b6801caacc4..5d246c2b44e9f7f804c7f427522c1de860ee2fa6 100644 (file)
@@ -21,6 +21,7 @@
 #include <MoniTool_MTHasher.hxx>
 #include <NCollection_DataMap.hxx>
 
+class MoniTool_Timer;
 typedef NCollection_DataMap<Standard_CString,Handle(MoniTool_Timer),MoniTool_MTHasher> MoniTool_DataMapOfTimer;
 typedef NCollection_DataMap<Standard_CString,Handle(MoniTool_Timer),MoniTool_MTHasher>::Iterator MoniTool_DataMapIteratorOfDataMapOfTimer;
 
index c229439cf2e47138d0759434d99b410fbd694bfa..c4ac2d7a02d0aa87ade2036c4eecf5a6e17a8750 100644 (file)
@@ -18,7 +18,7 @@
 
 #include <TCollection_HAsciiString.hxx>
 
-
+class MoniTool_TypedValue;
 typedef Handle(TCollection_HAsciiString)  (*MoniTool_ValueInterpret) (const Handle(MoniTool_TypedValue)& typval,
                                                                      const Handle(TCollection_HAsciiString)& val,
                                                                      const Standard_Boolean native);
index bc8f55dbc364e8b9e04e730695932b9ce6ea143c..caf647e5b12d58a9f4f1e4fbc07b5cf0f5a42c82 100644 (file)
   #include <windows.h>
 #endif
 
-IMPLEMENT_STANDARD_HANDLE (NCollection_WinHeapAllocator,
-                           NCollection_BaseAllocator)
-IMPLEMENT_STANDARD_RTTIEXT(NCollection_WinHeapAllocator,
-                           NCollection_BaseAllocator)
-
 //=======================================================================
 //function : NCollection_WinHeapAllocator
 //purpose  : Main constructor
index 963f2d7fe271e65fdd92555cc940374cb9b73334..f402b379c31dad51215bbe8974a8cfd64aeee649 100755 (executable)
@@ -1,6 +1,5 @@
 EXTERNLIB
 OpenGl_CMPLRS.edl
-Handle_OpenGl_GraphicDriver.hxx
 OpenGl_GraphicDriver.hxx
 OpenGl_GraphicDriver.cxx
 OpenGl_GraphicDriver_4.cxx
@@ -30,15 +29,12 @@ OpenGl_TextFormatter.hxx
 OpenGl_TextFormatter.cxx
 OpenGl_PointSprite.hxx
 OpenGl_PointSprite.cxx
-Handle_OpenGl_PointSprite.hxx
 OpenGl_PrimitiveArray.hxx
 OpenGl_PrimitiveArray.cxx
-Handle_OpenGl_Workspace.hxx
 OpenGl_Workspace.hxx
 OpenGl_Workspace.cxx
 OpenGl_Workspace_2.cxx
 OpenGl_Workspace_5.cxx
-Handle_OpenGl_View.hxx
 OpenGl_View.hxx
 OpenGl_View.cxx
 OpenGl_View_2.cxx
@@ -56,18 +52,15 @@ OpenGl_PrinterContext.hxx
 OpenGl_PrinterContext.cxx
 OpenGl_LineAttributes.hxx
 OpenGl_LineAttributes.cxx
-Handle_OpenGl_Window.hxx
 OpenGl_Window.hxx
 OpenGl_Window.cxx
 OpenGl_Window_1.mm
 OpenGl_AVIWriter.hxx
 OpenGl_AVIWriter.cxx
-Handle_OpenGl_FrameBuffer.hxx
 OpenGl_FrameBuffer.hxx
 OpenGl_FrameBuffer.cxx
 OpenGl_Texture.cxx
 OpenGl_Texture.hxx
-Handle_OpenGl_Texture.hxx
 OpenGl_Resource.hxx
 OpenGl_Resource.cxx
 OpenGl_telem_util.hxx
@@ -78,7 +71,6 @@ OpenGl_Font.cxx
 OpenGl_tgl_funcs.hxx
 OpenGl_Caps.hxx
 OpenGl_Caps.cxx
-Handle_OpenGl_Context.hxx
 OpenGl_Context.hxx
 OpenGl_Context.cxx
 OpenGl_Context_1.mm
@@ -141,9 +133,6 @@ OpenGl_ShaderManager.hxx
 OpenGl_ShaderManager.cxx
 OpenGl_ShaderStates.hxx
 OpenGl_ShaderStates.cxx
-Handle_OpenGl_ShaderObject.hxx
-Handle_OpenGl_ShaderProgram.hxx
-Handle_OpenGl_ShaderManager.hxx
 OpenGl_SceneGeometry.hxx
 OpenGl_SceneGeometry.cxx
 OpenGl_View_Raytrace.cxx
@@ -154,7 +143,6 @@ OpenGl_BVHTreeSelector.cxx
 OpenGl_BVHClipPrimitiveSet.cxx
 OpenGl_BVHClipPrimitiveSet.hxx
 OpenGl_ArbTexBindless.hxx
-Handle_OpenGl_Sampler.hxx
 OpenGl_Sampler.hxx
 OpenGl_Sampler.cxx
 OpenGl_Utils.hxx
diff --git a/src/OpenGl/Handle_OpenGl_Context.hxx b/src/OpenGl/Handle_OpenGl_Context.hxx
deleted file mode 100644 (file)
index cd85cec..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-// Created on: 2012-01-26
-// Created by: Kirill GAVRILOV
-// Copyright (c) 2012-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 _Handle_OpenGl_Context_Header
-#define _Handle_OpenGl_Context_Header
-
-#include <Standard_Type.hxx>
-
-class OpenGl_Context;
-DEFINE_STANDARD_HANDLE(OpenGl_Context, Standard_Transient)
-
-#endif // _Handle_OpenGl_Context_Header
diff --git a/src/OpenGl/Handle_OpenGl_FrameBuffer.hxx b/src/OpenGl/Handle_OpenGl_FrameBuffer.hxx
deleted file mode 100644 (file)
index a6b8972..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-// Copyright (c) 2015 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 _Handle_OpenGl_FrameBuffer_Header
-#define _Handle_OpenGl_FrameBuffer_Header
-
-#include <OpenGl_Resource.hxx>
-
-class OpenGl_FrameBuffer;
-DEFINE_STANDARD_HANDLE(OpenGl_FrameBuffer, OpenGl_Resource)
-
-#endif // _Handle_OpenGl_FrameBuffer_Header
diff --git a/src/OpenGl/Handle_OpenGl_GraphicDriver.hxx b/src/OpenGl/Handle_OpenGl_GraphicDriver.hxx
deleted file mode 100644 (file)
index ba07b75..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-// Created on: 2011-10-20
-// Created by: Sergey ZERCHANINOV
-// Copyright (c) 2011-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 _Handle_OpenGl_GraphicDriver_Header
-#define _Handle_OpenGl_GraphicDriver_Header
-
-#include <Standard_Type.hxx>
-
-class OpenGl_GraphicDriver;
-
-// Handle definition
-//
-DEFINE_STANDARD_HANDLE(OpenGl_GraphicDriver,Graphic3d_GraphicDriver)
-
-#endif //_Handle_OpenGl_GraphicDriver_Header
diff --git a/src/OpenGl/Handle_OpenGl_PointSprite.hxx b/src/OpenGl/Handle_OpenGl_PointSprite.hxx
deleted file mode 100755 (executable)
index 9d74a80..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-// Created on: 2013-08-26
-// Created by: Kirill GAVRILOV
-// Copyright (c) 2013-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 _Handle_OpenGl_PointSprite_Header
-#define _Handle_OpenGl_PointSprite_Header
-
-
-class OpenGl_PointSprite;
-DEFINE_STANDARD_HANDLE(OpenGl_PointSprite, OpenGl_Texture)
-
-#endif // _Handle_OpenGl_PointSprite_Header
diff --git a/src/OpenGl/Handle_OpenGl_Sampler.hxx b/src/OpenGl/Handle_OpenGl_Sampler.hxx
deleted file mode 100644 (file)
index 623ae56..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-// Created on: 2014-10-17
-// Created by: Denis BOGOLEPOV
-// Copyright (c) 2013-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 _Handle_OpenGl_Sampler_HeaderFile
-#define _Handle_OpenGl_Sampler_HeaderFile
-
-#include <OpenGl_Resource.hxx>
-
-class OpenGl_Sampler;
-DEFINE_STANDARD_HANDLE(OpenGl_Sampler, OpenGl_Resource)
-
-#endif
diff --git a/src/OpenGl/Handle_OpenGl_ShaderManager.hxx b/src/OpenGl/Handle_OpenGl_ShaderManager.hxx
deleted file mode 100755 (executable)
index 6c7f618..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-// Created on: 2013-09-26
-// Created by: Denis BOGOLEPOV
-// Copyright (c) 2013-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 _Handle_OpenGl_ShaderManager_HeaderFile
-#define _Handle_OpenGl_ShaderManager_HeaderFile
-
-class OpenGl_ShaderManager;
-DEFINE_STANDARD_HANDLE(OpenGl_ShaderManager, Standard_Transient)
-
-#endif
diff --git a/src/OpenGl/Handle_OpenGl_ShaderObject.hxx b/src/OpenGl/Handle_OpenGl_ShaderObject.hxx
deleted file mode 100755 (executable)
index 77255e2..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-// Created on: 2013-09-19
-// Created by: Denis BOGOLEPOV
-// Copyright (c) 2013-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 _Handle_OpenGl_ShaderObject_Header
-#define _Handle_OpenGl_ShaderObject_Header
-
-#include <OpenGl_Resource.hxx>
-
-class OpenGl_ShaderObject;
-DEFINE_STANDARD_HANDLE(OpenGl_ShaderObject, OpenGl_Resource)
-
-#endif
diff --git a/src/OpenGl/Handle_OpenGl_ShaderProgram.hxx b/src/OpenGl/Handle_OpenGl_ShaderProgram.hxx
deleted file mode 100755 (executable)
index 046dc09..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-// Created on: 2013-09-19
-// Created by: Denis BOGOLEPOV
-// Copyright (c) 2013-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 _Handle_OpenGl_ShaderProgram_Header
-#define _Handle_OpenGl_ShaderProgram_Header
-
-#include <OpenGl_Resource.hxx>
-
-class OpenGl_ShaderProgram;
-DEFINE_STANDARD_HANDLE(OpenGl_ShaderProgram, OpenGl_Resource)
-
-#endif
diff --git a/src/OpenGl/Handle_OpenGl_Texture.hxx b/src/OpenGl/Handle_OpenGl_Texture.hxx
deleted file mode 100644 (file)
index 555b78d..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-// Copyright (c) 2013-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 _Handle_OpenGl_Texture_Header
-#define _Handle_OpenGl_Texture_Header
-
-#include <OpenGl_Resource.hxx>
-
-class OpenGl_Texture;
-DEFINE_STANDARD_HANDLE(OpenGl_Texture, OpenGl_Resource)
-
-#endif // _Handle_OpenGl_Texture_Header
diff --git a/src/OpenGl/Handle_OpenGl_View.hxx b/src/OpenGl/Handle_OpenGl_View.hxx
deleted file mode 100644 (file)
index f2ffc44..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-// Created on: 2011-09-20
-// Created by: Sergey ZERCHANINOV
-// Copyright (c) 2011-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 _Handle_OpenGl_View_Header
-#define _Handle_OpenGl_View_Header
-
-#include <Standard_Type.hxx>
-
-class OpenGl_View;
-
-// Handle definition
-//
-DEFINE_STANDARD_HANDLE(OpenGl_View,MMgt_TShared)
-
-
-#endif //_Handle_OpenGl_View_Header
diff --git a/src/OpenGl/Handle_OpenGl_Window.hxx b/src/OpenGl/Handle_OpenGl_Window.hxx
deleted file mode 100644 (file)
index 1e23098..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-// Created on: 2011-09-20
-// Created by: Sergey ZERCHANINOV
-// Copyright (c) 2011-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 _Handle_OpenGl_Window_Header
-#define _Handle_OpenGl_Window_Header
-
-#include <Standard_Type.hxx>
-
-class OpenGl_Window;
-
-// Handle definition
-//
-DEFINE_STANDARD_HANDLE(OpenGl_Window,MMgt_TShared)
-
-
-#endif //_Handle_OpenGl_Window_Header
diff --git a/src/OpenGl/Handle_OpenGl_Workspace.hxx b/src/OpenGl/Handle_OpenGl_Workspace.hxx
deleted file mode 100644 (file)
index 8bcfef5..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-// Created on: 2011-09-20
-// Created by: Sergey ZERCHANINOV
-// Copyright (c) 2011-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 _Handle_OpenGl_Workspace_Header
-#define _Handle_OpenGl_Workspace_Header
-
-#include <Standard_Type.hxx>
-
-class OpenGl_Workspace;
-
-// Handle definition
-//
-DEFINE_STANDARD_HANDLE(OpenGl_Workspace,OpenGl_Window)
-
-
-#endif //_Handle_OpenGl_Workspace_Header
index 0aa73662b2a0f1d15f9a06c7352621c094db9bb0..a4252161b89d3630a0b6196e9311e17c04cbe464 100644 (file)
 
 #include <Graphic3d_ShaderProgram.hxx>
 #include <Graphic3d_TextureMap.hxx>
+#include <Graphic3d_TextureParams.hxx>
 #include <Graphic3d_TypeOfReflection.hxx>
 #include <Graphic3d_MaterialAspect.hxx>
 
+#include <Image_PixMap.hxx>
+
 namespace
 {
   static OPENGL_SURF_PROP THE_DEFAULT_MATERIAL =
index 0d71ebc778005923d03796e076d8ecb6690cb2ff..5dc19683aff3de291816fc9c813c7949829486f0 100644 (file)
@@ -30,6 +30,8 @@
 #include <Graphic3d_TextureMap.hxx>
 #include <Graphic3d_BSDF.hxx>
 
+class OpenGl_Texture;
+
 #define OPENGL_AMBIENT_MASK  (1<<0)
 #define OPENGL_DIFFUSE_MASK  (1<<1)
 #define OPENGL_SPECULAR_MASK (1<<2)
index c1e12f809adeae611517097dfbb3ba7073c174d8..9ce57dbc2d371b964f2be839093e7615eba1f050 100644 (file)
 #include <InterfaceGraphic_Graphic3d.hxx>
 #include <Aspect_TypeOfLine.hxx>
 #include <Graphic3d_CAspectLine.hxx>
-
-
 #include <OpenGl_Element.hxx>
 
+class OpenGl_ShaderProgram;
+
 class OpenGl_AspectLine : public OpenGl_Element
 {
 public:
index 1706335e2dacd01624dc63987bf5544dd3e16f22..a74227c78e6aa9130846746daf9974be97610ac7 100644 (file)
@@ -23,7 +23,8 @@
 
 #include <OpenGl_Element.hxx>
 
-#include <Image_PixMap_Handle.hxx>
+class OpenGl_PointSprite;
+class OpenGl_ShaderProgram;
 
 class OpenGl_AspectMarker : public OpenGl_Element
 {
index baac88e4762e3aa31ba9064ed16ce794d2483a34..b9efe35bdeeda677d952d2bef96a1f5793b5649d 100755 (executable)
@@ -26,6 +26,8 @@
 
 #include <OpenGl_Element.hxx>
 
+class OpenGl_ShaderProgram;
+
 //! Text representation parameters
 class OpenGl_AspectText : public OpenGl_Element
 {
index 5ed300708ac5ead92f3fa9207620ec29c9cfd1bd..ebb5c87a9cd635c17a9be5caf21d8354f961b2b6 100644 (file)
@@ -16,6 +16,7 @@
 #include <OpenGl_BVHClipPrimitiveSet.hxx>
 
 #include <BVH_BinnedBuilder.hxx>
+#include <Graphic3d_GraphicDriver.hxx>
 
 // =======================================================================
 // function : OpenGl_BVHClipPrimitiveSet
index cac526d8117640873c67ed084aca4431e33fcaa9..7fccc89c51242fd6fd085a2fcf8c89db5725256f 100644 (file)
@@ -17,6 +17,7 @@
 
 #include <OpenGl_BVHTreeSelector.hxx>
 #include <OpenGl_BVHClipPrimitiveSet.hxx>
+#include <Graphic3d_GraphicDriver.hxx>
 
 // =======================================================================
 // function : OpenGl_BVHTreeSelector
index 7857ccbe7fe644dabaeb7838120fe08f6cbb33f0..ac7316b65c8c3cba66ef1fe69773394f0c8bb8b8 100644 (file)
@@ -18,6 +18,7 @@
 #include <Aspect_FillMethod.hxx>
 #include <NCollection_AlignedAllocator.hxx>
 #include <OpenGl_Texture.hxx>
+#include <Graphic3d_TextureParams.hxx>
 
 // =======================================================================
 // method  : Constructor
index 688516f1d4c70d497d8efe0cff76b81a6fde899d..628cab1432e61e5f209df9f7d94884f64999b3da 100755 (executable)
@@ -20,7 +20,7 @@
 #include <OpenGl_CappingPlaneResource.hxx>
 #include <OpenGl_Vec.hxx>
 #include <OpenGl_Structure.hxx>
-
+#include <Graphic3d_GraphicDriver.hxx>
 
 namespace
 {
index 1c41e9e92e9fa2b085d2f0d6e920110f8555b7f4..14c28285bb2515d2f8ea21fa55e8b7ec715562b8 100755 (executable)
@@ -22,7 +22,7 @@
 #include <Graphic3d_SequenceOfGroup.hxx>
 
 // Forward declaration
-
+class OpenGl_CappingAlgoFilter;
 DEFINE_STANDARD_HANDLE (OpenGl_CappingAlgoFilter, OpenGl_RenderFilter)
 
 //! Capping surface rendering algorithm.
index ecad37682f87dfb36532dae586999c36e4993db5..1a29c331ed77f86475768320a77afd4055d572b0 100755 (executable)
@@ -22,7 +22,7 @@
 #include <OpenGl_Matrix.hxx>
 #include <Graphic3d_ClipPlane.hxx>
 
-
+class OpenGl_CappingPlaneResource;
 DEFINE_STANDARD_HANDLE (OpenGl_CappingPlaneResource, OpenGl_Resource)
 
 //! Container of graphical resources for rendering capping plane
index 8d87a97c1244457454e261df8097027a7c01fcec..e7e1f10fc5709eaadbcdbf07d4e3870331954f65 100755 (executable)
@@ -24,6 +24,8 @@
 #include <Standard_TypeDef.hxx>
 #include <OpenGl_Matrix.hxx>
 
+class OpenGl_Workspace;
+
 //! This class contains logics related to tracking and modification of clipping plane
 //! state for particular OpenGl context. It contains information about enabled
 //! clipping planes and provides method to change clippings in context. The methods
index 83659c1c2327064c33951b675ddfc8d453e134ab..f4f92b28c0e16d8f0dac1c0726dbea19d99b5d67 100644 (file)
@@ -2515,7 +2515,7 @@ void OpenGl_Context::SetTypeOfLine (const Aspect_TypeOfLine  theType,
     }
   }
 
-  if (myActiveProgram != NULL)
+  if (!myActiveProgram.IsNull())
   {
     myActiveProgram->SetUniform (this, "uPattern", aPattern);
     myActiveProgram->SetUniform (this, "uFactor",  theFactor);
index 2c8b3d2f211aa80db5a69f2c78fefe4940f223b9..d6f024beb178c9b84e26e213e03e99f5a2b5c860 100644 (file)
@@ -35,6 +35,9 @@
 #include <OpenGl_Clipping.hxx>
 #include <OpenGl_GlCore11.hxx>
 #include <OpenGl_Utils.hxx>
+#include <OpenGl_ShaderProgram.hxx>
+
+#include <NCollection_Shared.hxx>
 
 //! Forward declarations
 #if defined(__APPLE__)
@@ -122,6 +125,13 @@ template<typename theBaseClass_t> struct OpenGl_TmplCore44;
 typedef OpenGl_TmplCore44<OpenGl_GlCore43Back> OpenGl_GlCore44Back;
 typedef OpenGl_TmplCore44<OpenGl_GlCore43>     OpenGl_GlCore44;
 
+class OpenGl_ShaderManager;
+class OpenGl_Sampler;
+class OpenGl_FrameBuffer;
+
+class OpenGl_Context;
+DEFINE_STANDARD_HANDLE(OpenGl_Context, Standard_Transient)
+
 //! This class generalize access to the GL context and available extensions.
 //!
 //! Functions related to specific OpenGL version or extension are grouped into structures which can be accessed as fields of this class.
@@ -646,9 +656,9 @@ private: // system-dependent fields
 
 private: // context info
 
-  typedef NCollection_DataMap<TCollection_AsciiString, Standard_Integer> OpenGl_DelayReleaseMap;
-  typedef NCollection_DataMap<TCollection_AsciiString, Handle(OpenGl_Resource)> OpenGl_ResourcesMap;
-  typedef NCollection_List<Handle(OpenGl_Resource)> OpenGl_ResourcesStack;
+  typedef NCollection_Shared< NCollection_DataMap<TCollection_AsciiString, Standard_Integer> > OpenGl_DelayReleaseMap;
+  typedef NCollection_Shared< NCollection_DataMap<TCollection_AsciiString, Handle(OpenGl_Resource)> > OpenGl_ResourcesMap;
+  typedef NCollection_Shared< NCollection_List<Handle(OpenGl_Resource)> > OpenGl_ResourcesStack;
 
   Handle(OpenGl_ResourcesMap)    mySharedResources; //!< shared resources with unique identification key
   Handle(OpenGl_DelayReleaseMap) myDelayed;         //!< shared resources for delayed release
index eeb4f7fb4662ce10b13da20c49a0dab8803ccffa..b3354212b680bf2fa839c038e89540611703297f 100644 (file)
@@ -18,6 +18,9 @@
 
 #include <OpenGl_RenderFilter.hxx>
 
+class OpenGl_Workspace;
+class OpenGl_Context;
+
 //! Base interface for drawable elements.
 class OpenGl_Element
 {
index be79c3a6cf1a67cbd89d87e332de43a5842a95d9..0fceeaf9898979c50d95fce6898ac571bd52dc7c 100644 (file)
@@ -22,6 +22,8 @@
 #include <Standard_Boolean.hxx>
 #include <InterfaceGraphic.hxx>
 
+class OpenGl_FrameBuffer;
+DEFINE_STANDARD_HANDLE(OpenGl_FrameBuffer, OpenGl_Resource)
 
 //! Class implements FrameBuffer Object (FBO) resource
 //! intended for off-screen rendering.
index 5f5523ca1cfa6ca1b11c1d7183f98ae66a0da07d..76ef23f112183c03a27b65233d762503b5cc2592 100755 (executable)
 #include <InterfaceGraphic_Aspect.hxx>
 #include <InterfaceGraphic_Visual3d.hxx>
 
-#ifndef _WIN32
-  #include <string.h>
-#endif
-
 #include <OpenGl_GraduatedTrihedron.hxx>
 
 #include <Graphic3d_ArrayOfPolylines.hxx>
 #include <Graphic3d_ArrayOfSegments.hxx>
+#include <Graphic3d_GraphicDriver.hxx>
 #include <gp_Ax3.hxx>
 #include <OpenGl_AspectLine.hxx>
 #include <OpenGl_Utils.hxx>
 #include <OpenGl_Cylinder.hxx>
 #include <Precision.hxx>
 
+#ifndef _WIN32
+  #include <string.h>
+#endif
+
 namespace
 {
   static const OpenGl_TextParam THE_LABEL_PARAMS =
index 4f8f08b16d1b739c3efa2bc2b47e15213f6964e3..b610f895125dbb7c1eb18b79babddaf4ab9a5c70 100644 (file)
@@ -66,6 +66,7 @@ class Image_PixMap;
 class OpenGl_Element;
 class OpenGl_Structure;
 class OpenGl_Text;
+class OpenGl_View;
 
 //! Tool class to implement consistent state counter
 //! for objects inside the same driver instance.
@@ -82,6 +83,9 @@ private:
   Standard_Size myCounter;
 };
 
+class OpenGl_GraphicDriver;
+DEFINE_STANDARD_HANDLE(OpenGl_GraphicDriver,Graphic3d_GraphicDriver)
+
 //! This class defines an OpenGl graphic driver
 class OpenGl_GraphicDriver : public Graphic3d_GraphicDriver
 {
index 55a27ce5af7966edd6187d4b7e03aa18e4efc6c9..19bca09c777f3a46e7f63b476de1955046d49eb4 100644 (file)
@@ -43,7 +43,7 @@ OpenGl_Group::OpenGl_Group (const Handle(Graphic3d_Structure)& theStruct)
   myIsRaytracable (Standard_False)
 {
   Handle(OpenGl_Structure) aStruct = Handle(OpenGl_Structure)::DownCast (myStructure->CStructure());
-  if (aStruct == NULL)
+  if (aStruct.IsNull())
   {
     Graphic3d_GroupDefinitionError::Raise ("OpenGl_Group should be created by OpenGl_Structure!");
   }
index 0859e12b4544ad368910fec510ad2ba7c9956bf5..b0e850921e584883f5952e113eaa68e417e9207b 100644 (file)
@@ -19,6 +19,7 @@
 #include <OpenGl_Structure.hxx>
 #include <OpenGl_View.hxx>
 #include <OpenGl_Workspace.hxx>
+#include <Graphic3d_GraphicDriver.hxx>
 
 // =======================================================================
 // function : OpenGl_PriorityList
index 1906214be5285872511e48189d89f9efbcfa7b7a..6b1c11d6509867d0f1ba312a7a500cec07ff4b41 100644 (file)
@@ -21,6 +21,7 @@
 
 #include <InterfaceGraphic_Graphic3d.hxx>
 #include <InterfaceGraphic.hxx>
+#include <Graphic3d_GraphicDriver.hxx>
 
 //=======================================================================
 //function : OpenGl_LayerList
index 29aac6906b3049542d952ff9788259e766666809..9b5bf0ff192f867735fc4293c5f751480f812466 100755 (executable)
@@ -17,6 +17,9 @@
 
 #include <OpenGl_Texture.hxx>
 
+class OpenGl_PointSprite;
+DEFINE_STANDARD_HANDLE(OpenGl_PointSprite, OpenGl_Texture)
+
 //! Point sprite resource. On modern hardware it will be texture with extra parameters.
 //! On ancient hardware sprites will be drawn using bitmaps.
 class OpenGl_PointSprite : public OpenGl_Texture
index 47ace0c451d6cffa5eb6a32b281acdef294a03f4..9be8c0564a45090c5b74a3bba16edf28b0db0ce7 100755 (executable)
@@ -19,6 +19,7 @@
 #include <Standard_Type.hxx>
 #include <Standard_Transient.hxx>
 
+class OpenGl_RenderFilter;
 DEFINE_STANDARD_HANDLE (OpenGl_RenderFilter, Standard_Transient)
 
 class OpenGl_Element;
index 57319f60cdc8d5c7f1915cb12225593bc8d4ec82..9489fe9f4775c1709710b2cfec4598eac2ef2992 100644 (file)
@@ -18,6 +18,9 @@
 
 #include <OpenGl_Context.hxx>
 
+class OpenGl_Sampler;
+DEFINE_STANDARD_HANDLE(OpenGl_Sampler, OpenGl_Resource)
+
 //! Class implements OpenGL sampler object resource that
 //! stores the sampling parameters for a texture access.
 class OpenGl_Sampler : public OpenGl_Resource
index 1a4fd81069c5825dc1842751c994485f03544deb..5ae251340dc1a8ba6733d1945c2aabfc79c580b5 100755 (executable)
@@ -23,6 +23,7 @@
 #include <OpenGl_Structure.hxx>
 #include <OSD_Timer.hxx>
 #include <Standard_Assert.hxx>
+#include <Graphic3d_GraphicDriver.hxx>
 
 //! Use this macro to output BVH profiling info
 // #define RAY_TRACE_PRINT_INFO
index 6b4ecb5d7bb0fc4c2ad121a092f52dbf0bbabe4d..f9abcf7ec69ae1f9e6f82ff0f1e19d4437be5103 100644 (file)
@@ -39,6 +39,9 @@ typedef NCollection_Sequence<Handle(OpenGl_ShaderProgram)> OpenGl_ShaderProgramL
 //! Map to declare per-program states of OCCT materials.
 typedef NCollection_DataMap<Handle(OpenGl_ShaderProgram), OpenGl_MaterialState> OpenGl_MaterialStates;
 
+class OpenGl_ShaderManager;
+DEFINE_STANDARD_HANDLE(OpenGl_ShaderManager, Standard_Transient)
+
 //! This class is responsible for managing shader programs.
 class OpenGl_ShaderManager : public Standard_Transient
 {
index 432df4dce54f32fe05c2d01496cd8a07eaf6cfdf..29b4860a3f6b8540d54a4481c52064fa29cbcc95 100755 (executable)
@@ -20,6 +20,9 @@
 #include <OpenGl_GlCore20.hxx>
 #include <OpenGl_Resource.hxx>
 
+class OpenGl_ShaderObject;
+DEFINE_STANDARD_HANDLE(OpenGl_ShaderObject, OpenGl_Resource)
+
 //! Wrapper for OpenGL shader object.
 class OpenGl_ShaderObject : public OpenGl_Resource
 {
index 10eb0fddfa118edd5e1534aac7fc1d51e16c882b..b8a4ee622dde65e7f87f85854d2a879f82f6459b 100755 (executable)
@@ -29,6 +29,9 @@
 #include <OpenGl_Matrix.hxx>
 #include <OpenGl_ShaderObject.hxx>
 
+class OpenGl_ShaderProgram;
+DEFINE_STANDARD_HANDLE(OpenGl_ShaderProgram, OpenGl_Resource)
+
 //! The enumeration of OCCT-specific OpenGL/GLSL variables.
 enum OpenGl_StateVariable
 {
index 790058cff6ae552a7b40c07bc612b7c8969fdc8e..0025e6411b73d9cf8641bfd28f71697bc873df6a 100644 (file)
@@ -15,6 +15,7 @@
 
 #include <OpenGl_StructureShadow.hxx>
 
+#include <Graphic3d_GraphicDriver.hxx>
 
 //=======================================================================
 //function : OpenGl_StructureShadow
index dcb68db7e5a49a328f3b86e3e7887da734f89aa3..5310c1e2ab8ea50a31c6a8c6ba5122e12e3b9c95 100644 (file)
@@ -302,7 +302,7 @@ void OpenGl_Text::Release (OpenGl_Context* theCtx)
     Handle(OpenGl_Context) aCtx = theCtx;
     const TCollection_AsciiString aKey = myFont->ResourceKey();
     myFont.Nullify();
-    if (aCtx)
+    if (! aCtx.IsNull())
       aCtx->ReleaseResource (aKey, Standard_True);
   }
 }
index f33663ec6a5c3ed4a7626299c15bba722f34de54..dc755cbc68031552b38a1b09d02e16b02f59a87c 100755 (executable)
@@ -27,6 +27,7 @@
 #include <Graphic3d_HorizontalTextAlignment.hxx>
 #include <Graphic3d_VerticalTextAlignment.hxx>
 
+class OpenGl_PrinterContext;
 
 //! Text rendering
 class OpenGl_Text : public OpenGl_Element
index 20f8f0095d47b2a17d8964ce1b5c75329c39c7f5..1a1a0ed955b85bd9eb62d087719b6e4256f9eda2 100644 (file)
@@ -20,6 +20,7 @@
 #include <Graphic3d_TypeOfTexture.hxx>
 
 class OpenGl_Context;
+class Graphic3d_TextureParams;
 class Image_PixMap;
 
 //! Selects preferable texture format for specified parameters.
@@ -145,6 +146,9 @@ private:
 
 };
 
+class OpenGl_Texture;
+DEFINE_STANDARD_HANDLE(OpenGl_Texture, OpenGl_Resource)
+
 //! Texture resource.
 class OpenGl_Texture : public OpenGl_Resource
 {
index eb19352bee89c049d21fa59e06ea40178ec9b417..93c06cee3a80bfd68465a5791f094c97fe2a9e20 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <Graphic3d_ArrayOfSegments.hxx>
 #include <Graphic3d_ArrayOfPolylines.hxx>
+#include <Graphic3d_GraphicDriver.hxx>
 #include <OpenGl_View.hxx>
 #include <OpenGl_Workspace.hxx>
 #include <Precision.hxx>
index 281595e0fb22fa5a9c34fa1cc8e5a9ddbbee4642..1bd43b4eac7b12a089ba1b24d2ba8acc815cb645 100644 (file)
@@ -73,6 +73,9 @@ struct OpenGl_Matrix;
 class OpenGl_Structure;
 class OpenGl_StateCounter;
 
+class OpenGl_View;
+DEFINE_STANDARD_HANDLE(OpenGl_View,MMgt_TShared)
+
 class OpenGl_View : public MMgt_TShared
 {
  public:
index 8f13fb631758e29712583ae115fb42ea8ac11c27..3bf016293612d7e226258f2f480b43f28360901e 100644 (file)
@@ -21,6 +21,7 @@
 
 #include <Graphic3d_TextureParams.hxx>
 #include <Graphic3d_Texture2Dmanual.hxx>
+#include <Graphic3d_GraphicDriver.hxx>
 #include <Image_AlienPixMap.hxx>
 #include <Visual3d_Layer.hxx>
 
index cf34ca2a213039ef79bd884d9e846c42061725b6..4072437644b51f566b0a3e8e0ea13d947a996e4f 100644 (file)
@@ -19,6 +19,7 @@
 #include <OpenGl_PrimitiveArray.hxx>
 #include <OpenGl_VertexBuffer.hxx>
 #include <OpenGl_View.hxx>
+#include <Graphic3d_GraphicDriver.hxx>
 
 #include <OSD_Protection.hxx>
 #include <OSD_File.hxx>
index 12e33188c494b3c86643468fa48a37c892e80a5e..c4e9921fd706700c519dfb54d015a43ab30c4984 100644 (file)
@@ -24,6 +24,7 @@
 #include <Aspect_GraphicDeviceDefinitionError.hxx>
 #include <TCollection_AsciiString.hxx>
 #include <TCollection_ExtendedString.hxx>
+#include <Graphic3d_GraphicDriver.hxx>
 
 #if defined(HAVE_EGL) || defined(__ANDROID__)
   #include <EGL/egl.h>
index 3ab376902eaf4f6cbb94053910a47e9b965d49a4..f4f53060fd8074668d0b96da57c759e8b79cbaca 100644 (file)
 #include <OpenGl_GlCore11.hxx>
 #include <InterfaceGraphic_Aspect.hxx>
 #include <OpenGl_Caps.hxx>
-
-
 #include <MMgt_TShared.hxx>
 
+
 #if defined(__APPLE__)
   #import <TargetConditionals.h>
 #endif
   #endif
 #endif
 
+class OpenGl_Context;
+class OpenGl_GraphicDriver;
+
+class OpenGl_Window;
+DEFINE_STANDARD_HANDLE(OpenGl_Window,MMgt_TShared)
+
 //! This class represents low-level wrapper over window with GL context.
 //! The window itself should be provided to constructor.
 class OpenGl_Window : public MMgt_TShared
index 73e61b81a4a0971cfc6629da9cac75117de5083f..d2619f9f6f24d57a4da3808e49560081cf2771da 100644 (file)
@@ -34,6 +34,7 @@
 #include <OpenGl_Workspace.hxx>
 
 #include <Graphic3d_TextureParams.hxx>
+#include <Graphic3d_GraphicDriver.hxx>
 
 #if defined(_WIN32) && defined(HAVE_VIDEOCAPTURE)
   #include <OpenGl_AVIWriter.hxx>
index 4256c5dafb012438e74afc0a3e0a421a1709796f..aa1bca924973f3f4852cece17225f43b58b8f198 100644 (file)
@@ -90,6 +90,7 @@ struct OpenGl_Material
 
 };
 
+class OpenGl_RaytraceFilter;
 DEFINE_STANDARD_HANDLE (OpenGl_RaytraceFilter, OpenGl_RenderFilter)
 
 //! Graphical ray-tracing filter.
@@ -127,6 +128,9 @@ public:
   DEFINE_STANDARD_RTTI(OpenGl_RaytraceFilter, OpenGl_RenderFilter)
 };
 
+class OpenGl_Workspace;
+DEFINE_STANDARD_HANDLE(OpenGl_Workspace,OpenGl_Window)
+
 //! Represents window with GL context.
 //! Provides methods to render primitives and maintain GL state.
 class OpenGl_Workspace : public OpenGl_Window
index e4171b126a9986c55a27ce2fe59a4b1c7e0fd183..387b051fa67787620c70e87f232e08a01875699b 100644 (file)
 #include <OpenGl_FrameBuffer.hxx>
 #include <TColStd_Array2OfReal.hxx>
 #include <OpenGl_telem_util.hxx>
+#include <Graphic3d_GraphicDriver.hxx>
+
+#include <OpenGl_PrinterContext.hxx>
+#include <OpenGl_Workspace.hxx>
+#include <OpenGl_View.hxx>
 
 #if (defined(_WIN32) || defined(__WIN32__)) && defined(HAVE_FREEIMAGE)
   #include <NCollection_Handle.hxx>
   typedef NCollection_Handle<fipImage> FipHandle;
 #endif
 
-#include <OpenGl_PrinterContext.hxx>
-#include <OpenGl_Workspace.hxx>
-#include <OpenGl_View.hxx>
-
 #ifdef _WIN32
 
 #ifndef HAVE_FREEIMAGE
index d4b61e4212fa8c22392541d23926a6d50133a6e3..485857690be802b25ecc67848245312d6be026bd 100644 (file)
 #include <OpenGl_Context.hxx>
 #include <OpenGl_ShaderManager.hxx>
 #include <OpenGl_telem_util.hxx>
+#include <Graphic3d_GraphicDriver.hxx>
+
+#include <Aspect_PolygonOffsetMode.hxx>
+#include <OpenGl_View.hxx>
 
-/* OCC22218 NOTE: project dependency on gl2ps is specified by macro */
 #ifdef HAVE_GL2PS
   #include <gl2ps.h>
   /* OCC22216 NOTE: linker dependency can be switched off by undefining macro.
@@ -35,9 +38,6 @@
   #endif
 #endif
 
-#include <Aspect_PolygonOffsetMode.hxx>
-#include <OpenGl_View.hxx>
-
 /*----------------------------------------------------------------------*/
 
 static void TelUpdatePolygonOffsets (const TEL_POFFSET_PARAM& theOffsetData)
index 7e954e952535114ae22989c2badfe69471eb22ee..095431960747377c74258cc14fa3995651feeec9 100644 (file)
@@ -20,7 +20,7 @@
 #include <NCollection_IndexedMap.hxx>
 #include <TColStd_PackedMapOfInteger.hxx>
 #include <TColStd_MapIteratorOfPackedMapOfInteger.hxx>
-#include <NCollection_BaseAllocator.hxx>
+#include <NCollection_IncAllocator.hxx>
 #include <NCollection_List.hxx>
 
 
index 37f96cdce1c1b7285495946f4bd813654b56bb18..19ba6aaf397dc837d2ad0b112b5504dea72cf115 100644 (file)
@@ -39,6 +39,7 @@ class Prs3d_DatumAspect;
 class Prs3d_DimensionAspect;
 class TCollection_AsciiString;
 
+class Prs3d_Drawer;
 DEFINE_STANDARD_HANDLE(Prs3d_Drawer, MMgt_TShared)
 
 //! A graphic attribute manager which governs how
index 13d9c1ba0b3b304c83633de276f1e5597cd40563..cd644b843a9ffc541e05c0da2f51014d374af76c 100755 (executable)
 #include <Quantity_Length.hxx>
 
 class Adaptor3d_Curve;
+class BRepAdaptor_HSurface;
 class TopoDS_Edge;
 class TopoDS_Shape;
+class Prs3d_Drawer;
 
 class Prs3d_WFShape : Prs3d_Root
 {
index 1d87c8b02e1936da793a45b0fde8015fbb077023..9be5c66910b5489700af7785649b7a230db1d4cd 100644 (file)
@@ -14,6 +14,8 @@
 // Alternatively, this file may be used under the terms of Open CASCADE
 // commercial license or contractual agreement.
 
+#include <PrsMgr_Prs.hxx>
+
 inline void PrsMgr_Presentation::SetUpdateStatus (const Standard_Boolean theUpdateStatus)
 {
   myMustBeUpdated = theUpdateStatus;
index 9724f0c77f0de89844633da314f2674ea2d1b1fa..c84c980d64ce616b5c3676de30ee090e88cdf6c6 100644 (file)
@@ -14,6 +14,8 @@
 // Alternatively, this file may be used under the terms of Open CASCADE
 // commercial license or contractual agreement.
 
+#include <Visual3d_ViewManager.hxx>
+
 inline Standard_Boolean PrsMgr_PresentationManager::IsImmediateModeOn() const
 {
   return myImmediateModeOn > 0;
index 03f4090664110d9d9f33befc032c83c73882f363..7792fd52cf10fdbeeb1f479ade1ebac1dd42d184 100644 (file)
@@ -591,7 +591,6 @@ Standard_Integer  OCC165(Draw_Interpretor& di ,
 #include<BRepAlgo_Cut.hxx>
 
 #include<BRepPrimAPI_MakeHalfSpace.hxx>
-#include<Handle_Geom_CartesianPoint.hxx>
 #include<Geom_CartesianPoint.hxx>
 #include<AIS_Point.hxx>
 
index 816e6a4fdb1903392ad6fe0b1faa1f0b0e7ec21b..dd14e1040080c5ec0c3664289ac878cc473107d6 100755 (executable)
@@ -1730,7 +1730,7 @@ static void DoIsNull(Draw_Interpretor& di)
   HT aHandle;
   //    QVERIFY (aHandle.IsNull());
   QCOMPARE (aHandle.IsNull(), Standard_True);
-  const T* p = aHandle.Access();
+  const T* p = aHandle.get();
 #if OCC_VERSION_HEX > 0x060700
   //QVERIFY (!p);
   //QVERIFY (p == 0);
@@ -1741,7 +1741,7 @@ static void DoIsNull(Draw_Interpretor& di)
   aHandle = new T;
   //QVERIFY (!aHandle.IsNull());
   QCOMPARE (!aHandle.IsNull(), Standard_True);
-  p = aHandle.Access();
+  p = aHandle.get();
   //QVERIFY (p);
   //QVERIFY (p != 0);
   QCOMPARE (p != NULL, Standard_True);
index 1c48b9dc4cd2014bc3282cc9c9fc881bcdf49a67..ac8631e832bba2352e9f466d83f93c22548c6ebb 100644 (file)
 #include <HeaderSection_FileName.hxx>
 #include <HeaderSection_FileDescription.hxx>
 #include <HeaderSection_FileSchema.hxx>
+#include <HeaderSection_Protocol.hxx>
 
 #include <StepData_UndefinedEntity.hxx>
 #include <Interface_Macros.hxx>
 
 
 RWHeaderSection_GeneralModule::RWHeaderSection_GeneralModule ()
-       { Interface_GeneralLib::SetGlobal(this, HeaderSection::Protocol()); }
+{ 
+  Interface_GeneralLib::SetGlobal(this, HeaderSection::Protocol());
+}
 
 void RWHeaderSection_GeneralModule::FillSharedCase(const Standard_Integer CN, const Handle(Standard_Transient)& ent, Interface_EntityIterator& iter) const
 {
index 5c0ede5812733eaa48a291ba441b1e94bf634e23..4cd96cea7c24087414b27ff13020c6d49b08cf8a 100644 (file)
@@ -50,7 +50,9 @@ Handle(atype) result = *((Handle(atype)*) &start)
 #include <StepBasic_ApprovalRelationship.hxx>
 #include <StepBasic_ApprovalRole.hxx>
 #include <StepBasic_ApprovalStatus.hxx>
+#include <StepBasic_AreaUnit.hxx>
 #include <StepVisual_AreaInSet.hxx>
+#include <StepBasic_VolumeUnit.hxx>
 #include <StepAP214_AutoDesignActualDateAndTimeAssignment.hxx>
 #include <StepAP214_AutoDesignActualDateAssignment.hxx>
 #include <StepAP214_AutoDesignApprovalAssignment.hxx>
index 7cfd2711cc8e0399fddfc4f8f1113bc725139a0a..540dd552125e7156960940c0eed60a3b7e7c7573 100644 (file)
@@ -17,6 +17,7 @@
 
 #include <RWStepShape_RWSeamEdge.ixx>
 #include <StepShape_Edge.hxx>
+#include <StepShape_Vertex.hxx>
 #include <StepGeom_Pcurve.hxx>
 
 //=======================================================================
index 330c672fbb82fb230950cdaec00202276d125b19..2f050b22715267d9d83933c40f7b050896dc7566 100644 (file)
 #include <StepShape_HArray1OfOrientedEdge.hxx>
 #include <StepShape_HArray1OfShell.hxx>
 #include <StepShape_ShapeRepresentation.hxx>
+#include <StepShape_OpenShell.hxx>
+#include <StepShape_Vertex.hxx>
 #include <StepRepr_NextAssemblyUsageOccurrence.hxx>
 #include <StepRepr_AssemblyComponentUsage.hxx>
 #include <StepRepr_PropertyDefinitionRepresentation.hxx>
index 3a1f3a3998c76a02e53fdd2203a2c5df4d51a4f7..489d94154305fdafe0a3c0812d66b061be81be9c 100644 (file)
 #include <StepVisual_StyledItem.hxx>
 #include <StepVisual_PresentationStyleByContext.hxx>
 #include <StepVisual_HArray1OfPresentationStyleSelect.hxx>
+#include <StepVisual_PointStyle.hxx>
+#include <StepVisual_CurveStyle.hxx>
+#include <StepVisual_SurfaceStyleUsage.hxx>
 #include <TDF_AttributeSequence.hxx>
 #include <TColStd_MapOfTransient.hxx>
-// #include <TColStd_IndexedDataMapOfTransientTransient.hxx>
 #include <StepRepr_NextAssemblyUsageOccurrence.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <StepRepr_SpecifiedHigherUsageOccurrence.hxx>
 #include <StepBasic_SiUnitAndLengthUnit.hxx>
 #include <StepGeom_GeometricRepresentationContextAndGlobalUnitAssignedContext.hxx>
 #include <StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx.hxx>
+#include <StepGeom_Surface.hxx>
 #include <StepBasic_LengthMeasureWithUnit.hxx>
 #include <StepShape_EdgeCurve.hxx>
 #include <StepShape_AdvancedFace.hxx>
index 8e460ef9b8880c58fd71a48423d6e8d6b2b3cfb0..d8437630514c2ec5a25e688cafbbc22cf31b8089 100644 (file)
 #include <StepBasic_Person.hxx>
 #include <StepBasic_Organization.hxx>
 #include <StepBasic_SecurityClassification.hxx>
+#include <StepBasic_Product.hxx>
+#include <StepBasic_ProductDefinition.hxx>
+#include <StepBasic_ProductDefinitionFormation.hxx>
+#include <StepBasic_ProductRelatedProductCategory.hxx>
 #include <StepAP203_HArray1OfPersonOrganizationItem.hxx>
 #include <StepAP203_HArray1OfClassifiedItem.hxx>
 #include <StepAP203_HArray1OfDateTimeItem.hxx>
index 073450469ffc0941e953a8958aa007a14431c699..4c268b852ed1234cb8658a17ba36110b301b9c64 100644 (file)
 #include <StepBasic_ProductType.hxx> //:i3
 #include <Interface_Static.hxx> //:j4
 #include <GeomToStep_MakeAxis2Placement3d.hxx>
+#include <StepBasic_ApprovalPersonOrganization.hxx>
+#include <StepBasic_ApprovalDateTime.hxx>
 #include <StepBasic_ProductRelatedProductCategory.hxx>
+#include <StepBasic_ProductCategoryRelationship.hxx>
+#include <StepShape_ShapeDefinitionRepresentation.hxx>
+#include <StepAP203_CcDesignPersonAndOrganizationAssignment.hxx>
+#include <StepAP203_CcDesignSecurityClassification.hxx>
+#include <StepAP203_CcDesignDateAndTimeAssignment.hxx>
+#include <StepAP203_CcDesignApproval.hxx>
 
 #include "stdio.h"
 
index 40158e1a5b754a12fcc2282252426a2a230f9c4c..b265b3adcf17f9824ebc5e1d594a6173e7f11a42 100644 (file)
@@ -24,6 +24,8 @@
 #include <gp_Ax2.hxx>
 #include <GeomToStep_MakeAxis2Placement3d.hxx>
 #include <StepGeom_Axis2Placement3d.hxx>
+#include <StepGeom_Point.hxx>
+#include <StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx.hxx>
 
 #include <STEPConstruct_Part.hxx>
 #include <STEPConstruct_Assembly.hxx>
index 8b03d39ef7393ca64d98e838b128ff41f624bbce..776915fbdbca99435e2c429fbcb5c3c1992229ca 100644 (file)
@@ -15,8 +15,8 @@
 //    gka 05.04.99 S4136: parameters definitions changed
 #include <STEPControl_Controller.ixx>
 #include <StepSelect_WorkLibrary.hxx>
-#include <IFSelect_Option.hxx>
-#include <IFSelect_Profile.hxx>
+#include <MoniTool_Option.hxx>
+#include <MoniTool_Profile.hxx>
 
 //#include <StepAP214.hxx>
 #include <RWStepAP214.hxx>
@@ -280,14 +280,14 @@ STEPControl_Controller::STEPControl_Controller ()
 
 //  ActorRead : on ajoute le cas Shape possible, a part du default
 //  ainsi, on l a tjrs sous la main
-  Handle(IFSelect_Option) optacrd = Profile()->Option("tr-read");
+  Handle(MoniTool_Option) optacrd = Profile()->Option("tr-read");
   optacrd->Add ("shape",theAdaptorRead);
 
 //  ActorWrite : on ajoute les cas possibles (NB : shape == default)
 //  On garde a part les cas shape compound (= shape traitee globale ou en
 //   assembly), peuvent etre utiles. Tandis que les autres cas sont
 //   susceptibles d etre remplaces si on fait du Model-Editor
-  Handle(IFSelect_Option) optacwr = Profile()->Option("tr-write");
+  Handle(MoniTool_Option) optacwr = Profile()->Option("tr-write");
   Handle(STEPControl_ActorWrite) ActWSh = new STEPControl_ActorWrite;
   ActWSh->SetGroupMode(0);
   optacwr->Add ("shape",ActWSh);
index 24423ab0dd6deed388eba7b54652d0592e3c35b0..ca96f233bf691e985f43932aa73e9a5faee921ca 100644 (file)
@@ -12,9 +12,9 @@
 // commercial license or contractual agreement.
 
 #include <STEPEdit.ixx>
-//#include <StepData_FileProtocol.hxx>
+
 #include <StepAP214.hxx>
-//#include <HeaderSection.hxx>
+#include <StepAP214_Protocol.hxx>
 
 #include <APIHeaderSection_MakeHeader.hxx>
 
index 4ef1b917bdf8317f59aec72c73e2e487f0ba534b..a7e2bc580d1f7392a956522612e1c72eb995af2b 100644 (file)
@@ -17,7 +17,7 @@
 
 #include <StepData_StepModel.hxx>
 #include <STEPConstruct_ContextTool.hxx>
-
+#include <StepBasic_ApplicationProtocolDefinition.hxx>
 
 STEPEdit_EditContext::STEPEdit_EditContext ()
 : IFSelect_Editor (5)
index d1a22802a11deab01fc529699cab42c2e68d7e1a..c0cc00e8b9a4cd7bcb0165725f870b8e942b83db 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <NCollection_Sequence.hxx>
 
-
+class Select3D_SensitiveEntity;
 typedef NCollection_Sequence<Handle(Select3D_SensitiveEntity)> Select3D_EntitySequence;
 typedef NCollection_Sequence<Handle(Select3D_SensitiveEntity)>::Iterator Select3D_EntitySequenceIter;
 
index 0efa02be3b4a44907a705af97b996bcd6b59cb52..e2e466e7d5f7a9a9068dafdbf341259609ed0805 100644 (file)
@@ -38,7 +38,7 @@
 //! selection. It contains signatures of functions for detection of
 //! overlap by sensitive entity and initializes some data for building
 //! the selecting frustum
-class SelectMgr_BaseFrustum
+class SelectMgr_BaseFrustum : public Standard_Transient
 {
 public:
 
@@ -137,6 +137,8 @@ public:
   virtual Standard_Boolean IsClipped (const Graphic3d_SequenceOfHClipPlane& thePlanes,
                                       const Standard_Real theDepth);
 
+  DEFINE_STANDARD_RTTI(SelectMgr_BaseFrustum, Standard_Transient)
+
 protected:
   Standard_Real    myPixelTolerance;      //!< Pixel tolerance
   Standard_Boolean myIsOrthographic;      //!< Defines if current camera is orthographic
index b95ef5df647f59e3b5b573805dd5d9821f748bab..f6fc723e9e0302eb6b24b3aa90b94c9b7375634e 100644 (file)
 #ifndef _SelectMgr_IndexedMapOfOwner_HeaderFile
 #define _SelectMgr_IndexedMapOfOwner_HeaderFile
 
-#include <NCollection_Handle.hxx>
 #include <NCollection_IndexedMap.hxx>
+#include <NCollection_Shared.hxx>
 
 class SelectMgr_EntityOwner;
 
-typedef NCollection_IndexedMap<Handle(SelectMgr_EntityOwner)> SelectMgr_IndexedMapOfOwner;
-typedef NCollection_Handle<NCollection_IndexedMap<Handle(SelectMgr_EntityOwner)> > Handle(SelectMgr_IndexedMapOfOwner);
+typedef NCollection_Shared< NCollection_IndexedMap<Handle(SelectMgr_EntityOwner)> > SelectMgr_IndexedMapOfOwner;
 
 #endif // _SelectMgr_IndexedMapOfOwner_HeaderFile
index f1515d650ccfcf6ac16e3ffcbe8d3d81f9b41d67..1ba3da1cfb5f8376a36f79e08338f2ac2877707c 100644 (file)
@@ -31,6 +31,7 @@
 #include <Graphic3d_AspectLine3d.hxx>
 #include <Graphic3d_AspectMarker3d.hxx>
 #include <PrsMgr_PresentableObjectPointer.hxx>
+#include <SelectMgr_IndexedMapOfOwner.hxx>
 
 #include <TopLoc_Location.hxx>
 #include <gp_Pnt.hxx>
index 281dfa33773dbd93d571ec5cf9891b754b5fa6ae..7cff2256d9ea2f290e441ac1a0575262f457dc14 100644 (file)
@@ -16,9 +16,9 @@
 
 #include <Standard_NullObject.hxx>
 
+#include <SelectBasics_EntityOwner.hxx>
 #include <SelectMgr_Selection.hxx>
 
-
 //==================================================
 // Function: SelectMgr_Selection
 // Purpose :
index efde3c025c2b78c5409aef56c62f28caa5e847d7..1138f572bfd83afd9f7538b1ce8f46247dc36b6e 100644 (file)
@@ -522,7 +522,7 @@ void SelectMgr_SelectionManager::ClearSelectionStructures (const Handle(SelectMg
   if (!theObj->HasOwnPresentations())
     return;
 
-  if (theSelector == NULL)
+  if (theSelector.IsNull())
   {
     if (!(myGlobal.Contains (theObj) || myLocal.IsBound(theObj)))
       return;
@@ -582,7 +582,7 @@ void SelectMgr_SelectionManager::RestoreSelectionStructures (const Handle(Select
   if (!theObj->HasOwnPresentations())
     return;
 
-  if (theSelector == NULL)
+  if (theSelector.IsNull())
   {
     if (!(myGlobal.Contains (theObj) || myLocal.IsBound(theObj)))
       return;
@@ -632,7 +632,7 @@ void SelectMgr_SelectionManager::RestoreSelectionStructures (const Handle(Select
 //=======================================================================
 void SelectMgr_SelectionManager::rebuildSelectionStructures (const Handle(SelectMgr_ViewerSelector)& theSelector)
 {
-  if (theSelector == NULL)
+  if (theSelector.IsNull())
   {
     Handle(SelectMgr_ViewerSelector) aSelector;
     for(TColStd_MapIteratorOfMapOfTransient aSelectorsIter (mySelectors); aSelectorsIter.More(); aSelectorsIter.Next())
@@ -840,7 +840,7 @@ void SelectMgr_SelectionManager::loadMode (const Handle(SelectMgr_SelectableObje
   {
     Handle(SelectMgr_Selection) aNewSel = new SelectMgr_Selection (theMode);
     theObject->AddSelection (aNewSel, theMode);
-    if (theSelector == NULL)
+    if (theSelector.IsNull())
     {
       if (myGlobal.Contains (theObject))
       {
index a94fc7ec041db71414708167a16741da9a1f602e..7dbc48b3cb4c082315b4c179fe738da9266d6ddf 100644 (file)
@@ -81,6 +81,8 @@ public:
 
   //! Nullifies the handle to corresponding builder instance to prevent memory leaks
   void Clear();
+
+  DEFINE_STANDARD_RTTI(SelectMgr_TriangularFrustum,Standard_Transient)
 };
 
 #endif // _SelectMgr_TriangularFrustum_HeaderFile
index 2ee203bfb4ed5dca064c00ece2043a991dc8dcfe..d0b410435b2e81fd40a4ca385f50c48b53603e13 100644 (file)
 // =======================================================================
 void SelectMgr_TriangularFrustumSet::Build (const TColgp_Array1OfPnt2d& thePoints)
 {
-  for (SelectMgr_TriangFrustumsIter anIter (myFrustums); anIter.More(); anIter.Next())
-  {
-    SelectMgr_HTriangularFrustum& aFrust = anIter.ChangeValue();
-    aFrust.Nullify();
-  }
   myFrustums.Clear();
 
   Handle(NCollection_IncAllocator) anAllocator = new NCollection_IncAllocator (MEMORY_BLOCK_SIZE);
@@ -91,7 +86,7 @@ void SelectMgr_TriangularFrustumSet::Build (const TColgp_Array1OfPnt2d& thePoint
       aPts[aVertIdx] = aVertex.Coord();
     }
 
-    SelectMgr_HTriangularFrustum aTrFrustum = new SelectMgr_TriangularFrustum();
+    Handle(SelectMgr_TriangularFrustum) aTrFrustum = new SelectMgr_TriangularFrustum();
     aTrFrustum->SetBuilder (myBuilder);
     aTrFrustum->Build (aPts[0], aPts[1], aPts[2]);
     myFrustums.Append (aTrFrustum);
@@ -112,7 +107,7 @@ NCollection_Handle<SelectMgr_BaseFrustum> SelectMgr_TriangularFrustumSet::Transf
 
   for (SelectMgr_TriangFrustumsIter anIter (myFrustums); anIter.More(); anIter.Next())
   {
-    aRes->myFrustums.Append (NCollection_Handle<SelectMgr_TriangularFrustum>::DownCast (anIter.Value()->Transform (theTrsf)));
+    aRes->myFrustums.Append (Handle(SelectMgr_TriangularFrustum)::DownCast (anIter.Value()->Transform (theTrsf)));
   }
 
   return NCollection_Handle<SelectMgr_BaseFrustum> (aRes);
index 8003d4f140617719f7734befa21c3dab01e4678d..7918ac477e31fb9c818ea2793aa5cf28cbfbf1f0 100644 (file)
@@ -22,9 +22,8 @@
 #include <SelectMgr_BaseFrustum.hxx>
 #include <SelectMgr_TriangularFrustum.hxx>
 
-typedef NCollection_Handle<SelectMgr_TriangularFrustum> SelectMgr_HTriangularFrustum;
-typedef NCollection_List<SelectMgr_HTriangularFrustum> SelectMgr_TriangFrustums;
-typedef NCollection_List<SelectMgr_HTriangularFrustum>::Iterator SelectMgr_TriangFrustumsIter;
+typedef NCollection_List<Handle(SelectMgr_TriangularFrustum)> SelectMgr_TriangFrustums;
+typedef NCollection_List<Handle(SelectMgr_TriangularFrustum)>::Iterator SelectMgr_TriangFrustumsIter;
 
 //! This class is used to handle polyline selection. The main principle of polyline selection
 //! algorithm is to split the polygon defined by polyline onto triangles. Than each of
index 3807ecf4d1a4bf381166ee15a9ed2dddeba0e3b7..54bb54e20db148c38c0e89346e8736e47c4b77df 100644 (file)
@@ -765,7 +765,7 @@ static gp_XYZ GetAnyNormal ( gp_XYZ orig )
 //purpose  : 
 //=======================================================================
 static void AppendControlPoles (TColgp_SequenceOfPnt& seq,
-                               const Handle(Geom_Curve) curve)
+                               const Handle(Geom_Curve)& curve)
 {
   if ( curve->IsKind(STANDARD_TYPE(Geom_Line))) {
     seq.Append(curve->Value(0));
index 9f0ca22b4be5c76acd9683f12b23252b3e575aae..ca37e7d9db42f1d6b5796d95856b43e37e529c9b 100644 (file)
@@ -1940,8 +1940,7 @@ static Standard_Boolean RemoveLoop (TopoDS_Edge &E, const TopoDS_Face &face,
   Seq2d->Append(t1);
   Seq2d->Append(t2);
   Seq2d->Append((t1+t2)/2);
-  Handle(TColStd_HSequenceOfReal) Seq3d = new TColStd_HSequenceOfReal;
-  Seq3d->Append(SFTP.Perform(Seq2d,Standard_False));
+  Handle(TColStd_HSequenceOfReal) Seq3d = SFTP.Perform(Seq2d,Standard_False);
   
   Standard_Real dist1 = pcurPnt.Distance(crv->Value(Seq3d->Value(1)));// correting Seq3d already project 
   Standard_Real dist2 = pcurPnt.Distance(crv->Value(Seq3d->Value(2)));
@@ -2073,8 +2072,7 @@ static Standard_Boolean RemoveLoop (TopoDS_Edge &E, const TopoDS_Face &face,
   Seq2d->Append(t1);
   Seq2d->Append(t2);
   Seq2d->Append((t1+t2)/2);
-  Handle (TColStd_HSequenceOfReal) Seq3d = new TColStd_HSequenceOfReal;
-  Seq3d->Append(SFTP.Perform(Seq2d,Standard_False));
+  Handle (TColStd_HSequenceOfReal) Seq3d = SFTP.Perform(Seq2d,Standard_False);
   
   Standard_Real dist1 = pcurPnt.Distance(crv->Value(Seq3d->Value(1)));// correting Seq3d already project 
   Standard_Real dist2 = pcurPnt.Distance(crv->Value(Seq3d->Value(2)));
index 80a135ae8747f401cf017f2791d5ff9b1628f6e5..f6feb2f427df711287f208d3b31b5acb5502bd4a 100644 (file)
@@ -17,6 +17,7 @@
 #include <ShapeUpgrade_ShapeDivideAngle.ixx>
 #include <ShapeUpgrade_SplitSurfaceAngle.hxx>
 #include <ShapeUpgrade_FaceDivide.hxx>
+#include <ShapeUpgrade_WireDivide.hxx>
 
 //=======================================================================
 //function : ShapeUpgrade_ShapeDivideAngle
index df1cb8e747c4a4e7d9b0971499312adff098ab1f..2d29dc40a5a5c91ef654ce85526deda7b4a547a2 100644 (file)
@@ -16,6 +16,7 @@
 
 #include <ShapeUpgrade_ShapeDivideClosed.ixx>
 #include <ShapeUpgrade_ClosedFaceDivide.hxx>
+#include <ShapeUpgrade_WireDivide.hxx>
 
 //=======================================================================
 //function : ShapeUpgrade_ShapeDivideClosed
index 43ccc39276313a307f18d8fd44a9c25b95c85e13..4f18150b3d472d5d8ef75582f28c7a6d2545d1bc 100644 (file)
@@ -17,6 +17,7 @@
 #include <ShapeUpgrade_ClosedEdgeDivide.hxx>
 #include <ShapeUpgrade_WireDivide.hxx>
 #include <ShapeUpgrade_FaceDivide.hxx>
+#include <ShapeUpgrade_SplitSurface.hxx>
 
 //=======================================================================
 //function : ShapeUpgrade_ShapeDivideClosedEdges
index a10ee5d9fe6e80a64517789e01115c0a468f9544..49102b86ddee1859e0fe6419cb48771a19269b41 100644 (file)
@@ -23,6 +23,7 @@
 #include <BRepClass3d_SolidClassifier.hxx>
 
 #include <ShapeAnalysis_ShapeTolerance.hxx>
+#include <ShapeUpgrade_WireDivide.hxx>
 
 //=======================================================================
 //function : ShapeUpgrade_ShellSewing
index f1d616962761b447b27f3e4dfb805337d83a8ae0..846858578e7f25c9f9deb2634325aed261b23f0f 100644 (file)
@@ -57,7 +57,7 @@ ShapeUpgrade_SplitCurve::ShapeUpgrade_SplitCurve() : myStatus(0)
 //purpose  : 
 //=======================================================================
 
- void ShapeUpgrade_SplitCurve::SetSplitValues (const Handle(TColStd_HSequenceOfReal& SplitValues))
+ void ShapeUpgrade_SplitCurve::SetSplitValues (const Handle(TColStd_HSequenceOfReal)& SplitValues)
 {
   Standard_Real precision = Precision::PConfusion();
   if(SplitValues.IsNull()) return;
index 45d3d335a7ecc19cc4f07d3d01fb304414ce8eb8..8efb768b147b9731e5e13ed422d9b78e8a29afa4 100644 (file)
@@ -32,7 +32,8 @@
 #include <BndLib_Add2dCurve.hxx>
 #include <Precision.hxx>
 #include <GeomAdaptor_Curve.hxx>
-#include <Geom_Curve.hxx>
+#include <Geom_BezierSurface.hxx>
+#include <Geom_BSplineSurface.hxx>
 #include <GeomAbs_SurfaceType.hxx>
 #include <Geom_Surface.hxx>
 #include <TColgp_SequenceOfPnt2d.hxx>
index f84c611987f7ceaccce6bbefd702c26efeb54753..aef9d1bbd5cd66ad33b2970d3e056813118629dc 100755 (executable)
@@ -20,7 +20,8 @@
 #include <BndLib_Add2dCurve.hxx>
 #include <Precision.hxx>
 #include <GeomAdaptor_Curve.hxx>
-#include <Geom_Curve.hxx>
+#include <Geom_BezierSurface.hxx>
+#include <Geom_BSplineSurface.hxx>
 #include <GeomAbs_SurfaceType.hxx>
 #include <Geom_Surface.hxx>
 #include <StdPrs_WFRestrictedFace.hxx>
index 31c814127b3c9c4bffbcc7683db6d31d56a9e3bd..ab53b73cf1164959977a7393149974fcec168ff8 100644 (file)
@@ -60,6 +60,7 @@
 #include <StepBasic_MechanicalContext.hxx>
 #include <StepBasic_DesignContext.hxx>
 #include <StepBasic_ApplicationProtocolDefinition.hxx>
+#include <StepBasic_ApplicationContext.hxx>
 
 #include <StepRepr_PropertyDefinitionRepresentation.hxx>
 #include <StepRepr_StructuralResponseProperty.hxx>
index 7a2073cad174bcf5db4874f903d0b0ef9d7041ab..b9b9fdcb38c23bd43cc65520a78e07bbac53ad36 100644 (file)
@@ -21,6 +21,8 @@ static Standard_CString schemaAP214DIS = "AUTOMOTIVE_DESIGN { 1 2 10303 214 0 1
 static Standard_CString schemaAP214IS  = "AUTOMOTIVE_DESIGN { 1 0 10303 214 1 1 1 1 }";
 static Standard_CString schemaAP203    = "CONFIG_CONTROL_DESIGN";
 
+#include <HeaderSection_Protocol.hxx>
+
 #include <StepBasic_Address.hxx>
 #include <StepShape_AdvancedBrepShapeRepresentation.hxx>
 #include <StepShape_AdvancedFace.hxx>
index f6340cfb9a7df42fd0e0c9a8929c756702c53e45..b2e3c600691a1f809bc56e6e36b3cb5adf5d1c57 100644 (file)
@@ -14,6 +14,7 @@
 #include <StepData_DefaultGeneral.ixx>
 #include <StepData.hxx>
 #include <Interface_GeneralLib.hxx>
+#include <StepData_Protocol.hxx>
 #include <StepData_UndefinedEntity.hxx>
 #include <Interface_UndefinedContent.hxx>
 #include <Interface_Macros.hxx>
index 63451b8fda560fab316c6f9776d3e10c45072259..0de4d3789fc83e52b76a2de61c7b0dc4224f8766 100644 (file)
@@ -16,6 +16,8 @@
 
 #include <StepToTopoDS_PointPairHasher.ixx>
 
+#include <StepGeom_CartesianPoint.hxx>
+
 //=======================================================================
 //function : HashCode
 //purpose  : 
index 688318e4664b86b6fc7e8036bbc593a2070aa4de..a7e2980a7a7774820a26ccf1cf7550d1c9716791 100644 (file)
@@ -24,6 +24,7 @@
 #include <Geom_BoundedSurface.hxx>
 #include <StepToGeom_MakeSurface.hxx>
 #include <StepGeom_HArray1OfSurfaceBoundary.hxx>
+#include <StepGeom_BoundaryCurve.hxx>
 #include <StepToTopoDS_TranslateCompositeCurve.hxx>
 
 #include <TopoDS.hxx>
index ff61f1f137ae7d2e14422e638bedc8edce7c5515..5cbe05c928dcfe618ef0860d9261d632cbb2e0a9 100644 (file)
 #include <StepShape_EdgeLoop.hxx>
 #include <StepShape_Edge.hxx>
 #include <StepShape_OrientedEdge.hxx>
+#include <StepShape_Vertex.hxx>
 #include <StepGeom_Curve.hxx>
 #include <StepShape_EdgeCurve.hxx>
 #include <StepGeom_Pcurve.hxx>
-//#include <StepGeom_Polyline.hxx>
 #include <StepGeom_SurfaceCurve.hxx>
 #include <StepRepr_DefinitionalRepresentation.hxx>
 #include <StepGeom_PcurveOrSurface.hxx>
index 82f900e827140ce34d1be168e1344e46bf465e46..9661a515de874404daa8839a9243e07b297f9e4c 100644 (file)
@@ -17,9 +17,9 @@
 #ifndef Storage_ArrayOfSchema_HeaderFile
 #define Storage_ArrayOfSchema_HeaderFile
 
-#include <Storage_Schema.hxx>
 #include <NCollection_Array1.hxx>
 
+class Storage_Schema;
 typedef NCollection_Array1<Handle(Storage_Schema)> Storage_ArrayOfSchema;
 
 
index a8974f1e86b99c7b2048f48e5f69b09c93a11289..3f785b6dfb6bc8e3e183c53b649afe9a86370627 100644 (file)
@@ -19,6 +19,7 @@
 #include <TColStd_MapTransientHasher.hxx>
 #include <NCollection_IndexedMap.hxx>
 
+class TDF_Attribute;
 typedef NCollection_IndexedMap<Handle(TDF_Attribute),TColStd_MapTransientHasher> TDF_AttributeIndexedMap;
 
 
index 43747a5b512f0f93747f6eb522641171e79f7566..befb84940b50fe3fd71fd047954abea4e8d27b3c 100644 (file)
@@ -21,6 +21,7 @@
 
 #include <TDF_LabelNode.hxx>
 #include <TDF_TagSource.hxx>
+#include <TDF_Data.hxx>
 
 inline TDF_Label::TDF_Label()
 :myLabelNode(NULL)
index d0fc691a552d3ad3eeaf1c2718c9160a2f9a0bdd..da50f63940e87e2b4caffe948d189148cad9c3d6 100644 (file)
@@ -37,7 +37,7 @@ void TDocStd_ApplicationDelta::Dump(Standard_OStream& anOS) const {
   Standard_Integer i;
   for (i = 1; i <= myDocuments.Length(); i++) {
     Handle(TDocStd_Document) aDocAddr= myDocuments.Value(i);
-    anOS << "\"" << ((Standard_Transient*)aDocAddr);
+    anOS << "\"" << aDocAddr.get();
     anOS << "\" ";
   }
   anOS << ") ";
index 720da3c7f5a5bcee89d786f968d58571f71e5792..b5478dd19dc5d766ab4e3cee72916304c10eaf42 100644 (file)
@@ -31,6 +31,7 @@
 #include <TDF_ListIteratorOfAttributeDeltaList.hxx>
 #include <TDF_Label.hxx>
 #include <TDF_Delta.hxx>
+#include <TDF_Reference.hxx>
 #include <TDocStd_CompoundDelta.hxx>
 #include <TDocStd_Owner.hxx>
 #include <TDocStd_Modified.hxx>
index 4c4ea8b603d0dc31abd28700605b4b675d07950b..6eb249f4d5aaf0a6330db1cfabca56fd88731f82 100644 (file)
@@ -193,7 +193,7 @@ void TDocStd_MultiTransactionManager::DumpTransaction(Standard_OStream& anOS) co
       anOS << "There are " << myDocuments.Length() << " documents ( ";
     for(i = 1; i <= myDocuments.Length(); i++) {
       Handle(Standard_Transient) aDoc = myDocuments.Value(i);
-      anOS << "\"" << (Standard_Transient*)aDoc;
+      anOS << "\"" << aDoc.get();
       anOS << "\" ";
     }
     anOS << ") in the manager "  << endl;
index 16b08d74eb309cb5910a16ee6adf372680aa6c8c..c8dee176098a7d1501a207c33a7e594d7b9692b7 100755 (executable)
@@ -1,5 +1,3 @@
-Handle_TObj_Model.hxx
-Handle_TObj_Object.hxx
 TObj_Application.cxx
 TObj_Application.hxx
 TObj_Assistant.cxx
diff --git a/src/TObj/Handle_TObj_Model.hxx b/src/TObj/Handle_TObj_Model.hxx
deleted file mode 100644 (file)
index 4125b1e..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-// Created on: 2004-11-22
-// Created by: Pavel TELKOV
-// Copyright (c) 2004-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.
-
-// The original implementation Copyright: (C) RINA S.p.A
-
-#ifndef Handle_TObj_Model_HeaderFile
-#define Handle_TObj_Model_HeaderFile
-
-#include <TObj_Common.hxx>
-
-//!
-//! Definition of the handle of TObj_Model
-//! to decrease dependances
-//!
-
-class TObj_Model;
-
-//! Define handle class for TObj_Model
-DEFINE_STANDARD_HANDLE(TObj_Model,MMgt_TShared)
-
-#endif
-
-#ifdef _MSC_VER
-#pragma once
-#endif
diff --git a/src/TObj/Handle_TObj_Object.hxx b/src/TObj/Handle_TObj_Object.hxx
deleted file mode 100644 (file)
index e4756b0..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-// Created on: 2004-11-22
-// Created by: Pavel TELKOV
-// Copyright (c) 2004-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.
-
-// The original implementation Copyright: (C) RINA S.p.A
-
-#ifndef Handle_TObj_Object_HeaderFile
-#define Handle_TObj_Object_HeaderFile
-
-#include <TObj_Common.hxx>
-
-//!
-//! Definition of the handle of TObj_Object
-//! to decrease dependances
-//!
-
-class TObj_Object;
-
-//! Define handle class for TObj_Object
-DEFINE_STANDARD_HANDLE(TObj_Object,MMgt_TShared)
-
-#endif
-
-#ifdef _MSC_VER
-#pragma once
-#endif
index 58a907178bac2b8ee4ffcaa7b41578b4a3685222..982a6377a68bd03296ed1d4879f4794a0863a3ed 100644 (file)
@@ -23,6 +23,7 @@
 #include <TColStd_SequenceOfAsciiString.hxx>
 #include <TColStd_IndexedMapOfTransient.hxx>
 
+class TObj_Model;
 
 //! This class provides interface to the static data
 //! to be used during save or load models.
index 0a84d38e79eb17d551f24e33f09e39b13ba35150..1521718a9f2f8c5c20fa3bd09fc6bde2aa791526 100644 (file)
 #ifndef TObj_Model_HeaderFile
 #define TObj_Model_HeaderFile
 
-
 #include <TDF_Label.hxx>
 #include <TObj_Partition.hxx>
 #include <Message_Messenger.hxx>
 
+class TObj_TNameContainer;
+class TObj_Partition;
+class TCollection_HExtendedString;
+class TDocStd_Document;
+class TObj_CheckModel;
+class TObj_Application;
 
+class TObj_Model;
+DEFINE_STANDARD_HANDLE(TObj_Model,MMgt_TShared)
 
 /**
 * Base class for OCAF based models.
index faa07f74ef4f818225fe8e71c1393155cb0f4625..998b5b3eba26ef139423384f7beaadf45e4703db 100644 (file)
 #include <TDF_Label.hxx>
 #include <gp_XYZ.hxx>
 
+class TObj_Model;
 class TObj_Persistence;
-
+class TObj_ObjectIterator;
+class TObj_TNameContainer;
+class TCollection_HExtendedString;
+class TColStd_HArray1OfInteger;
+class TColStd_HArray1OfReal;
+class TColStd_HArray1OfExtendedString;
+
+class TObj_Object;
+DEFINE_STANDARD_HANDLE(TObj_Object,MMgt_TShared)
 
 //! Basis class for transient objects in OCAF-based models
 
index 6add161ad73cb3701d5ed4f775bd531a19b48971..9263ca629566a6dd0dcb12ee261d7ed976157e27 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <TObj_Common.hxx>
 
+class TObj_Object;
 
 /**
 * This class provides an iterator by objects in a partition.
index cb4a039d635c83370e3161af7963f9412439151e..56cfc97aa85c82926789cab2f4b3ec23188241a2 100644 (file)
@@ -23,6 +23,7 @@
 
 #include <TObj_Common.hxx>
 
+class TObj_Object;
 typedef NCollection_Sequence<Handle(TObj_Object)> TObj_SequenceOfObject;
 
 DEFINE_HSEQUENCE (TObj_HSequenceOfObject, TObj_SequenceOfObject)
index eadfaa770b3ad09964acd8de805e67ae21a922fb..c4b921afd6309159be8b720a889299cc5ef02f7b 100644 (file)
@@ -20,6 +20,8 @@
 
 #include <TDF_Attribute.hxx>
 
+class TObj_Model;
+class TObj_TModel;
 
 /** 
 * Attribute to store OCAF-based models in OCAF tree
index e3e861e19bc6fcbc44cb73c23f8f248026ba714e..7078ce41de3a345829c1631663b3881376c51a75 100644 (file)
@@ -22,6 +22,7 @@
 #include <TObj_Container.hxx>
 #include <TDF_Attribute.hxx>
 
+class TObj_TNameContainer;
 
 /** 
 * This class provides OCAF Attribute to storing the unique names of object in
index aa0c5fa8c0d9dee490ac1efde35342bf714b4eb3..d3d01459d96845f2615646ca6fb12f084f5863f2 100644 (file)
@@ -22,6 +22,7 @@
 #include <TDF_Attribute.hxx>
 #include <TDF_Label.hxx>
 
+class TObj_Object;
 class Standard_GUID;
 
 /**
index 7e1823017507d2187da47e2a5a64ec65aa527198..277b2f44ccf48c0d96c643199e5f2e3f59ab78c4 100644 (file)
@@ -325,7 +325,7 @@ TestTopOpeDraw_C3DDisplayer::TestTopOpeDraw_C3DDisplayer()
 //purpose  : 
 //=======================================================================
 
-TestTopOpeDraw_C3DDisplayer::TestTopOpeDraw_C3DDisplayer(const Handle(Geom_Curve& C))
+TestTopOpeDraw_C3DDisplayer::TestTopOpeDraw_C3DDisplayer(const Handle(Geom_Curve)& C)
 {
   InitC3DDisplayer();
   DisplayC3D(C);
@@ -349,7 +349,7 @@ void TestTopOpeDraw_C3DDisplayer::InitC3DDisplayer()
 //purpose  : 
 //=======================================================================
 
-void TestTopOpeDraw_C3DDisplayer::DisplayC3D(const Handle(Geom_Curve& C))
+void TestTopOpeDraw_C3DDisplayer::DisplayC3D(const Handle(Geom_Curve)& C)
 {
   if (C.IsNull()) return;
   Draw_ColorKind col = TestTopOpeDraw_TTOT::GeometryColor(TopOpeBRepDS_CURVE);
@@ -377,7 +377,7 @@ TestTopOpeDraw_C2DDisplayer::TestTopOpeDraw_C2DDisplayer()
 //=======================================================================
 
 TestTopOpeDraw_C2DDisplayer::TestTopOpeDraw_C2DDisplayer
-(const Handle(Geom2d_Curve& C))
+(const Handle(Geom2d_Curve)& C)
 {
   InitC2DDisplayer();
   DisplayC2D(C);
@@ -405,7 +405,7 @@ void TestTopOpeDraw_C2DDisplayer::InitC2DDisplayer()
 //purpose  : 
 //=======================================================================
 
-void TestTopOpeDraw_C2DDisplayer::DisplayC2D(const Handle(Geom2d_Curve& C))
+void TestTopOpeDraw_C2DDisplayer::DisplayC2D(const Handle(Geom2d_Curve)& C)
 {
   if (C.IsNull()) return;
   Handle(TestTopOpeDraw_DrawableC2D) D = new TestTopOpeDraw_DrawableC2D
@@ -421,7 +421,7 @@ void TestTopOpeDraw_C2DDisplayer::DisplayC2D(const Handle(Geom2d_Curve& C))
 //=======================================================================
 
 void TestTopOpeDraw_C2DDisplayer::DisplayC2D
-(const TCollection_AsciiString& namedbrep,const TCollection_AsciiString& namedisp,const Handle(Geom2d_Curve& C))
+(const TCollection_AsciiString& namedbrep,const TCollection_AsciiString& namedisp,const Handle(Geom2d_Curve)& C)
 {
   Handle(TestTopOpeDraw_DrawableC2D) D = new TestTopOpeDraw_DrawableC2D
     (C,myCol,namedisp.ToCString(),myNameColor,
@@ -447,7 +447,7 @@ TestTopOpeDraw_SurfaceDisplayer::TestTopOpeDraw_SurfaceDisplayer()
 //=======================================================================
 
 TestTopOpeDraw_SurfaceDisplayer::TestTopOpeDraw_SurfaceDisplayer
-(const Handle(Geom_Surface& S))
+(const Handle(Geom_Surface)& S)
 {
   InitSurfaceDisplayer();
   DisplaySurface(S);
@@ -476,7 +476,7 @@ void TestTopOpeDraw_SurfaceDisplayer::InitSurfaceDisplayer()
 //purpose  : 
 //=======================================================================
 
-void TestTopOpeDraw_SurfaceDisplayer::DisplaySurface(const Handle(Geom_Surface& S))
+void TestTopOpeDraw_SurfaceDisplayer::DisplaySurface(const Handle(Geom_Surface)& S)
 {
   if (S.IsNull()) return;
   Handle(TestTopOpeDraw_DrawableSUR) D;
index 7ff7a329551083daa3e57ab8389040c1a24543b7..3f254f4f7aa8bec3a04afdf2ef9f3912628970df 100644 (file)
@@ -452,7 +452,7 @@ inline TopoDS_Shape TopoDS_Shape::EmptyCopied() const
 //purpose  : 
 //=======================================================================
 
-inline void TopoDS_Shape::TShape (const Handle(TopoDS_TShape& TS))
+inline void TopoDS_Shape::TShape (const Handle(TopoDS_TShape)& TS)
 {
   myTShape = TS;
 }
index 6bc1d104243855ecb258cb5a2a1b05fee20d5dd2..bb7104f2936c02590ff037c3882336a593a4898b 100644 (file)
@@ -37,7 +37,7 @@
 
 #include <StepShape_Vertex.hxx>
 #include <StepShape_EdgeCurve.hxx>
-#include <StepGeom_Curve.hxx>
+#include <StepGeom_Line.hxx>
 #include <StepGeom_HArray1OfPcurveOrSurface.hxx>
 #include <StepGeom_SeamCurve.hxx>
 #include <StepGeom_SurfaceCurve.hxx>
@@ -236,7 +236,7 @@ void TopoDSToStep_MakeStepEdge::Init(const TopoDS_Edge& aEdge,
       //Points.SetValue(Nbpt, BRep_Tool::Pnt(Vlast));
       Mult.SetValue(1,2);
       Mult.SetValue(Nbpt,2);
-      Handle(Geom_BSplineCurve) Bs = 
+      Handle(Geom_Curve) Bs = 
        new Geom_BSplineCurve(Points, Knots, Mult, 1);
       GeomToStep_MakeCurve MkCurve(Bs);
       Gpms = MkCurve.Value();
index a7a210c562bc9a8f24fa4cc8cb3d69e249ca0de4..eeedfb9337caa709228f4f5b8bca81ed71f68e12 100644 (file)
@@ -45,6 +45,7 @@
 #include <Geom_Circle.hxx>
 #include <Geom_TrimmedCurve.hxx>
 #include <Geom_SurfaceOfRevolution.hxx>
+#include <Geom_BSplineCurve.hxx>
 
 #include <Precision.hxx>
 #include <Geom2dAdaptor_Curve.hxx>
index ae41d0ee420527db0c82f158ec3b2c8ecbb71666..24185194144cfef5a0a44f8c6e597bb19c7b5e37 100644 (file)
@@ -58,7 +58,7 @@
 #include <Standard_NullObject.hxx>
 
 #include <StepGeom_CartesianPoint.hxx>
-#include <StepGeom_Curve.hxx>
+#include <StepGeom_Line.hxx>
 #include <StepGeom_SurfaceCurve.hxx>
 #include <StepGeom_SeamCurve.hxx>
 #include <StepGeom_TrimmedCurve.hxx>
@@ -298,7 +298,7 @@ Standard_Boolean TopoDSToStep_WireframeBuilder::
       Points.SetValue(Nbpt, BRep_Tool::Pnt(Vlast));
       Mult.SetValue(1,2);
       Mult.SetValue(Nbpt,2);
-      Handle(Geom_BSplineCurve) Bs = 
+      Handle(Geom_Curve) Bs = 
        new Geom_BSplineCurve(Points, Knots, Mult, 1);
       GeomToStep_MakeCurve gtpC(Bs);
       Gpms = gtpC.Value();
index a5e5a924555def74a1d3f1dd1870078317fe1c93..c2f65a7a191bdaef3ec31b299c58c72603502c3b 100644 (file)
@@ -14,6 +14,7 @@
 #include <Transfer_ActorOfFinderProcess.ixx>
 #include <Transfer_TransientMapper.hxx>
 #include <Transfer_FinderProcess.hxx>
+#include <Transfer_SimpleBinderOfTransient.hxx>
 
 Transfer_ActorOfFinderProcess::Transfer_ActorOfFinderProcess ()    {  themodetrans = 0;  }
 
index 4ca907b14ae59ed091a8c32d9e8c4c1e333e9d6f..e7e404c678e8f95764fc9eed39b0c74c72f452d8 100644 (file)
@@ -13,6 +13,7 @@
 
 #include <Transfer_ActorOfTransientProcess.ixx>
 #include <Transfer_TransientProcess.hxx>
+#include <Transfer_SimpleBinderOfTransient.hxx>
 
 Transfer_ActorOfTransientProcess::Transfer_ActorOfTransientProcess ()    {  }
 
index 3c6d0483015fdbe0343af660f813012db4c04301..6d454408cfe0c57d79218b997e56543c8e25853c 100755 (executable)
@@ -17,6 +17,7 @@
 #include <Graphic3d_Group.hxx>
 #include <Graphic3d_AspectFillArea3d.hxx>
 #include <Graphic3d_ArrayOfQuadrangles.hxx>
+#include <Visual3d_ViewManager.hxx>
 #include <gp_Pln.hxx>
 
 
index de54a9969c3a0b7975a51ba991764f2ad4306140..40c1c7469557d83a679cdbaf2b6dabb93676d67e 100755 (executable)
@@ -20,6 +20,7 @@
 #include <Graphic3d_Structure.hxx>
 #include <V3d_View.hxx>
 
+class V3d_Plane;
 DEFINE_STANDARD_HANDLE (V3d_Plane, MMgt_TShared)
 
 //! Obsolete clip plane presentation class.
index 67b84d20ebc438b01c7c069c06158d4ccf56d989..a0f3a6b36013819d18928132be191158e6995536 100644 (file)
@@ -1927,8 +1927,6 @@ Handle(Geom_Circle) CreateCircle(gp_Pnt theCenter, Standard_Real theRadius)
   return aCircle;
 }
 
-DEFINE_STANDARD_HANDLE(FilledCircle, AIS_InteractiveObject)
-
 class FilledCircle : public AIS_InteractiveObject 
 {
 public:
@@ -3134,7 +3132,7 @@ static int VComputeHLR (Draw_Interpretor& di,
 
 // This class is a wrap for Graphic3d_ArrayOfPrimitives; it is used for
 // manipulating and displaying such an array with AIS context
-DEFINE_STANDARD_HANDLE(MyPArrayObject, AIS_InteractiveObject)
+
 class MyPArrayObject : public AIS_InteractiveObject
 {
 
@@ -4329,7 +4327,7 @@ static Standard_Integer VSelectionPrevious(Draw_Interpretor& /*theDI*/,
 //purpose : creates Triangle based on AIS_InteractiveObject. 
 //          This class was implemented for testing Select3D_SensitiveTriangle
 //===========================================================================
-DEFINE_STANDARD_HANDLE(Triangle, AIS_InteractiveObject)
+
 class Triangle: public AIS_InteractiveObject 
 {
 public: 
@@ -4523,7 +4521,7 @@ static Standard_Integer VTriangle (Draw_Interpretor& /*di*/,
 //class  : SegmentObject
 //purpose: creates segment based on AIS_InteractiveObject.
 //         This class was implemented for testing Select3D_SensitiveCurve
-DEFINE_STANDARD_HANDLE(SegmentObject, AIS_InteractiveObject)
+
 class SegmentObject: public AIS_InteractiveObject
 {
 public:
@@ -4902,7 +4900,7 @@ static Standard_Integer VShowFaceBoundary (Draw_Interpretor& /*di*/,
 }
 
 // This class is used for testing markers.
-DEFINE_STANDARD_HANDLE(ViewerTest_MarkersArrayObject, AIS_InteractiveObject)
+
 class ViewerTest_MarkersArrayObject : public AIS_InteractiveObject
 {
 
index 3b899026810e1adc54268524b93974c6c2aebf2a..738ccc64659c1d6dce665dbbff36204cae7f1f74 100644 (file)
@@ -52,11 +52,12 @@ extern Standard_Boolean VDisplayAISObject (const TCollection_AsciiString& theNam
                                            Standard_Boolean theReplaceIfExists = Standard_True);
 extern ViewerTest_DoubleMapOfInteractiveAndName& GetMapOfAIS();
 
+namespace {
+
 //=======================================================================
 //function : VUserDraw
 //purpose  : Checks availability and operation of UserDraw feature
 //=======================================================================
-DEFINE_STANDARD_HANDLE(VUserDrawObj, AIS_InteractiveObject)
 
 class VUserDrawObj : public AIS_InteractiveObject
 {
@@ -126,7 +127,6 @@ private:
     friend class Element;
 };
 
-
 void VUserDrawObj::Compute(const Handle(PrsMgr_PresentationManager3d)& /*thePresentationManager*/,
                            const Handle(Prs3d_Presentation)& thePresentation,
                            const Standard_Integer /*theMode*/)
@@ -196,6 +196,8 @@ void VUserDrawObj::Render(const Handle(OpenGl_Workspace)& theWorkspace) const
   glPopAttrib();
 }
 
+} // end of anonymous namespace
+
 OpenGl_Element* VUserDrawCallback(const CALL_DEF_USERDRAW * theUserDraw)
 {
   Handle(VUserDrawObj) anIObj = (VUserDrawObj*)theUserDraw->Data;
index 6b09f753f2889c9798e57461d82a6db7b2b70fa2..d616d20415d7b4fd6611facd8f5fcb0bc7d44777 100644 (file)
@@ -4568,8 +4568,6 @@ static int VZLayer (Draw_Interpretor& di, Standard_Integer argc, const char** ar
   return 0;
 }
 
-DEFINE_STANDARD_HANDLE(V3d_TextItem, Visual3d_LayerItem)
-
 // this class provides a presentation of text item in v3d view under-/overlayer
 class V3d_TextItem : public Visual3d_LayerItem
 {
@@ -4640,8 +4638,6 @@ void V3d_TextItem::RedrawLayerPrs ()
   myLayer->DrawText (myText.ToCString (), myX1, myY1, myHeight);
 }
 
-DEFINE_STANDARD_HANDLE(V3d_LineItem, Visual3d_LayerItem)
-
 // The Visual3d_LayerItem line item for "vlayerline" command
 // it provides a presentation of line with user-defined
 // linewidth, linetype and transparency.
index e9eee74367143866a7fd859ac2f28b5f2f6dbcc8..afa1ca8efbeab13c05c2c5d4312bdb41cdcc3608 100644 (file)
@@ -404,12 +404,12 @@ Aspect_TypeOfLayer Visual3d_Layer::Type () const {
 }
 
 
-void Visual3d_Layer::AddLayerItem( const Handle(Visual3d_LayerItem&) Item )
+void Visual3d_Layer::AddLayerItem( const Handle(Visual3d_LayerItem)& Item )
 {
   MyListOfLayerItems.Append( Item );
 }
 
-void Visual3d_Layer::RemoveLayerItem( const Handle(Visual3d_LayerItem&) Item )
+void Visual3d_Layer::RemoveLayerItem( const Handle(Visual3d_LayerItem)& Item )
 {
   if ( MyListOfLayerItems.IsEmpty() )
     return;
index 8b1ede2276626f839533007e8b15ea3e813ffc8d..d0c66dd40ae810837752673e49211efad58561f1 100644 (file)
@@ -1238,7 +1238,7 @@ Standard_Boolean Visual3d_View::DisplayImmediate (const Handle(Graphic3d_Structu
     for (Standard_Integer aViewIter = 1; aViewIter <= aViews.Length(); ++aViewIter)
     {
       const Handle(Visual3d_View)& aView = aViews.Value (aViewIter);
-      if (aView.Access() != this)
+      if (aView != this)
       {
         aView->EraseImmediate (theStructure);
       }
index cd6cda63f36b712022b7864bee7039e3d9927263..7251d6b40ee98dcaa549994be54988a254f825c3 100644 (file)
 #include <TopoDS_Shape.hxx>
 
 class VrmlData_Scene;
+class VrmlData_Coordinate;
 class TopoDS_Face;
+class Poly_Polygon3D;
+class Poly_Triangulation;
+
 /**
  * Algorithm converting one shape or a set of shapes to VrmlData_Scene.
  */
index 53f727e0d9adc17ad64790f7f77d2b5e87f3026b..5410281017e8199aacfbfcee90b744525e869490 100644 (file)
@@ -16,9 +16,9 @@
 #ifndef XCAFDoc_GraphNodeSequence_HeaderFile
 #define XCAFDoc_GraphNodeSequence_HeaderFile
 
-#include <XCAFDoc_GraphNode.hxx>
 #include <NCollection_Sequence.hxx>
 
+class XCAFDoc_GraphNode;
 typedef NCollection_Sequence<Handle(XCAFDoc_GraphNode)> XCAFDoc_GraphNodeSequence;
 
 
index f9aad550c9e0f512e3102612baf72ff7a962af75..0bb3e94a12eff63731a8d6806c29feaf6dd3c16d 100644 (file)
@@ -20,7 +20,7 @@ package XSControl
     --           control of a session
 
 uses Standard , MMgt, TCollection , TColStd, Dico,
-     Interface, Transfer, IFSelect, Message,
+     Interface, Transfer, IFSelect, Message, MoniTool,
      TopoDS,    TopTools, TopAbs ,   Geom, Geom2d, gp
 
 is
index 516557bcdf6cf98c31939fc22756a865f76f6480..efc5c6d8e53203aa57cde4282271b7e7603dd959 100644 (file)
@@ -49,7 +49,7 @@ uses CString,  AsciiString, SequenceOfTransient, SequenceOfInteger,
      FinderProcess    from Transfer,
      Shape            from TopoDS,
      WorkLibrary      from IFSelect,
-     Profile          from IFSelect,
+     Profile          from MoniTool,
      WorkSession      from XSControl,
      ReturnStatus     from IFSelect
 
@@ -90,7 +90,7 @@ is
     --           rsc = False (D) : True Name attached to the Norm (long name)
     --           rsc = True : Name of the ressource set (i.e. short name)
 
-    Profile       (me) returns Profile from IFSelect;
+    Profile       (me) returns Profile from MoniTool;
     ---Purpose : Returns the Profile
     --           It starts with a first configuration Base (empty) and the
     --           following options :
index 44314eea4a6cc59ff4f17f6f89d07b309ddebaa1..4ed012863058af989f85acdd5766c52227aeaf80 100644 (file)
 #include <Dico_IteratorOfDictionaryOfTransient.hxx>
 #include <Dico_IteratorOfDictionaryOfInteger.hxx>
 #include <TColStd_IndexedMapOfTransient.hxx>
-#include <IFSelect_Option.hxx>
+#include <MoniTool_Option.hxx>
 
 #include <IFSelect_SelectModelEntities.hxx>
 #include <IFSelect_SelectModelRoots.hxx>
 #include <IFSelect_SelectPointed.hxx>
 #include <IFSelect_SelectSharing.hxx>
 #include <IFSelect_SelectShared.hxx>
+#include <IFSelect_ShareOut.hxx>
 #include <IFSelect_GraphCounter.hxx>
 #include <XSControl_SelectForTransfer.hxx>
 #include <XSControl_ConnectedShapes.hxx>
@@ -98,10 +99,10 @@ static TColStd_IndexedMapOfTransient&      mapadapt()
 
   //  Initialisation du Profile
 
-  theProfile = new IFSelect_Profile;
+  theProfile = new MoniTool_Profile;
 
 /*  essai option sur parametre
-  Handle(IFSelect_Option) optrdprec = new IFSelect_Option
+  Handle(MoniTool_Option) optrdprec = new MoniTool_Option
     (Interface_Static::Static ("read.precision.mode"),"readprecision.mode");
   optrdprec->AddBasic("default","File");
   optrdprec->AddBasic("Session");
@@ -109,24 +110,24 @@ static TColStd_IndexedMapOfTransient&      mapadapt()
   theProfile->AddOption (optrdprec);
 */
 
-//  Handle(IFSelect_Option) optproto = new IFSelect_Option
+//  Handle(MoniTool_Option) optproto = new MoniTool_Option
 //    (STANDARD_TYPE(Interface_Protocol),"protocol");
 //  theProfile->AddOption (optproto);
 
-  Handle(IFSelect_Option) optsign  = new IFSelect_Option
+  Handle(MoniTool_Option) optsign  = new MoniTool_Option
     (STANDARD_TYPE(IFSelect_Signature),"sign-type");
   optsign->Add ("default",theSignType);
   theProfile->AddOption (optsign);
 
-//  Handle(IFSelect_Option) optwlib  = new IFSelect_Option
+//  Handle(MoniTool_Option) optwlib  = new MoniTool_Option
 //    (STANDARD_TYPE(IFSelect_WorkLibrary),"access");
 //  theProfile->AddOption (optwlib);
 
-  Handle(IFSelect_Option) optactrd = new IFSelect_Option
+  Handle(MoniTool_Option) optactrd = new MoniTool_Option
     (STANDARD_TYPE(Transfer_ActorOfTransientProcess),"tr-read");
   theProfile->AddOption (optactrd);
 
-  Handle(IFSelect_Option) optactwr = new IFSelect_Option
+  Handle(MoniTool_Option) optactwr = new MoniTool_Option
     (STANDARD_TYPE(Transfer_ActorOfFinderProcess),"tr-write");
   theProfile->AddOption (optactwr);
 
@@ -155,7 +156,7 @@ static TColStd_IndexedMapOfTransient&      mapadapt()
   Standard_Boolean deja;
   Handle(Standard_Transient)& newadapt = listadapt()->NewItem (name,deja);
   if (deja) {
-    Handle(Standard_Transient) thisadapt = this;
+    Handle(Standard_Transient) thisadapt (this);
     if (newadapt->IsKind(thisadapt->DynamicType())) 
       {
       }
@@ -177,9 +178,9 @@ static TColStd_IndexedMapOfTransient&      mapadapt()
     Handle(XSControl_Controller)  XSControl_Controller::Recorded
   (const Standard_CString name)
 {
-  Handle(XSControl_Controller) recorded;
+  Handle(Standard_Transient) recorded;
   if (!listadapt()->GetItem (name,recorded)) recorded.Nullify();
-  return recorded;
+  return Handle(XSControl_Controller)::DownCast (recorded);
 }
 
     Handle(TColStd_HSequenceOfHAsciiString)  XSControl_Controller::ListRecorded
@@ -211,7 +212,7 @@ static TColStd_IndexedMapOfTransient&      mapadapt()
 
 //    ####    PROFILE    ####
 
-    Handle(IFSelect_Profile)  XSControl_Controller::Profile () const
+    Handle(MoniTool_Profile)  XSControl_Controller::Profile () const
       {  return theProfile;  }
 
     void  XSControl_Controller::DefineProfile
@@ -226,11 +227,15 @@ static TColStd_IndexedMapOfTransient&      mapadapt()
 {
   if (!theProfile->SetCurrent (confname)) return Standard_False;
 
+  Handle(Standard_Transient) anItem;
 //  theProfile->Value("protocol",theAdaptorProtocol);
-  theProfile->Value("sign-type",theSignType);
+  if (theProfile->Value("sign-type",anItem))
+    theSignType = Handle(IFSelect_Signature)::DownCast (anItem);
 //  theProfile->Value("access",theAdaptorLibrary);
-  theProfile->Value("tr-read",theAdaptorRead);
-  theProfile->Value("tr-write",theAdaptorWrite);
+  if (theProfile->Value("tr-read",anItem))
+    theAdaptorRead = Handle(Transfer_ActorOfTransientProcess)::DownCast (anItem);
+  if (theProfile->Value("tr-write",anItem))
+    theAdaptorWrite = Handle(Transfer_ActorOfFinderProcess)::DownCast (anItem);
 
   return SettingProfile (confname);
 }
@@ -249,21 +254,21 @@ static TColStd_IndexedMapOfTransient&      mapadapt()
   theProfile->SetTypedValues();
 
 //   SignType
-  Handle(IFSelect_Signature) signtype;
+  Handle(Standard_Transient) signtype;
   theProfile->Value ("sign-type",signtype);
-  WS->SetSignType (signtype);
+  WS->SetSignType (Handle(IFSelect_Signature)::DownCast (signtype));
 
 //   ActorRead
 
-  Handle(Transfer_ActorOfTransientProcess) actrd;
+  Handle(Standard_Transient) actrd;
   theProfile->Value ("tr-read",actrd);
-  WS->TransferReader()->SetActor (actrd);
+  WS->TransferReader()->SetActor (Handle(Transfer_ActorOfTransientProcess)::DownCast (actrd));
 
 //   ActorWrite : dans le Controller meme
 
-  Handle(Transfer_ActorOfFinderProcess) actwr;
+  Handle(Standard_Transient) actwr;
   theProfile->Value ("tr-write",actwr);
-  theAdaptorWrite = actwr;
+  theAdaptorWrite = Handle (Transfer_ActorOfFinderProcess)::DownCast (actwr);
 
   return ApplyingProfile (WS,confname);
 }
@@ -557,7 +562,7 @@ static IFSelect_ReturnStatus TransferFinder
 //   Loading Options of the Profile
 
 //   Available Signatures
-  Handle(IFSelect_Option) optsign  = theProfile->Option ("sign-type");
+  Handle(MoniTool_Option) optsign  = theProfile->Option ("sign-type");
 //  Handle(TColStd_HSequenceOfHAsciiString) signs =
 //    WS->ItemNames (STANDARD_TYPE(IFSelect_Signature));
 //  Standard_Integer isign, nbsign = (signs.IsNull() ? 0 : signs->Length());
@@ -570,12 +575,12 @@ static IFSelect_ReturnStatus TransferFinder
   optsign->Switch ("default");  // garder courante la definition par defaut !
 
 //   Actor Read
-  Handle(IFSelect_Option) optacrd  = theProfile->Option ("tr-read");
+  Handle(MoniTool_Option) optacrd  = theProfile->Option ("tr-read");
   optacrd->Add ("default",theAdaptorRead);
   optacrd->Switch ("default");
 
 //   Actor Write
-  Handle(IFSelect_Option) optacwr  = theProfile->Option ("tr-write");
+  Handle(MoniTool_Option) optacwr  = theProfile->Option ("tr-write");
   optacwr->Add ("default",theAdaptorWrite);
   optacwr->Switch ("default");
 
index 1cbb5f9795030339c69d51e3f93b43583f28adaa..727bf053cbfb644e4fc522c1c5ac5779dafb3b5b 100644 (file)
@@ -15,8 +15,8 @@
 
 #include <XSControl.hxx>
 #include <XSControl_Controller.hxx>
-#include <IFSelect_Profile.hxx>
-#include <IFSelect_Option.hxx>
+#include <MoniTool_Profile.hxx>
+#include <MoniTool_Option.hxx>
 #include <MoniTool_TypedValue.hxx>
 #include <Interface_Static.hxx>
 #include <TColStd_HSequenceOfAsciiString.hxx>
@@ -150,7 +150,7 @@ static IFSelect_ReturnStatus XSControl_xprofile(const Handle(IFSelect_SessionPil
   Handle(XSControl_WorkSession) WS = XSControl::Session(pilot);
   Handle(XSControl_Controller) control = WS->NormAdaptor();
   if (control.IsNull()) return IFSelect_RetFail;
-  Handle(IFSelect_Profile) prof = control->Profile();
+  Handle(MoniTool_Profile) prof = control->Profile();
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
   sout<<"Current Profile : "<<prof->Current().ToCString()<<endl;
 
@@ -267,7 +267,7 @@ static IFSelect_ReturnStatus XSControl_xoption(const Handle(IFSelect_SessionPilo
   Handle(XSControl_WorkSession) WS = XSControl::Session(pilot);
   Handle(XSControl_Controller) control = WS->NormAdaptor();
   if (control.IsNull()) return IFSelect_RetFail;
-  Handle(IFSelect_Profile) prof = control->Profile();
+  Handle(MoniTool_Profile) prof = control->Profile();
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
   sout<<"Current Profile : "<<prof->Current().ToCString()<<endl;
 
@@ -285,7 +285,7 @@ static IFSelect_ReturnStatus XSControl_xoption(const Handle(IFSelect_SessionPilo
     sout<<"Total : "<<nbopt<<" Options"<<endl;
     for (iopt = 1; iopt <= nbopt; iopt ++) {
       TCollection_AsciiString optname = optlist->Value(iopt);
-      Handle(IFSelect_Option) opt = prof->Option (optname.ToCString());
+      Handle(MoniTool_Option) opt = prof->Option (optname.ToCString());
       sout<<optname.ToCString()<<" : "<<opt->CaseName()<<endl;
     }
     return IFSelect_RetVoid;
@@ -294,7 +294,7 @@ static IFSelect_ReturnStatus XSControl_xoption(const Handle(IFSelect_SessionPilo
   //  xoption optname : description
 
   if (argc == 2) {
-    Handle(IFSelect_Option) opt = prof->Option (arg1);
+    Handle(MoniTool_Option) opt = prof->Option (arg1);
     if (opt.IsNull()) { sout<<"Not a recorded Option : "<<arg1<<endl; return IFSelect_RetError; }
 
     //  On va lister les valeurs admises
@@ -316,9 +316,9 @@ static IFSelect_ReturnStatus XSControl_xoption(const Handle(IFSelect_SessionPilo
       for (ial = 1; ial <= nbal; ial ++)  sout<<"  "<<aliases->Value(ial);
       if (!tv.IsNull()) {
         //  TypedValue : on peut afficher la valeur
-       Handle(TCollection_HAsciiString) str;
+       Handle(Standard_Transient) str;
        opt->Item (acase.ToCString(),str);
-       if (!str.IsNull()) sout<<" - Value:"<<str->ToCString();
+       if (!str.IsNull()) sout<<" - Value:"<< Handle(TCollection_HAsciiString)::DownCast(str)->ToCString();
       }
 
       sout<<endl;
@@ -332,14 +332,14 @@ static IFSelect_ReturnStatus XSControl_xoption(const Handle(IFSelect_SessionPilo
     Handle(Interface_Static) param = Interface_Static::Static(parname);
     if (param.IsNull()) { sout<<"No static parameter is named "<<parname<<endl;
                          return IFSelect_RetError; }
-    Handle(IFSelect_Option) opt = new IFSelect_Option(param,arg2);
+    Handle(MoniTool_Option) opt = new MoniTool_Option(param,arg2);
     prof->AddOption (opt);
     return IFSelect_RetDone;
   }
 
   //  xoption optname + case [val]
   if (argc >= 4 && arg2[0] == '+' && arg2[1] == '\0') {
-    Handle(IFSelect_Option) opt = prof->Option (arg1);
+    Handle(MoniTool_Option) opt = prof->Option (arg1);
     if (opt.IsNull()) { sout<<"Not a recorded Option : "<<arg1<<endl; return IFSelect_RetError; }
     Handle(MoniTool_TypedValue) tv = opt->TypedValue();
     if (tv.IsNull()) { sout<<"Option not for a Parameter : "<<arg1<<endl; return IFSelect_RetError; }
@@ -353,7 +353,7 @@ static IFSelect_ReturnStatus XSControl_xoption(const Handle(IFSelect_SessionPilo
 
   //  xoption optname newcase : edition
   if (argc == 3) {
-    Handle(IFSelect_Option) opt = prof->Option (arg1);
+    Handle(MoniTool_Option) opt = prof->Option (arg1);
     if (opt.IsNull()) { sout<<"Not a recorded Option : "<<arg1<<endl; return IFSelect_RetError; }
     if (!opt->Switch (arg2)) {
       sout<<"Option : "<<arg1<<" , Not a suitable case : "<<arg2<<endl;
index bf12556efcadb094aa32c2502dd955fe86d2b35a..172f38fe4151e1afc80f9b8bb78fb5e67a88c942 100644 (file)
@@ -14,6 +14,7 @@
 #include <XSControl_TransferWriter.ixx>
 #include <Standard_ErrorHandler.hxx>
 #include <Standard_Failure.hxx>
+#include <Transfer_ActorOfFinderProcess.hxx>
 #include <Transfer_SimpleBinderOfTransient.hxx>
 #include <Transfer_TransientMapper.hxx>
 #include <XSControl_Utils.hxx>
index 5bf025adf7cdfd2a71b23173d8038be545fcf0c4..b36c43cf8c3176a26005ed9bd6f52dce7c5b0805 100644 (file)
@@ -19,7 +19,7 @@
 #include <Interface_HGraph.hxx>
 #include <Interface_Graph.hxx>
 
-#include <IFSelect_Profile.hxx>
+#include <MoniTool_Profile.hxx>
 
 #include <Transfer_TransientProcess.hxx>
 #include <Transfer_ResultFromModel.hxx>
index 084d4c5dcb4e6646e6123b92d51cd89a90f69c77..5b427b8eec7c9dd2bc738b35469ee95d339aa7f4 100644 (file)
@@ -173,7 +173,7 @@ TCollection_ExtendedString XmlLDrivers_DocumentRetrievalDriver::SchemaName() con
 //purpose  : pure virtual method definition
 //=======================================================================
 void XmlLDrivers_DocumentRetrievalDriver::Make (const Handle(PCDM_Document)&,
-                                               const Handle(CDM_Document&))
+                                               const Handle(CDM_Document)&)
 {
 }
 
index 0cd7dae5013af9d006179871ed5e250582af34b1..f561ddfda867ada150c3560e29ec8983bb4b03c1 100644 (file)
@@ -61,7 +61,7 @@ IMPLEMENT_DOMSTRING (EvolReplaceString,   "replace")
 //=======================================================================
 
 XmlMNaming_NamedShapeDriver::XmlMNaming_NamedShapeDriver
-                        (const Handle(CDM_MessageDriver&) theMessageDriver)
+                        (const Handle(CDM_MessageDriver)& theMessageDriver)
      : XmlMDF_ADriver (theMessageDriver, NULL),
   myShapeSet (Standard_False) // triangles mode
 {}
index b8ce4e6c8674239a78b70a6cff9d9b7d32bb647d..bdff10f1f0156c4e914d619877fb79a478e9f51e 100644 (file)
 #include <XmlLDrivers.hxx>
 #include <XmlTObjDrivers.hxx>
 
-IMPLEMENT_STANDARD_HANDLE (XmlTObjDrivers_DocumentRetrievalDriver,
-                           XmlLDrivers_DocumentRetrievalDriver)
-IMPLEMENT_STANDARD_RTTIEXT(XmlTObjDrivers_DocumentRetrievalDriver,
-                           XmlLDrivers_DocumentRetrievalDriver)
-
 //=======================================================================
 //function : XmlTObjDrivers_DocumentRetrievalDriver
 //purpose  : 
index 7446b843e1af03da1dfaa44e57461d3a63fd9933..f4dc39ed6cf6d6b111ceb71dfdf6d0c72e52aff9 100644 (file)
 #include <XmlLDrivers.hxx>
 #include <XmlTObjDrivers.hxx>
 
-IMPLEMENT_STANDARD_HANDLE (XmlTObjDrivers_DocumentStorageDriver,
-                           XmlLDrivers_DocumentStorageDriver)
-IMPLEMENT_STANDARD_RTTIEXT(XmlTObjDrivers_DocumentStorageDriver,
-                           XmlLDrivers_DocumentStorageDriver)
-
 //=======================================================================
 //function : XmlTObjDrivers_DocumentStorageDriver
 //purpose  :