/usr/include/root/TArrow.h is in libroot-graf2d-graf-dev 5.34.14-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 | // @(#)root/graf:$Id$
// Author: Rene Brun 17/10/95
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifndef ROOT_TArrow
#define ROOT_TArrow
//////////////////////////////////////////////////////////////////////////
// //
// TArrow //
// //
// One arrow --->. //
// //
//////////////////////////////////////////////////////////////////////////
#ifndef ROOT_TString
#include "TString.h"
#endif
#ifndef ROOT_TLine
#include "TLine.h"
#endif
#ifndef ROOT_TAttFill
#include "TAttFill.h"
#endif
class TArrow : public TLine, public TAttFill {
protected:
Float_t fAngle; //Arrow opening angle (degrees)
Float_t fArrowSize; //Arrow Size
TString fOption; //Arrow shapes
static Float_t fgDefaultAngle; //default Arrow opening angle (degrees)
static Float_t fgDefaultArrowSize; //default Arrow Size
static TString fgDefaultOption; //default Arrow shapes
public:
TArrow();
TArrow(Double_t x1, Double_t y1,Double_t x2 ,Double_t y2
,Float_t arrowsize=0.05
,Option_t *option=">");
TArrow(const TArrow &arrow);
virtual ~TArrow();
void Copy(TObject &arrow) const;
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 ,Option_t *option="");
Float_t GetAngle() const {return fAngle;}
Float_t GetArrowSize() const {return fArrowSize;}
Option_t *GetOption() const { return fOption.Data();}
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(ostream &out, Option_t *option = "");
virtual void SetAngle(Float_t angle=60) {fAngle=angle;} // *MENU*
virtual void SetArrowSize(Float_t arrowsize=0.05) {fArrowSize=arrowsize;} // *MENU*
virtual void SetOption(Option_t *option=">"){ fOption = option;}
static void SetDefaultAngle (Float_t Angle );
static void SetDefaultArrowSize (Float_t ArrowSize);
static void SetDefaultOption (Option_t *Option );
static Float_t GetDefaultAngle ();
static Float_t GetDefaultArrowSize();
static Option_t *GetDefaultOption ();
ClassDef(TArrow,1) // An arrow (line with a arrowhead)
};
#endif
|