1 // Created on: 2001-09-14
2 // Created by: Alexander GRIGORIEV
3 // Copyright (c) 2001-2014 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 #ifndef _XmlMNaming_Shape1_HeaderFile
17 #define _XmlMNaming_Shape1_HeaderFile
19 #include <Standard.hxx>
20 #include <Standard_DefineAlloc.hxx>
21 #include <Standard_Handle.hxx>
23 #include <XmlObjMgt_Element.hxx>
24 #include <Standard_Integer.hxx>
25 #include <TopAbs_Orientation.hxx>
26 #include <XmlObjMgt_Document.hxx>
30 //! The XmlMNaming_Shape1 is the Persistent view of a TopoDS_Shape.
32 //! a Shape1 contains :
33 //! - a reference to a TShape
34 //! - a reference to Location
36 class XmlMNaming_Shape1
43 Standard_EXPORT XmlMNaming_Shape1(XmlObjMgt_Document& Doc);
45 Standard_EXPORT XmlMNaming_Shape1(const XmlObjMgt_Element& E);
48 Standard_EXPORT const XmlObjMgt_Element& Element() const;
51 Standard_EXPORT XmlObjMgt_Element& Element();
53 Standard_EXPORT Standard_Integer TShapeId() const;
55 Standard_EXPORT Standard_Integer LocId() const;
57 Standard_EXPORT TopAbs_Orientation Orientation() const;
59 Standard_EXPORT void SetShape (const Standard_Integer ID, const Standard_Integer LocID, const TopAbs_Orientation Orient);
61 Standard_EXPORT void SetVertex (const TopoDS_Shape& theVertex);
76 XmlObjMgt_Element myElement;
77 Standard_Integer myTShapeID;
78 Standard_Integer myLocID;
79 TopAbs_Orientation myOrientation;
90 #endif // _XmlMNaming_Shape1_HeaderFile