RE: Where TShape::Paint's gone ?

From: Fine, Valeri <fine_at_bnl.gov>
Date: Mon, 20 Feb 2006 15:22:48 -0500


Hello Philippe,  

Thank you very much for your response
You are correct
"
TShape::Paint has always been present in the released version of ROOT "
However the TShape base class Paint contains the dummy method only.  

http://root.cern.ch/root/htmldoc//src/TShape.cxx.html#TShape:Paint  

That makes no difference vs TObject::Paint it overloads: http://root.cern.ch/root/htmldoc//src/TObject.cxx.html#TObject:Paint  

I spoke about all classes derived from TShape.

Compare

        "ROOT 5.08"  
(fine) [161] grep -w Paint g3d/inc/*.h

g3d/inc/TAxis3D.h:     virtual void   Paint(Option_t *option="");
g3d/inc/TMarker3DBox.h:virtual void   Paint(Option_t *option);
g3d/inc/TNode.h:       virtual void   Paint(Option_t *option="");
g3d/inc/TNodeDiv.h:    virtual void   Paint(Option_t *option="");
g3d/inc/TPolyLine3D.h: virtual void   Paint(Option_t *option="");
g3d/inc/TPolyMarker3D.h:   virtual void      Paint(Option_t *option="");
g3d/inc/TShape.h:      virtual void   Paint(Option_t *option="");
 

ROOT 4.00.08:  
(fine) [170] grep -w Paint g3d/inc/*.h
 

g3d/inc/TAxis3D.h:    virtual void     Paint(Option_t *option="");
g3d/inc/TBRIK.h:      virtual void     Paint(Option_t *option);
g3d/inc/TGLViewerImp.h:   virtual void Paint(Option_t *opt="");
g3d/inc/THelix.h:    virtual void      Paint(Option_t *option="")
g3d/inc/TMarker3DBox.h:   virtual void Paint(Option_t *option);
g3d/inc/TNode.h:     virtual void      Paint(Option_t *option="");
g3d/inc/TNodeDiv.h:  virtual void      Paint(Option_t *option="");
g3d/inc/TPCON.h:     virtual void      Paint(Option_t *option);
g3d/inc/TPadOpenGLView.h: virtual void Paint(Option_t *option="");
g3d/inc/TPolyLine3D.h:    virtual void Paint(Option_t *option="");
g3d/inc/TPolyMarker3D.h:  virtual void Paint(Option_t *option="");
g3d/inc/TSPHE.h:     virtual void      Paint(Option_t *option);
g3d/inc/TShape.h:    virtual void      Paint(Option_t *option="");
g3d/inc/TTUBE.h:     virtual void      Paint(Option_t *option);
g3d/inc/TTUBS.h:     virtual void      Paint(Option_t *option);
g3d/inc/TXTRU.h:     virtual void      Paint(Option_t *option);
 

You see the reason why one is getting no TCanvas images of STAR objects of the classed derived from the various TShape with the custom Paint method. This is because there is no ROOT code to call TShape::Paint anymore .
(in other words the ROOT object model has been changed significantly )
This was the very thing (the ROOT object model: define "TObject::Draw" to append the object to the current pad; overload "TObject::Paint" to generate the custom graphical view of the appended objects) we used to rely on :( The issue was reported and discussed 8 months ago. At the time we were said the mistake should be fixed.  

Cheers,

                                         Valeri

________________________________

From: Philippe Canal [mailto:pcanal_at_fnal.gov] Sent: Sun 2/19/2006 2:11 PM
To: Fine, Valeri; roottalk_at_pcroot.cern.ch Subject: RE: [ROOT] Where TShape::Paint's gone ?

HI Valeri,

Which version of ROOT are you looking at? TShape::Paint has always been present in the released version of ROOT
(it was gone for a little while in the developement version 4.03.03 which
now nearly one year old).  

Cheers,
Philippe.


From: owner-roottalk_at_pcroot.cern.ch [mailto:owner-roottalk_at_pcroot.cern.ch] On Behalf Of Fine, Valeri Sent: Tuesday, December 27, 2005 5:15 PM To: roottalk_at_pcroot.cern.ch
Subject: [ROOT] Where TShape::Paint's gone ?

Hi Rene,  

I have decided for the coming 2006 RHIC run to move the STAR OnlineDisplay to the recent ROOT and faced the TShape::Paint method that STAR event display has been heavy relying on for the last 5 years doesn't exist anymore !!!

http://www.star.bnl.gov/STAR/comp/vis/OnLineEventDisplay.html  

This feature was part of the ROOT since 1995. One can not render TShape object anymore (Even with TCanvas !!!) .What was the technical reason to remove the functionality the ROOT users have been relying for the last 10 years.  

Is there any plan to restore it or STAR has to live with the old ROOT version forever (I don't think we have a man-power and courage to redesign things from the scratch) ?    

Thank you  

Best Regards

                         Valeri Fine


Brookhaven National Laboratory

Upton, NY 11973, USA

Phone: +1 631 344 7806

Fax: +1 631 344 4206

E-mail: fine_at_bnl.gov   Received on Mon Feb 20 2006 - 21:23:29 MET

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:57 MET