Salome HOME
0c4972ec2da2c3199e89775763e98be7786161d9
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_AttributeDrawable.cxx
1 //  File   : SALOMEDS_AttributeDrawable.cxx
2 //  Author : Sergey RUIN
3 //  Module : SALOME
4
5 #include "SALOMEDS_AttributeDrawable.hxx"
6
7 #include <TCollection_AsciiString.hxx>
8 #include <TCollection_ExtendedString.hxx>
9
10 SALOMEDS_AttributeDrawable::SALOMEDS_AttributeDrawable(const Handle(SALOMEDSImpl_AttributeDrawable)& theAttr)
11 :SALOMEDS_GenericAttribute(theAttr)
12 {}
13
14 SALOMEDS_AttributeDrawable::SALOMEDS_AttributeDrawable(SALOMEDS::AttributeDrawable_ptr theAttr)
15 :SALOMEDS_GenericAttribute(theAttr)
16 {}
17
18 SALOMEDS_AttributeDrawable::~SALOMEDS_AttributeDrawable()
19 {}
20
21 bool SALOMEDS_AttributeDrawable::IsDrawable()
22 {
23   bool aValue;
24   if(_isLocal) aValue = (bool)Handle(SALOMEDSImpl_AttributeDrawable)::DownCast(_local_impl)->IsDrawable();
25   else aValue = SALOMEDS::AttributeDrawable::_narrow(_corba_impl)->IsDrawable();
26   return aValue;
27 }
28  
29 void SALOMEDS_AttributeDrawable::SetDrawable(bool value)
30 {
31   CheckLocked();
32   if(_isLocal) Handle(SALOMEDSImpl_AttributeDrawable)::DownCast(_local_impl)->SetDrawable((int)value);
33   else SALOMEDS::AttributeDrawable::_narrow(_corba_impl)->SetDrawable(value);
34 }