Salome HOME
- add new method for view
[modules/geom.git] / src / DependencyTree / DependencyTree_Object.h
index da04b69014927ec28e87ef390db004c0b61595df..a4a27b3035b7408dba9a61fa4b299a3edce8f870 100644 (file)
 
 #include <GraphicsView_Object.h>
 
+// GEOM includes
+#include <GeometryGUI.h>
+#include <GEOM_BaseObject.hxx>
+
 #include <QPen>
 
 class DependencyTree_Object: public GraphicsView_Object
@@ -32,39 +36,41 @@ public:
   DependencyTree_Object( const std::string&, QGraphicsItem* = 0 );
   ~DependencyTree_Object();
 
-  virtual void              compute() {};
+  virtual void                compute() {};
+
+  virtual bool                highlight( double, double );
+  virtual void                unhighlight();
 
-  virtual bool              highlight( double, double );
-  virtual void              unhighlight();
+  virtual bool                select( double, double, const QRectF& );
+  virtual void                unselect();
 
-  virtual bool              select( double, double, const QRectF& );
-  virtual void              unselect();
+  std::string                 getEntry() const;
 
-  std::string               getEntry() const;
+  GEOM::GEOM_BaseObject_var  getGeomObject() const;
 
-  void                      updateName();
+  void                        updateName();
 
-  void                      setColor(const QColor& );
-  void                      setSelectColor(const QColor& );
-  void                      setMainObjectColor(const QColor& );
+  void                        setColor(const QColor& );
+  void                        setSelectColor(const QColor& );
+  void                        setMainObjectColor(const QColor& );
 
-  void                      setIsMainObject( bool );
+  void                        setIsMainObject( bool );
 
 private:
 
-  QPen                      getPen( const QColor& );
+  QPen                        getPen( const QColor& );
 
-  QColor                    myColor;
-  QColor                    mySelectColor;
-  QColor                    myMainObjectColor;
+  QColor                      myColor;
+  QColor                      mySelectColor;
+  QColor                      myMainObjectColor;
 
-  QGraphicsPolygonItem*     myPolygonItem;
-  QGraphicsSimpleTextItem*  myTextItem;
+  QGraphicsPolygonItem*       myPolygonItem;
+  QGraphicsSimpleTextItem*    myTextItem;
 
-  std::string                   myEntry;
+  GEOM::GEOM_BaseObject_var   myGeomObject;
+  std::string                 myEntry;
 
-  bool                      myIsMainObject;
-  bool                      myIsLongName;
+  bool                        myIsMainObject;
 
 };