b311480e |
1 | // Created on: 2009-04-06 |
2 | // Created by: Sergey ZARITCHNY |
3 | // Copyright (c) 2009-2012 OPEN CASCADE SAS |
4 | // |
5 | // The content of this file is subject to the Open CASCADE Technology Public |
6 | // License Version 6.5 (the "License"). You may not use the content of this file |
7 | // except in compliance with the License. Please obtain a copy of the License |
8 | // at http://www.opencascade.org and read it completely before using this file. |
9 | // |
10 | // The Initial Developer of the Original Code is Open CASCADE S.A.S., having its |
11 | // main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. |
12 | // |
13 | // The Original Code and all software distributed under the License is |
14 | // distributed on an "AS IS" basis, without warranty of any kind, and the |
15 | // Initial Developer hereby disclaims all such warranties, including without |
16 | // limitation, any warranties of merchantability, fitness for a particular |
17 | // purpose or non-infringement. Please see the License for the specific terms |
18 | // and conditions governing the rights and limitations under the License. |
19 | |
7fd59977 |
20 | |
21 | |
22 | #include <TDataXtd_Placement.ixx> |
23 | //======================================================================= |
24 | //function : GetID |
25 | //purpose : |
26 | //======================================================================= |
27 | |
28 | const Standard_GUID& TDataXtd_Placement::GetID () |
29 | { |
30 | static Standard_GUID TDataXtd_PlacementID ("2a96b60b-ec8b-11d0-bee7-080009dc3333"); |
31 | return TDataXtd_PlacementID; |
32 | } |
33 | |
34 | |
35 | //======================================================================= |
36 | //function : Set |
37 | //purpose : |
38 | //======================================================================= |
39 | |
40 | Handle(TDataXtd_Placement) TDataXtd_Placement::Set (const TDF_Label& L) |
41 | { |
42 | Handle (TDataXtd_Placement) A; |
43 | if (!L.FindAttribute (TDataXtd_Placement::GetID (), A)) { |
44 | A = new TDataXtd_Placement (); |
45 | L.AddAttribute(A); |
46 | } |
47 | return A; |
48 | } |
49 | |
50 | |
51 | //======================================================================= |
52 | //function : TDataXtd_Placement |
53 | //purpose : |
54 | //======================================================================= |
55 | |
56 | TDataXtd_Placement::TDataXtd_Placement () { } |
57 | |
58 | |
59 | |
60 | //======================================================================= |
61 | //function : ID |
62 | //purpose : |
63 | //======================================================================= |
64 | |
65 | const Standard_GUID& TDataXtd_Placement::ID () const { return GetID(); } |
66 | |
67 | |
68 | //======================================================================= |
69 | //function : NewEmpty |
70 | //purpose : |
71 | //======================================================================= |
72 | |
73 | Handle(TDF_Attribute) TDataXtd_Placement::NewEmpty() const |
74 | { |
75 | return new TDataXtd_Placement(); |
76 | } |
77 | |
78 | |
79 | //======================================================================= |
80 | //function : Restore |
81 | //purpose : |
82 | //======================================================================= |
83 | |
35e08fe8 |
84 | void TDataXtd_Placement::Restore (const Handle(TDF_Attribute)&) |
7fd59977 |
85 | { |
86 | |
87 | } |
88 | |
89 | //======================================================================= |
90 | //function : Paste |
91 | //purpose : |
92 | //======================================================================= |
93 | |
35e08fe8 |
94 | void TDataXtd_Placement::Paste(const Handle(TDF_Attribute)&, |
95 | const Handle(TDF_RelocationTable)&) const |
7fd59977 |
96 | { |
97 | |
98 | } |
99 | |
7fd59977 |
100 | //======================================================================= |
101 | //function : Dump |
102 | //purpose : |
103 | //======================================================================= |
104 | |
105 | Standard_OStream& TDataXtd_Placement::Dump (Standard_OStream& anOS) const |
106 | { |
107 | anOS << "Placement"; |
108 | return anOS; |
109 | } |