1 // Created on: 2009-04-06
2 // Created by: Sergey ZARITCHNY
3 // Copyright (c) 2009-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.
17 #include <Standard_GUID.hxx>
18 #include <Standard_Type.hxx>
19 #include <TDataXtd_Placement.hxx>
20 #include <TDF_Attribute.hxx>
21 #include <TDF_Label.hxx>
22 #include <TDF_RelocationTable.hxx>
24 IMPLEMENT_STANDARD_RTTIEXT(TDataXtd_Placement,TDF_Attribute)
26 //=======================================================================
29 //=======================================================================
30 const Standard_GUID& TDataXtd_Placement::GetID ()
32 static Standard_GUID TDataXtd_PlacementID ("2a96b60b-ec8b-11d0-bee7-080009dc3333");
33 return TDataXtd_PlacementID;
37 //=======================================================================
40 //=======================================================================
42 Handle(TDataXtd_Placement) TDataXtd_Placement::Set (const TDF_Label& L)
44 Handle (TDataXtd_Placement) A;
45 if (!L.FindAttribute (TDataXtd_Placement::GetID (), A)) {
46 A = new TDataXtd_Placement ();
53 //=======================================================================
54 //function : TDataXtd_Placement
56 //=======================================================================
58 TDataXtd_Placement::TDataXtd_Placement () { }
62 //=======================================================================
65 //=======================================================================
67 const Standard_GUID& TDataXtd_Placement::ID () const { return GetID(); }
70 //=======================================================================
73 //=======================================================================
75 Handle(TDF_Attribute) TDataXtd_Placement::NewEmpty() const
77 return new TDataXtd_Placement();
81 //=======================================================================
84 //=======================================================================
86 void TDataXtd_Placement::Restore (const Handle(TDF_Attribute)&)
91 //=======================================================================
94 //=======================================================================
96 void TDataXtd_Placement::Paste(const Handle(TDF_Attribute)&,
97 const Handle(TDF_RelocationTable)&) const
102 //=======================================================================
105 //=======================================================================
107 Standard_OStream& TDataXtd_Placement::Dump (Standard_OStream& anOS) const