1 // File : SALOMEDS_AttributeGraphic_i.cxx
2 // Author : Sergey RUIN
6 #include "SALOMEDS_AttributeGraphic_i.hxx"
7 #include "SALOMEDS.hxx"
12 Class : SALOMEDS_AttributeGraphic_i
13 Description : This class is intended for storing information about
14 graphic representation of objects in dirrent views
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 )
25 SALOMEDS::Locker lock;
26 if ( !_impl.IsNull() )
27 Handle(SALOMEDSImpl_AttributeGraphic)::DownCast(_impl)->SetVisibility( theViewId, theValue );
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 )
36 SALOMEDS::Locker lock;
37 return !_impl.IsNull() ? Handle(SALOMEDSImpl_AttributeGraphic)::DownCast(_impl)->GetVisibility( theViewId ) : false;