Back to home page

EIC code displayed by LXR

 
 

    


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

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 
0028 //! The XmlMNaming_Shape1 is the Persistent view of a TopoDS_Shape.
0029 //!
0030 //! a  Shape1 contains :
0031 //! - a reference to a TShape
0032 //! - a reference to Location
0033 //! - an Orientation.
0034 class XmlMNaming_Shape1 
0035 {
0036 public:
0037 
0038   DEFINE_STANDARD_ALLOC
0039 
0040   
0041   Standard_EXPORT XmlMNaming_Shape1(XmlObjMgt_Document& Doc);
0042   
0043   Standard_EXPORT XmlMNaming_Shape1(const XmlObjMgt_Element& E);
0044   
0045   //! return myElement
0046   Standard_EXPORT const XmlObjMgt_Element& Element() const;
0047   
0048   //! return myElement
0049   Standard_EXPORT XmlObjMgt_Element& Element();
0050   
0051   Standard_EXPORT Standard_Integer TShapeId() const;
0052   
0053   Standard_EXPORT Standard_Integer LocId() const;
0054   
0055   Standard_EXPORT TopAbs_Orientation Orientation() const;
0056   
0057   Standard_EXPORT void SetShape (const Standard_Integer ID, const Standard_Integer LocID, const TopAbs_Orientation Orient);
0058   
0059   Standard_EXPORT void SetVertex (const TopoDS_Shape& theVertex);
0060 
0061 
0062 
0063 
0064 protected:
0065 
0066 
0067 
0068 
0069 
0070 private:
0071 
0072 
0073 
0074   XmlObjMgt_Element myElement;
0075   Standard_Integer myTShapeID;
0076   Standard_Integer myLocID;
0077   TopAbs_Orientation myOrientation;
0078 
0079 
0080 };
0081 
0082 
0083 
0084 
0085 
0086 
0087 
0088 #endif // _XmlMNaming_Shape1_HeaderFile