Salome HOME
700e0bb86b13fd78e4fe8b9f5a52ecc5ef22bbfc
[modules/kernel.git] / src / SALOMEDSImpl / SALOMEDSImpl_AttributeGraphic.hxx
1 //  File   : SALOMEDSImpl_AttributeGraphic.hxx
2 //  Author : Sergey LITONIN
3 //  Module : SALOME
4
5 #ifndef SALOMEDSImpl_AttributeGraphic_HeaderFile
6 #define SALOMEDSImpl_AttributeGraphic_HeaderFile
7
8 #include <Standard_DefineHandle.hxx>
9 #include <TDF_Attribute.hxx>
10 #include <TColStd_DataMapOfIntegerInteger.hxx>
11 #include <TDF_Label.hxx>       
12 #include "SALOMEDSImpl_GenericAttribute.hxx"
13
14 class Standard_GUID;
15 class Handle(TDF_Attribute);
16 class Handle(TDF_RelocationTable);
17
18 /*
19   Class       : SALOMEDSImpl_AttributeGraphic
20   Description : This class is intended for storing information about
21                 graphic representation of objects in dirrent views
22 */
23
24 DEFINE_STANDARD_HANDLE( SALOMEDSImpl_AttributeGraphic,  SALOMEDSImpl_GenericAttribute)
25
26
27
28 #ifndef WNT
29 class Standard_EXPORT SALOMEDSImpl_AttributeGraphic : public SALOMEDSImpl_GenericAttribute
30 #else
31 class SALOMEDSImpl_AttributeGraphic : public SALOMEDSImpl_GenericAttribute
32 #endif
33 {
34
35 public:
36 Standard_EXPORT                                    SALOMEDSImpl_AttributeGraphic();
37 Standard_EXPORT                                    ~SALOMEDSImpl_AttributeGraphic();
38                                   
39 Standard_EXPORT    static const                    Standard_GUID& GetID() ;
40
41 Standard_EXPORT    void                            SetVisibility( const Standard_Integer,
42                                                  const Standard_Boolean );
43 Standard_EXPORT    Standard_Boolean                GetVisibility( const Standard_Integer ) const;
44 Standard_EXPORT    const Standard_GUID&            ID() const;
45 Standard_EXPORT    void                            Restore( const Handle(TDF_Attribute)& theWith );
46 Standard_EXPORT    Handle(TDF_Attribute)           NewEmpty() const;
47 Standard_EXPORT    void                            Paste( const Handle(TDF_Attribute)& theInto,
48                                          const Handle(TDF_RelocationTable)& ) const;
49 Standard_EXPORT    virtual Standard_OStream&       Dump( Standard_OStream& anOS ) const;
50
51 Standard_EXPORT    void                            SetVisibility( const TColStd_DataMapOfIntegerInteger& );
52
53 Standard_EXPORT    const TColStd_DataMapOfIntegerInteger& GetVisibility();
54   
55 private:
56   TColStd_DataMapOfIntegerInteger myVisibility;
57
58 public:
59   DEFINE_STANDARD_RTTI( SALOMEDSImpl_AttributeGraphic )
60 };
61
62 #endif