Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-15 09:17:42

0001 // Created on: 2001-09-14
0002 // Created by: Alexander GRIGORIEV
0003 // Copyright (c) 2001-2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 #ifndef _XmlMNaming_Shape1_HeaderFile
0017 #define _XmlMNaming_Shape1_HeaderFile
0018 
0019 #include <Standard.hxx>
0020 #include <Standard_DefineAlloc.hxx>
0021 
0022 #include <XmlObjMgt_Element.hxx>
0023 #include <TopAbs_Orientation.hxx>
0024 #include <XmlObjMgt_Document.hxx>
0025 class TopoDS_Shape;
0026 
0027 //! The XmlMNaming_Shape1 is the Persistent view of a TopoDS_Shape.
0028 //!
0029 //! Shape1 contains:
0030 //! - a reference to a TShape
0031 //! - a reference to Location
0032 //! - an Orientation.
0033 class XmlMNaming_Shape1
0034 {
0035 public:
0036   DEFINE_STANDARD_ALLOC
0037 
0038   Standard_EXPORT XmlMNaming_Shape1(XmlObjMgt_Document& Doc);
0039 
0040   Standard_EXPORT XmlMNaming_Shape1(const XmlObjMgt_Element& E);
0041 
0042   //! return myElement
0043   Standard_EXPORT const XmlObjMgt_Element& Element() const;
0044 
0045   //! return myElement
0046   Standard_EXPORT XmlObjMgt_Element& Element();
0047 
0048   Standard_EXPORT int TShapeId() const;
0049 
0050   Standard_EXPORT int LocId() const;
0051 
0052   Standard_EXPORT TopAbs_Orientation Orientation() const;
0053 
0054   Standard_EXPORT void SetShape(const int ID, const int LocID, const TopAbs_Orientation Orient);
0055 
0056   Standard_EXPORT void SetVertex(const TopoDS_Shape& theVertex);
0057 
0058 private:
0059   XmlObjMgt_Element  myElement;
0060   int                myTShapeID;
0061   int                myLocID;
0062   TopAbs_Orientation myOrientation;
0063 };
0064 
0065 #endif // _XmlMNaming_Shape1_HeaderFile