Salome HOME
NRI : Temporary modification for reading catalog of modules.
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_TextColorAttribute.cxx
1 using namespace std;
2 //  File      : SALOMEDS_TextColorAttribute.cxx
3 //  Created   : Wed Nov 28 16:09:35 2001
4 //  Author    : Yves FRICAUD
5 //  Project   : SALOME
6 //  Module    : SALOMEDS
7 //  Copyright : Open CASCADE 2001
8 //  $Header: 
9
10 #include "SALOMEDS_TextColorAttribute.ixx"
11
12 //=======================================================================
13 //function : GetID
14 //purpose  : 
15 //=======================================================================
16
17 const Standard_GUID& SALOMEDS_TextColorAttribute::GetID () 
18 {
19   static Standard_GUID SALOMEDS_TextColorAttributeID ("12837189-8F52-11d6-A8A3-0001021E8C7F");
20   return SALOMEDS_TextColorAttributeID;
21 }
22
23
24
25
26 //=======================================================================
27 //function : constructor
28 //purpose  : 
29 //=======================================================================
30 SALOMEDS_TextColorAttribute::SALOMEDS_TextColorAttribute()
31 {Init(1,3);}
32
33 //=======================================================================
34 //function : ID
35 //purpose  : 
36 //=======================================================================
37
38 const Standard_GUID& SALOMEDS_TextColorAttribute::ID () const { return GetID(); }
39
40
41 //=======================================================================
42 //function : NewEmpty
43 //purpose  : 
44 //=======================================================================
45
46 Handle(TDF_Attribute) SALOMEDS_TextColorAttribute::NewEmpty () const
47 {  
48   return new SALOMEDS_TextColorAttribute(); 
49 }
50
51 //=======================================================================
52 //function : Restore
53 //purpose  : 
54 //=======================================================================
55
56 void SALOMEDS_TextColorAttribute::Restore(const Handle(TDF_Attribute)& with) 
57 {
58   Handle(TColStd_HArray1OfReal) s = Handle(TDataStd_RealArray)::DownCast (with)->Array ();
59   TDataStd_RealArray::ChangeArray(s);
60   return;
61 }
62
63 //=======================================================================
64 //function : Paste
65 //purpose  : 
66 //=======================================================================
67
68 void SALOMEDS_TextColorAttribute::Paste (const Handle(TDF_Attribute)& into,
69                                     const Handle(TDF_RelocationTable)& RT) const
70 {
71   Handle(TDataStd_RealArray)::DownCast (into)->ChangeArray (Array());
72 }
73