Salome HOME
54eca3453cd89dc5a5f148d4e37c91f125ace485
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_AttributeGraphic_i.cxx
1 //  File   : SALOMEDS_AttributeGraphic_i.cxx
2 //  Author : Sergey RUIN
3 //  Module : SALOME
4
5
6 #include "SALOMEDS_AttributeGraphic_i.hxx"
7 #include "SALOMEDS.hxx" 
8
9 using namespace std;
10
11 /*
12   Class       : SALOMEDS_AttributeGraphic_i
13   Description : This class is intended for storing information about
14                 graphic representation of objects in dirrent views
15 */
16
17
18 //=======================================================================
19 // function : SALOMEDS_AttributeGraphic_i::~SetVisibility
20 // purpose  : Set visibility of object in given view
21 //=======================================================================
22 void SALOMEDS_AttributeGraphic_i::SetVisibility( CORBA::Long    theViewId,
23                                                  CORBA::Boolean theValue )
24 {
25   SALOMEDS::Locker lock;    
26   if ( !_impl.IsNull() )
27     Handle(SALOMEDSImpl_AttributeGraphic)::DownCast(_impl)->SetVisibility( theViewId, theValue );
28 }
29
30 //=======================================================================
31 // function : SALOMEDS_AttributeGraphic_i::~SALOMEDS_AttributeGraphic_i
32 // purpose  : Get visibility of object in given view
33 //=======================================================================                                     
34 CORBA::Boolean SALOMEDS_AttributeGraphic_i::GetVisibility( CORBA::Long theViewId )
35 {
36   SALOMEDS::Locker lock;
37   return !_impl.IsNull() ? Handle(SALOMEDSImpl_AttributeGraphic)::DownCast(_impl)->GetVisibility( theViewId ) : false;
38 }
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56