Salome HOME
Initialisation de la base KERNEL avec la version operationnelle de KERNEL_SRC issue...
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_TextHighlightColorAttribute.cxx
1 using namespace std;
2 //  File      : SALOMEDS_TextHighlightColorAttribute.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_TextHighlightColorAttribute.ixx"
11
12 //=======================================================================
13 //function : GetID
14 //purpose  : 
15 //=======================================================================
16
17 const Standard_GUID& SALOMEDS_TextHighlightColorAttribute::GetID () 
18 {
19   static Standard_GUID SALOMEDS_TextHighlightColorAttributeID ("12837190-8F52-11d6-A8A3-0001021E8C7F");
20   return SALOMEDS_TextHighlightColorAttributeID;
21 }
22
23
24
25 //=======================================================================
26 //function : constructor
27 //purpose  : 
28 //=======================================================================
29 SALOMEDS_TextHighlightColorAttribute::SALOMEDS_TextHighlightColorAttribute()
30 {Init(1,3);}
31
32 //=======================================================================
33 //function : ID
34 //purpose  : 
35 //=======================================================================
36
37 const Standard_GUID& SALOMEDS_TextHighlightColorAttribute::ID () const { return GetID(); }
38
39
40 //=======================================================================
41 //function : NewEmpty
42 //purpose  : 
43 //=======================================================================
44
45 Handle(TDF_Attribute) SALOMEDS_TextHighlightColorAttribute::NewEmpty () const
46 {  
47   return new SALOMEDS_TextHighlightColorAttribute(); 
48 }
49
50 //=======================================================================
51 //function : Restore
52 //purpose  : 
53 //=======================================================================
54
55 void SALOMEDS_TextHighlightColorAttribute::Restore(const Handle(TDF_Attribute)& with) 
56 {
57   Handle(TColStd_HArray1OfReal) s = Handle(TDataStd_RealArray)::DownCast (with)->Array ();
58   TDataStd_RealArray::ChangeArray(s);
59   return;
60 }
61
62 //=======================================================================
63 //function : Paste
64 //purpose  : 
65 //=======================================================================
66
67 void SALOMEDS_TextHighlightColorAttribute::Paste (const Handle(TDF_Attribute)& into,
68                                                   const Handle(TDF_RelocationTable)& ) const
69 {
70   Handle(TDataStd_RealArray)::DownCast (into)->ChangeArray (Array());
71 }
72