]> SALOME platform Git repositories - modules/geom.git/blobdiff - src/OBJECT/GEOM_AISShape.hxx
Salome HOME
0021672: [CEA 565] Dump Study from script
[modules/geom.git] / src / OBJECT / GEOM_AISShape.hxx
index 1626936fb47a1817b781475993e9f13e46816bc9..4dfe2c9a199ce23a9a41d221f0b491a7eee2a6f1 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -58,6 +58,7 @@
 #include <TCollection_AsciiString.hxx>
 
 #include <AIS_DisplayMode.hxx>
+#include <Graphic3d_MaterialAspect.hxx>
 
 class PrsMgr_PresentationManager3d;
 class Prs3d_Presentation;
@@ -99,6 +100,8 @@ public:
         void setIO(const Handle(SALOME_InteractiveObject)& name) ;
         void setName(const Standard_CString aName) ;
         Standard_CString getName() ;
+        Standard_Boolean isTopLevel();
+        void setTopLevel(Standard_Boolean);
         Handle_SALOME_InteractiveObject getIO() ;
         void highlightSubShapes(const TColStd_IndexedMapOfInteger& aIndexMap, const Standard_Boolean aHighlight );
         ~GEOM_AISShape();
@@ -124,12 +127,15 @@ public:
         void restoreIsoNumbers();
         void resetIsoNumbers();
 
+        void storeBoundaryColors();
+
+       static Quantity_Color topLevelColor();
+
 protected: 
   void shadingMode(const Handle(PrsMgr_PresentationManager3d)& aPresentationManager,
                   const Handle(Prs3d_Presentation)& aPrs,
                   const Standard_Integer aMode);
 
-  void storeBoundaryColors();
   void restoreBoundaryColors();
 
   Quantity_Color myShadingColor;
@@ -144,7 +150,10 @@ protected:
 
 private: 
   TCollection_AsciiString myName;
-  bool                    myDisplayVectors;
+  bool                     myDisplayVectors;
+  Standard_Boolean         myTopLevel;
+  Graphic3d_MaterialAspect myCurrentMaterial;
+
 };