Salome HOME
Fix for the bug #45: check and warning when the same image is used in 2 arguments.
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_Shape.h
index 007c3e52d20cecdbae30b027f805739d99686b51..31966461ae710c1d07aec6cb4955f9acffe6eb62 100644 (file)
@@ -24,7 +24,7 @@
 #define HYDROGUI_SHAPE_H
 
 #include <AIS_InteractiveContext.hxx>
-#include <AIS_TexturedShape.hxx>
+#include <AIS_Shape.hxx>
 
 #include <HYDROData_Entity.h>
 
@@ -33,6 +33,7 @@
 
 #include <TopoDS_Face.hxx>
 #include <TopoDS_Wire.hxx>
+#include <TopoDS_Compound.hxx>
 
 class HYDROGUI_Shape
 {
@@ -63,6 +64,10 @@ public:
                                       const bool         theToDisplay = true,
                                       const bool         theIsUpdateViewer = true );
 
+  virtual void               setFaces( const TopoDS_Compound& theWires,
+                                       const bool             theToDisplay = true,
+                                       const bool             theIsUpdateViewer = true );
+
   virtual void               setFace( const TopoDS_Wire& theWire,
                                       const bool         theToDisplay = true,
                                       const bool         theIsUpdateViewer = true );
@@ -71,6 +76,10 @@ public:
                                       const bool         theToDisplay = true,
                                       const bool         theIsUpdateViewer = true );
 
+  virtual void               setShape( const TopoDS_Shape& theShape,
+                                       const bool          theToDisplay = true,
+                                       const bool          theIsUpdateViewer = true );
+
   virtual void               setFillingColor( const QColor& theColor,
                                               const bool    theToDisplay = true,
                                               const bool    theIsUpdateViewer = true );
@@ -107,7 +116,7 @@ private:
 private:
   Handle(AIS_InteractiveContext) myContext;
   Handle(HYDROData_Entity)       myObject;
-  Handle(AIS_TexturedShape)      myShape;
+  Handle(AIS_Shape)              myShape;
 
   bool                           myIsToUpdate;
   bool                           myIsVisible;