2 // File : SALOMEDS_TextColorAttribute.cxx
3 // Created : Wed Nov 28 16:09:35 2001
4 // Author : Yves FRICAUD
7 // Copyright : Open CASCADE 2001
10 #include "SALOMEDS_TextColorAttribute.ixx"
12 //=======================================================================
15 //=======================================================================
17 const Standard_GUID& SALOMEDS_TextColorAttribute::GetID ()
19 static Standard_GUID SALOMEDS_TextColorAttributeID ("12837189-8F52-11d6-A8A3-0001021E8C7F");
20 return SALOMEDS_TextColorAttributeID;
26 //=======================================================================
27 //function : constructor
29 //=======================================================================
30 SALOMEDS_TextColorAttribute::SALOMEDS_TextColorAttribute()
33 //=======================================================================
36 //=======================================================================
38 const Standard_GUID& SALOMEDS_TextColorAttribute::ID () const { return GetID(); }
41 //=======================================================================
44 //=======================================================================
46 Handle(TDF_Attribute) SALOMEDS_TextColorAttribute::NewEmpty () const
48 return new SALOMEDS_TextColorAttribute();
51 //=======================================================================
54 //=======================================================================
56 void SALOMEDS_TextColorAttribute::Restore(const Handle(TDF_Attribute)& with)
58 Handle(TColStd_HArray1OfReal) s = Handle(TDataStd_RealArray)::DownCast (with)->Array ();
59 TDataStd_RealArray::ChangeArray(s);
63 //=======================================================================
66 //=======================================================================
68 void SALOMEDS_TextColorAttribute::Paste (const Handle(TDF_Attribute)& into,
69 const Handle(TDF_RelocationTable)& RT) const
71 Handle(TDataStd_RealArray)::DownCast (into)->ChangeArray (Array());