mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
Useless writes of intermediate shapes to hardcoded paths are removed in samples\mfc\standard\02_Modeling\src\ModelingDoc.cpp Methods IGESBRep::WriteShape(), XSControl_Utils::WriteShape() are deleted; BRepTools::Write() can be used instead. Method TopOpeBRepBuild_Tools::DumpMapOfShapeWithState() is moved to where it is used -- TopOpeBRepBuild_Builder1_1.cxx as static function (commented out). Unused DRAW command OCC18612 is removed. Upgrade Guide is corrected to avoid Doxygen warnings.
107 lines
3.8 KiB
C++
107 lines
3.8 KiB
C++
// Created on: 1994-03-22
|
|
// Created by: Frederic UNTEREINER
|
|
// Copyright (c) 1994-1999 Matra Datavision
|
|
// Copyright (c) 1999-2014 OPEN CASCADE SAS
|
|
//
|
|
// This file is part of Open CASCADE Technology software library.
|
|
//
|
|
// This library is free software; you can redistribute it and/or modify it under
|
|
// the terms of the GNU Lesser General Public License version 2.1 as published
|
|
// by the Free Software Foundation, with special exception defined in the file
|
|
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
|
// distribution for complete text of the license and disclaimer of any warranty.
|
|
//
|
|
// Alternatively, this file may be used under the terms of Open CASCADE
|
|
// commercial license or contractual agreement.
|
|
|
|
#ifndef _IGESToBRep_HeaderFile
|
|
#define _IGESToBRep_HeaderFile
|
|
|
|
#include <Standard.hxx>
|
|
#include <Standard_DefineAlloc.hxx>
|
|
#include <Standard_Handle.hxx>
|
|
|
|
#include <Standard_Boolean.hxx>
|
|
#include <Standard_Integer.hxx>
|
|
#include <TColStd_HSequenceOfTransient.hxx>
|
|
class IGESToBRep_AlgoContainer;
|
|
class IGESData_IGESEntity;
|
|
class TopoDS_Shape;
|
|
class TopoDS_Edge;
|
|
class TopoDS_Face;
|
|
class IGESToBRep_CurveAndSurface;
|
|
class IGESToBRep_BasicSurface;
|
|
class IGESToBRep_BasicCurve;
|
|
class IGESToBRep_TopoSurface;
|
|
class IGESToBRep_TopoCurve;
|
|
class IGESToBRep_BRepEntity;
|
|
class IGESToBRep_IGESBoundary;
|
|
class IGESToBRep_Reader;
|
|
class IGESToBRep_Actor;
|
|
class IGESToBRep_AlgoContainer;
|
|
class IGESToBRep_ToolContainer;
|
|
|
|
|
|
//! Provides tools in order to transfer IGES entities
|
|
//! to CAS.CADE.
|
|
class IGESToBRep
|
|
{
|
|
public:
|
|
|
|
DEFINE_STANDARD_ALLOC
|
|
|
|
|
|
//! Creates and initializes default AlgoContainer.
|
|
Standard_EXPORT static void Init();
|
|
|
|
//! Sets default AlgoContainer
|
|
Standard_EXPORT static void SetAlgoContainer (const Handle(IGESToBRep_AlgoContainer)& aContainer);
|
|
|
|
//! Returns default AlgoContainer
|
|
Standard_EXPORT static Handle(IGESToBRep_AlgoContainer) AlgoContainer();
|
|
|
|
//! Return True if the IGESEntity can be transfered by
|
|
//! TransferCurveAndSurface.
|
|
//! ex: All IGESEntity from IGESGeom
|
|
Standard_EXPORT static Standard_Boolean IsCurveAndSurface (const Handle(IGESData_IGESEntity)& start);
|
|
|
|
//! Return True if the IGESEntity can be transfered by
|
|
//! TransferBasicCurve.
|
|
//! ex: CircularArc, ConicArc, Line, CopiousData,
|
|
//! BSplineCurve, SplineCurve... from IGESGeom :
|
|
//! 104,110,112,126
|
|
Standard_EXPORT static Standard_Boolean IsBasicCurve (const Handle(IGESData_IGESEntity)& start);
|
|
|
|
//! Return True if the IGESEntity can be transfered by
|
|
//! TransferBasicSurface.
|
|
//! ex: BSplineSurface, SplineSurface... from IGESGeom :
|
|
//! 114,128
|
|
Standard_EXPORT static Standard_Boolean IsBasicSurface (const Handle(IGESData_IGESEntity)& start);
|
|
|
|
//! Return True if the IGESEntity can be transfered by
|
|
//! TransferTopoCurve.
|
|
//! ex: all Curves from IGESGeom :
|
|
//! all basic curves,102,130,142,144
|
|
Standard_EXPORT static Standard_Boolean IsTopoCurve (const Handle(IGESData_IGESEntity)& start);
|
|
|
|
//! Return True if the IGESEntity can be transfered by
|
|
//! TransferTopoSurface.
|
|
//! ex: All Surfaces from IGESGeom :
|
|
//! all basic surfaces,108,118,120,122,141,143
|
|
Standard_EXPORT static Standard_Boolean IsTopoSurface (const Handle(IGESData_IGESEntity)& start);
|
|
|
|
//! Return True if the IGESEntity can be transfered by
|
|
//! TransferBRepEntity.
|
|
//! ex: VertexList, EdgeList, Loop, Face, Shell,
|
|
//! Manifold Solid BRep Object from IGESSolid :
|
|
//! 502, 504, 508, 510, 514, 186.
|
|
Standard_EXPORT static Standard_Boolean IsBRepEntity (const Handle(IGESData_IGESEntity)& start);
|
|
|
|
Standard_EXPORT static Standard_Integer IGESCurveToSequenceOfIGESCurve (const Handle(IGESData_IGESEntity)& curve, Handle(TColStd_HSequenceOfTransient)& sequence);
|
|
|
|
Standard_EXPORT static Standard_Boolean TransferPCurve (const TopoDS_Edge& fromedge, const TopoDS_Edge& toedge, const TopoDS_Face& face);
|
|
|
|
};
|
|
|
|
#endif // _IGESToBRep_HeaderFile
|