1 // File : SALOMEDS_AttributePixMap.cxx
2 // Author : Sergey RUIN
5 #include "SALOMEDS_AttributePixMap.hxx"
8 #include <TCollection_AsciiString.hxx>
9 #include <TCollection_ExtendedString.hxx>
11 SALOMEDS_AttributePixMap::SALOMEDS_AttributePixMap(const Handle(SALOMEDSImpl_AttributePixMap)& theAttr)
12 :SALOMEDS_GenericAttribute(theAttr)
15 SALOMEDS_AttributePixMap::SALOMEDS_AttributePixMap(SALOMEDS::AttributePixMap_ptr theAttr)
16 :SALOMEDS_GenericAttribute(theAttr)
19 SALOMEDS_AttributePixMap::~SALOMEDS_AttributePixMap()
22 bool SALOMEDS_AttributePixMap::HasPixMap()
25 if(_isLocal) ret = Handle(SALOMEDSImpl_AttributePixMap)::DownCast(_local_impl)->HasPixMap();
26 else ret = SALOMEDS::AttributePixMap::_narrow(_corba_impl)->HasPixMap();
30 std::string SALOMEDS_AttributePixMap::GetPixMap()
34 aValue = TCollection_AsciiString(Handle(SALOMEDSImpl_AttributePixMap)::DownCast(_local_impl)->GetPixMap()).ToCString();
35 else aValue = SALOMEDS::AttributePixMap::_narrow(_corba_impl)->GetPixMap();
39 void SALOMEDS_AttributePixMap::SetPixMap(const std::string& value)
42 if(_isLocal) Handle(SALOMEDSImpl_AttributePixMap)::DownCast(_local_impl)->SetPixMap((char*)value.c_str());
43 else SALOMEDS::AttributePixMap::_narrow(_corba_impl)->SetPixMap(value.c_str());