TLine


class description - source file - inheritance tree

class TLine : public TObject, public TAttLine


    public:
TLine TLine() TLine TLine(Double_t x1, Double_t y1, Double_t x2, Double_t y2) TLine TLine(const TLine& line) virtual void ~TLine() static TClass* Class() virtual void Copy(TObject& line) 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 Double_t GetX2() const Double_t GetY1() const Double_t GetY2() const virtual TClass* IsA() const 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(ofstream& out, Option_t* option) virtual void SetX1(Double_t x1) virtual void SetX2(Double_t x2) virtual void SetY1(Double_t y1) virtual void SetY2(Double_t y2) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

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:
static const enum TObject:: kLineNDC


See also

TArrow, TGaxis

Class Description

 A Graphical line


TLine(): TObject(), TAttLine()
*-*-*-*-*-*-*-*-*-*-*Line default constructor*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                  ========================

TLine(Double_t x1, Double_t y1, Double_t x2, Double_t y2) :TObject(), TAttLine()
*-*-*-*-*-*-*-*-*-*-*Line normal constructor*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                  =======================

~TLine()
*-*-*-*-*-*-*-*-*-*-*Line default destructor*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                  =======================

TLine(const TLine &line)

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

Int_t DistancetoPrimitive(Int_t px, Int_t py)
*-*-*-*-*-*-*-*-*-*-*Compute distance from point px,py to a line*-*-*-*-*-*
*-*                  ===========================================

TLine* DrawLine(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
*-*-*-*-*-*-*-*-*-*-*Draw this line with new coordinates*-*-*-*-*-*-*-*-*-*
*-*                  ===================================

TLine* DrawLineNDC(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
*-*-*-*-*-*-*-*-*-*-*Draw this line with new coordinates in NDC*-*-*-*-*-*-*
*-*                  ==========================================

void ExecuteEvent(Int_t event, Int_t px, Int_t py)
*-*-*-*-*-*-*-*-*-*-*Execute action corresponding to one event*-*-*-*
*-*                  =========================================
  This member function is called when a line is clicked with the locator

  If Left button clicked on one of the line end points, this point
     follows the cursor until button is released.

  if Middle button clicked, the line is moved parallel to itself
     until the button is released.


void ls(Option_t *) const
*-*-*-*-*-*-*-*-*-*-*-*List this line with its attributes*-*-*-*-*-*-*-*-*
*-*                    ==================================

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

void PaintLine(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
*-*-*-*-*-*-*-*-*-*-*Draw this line with new coordinates*-*-*-*-*-*-*-*-*-*
*-*                  ===================================

void PaintLineNDC(Double_t u1, Double_t v1, Double_t u2, Double_t v2)
*-*-*-*-*-*-*-*Draw this line with new coordinates in NDC*-*-*-*-*-*-*-*-*-*
*-*            ==========================================

void Print(Option_t *) const
*-*-*-*-*-*-*-*-*-*-*Dump this line with its attributes*-*-*-*-*-*-*-*-*-*
*-*                  ==================================

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

void Streamer(TBuffer &R__b)
 Stream an object of class TLine.



Inline Functions


           Double_t GetX1() const
           Double_t GetX2() const
           Double_t GetY1() const
           Double_t GetY2() const
               void SetX1(Double_t x1)
               void SetX2(Double_t x2)
               void SetY1(Double_t y1)
               void SetY2(Double_t y2)
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void StreamerNVirtual(TBuffer& b)


Author: Rene Brun 12/12/94
Last update: root/graf:$Name: $:$Id: TLine.cxx,v 1.5 2000/12/13 15:13:50 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.