This file is indexed.

/usr/include/root/TLine.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
79
80
81
82
// @(#)root/graf:$Id$
// Author: Rene Brun   12/12/94

/*************************************************************************
 * 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_TLine
#define ROOT_TLine


//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TLine                                                                //
//                                                                      //
// A line segment.                                                      //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#ifndef ROOT_TObject
#include "TObject.h"
#endif

#ifndef ROOT_TAttLine
#include "TAttLine.h"
#endif


class TLine : public TObject, public TAttLine {

protected:
   Double_t      fX1;           //X of 1st point
   Double_t      fY1;           //Y of 1st point
   Double_t      fX2;           //X of 2nd point
   Double_t      fY2;           //Y of 2nd point

public:
   // TLine status bits
   enum {
      kLineNDC    = BIT(14), // Use NDC coordinates
      kVertical   = BIT(15), // Line is vertical
      kHorizontal = BIT(16)  // Line is horizontal
   };

   TLine();
   TLine(Double_t x1, Double_t y1,Double_t x2, Double_t  y2);
   TLine(const TLine &line);
   virtual ~TLine();

   void           Copy(TObject &line) const;
   virtual Int_t  DistancetoPrimitive(Int_t px, Int_t py);
   virtual TLine *DrawLine(Double_t x1, Double_t y1,Double_t x2, Double_t y2);
   virtual TLine *DrawLineNDC(Double_t x1, Double_t y1,Double_t x2, Double_t y2);
   virtual void   ExecuteEvent(Int_t event, Int_t px, Int_t py);
   Double_t       GetX1() const {return fX1;}
   Double_t       GetX2() const {return fX2;}
   Double_t       GetY1() const {return fY1;}
   Double_t       GetY2() const {return fY2;}
   Bool_t         IsHorizontal();
   Bool_t         IsVertical();
   virtual void   ls(Option_t *option="") const;
   virtual void   Paint(Option_t *option="");
   virtual void   PaintLine(Double_t x1, Double_t y1,Double_t x2, Double_t  y2);
   virtual void   PaintLineNDC(Double_t u1, Double_t v1,Double_t u2, Double_t  v2);
   virtual void   Print(Option_t *option="") const;
   virtual void   SavePrimitive(ostream &out, Option_t *option = "");
   virtual void   SetNDC(Bool_t isNDC=kTRUE);
   void           SetHorizontal(Bool_t set = kTRUE); // *TOGGLE* *GETTER=IsHorizontal
   void           SetVertical(Bool_t set = kTRUE); // *TOGGLE* *GETTER=IsVertical
   virtual void   SetX1(Double_t x1) {fX1=x1;}
   virtual void   SetX2(Double_t x2) {fX2=x2;}
   virtual void   SetY1(Double_t y1) {fY1=y1;}
   virtual void   SetY2(Double_t y2) {fY2=y2;}

   ClassDef(TLine,2)  //A line segment
};

#endif