2 // File : SALOMEDS_TextHighlightColorAttribute.cxx
3 // Created : Wed Nov 28 16:09:35 2001
4 // Author : Yves FRICAUD
7 // Copyright : Open CASCADE 2001
10 #include "SALOMEDS_TextHighlightColorAttribute.ixx"
12 //=======================================================================
15 //=======================================================================
17 const Standard_GUID& SALOMEDS_TextHighlightColorAttribute::GetID ()
19 static Standard_GUID SALOMEDS_TextHighlightColorAttributeID ("12837190-8F52-11d6-A8A3-0001021E8C7F");
20 return SALOMEDS_TextHighlightColorAttributeID;
25 //=======================================================================
26 //function : constructor
28 //=======================================================================
29 SALOMEDS_TextHighlightColorAttribute::SALOMEDS_TextHighlightColorAttribute()
32 //=======================================================================
35 //=======================================================================
37 const Standard_GUID& SALOMEDS_TextHighlightColorAttribute::ID () const { return GetID(); }
40 //=======================================================================
43 //=======================================================================
45 Handle(TDF_Attribute) SALOMEDS_TextHighlightColorAttribute::NewEmpty () const
47 return new SALOMEDS_TextHighlightColorAttribute();
50 //=======================================================================
53 //=======================================================================
55 void SALOMEDS_TextHighlightColorAttribute::Restore(const Handle(TDF_Attribute)& with)
57 Handle(TColStd_HArray1OfReal) s = Handle(TDataStd_RealArray)::DownCast (with)->Array ();
58 TDataStd_RealArray::ChangeArray(s);
62 //=======================================================================
65 //=======================================================================
67 void SALOMEDS_TextHighlightColorAttribute::Paste (const Handle(TDF_Attribute)& into,
68 const Handle(TDF_RelocationTable)& ) const
70 Handle(TDataStd_RealArray)::DownCast (into)->ChangeArray (Array());