Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:05:23

0001 // Created on: 1995-03-17
0002 // Created by: Dieter THIEMANN
0003 // Copyright (c) 1995-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _TopoDSToStep_WireframeBuilder_HeaderFile
0018 #define _TopoDSToStep_WireframeBuilder_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <TColStd_HSequenceOfTransient.hxx>
0025 #include <TopoDSToStep_BuilderError.hxx>
0026 #include <TopoDSToStep_Root.hxx>
0027 #include <MoniTool_DataMapOfShapeTransient.hxx>
0028 class StepData_Factors;
0029 class TopoDS_Shape;
0030 class TopoDSToStep_Tool;
0031 class Transfer_FinderProcess;
0032 class TopoDS_Edge;
0033 class TopoDS_Face;
0034 
0035 
0036 //! This builder Class provides services to build
0037 //! a ProSTEP Wireframemodel from a Cas.Cad BRep.
0038 class TopoDSToStep_WireframeBuilder  : public TopoDSToStep_Root
0039 {
0040 public:
0041 
0042   DEFINE_STANDARD_ALLOC
0043 
0044   
0045   Standard_EXPORT TopoDSToStep_WireframeBuilder();
0046   
0047   Standard_EXPORT TopoDSToStep_WireframeBuilder(const TopoDS_Shape& S,
0048                                                 TopoDSToStep_Tool& T,
0049                                                 const StepData_Factors& theLocalFactors);
0050   
0051   Standard_EXPORT void Init (const TopoDS_Shape& S,
0052                              TopoDSToStep_Tool& T,
0053                              const StepData_Factors& theLocalFactors);
0054   
0055   Standard_EXPORT TopoDSToStep_BuilderError Error() const;
0056   
0057   Standard_EXPORT const Handle(TColStd_HSequenceOfTransient)& Value() const;
0058   
0059   //! Extraction of Trimmed Curves from TopoDS_Edge for the
0060   //! Creation of a GeometricallyBoundedWireframeRepresentation
0061   Standard_EXPORT Standard_Boolean GetTrimmedCurveFromEdge (const TopoDS_Edge& E,
0062                                                             const TopoDS_Face& F,
0063                                                             MoniTool_DataMapOfShapeTransient& M,
0064                                                             Handle(TColStd_HSequenceOfTransient)& L,
0065                                                             const StepData_Factors& theLocalFactors) const;
0066   
0067   //! Extraction of Trimmed Curves from TopoDS_Face for the
0068   //! Creation of a GeometricallyBoundedWireframeRepresentation
0069   Standard_EXPORT Standard_Boolean GetTrimmedCurveFromFace (const TopoDS_Face& F,
0070                                                             MoniTool_DataMapOfShapeTransient& M,
0071                                                             Handle(TColStd_HSequenceOfTransient)& L,
0072                                                             const StepData_Factors& theLocalFactors) const;
0073   
0074   //! Extraction of Trimmed Curves from any TopoDS_Shape for the
0075   //! Creation of a GeometricallyBoundedWireframeRepresentation
0076   Standard_EXPORT Standard_Boolean GetTrimmedCurveFromShape (const TopoDS_Shape& S,
0077                                                              MoniTool_DataMapOfShapeTransient& M,
0078                                                              Handle(TColStd_HSequenceOfTransient)& L,
0079                                                              const StepData_Factors& theLocalFactors) const;
0080 
0081 
0082 
0083 
0084 protected:
0085 
0086 
0087 
0088 
0089 
0090 private:
0091 
0092 
0093 
0094   Handle(TColStd_HSequenceOfTransient) myResult;
0095   TopoDSToStep_BuilderError myError;
0096 
0097 
0098 };
0099 
0100 
0101 
0102 
0103 
0104 
0105 
0106 #endif // _TopoDSToStep_WireframeBuilder_HeaderFile