Re: Creating custom marker style

From: Valery Fine (fine@bnl.gov)
Date: Thu Nov 19 1998 - 00:07:49 MET


On 18 Nov 98 at 8:41, Matthew R. Nelson wrote:

> Root Users,
> 
> Has anyone had any experience creating a custom marker style (adding
> additional styles to the supplied core of 30)?  I would like to plot
> dash marks ("-").  Of course an alternative is to draw them on as
> TText, but I would much rather do this through TGraph.
> 
> Thanks,
> 
> Matt

  This could be done by introduce a single line for TGXW.h header 
files:

 public:
   virtual void  SetMarkerType(Int_t type, Int_t n, TPoint *xy){;}

 and moving the following line of  TGX11.h from

 private:
     void  SetMarkerType(Int_t type, Int_t n, XPoint *xy);

to

 public:
   void  SetMarkerType(Int_t type, Int_t n, TPoint *xy);

 if this causes NO "side-effect"

  As for TGWin32.h this method had been defined as "public" 
and ready to use.

 Afterthat any user can introduce its own marker type or redefine any 
ROOT predefined as well.

  Hope thois helps.

                    Valery
=================================================================
Dr. Valeri Faine (Fine)
    -------------------          Phone: +1 516 344 7806
Brookhaven National Laboratory   FAX  : +1 516 344 4206
Bldg. 510A /STAR                 mailto:fine@bnl.gov
Upton, New York, 11973-5000      http://nicewww.cern.ch/~fine
USA
                                 
Dr. Valery Fine                  Telex : 911621 dubna su
    -----------
LCTA/Joint Inst.for Nuclear Res. Phone : +7 09621 6 40 80
141980 Dubna, Moscow region      Fax   : +7 09621 6 51 45
Russia                           mailto:fine@main1.jinr.dubna.su                              



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