TLine


class description - source file - inheritance tree

class TLine : public TObject, public TAttLine


    protected:
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py) virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py) public:
TLine TLine(Coord_t x1, Coord_t y1, Coord_t x2, Coord_t y2) TLine TLine() TLine TLine(const TLine& line) virtual void ~TLine() TClass* Class() virtual void Copy(TObject& line) virtual void Draw(Option_t* option) virtual TLine* DrawLine(Coord_t x1, Coord_t y1, Coord_t x2, Coord_t y2) virtual TLine* DrawLineNDC(Coord_t x1, Coord_t y1, Coord_t x2, Coord_t y2) Coord_t GetX1() Coord_t GetX2() Coord_t GetY1() Coord_t GetY2() virtual TClass* IsA() const virtual void ls(Option_t* option) virtual void Paint(Option_t* option) virtual void PaintLine(Coord_t x1, Coord_t y1, Coord_t x2, Coord_t y2) virtual void PaintLineNDC(Coord_t u1, Coord_t v1, Coord_t u2, Coord_t v2) virtual void Print(Option_t* option) virtual void SavePrimitive(ofstream& out, Option_t* option) virtual void SetX1(Coord_t x1) virtual void SetX2(Coord_t x2) virtual void SetY1(Coord_t y1) virtual void SetY2(Coord_t y2) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b)

Data Members

protected:
Coord_t fX1 X of 1st point Coord_t fY1 Y of 1st point Coord_t fX2 X of 2nd point Coord_t fY2 Y of 2nd point


See also

TArrow, TGaxis

Class Description

 A Graphical line


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

TLine(Coord_t x1, Coord_t y1, Coord_t x2, Coord_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*-*-*-*-*-*
*-*                  ===========================================

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

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

TLine* DrawLineNDC(Coord_t x1, Coord_t y1, Coord_t x2, Coord_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 *)
*-*-*-*-*-*-*-*-*-*-*-*List this line with its attributes*-*-*-*-*-*-*-*-*
*-*                    ==================================

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

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

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

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

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



Inline Functions


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


Author: Rene Brun 12/12/94
Last update: 2.23/04 04/10/99 14.39.29 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.