painting an object derived from TH1

From: Damir Buskulic (buskulic@lapp.in2p3.fr)
Date: Thu Oct 21 1999 - 11:13:24 MEST


Hi,

with the new library scheme of ROOT, the Painter and Hist are separated.
I have a class that derives from TH1F, but I would like to paint some
parts differently, namely the stat box. Before, I was just overloading
the TH1::PaintStats method.
How can I do it now ? Do I have to specify a completely different
painter that I have to rewrite ? I looked a little bit at the code and
found that the static member fgPainter was holding the class description
of the current Painter. Since it is static, I cannot change it without
changing also the painter for regular TH1.
I suppose I'll just put regular stats off and overlay my own stat box.

Any other ideas ?

Damir
-- 
=====================================================================
| Damir Buskulic                  | Universite de Savoie/LAPP       |
|                                 | Chemin de Bellevue, B.P. 110    |
| Tel : +33 (0)450091600          | F-74941 Annecy-le-Vieux Cedex   |
| e-mail: buskulic@lapp.in2p3.fr  | FRANCE                          |
=====================================================================
mailto:buskulic@lapp.in2p3.fr



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:41 MET