TArrow


class description - source file - inheritance tree

class TArrow : public TLine, public TAttFill


    public:
TArrow TArrow() TArrow TArrow(Double_t x1, Double_t y1, Double_t x2, Double_t y2, Float_t arrowsize = 0.05, Option_t* option = >) TArrow TArrow(const TArrow& arrow) virtual void ~TArrow() static TClass* Class() virtual void Copy(TObject& arrow) virtual void Draw(Option_t* option) virtual void DrawArrow(Double_t x1, Double_t y1, Double_t x2, Double_t y2, Float_t arrowsize = 0.05, Option_t* option = >) Float_t GetAngle() Float_t GetArrowSize() virtual Option_t* GetOption() const virtual TClass* IsA() const virtual void Paint(Option_t* option) virtual void PaintArrow(Double_t x1, Double_t y1, Double_t x2, Double_t y2, Float_t arrowsize = 0.05, Option_t* option = >) virtual void SavePrimitive(ofstream& out, Option_t* option) virtual void SetAngle(Float_t angle = 60) virtual void SetArrowSize(Float_t arrowsize = 0.05) virtual void SetOption(Option_t* option = >) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b)

Data Members

protected:
Float_t fAngle Arrow opening angle (degrees) Float_t fArrowSize Arrow Size TString fOption Arrow shapes

Class Description

  Different arrow formats as explained in TArrow::TArrow or in
  the picture below are provided.
  Once an arrow is drawn on the screen:
    - One can click on one of the edges and move this edge.
    - One can click on any other arrow part to move the entire arrow.

/*

*/



TArrow(): TLine(),TAttFill()
*-*-*-*-*-*-*-*-*-*-*arrow default constructor*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                  ========================

TArrow(Double_t x1, Double_t y1,Double_t x2, Double_t y2, Float_t arrowsize ,Option_t *option) :TLine(x1,y1,x2,y2), TAttFill(0,1001)
*-*-*-*-*-*-*-*-*-*-*arrow normal constructor*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                  ========================
 Define an arrow between points x1,y1 and x2,y2
 the arrowsize is in percentage of the pad height
 Opening angle between the two sides of the arrow is fAngle (60 degrees)
  option = ">"     -------->
  option = "<"     <--------
  option = "<>"    <------->
  option = "<|>"   <|-----|>  arrow defined by a triangle
                   If FillColor == 0 draw open triangle
                   else  draw full triangle with fillcolor


~TArrow()
*-*-*-*-*-*-*-*-*-*-*arrow default destructor*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                  ========================

TArrow(const TArrow &arrow)

void Copy(TObject &obj)
*-*-*-*-*-*-*-*-*-*-*Copy this arrow to arrow*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                  ========================

void Draw(Option_t *option)
*-*-*-*-*-*-*-*-*-*-*Draw this arrow with its current attributes*-*-*-*-*-*-*
*-*                  ===========================================

void DrawArrow(Double_t x1, Double_t y1,Double_t x2, Double_t y2, Float_t arrowsize ,Option_t *option)
*-*-*-*-*-*-*-*-*-*-*Draw this arrow with new coordinates*-*-*-*-*-*-*-*-*-*
*-*                  ====================================

void Paint(Option_t *option)
*-*-*-*-*-*-*-*-*-*-*Paint this arrow with its current attributes*-*-*-*-*-*-*
*-*                  ============================================

void PaintArrow(Double_t x1, Double_t y1, Double_t x2, Double_t y2, Float_t arrowsize, Option_t *option)
*-*-*-*-*-*-*-*-*-*-*Draw this arrow with new coordinates*-*-*-*-*-*-*-*-*-*
*-*                  ====================================

                                               (P2)
                                                -
                                                .  -
                                                .     -
                                                .        -
     -------------------------------------------.(P0)------- (P1)
                                                .        -
                                                .     -
                                                .  -
                                                -
                                               (P3)



void SavePrimitive(ofstream &out, Option_t *)
 Save primitive as a C++ statement(s) on output stream out



Inline Functions


            Float_t GetAngle()
            Float_t GetArrowSize()
          Option_t* GetOption() const
               void SetAngle(Float_t angle = 60)
               void SetArrowSize(Float_t arrowsize = 0.05)
               void SetOption(Option_t* option = >)
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)


Author: Rene Brun 17/10/95
Last update: root/graf:$Name: $:$Id: TArrow.cxx,v 1.2 2000/06/13 10:43:51 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.