1 // File : SALOMEDSImpl_AttributeTextColor.hxx
2 // Author : Sergey RUIN
5 #ifndef _SALOMEDSImpl_AttributeTextColor_HeaderFile
6 #define _SALOMEDSImpl_AttributeTextColor_HeaderFile
8 #include <Standard_DefineHandle.hxx>
9 #include <TDF_Attribute.hxx>
10 #include <TColStd_HArray1OfReal.hxx>
11 #include <TDF_Label.hxx>
12 #include <TCollection_AsciiString.hxx>
13 #include "SALOMEDSImpl_GenericAttribute.hxx"
16 class Handle(TDF_Attribute);
17 class Handle(TDF_RelocationTable);
20 DEFINE_STANDARD_HANDLE( SALOMEDSImpl_AttributeTextColor, SALOMEDSImpl_GenericAttribute )
22 class SALOMEDSImpl_AttributeTextColor : public SALOMEDSImpl_GenericAttribute
25 Handle(TColStd_HArray1OfReal) myValue;
28 Standard_EXPORT virtual TCollection_AsciiString Save();
29 Standard_EXPORT virtual void Load(const TCollection_AsciiString&);
30 Standard_EXPORT static const Standard_GUID& GetID() ;
31 Standard_EXPORT SALOMEDSImpl_AttributeTextColor();
32 Standard_EXPORT const Standard_GUID& ID() const;
33 Standard_EXPORT void SetTextColor(const Standard_Real R, const Standard_Real G, const Standard_Real B);
34 Standard_EXPORT Handle(TColStd_HArray1OfReal) TextColor();
35 Standard_EXPORT void ChangeArray(const Handle(TColStd_HArray1OfReal)& newArray);
36 Standard_EXPORT void Restore(const Handle(TDF_Attribute)& with) ;
37 Standard_EXPORT Handle_TDF_Attribute NewEmpty() const;
38 Standard_EXPORT void Paste(const Handle(TDF_Attribute)& into,const Handle(TDF_RelocationTable)& RT) const;
39 Standard_EXPORT ~SALOMEDSImpl_AttributeTextColor() {}
42 DEFINE_STANDARD_RTTI( SALOMEDSImpl_AttributeTextColor )