TArrow


class description - source file - inheritance tree

class TArrow : public TLine, public TAttFill


    public:
TArrow TArrow(Float_t x1, Float_t y1, Float_t x2, Float_t y2, Float_t arrowsize = 0.05, Option_t* option = >) TArrow TArrow() TArrow TArrow(const TArrow& arrow) virtual void ~TArrow() TClass* Class() virtual void Copy(TObject& arrow) virtual void Draw(Option_t* option) virtual void DrawArrow(Float_t x1, Float_t y1, Float_t x2, Float_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(Float_t x1, Float_t y1, Float_t x2, Float_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(Coord_t x1, Coord_t y1,Coord_t x2, Coord_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(Coord_t x1, Coord_t y1,Coord_t x2, Coord_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(Coord_t x1, Coord_t y1, Coord_t x2, Coord_t y2, Float_t, 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: 2.20/05 15/12/98 09.17.19 by Rene Brun
Copyright (c) 1995-1999, The ROOT System, All rights reserved. *


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.