Added method UndrawRenderElement().
authormtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 2 Jun 2006 18:12:23 +0000 (18:12 +0000)
committermtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 2 Jun 2006 18:12:23 +0000 (18:12 +0000)
EVE/Reve/RGTopFrame.cxx
EVE/Reve/RGTopFrame.h

index d7f417187e7eb94f51545d12e64fae13a140e7be..f031ae6dfabdb259a1b40f0cd0066fdd5674d5c9 100644 (file)
@@ -335,6 +335,15 @@ void RGTopFrame::DrawRenderElement(RenderElement* rnr_element, TVirtualPad* pad)
   Redraw3D();
 }
 
+void RGTopFrame::UndrawRenderElement(RenderElement* rnr_element, TVirtualPad* pad)
+{
+  if(pad == 0) pad = GetCC();
+  { Reve::PadHolder pHolder(false, pad);
+    pad->GetListOfPrimitives()->Remove(rnr_element->GetObject());
+  }
+  Redraw3D();
+}
+
 /**************************************************************************/
 
 void RGTopFrame::RenderElementChecked(TObject* obj, Bool_t state)
@@ -353,7 +362,7 @@ void RGTopFrame::NotifyBrowser(TGListTreeItem* parent)
   TGListTree* l_tree = GetListTree();
   if(parent)
     l_tree->OpenItem(parent);
-  l_tree->GetClient()->NeedRedraw(l_tree);
+  gClient->NeedRedraw(l_tree);
 }
 
 /**************************************************************************/
index 5b77efb829f94de292c43030a425964878ba61e3..a72ad3994650b8118c239239e5ed070b59949038 100644 (file)
@@ -83,6 +83,7 @@ public:
   TGListTreeItem* AddGlobalRenderElement(TGListTreeItem* parent, RenderElement* rnr_element);
 
   void DrawRenderElement(RenderElement* rnr_element, TVirtualPad* pad=0);
+  void UndrawRenderElement(RenderElement* rnr_element, TVirtualPad* pad=0);
 
   void RenderElementChecked(TObject* obj, Bool_t state);