Salome HOME
projects
/
modules
/
hydro.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refs #430: incorrect coordinates in dump polyline
[modules/hydro.git]
/
src
/
HYDROGUI
/
HYDROGUI_Shape.h
diff --git
a/src/HYDROGUI/HYDROGUI_Shape.h
b/src/HYDROGUI/HYDROGUI_Shape.h
index 84880112996aaa2e41e5b649475e8b043b53c953..6226f542fbcff620d7907c1012eef022af2d6007 100644
(file)
--- a/
src/HYDROGUI/HYDROGUI_Shape.h
+++ b/
src/HYDROGUI/HYDROGUI_Shape.h
@@
-33,19
+33,21
@@
#include <TopoDS_Face.hxx>
#include <TopoDS_Wire.hxx>
#include <TopoDS_Face.hxx>
#include <TopoDS_Wire.hxx>
+#include <TopoDS_Compound.hxx>
class HYDROGUI_Shape
{
public:
HYDROGUI_Shape( const Handle(AIS_InteractiveContext)& theContext,
class HYDROGUI_Shape
{
public:
HYDROGUI_Shape( const Handle(AIS_InteractiveContext)& theContext,
- const Handle(HYDROData_Entity)& theObject );
+ const Handle(HYDROData_Entity)& theObject,
+ const int theZLayer = -1 );
~HYDROGUI_Shape();
public:
virtual void display( const bool theIsUpdateViewer = true );
virtual void erase( const bool theIsUpdateViewer = true );
~HYDROGUI_Shape();
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 bool isHighlighted() const;
Handle(HYDROData_Entity) getObject() const { return myObject; }
@@
-63,6
+65,10
@@
public:
const bool theToDisplay = true,
const bool theIsUpdateViewer = true );
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 );
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 );
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 );
virtual void setFillingColor( const QColor& theColor,
const bool theToDisplay = true,
const bool theIsUpdateViewer = true );
@@
-89,10
+99,16
@@
public:
const bool theIsUpdateViewer = true );
virtual QString getTextureFileName() const;
const bool theIsUpdateViewer = true );
virtual QString getTextureFileName() const;
+ virtual Handle(AIS_Shape) getAISShape() const { return myShape; }
+
+ void setZLayer( const int theZLayer );
+
protected:
virtual void buildShape();
virtual void updateShape( const bool theToDisplay = true,
const bool theIsUpdateViewer = true );
protected:
virtual void buildShape();
virtual void updateShape( const bool theToDisplay = true,
const bool theIsUpdateViewer = true );
+ void displayShape( const bool theIsUpdateViewer );
+
virtual QColor getActiveColor() const;
private:
virtual QColor getActiveColor() const;
private:
@@
-109,6
+125,8
@@
private:
Handle(HYDROData_Entity) myObject;
Handle(AIS_Shape) myShape;
Handle(HYDROData_Entity) myObject;
Handle(AIS_Shape) myShape;
+ int myZLayer;
+
bool myIsToUpdate;
bool myIsVisible;
bool myIsToUpdate;
bool myIsVisible;