0031687: Draw Harness, ViewerTest - extend command vrenderparams with option updating...
[occt.git] / src / XmlMNaming / XmlMNaming_Shape1.hxx
1 // Created on: 2001-09-14
2 // Created by: Alexander GRIGORIEV
3 // Copyright (c) 2001-2014 OPEN CASCADE SAS
4 //
5 // This file is part of Open CASCADE Technology software library.
6 //
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.
12 //
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
15
16 #ifndef _XmlMNaming_Shape1_HeaderFile
17 #define _XmlMNaming_Shape1_HeaderFile
18
19 #include <Standard.hxx>
20 #include <Standard_DefineAlloc.hxx>
21 #include <Standard_Handle.hxx>
22
23 #include <XmlObjMgt_Element.hxx>
24 #include <Standard_Integer.hxx>
25 #include <TopAbs_Orientation.hxx>
26 #include <XmlObjMgt_Document.hxx>
27 class TopoDS_Shape;
28
29
30 //! The XmlMNaming_Shape1 is the Persistent view of a TopoDS_Shape.
31 //!
32 //! a  Shape1 contains :
33 //! - a reference to a TShape
34 //! - a reference to Location
35 //! - an Orientation.
36 class XmlMNaming_Shape1 
37 {
38 public:
39
40   DEFINE_STANDARD_ALLOC
41
42   
43   Standard_EXPORT XmlMNaming_Shape1(XmlObjMgt_Document& Doc);
44   
45   Standard_EXPORT XmlMNaming_Shape1(const XmlObjMgt_Element& E);
46   
47   //! return myElement
48   Standard_EXPORT const XmlObjMgt_Element& Element() const;
49   
50   //! return myElement
51   Standard_EXPORT XmlObjMgt_Element& Element();
52   
53   Standard_EXPORT Standard_Integer TShapeId() const;
54   
55   Standard_EXPORT Standard_Integer LocId() const;
56   
57   Standard_EXPORT TopAbs_Orientation Orientation() const;
58   
59   Standard_EXPORT void SetShape (const Standard_Integer ID, const Standard_Integer LocID, const TopAbs_Orientation Orient);
60   
61   Standard_EXPORT void SetVertex (const TopoDS_Shape& theVertex);
62
63
64
65
66 protected:
67
68
69
70
71
72 private:
73
74
75
76   XmlObjMgt_Element myElement;
77   Standard_Integer myTShapeID;
78   Standard_Integer myLocID;
79   TopAbs_Orientation myOrientation;
80
81
82 };
83
84
85
86
87
88
89
90 #endif // _XmlMNaming_Shape1_HeaderFile