Salome HOME
PR: merge from branch BR_UT_V310a3 tag mergeto_trunk_05dec05
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_AttributeGraphic.cxx
1 //  File   : SALOMEDS_AttributeGraphic.cxx
2 //  Author : Sergey RUIN
3 //  Module : SALOME
4
5 #include "SALOMEDS_AttributeGraphic.hxx"
6
7 #include <TCollection_AsciiString.hxx>
8 #include <TCollection_ExtendedString.hxx>
9
10 SALOMEDS_AttributeGraphic::SALOMEDS_AttributeGraphic(const Handle(SALOMEDSImpl_AttributeGraphic)& theAttr)
11 :SALOMEDS_GenericAttribute(theAttr)
12 {}
13
14 SALOMEDS_AttributeGraphic::SALOMEDS_AttributeGraphic(SALOMEDS::AttributeGraphic_ptr theAttr)
15 :SALOMEDS_GenericAttribute(theAttr)
16 {}
17
18 SALOMEDS_AttributeGraphic::~SALOMEDS_AttributeGraphic()
19 {}
20
21
22 bool SALOMEDS_AttributeGraphic:: GetVisibility(int theViewId)
23 {
24   bool aValue;
25   if(_isLocal) aValue = (bool)Handle(SALOMEDSImpl_AttributeGraphic)::DownCast(_local_impl)->GetVisibility(theViewId);
26   else aValue = SALOMEDS::AttributeGraphic::_narrow(_corba_impl)->GetVisibility(theViewId);
27   return aValue;
28 }
29  
30 void SALOMEDS_AttributeGraphic::SetVisibility(int theViewId, bool theValue)
31 {
32   if(_isLocal) Handle(SALOMEDSImpl_AttributeGraphic)::DownCast(_local_impl)->SetVisibility(theViewId, theValue);
33   else SALOMEDS::AttributeGraphic::_narrow(_corba_impl)->SetVisibility(theViewId, theValue);
34 }