// Created on: 1995-03-17 // Created by: Dieter THIEMANN // Copyright (c) 1995-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 _TopoDSToStep_WireframeBuilder_HeaderFile #define _TopoDSToStep_WireframeBuilder_HeaderFile #include #include #include #include #include #include #include #include class StdFail_NotDone; class TopoDS_Shape; class TopoDSToStep_Tool; class Transfer_FinderProcess; class TopoDS_Edge; class TopoDS_Face; //! This builder Class provides services to build //! a ProSTEP Wireframemodel from a Cas.Cad BRep. class TopoDSToStep_WireframeBuilder : public TopoDSToStep_Root { public: DEFINE_STANDARD_ALLOC Standard_EXPORT TopoDSToStep_WireframeBuilder(); Standard_EXPORT TopoDSToStep_WireframeBuilder(const TopoDS_Shape& S, TopoDSToStep_Tool& T, const Handle(Transfer_FinderProcess)& FP); Standard_EXPORT void Init (const TopoDS_Shape& S, TopoDSToStep_Tool& T, const Handle(Transfer_FinderProcess)& FP); Standard_EXPORT TopoDSToStep_BuilderError Error() const; Standard_EXPORT const Handle(TColStd_HSequenceOfTransient)& Value() const; //! Extraction of Trimmed Curves from TopoDS_Edge for the //! Creation of a GeometricallyBoundedWireframeRepresentation Standard_EXPORT Standard_Boolean GetTrimmedCurveFromEdge (const TopoDS_Edge& E, const TopoDS_Face& F, MoniTool_DataMapOfShapeTransient& M, Handle(TColStd_HSequenceOfTransient)& L) const; //! Extraction of Trimmed Curves from TopoDS_Face for the //! Creation of a GeometricallyBoundedWireframeRepresentation Standard_EXPORT Standard_Boolean GetTrimmedCurveFromFace (const TopoDS_Face& F, MoniTool_DataMapOfShapeTransient& M, Handle(TColStd_HSequenceOfTransient)& L) const; //! Extraction of Trimmed Curves from any TopoDS_Shape for the //! Creation of a GeometricallyBoundedWireframeRepresentation Standard_EXPORT Standard_Boolean GetTrimmedCurveFromShape (const TopoDS_Shape& S, MoniTool_DataMapOfShapeTransient& M, Handle(TColStd_HSequenceOfTransient)& L) const; protected: private: Handle(TColStd_HSequenceOfTransient) myResult; TopoDSToStep_BuilderError myError; }; #endif // _TopoDSToStep_WireframeBuilder_HeaderFile