]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Inherits from TQObject and emits signal PointCtrlClicked().
authoralja <alja@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 17 Dec 2007 20:56:40 +0000 (20:56 +0000)
committeralja <alja@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 17 Dec 2007 20:56:40 +0000 (20:56 +0000)
EVE/Reve/PointSet.cxx
EVE/Reve/PointSet.h

index 53d4b3d21d23cc0e87b0f916e21523f11ed242da..0cc32cac4e00c49bc2d9fb410fd0a749019e5998 100644 (file)
@@ -53,6 +53,7 @@ PointSet::PointSet(const Text_t* name, Int_t n_points, TreeVarType_e tv_type) :
   RenderElement(fMarkerColor),
   TPointSet3D(n_points),
   TPointSelectorConsumer(tv_type),
+  TQObject(),
 
   fTitle          (),
   fIntIds         (0),
@@ -293,6 +294,25 @@ TClass* PointSet::ProjectedClass() const
   return NLTPointSet::Class();
 }
 
+//______________________________________________________________________________
+void PointSet::PointSelected(Int_t id)
+{
+  // Virtual method of base class TPointSet3D. The fuction call is invoked with secondary selection 
+  // in TPointSet3DGL.
+
+  PointCtrlClicked(this, id);
+}
+//______________________________________________________________________________
+void PointSet::PointCtrlClicked(PointSet* ps, Int_t id)
+{
+  // Emits "PointCtrlClicked()" signal.
+
+  Long_t args[2];
+  args[0] = (Long_t) ps;
+  args[1] = (Long_t) id;
+
+  TQObject::Emit("PointCtrlClicked(Reve::PointSet*,Int_t)", args);
+}
 
 /**************************************************************************/
 /**************************************************************************/
index 2159563eeb93bf8b39ff0debb5e94300fbbb00ed..bf3979dec08378d6bf05b7870b05f82e484e2277 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <TPointSet3D.h>
 #include <TArrayI.h>
+#include <TQObject.h>
 
 class TTree;
 class TF3;
@@ -20,6 +21,7 @@ namespace Reve {
 class PointSet : public RenderElement,
                  public TPointSet3D,
                  public TPointSelectorConsumer,
+                 public TQObject,
                  public NLTProjectable
 {
   friend class PointSetArray;
@@ -61,6 +63,9 @@ public:
   virtual void InitFill(Int_t subIdNum);
   virtual void TakeAction(TPointSelector*);
 
+  virtual void PointSelected(Int_t id);
+  virtual void PointCtrlClicked(PointSet* ps, Int_t id); // *SIGNAL*
+
   virtual const TGPicture* GetListTreeIcon() { return RenderElement::fgListTreeIcons[3]; }
 
   virtual TClass* ProjectedClass() const;