Salome HOME
Refs #288 - the profile section selected and addition mode is activated
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_Shape.h
index 84880112996aaa2e41e5b649475e8b043b53c953..b16161ce6cfa97cac37e304b9604ae897e92ccc1 100644 (file)
@@ -33,6 +33,7 @@
 
 #include <TopoDS_Face.hxx>
 #include <TopoDS_Wire.hxx>
+#include <TopoDS_Compound.hxx>
 
 class HYDROGUI_Shape
 {
@@ -45,12 +46,13 @@ public:
   virtual void               display( const bool theIsUpdateViewer = true );
   virtual void               erase( const bool theIsUpdateViewer = true );
 
-  virtual void               highlight( bool theIsHighlight );
+  virtual void               highlight( bool theIsHighlight, bool isUpdateViewer );
   virtual bool               isHighlighted() const;
 
   Handle(HYDROData_Entity)   getObject() const { return myObject; }
 
-  virtual void               update( const bool theIsUpdateViewer = true );
+  virtual void               update( const bool theIsUpdateViewer = true, 
+                                     const bool theIsDisplayOnTop = false );
 
   virtual bool               getIsToUpdate() const { return myIsToUpdate; }
   virtual void               setIsToUpdate( bool theState ) { myIsToUpdate = theState; }
@@ -63,6 +65,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 +77,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 );
@@ -89,6 +99,8 @@ public:
                                                  const bool     theIsUpdateViewer = true );
   virtual QString            getTextureFileName() const;
 
+  virtual Handle(AIS_Shape)  getAISShape() const { return myShape; }
+
 protected:
   virtual void               buildShape();
   virtual void               updateShape( const bool theToDisplay      = true,