ROOT » GRAF2D » GRAF » TLine

class TLine: public TObject, public TAttLine, public TAttBBox2D


 A Graphical line

Function Members (Methods)

public:
virtual~TLine()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidCopy(TObject& line) const
virtual voidTObject::Delete(Option_t* option = "")MENU
Int_tTAttLine::DistancetoLine(Int_t px, Int_t py, Double_t xp1, Double_t yp1, Double_t xp2, Double_t yp2)
virtual Int_tDistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
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 voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual Rectangle_tGetBBox()
virtual TPointGetBBoxCenter()
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
virtual Color_tTAttLine::GetLineColor() const
virtual Style_tTAttLine::GetLineStyle() const
virtual Width_tTAttLine::GetLineWidth() const
virtual const char*TObject::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
Double_tGetX1() const
Double_tGetX2() const
Double_tGetY1() const
Double_tGetY2() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tIsHorizontal()
Bool_tTObject::IsOnHeap() const
virtual Bool_tTObject::IsSortable() const
Bool_tIsVertical()
Bool_tTObject::IsZombie() const
virtual voidls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual voidTAttLine::Modify()
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
voidTObject::operator delete(void* ptr)
voidTObject::operator delete(void* ptr, void* vp)
voidTObject::operator delete[](void* ptr)
voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
TLine&operator=(const TLine&)
virtual voidPaint(Option_t* option = "")
virtual voidPaintLine(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
virtual voidPaintLineNDC(Double_t u1, Double_t v1, Double_t u2, Double_t v2)
virtual voidTObject::Pop()
virtual voidPrint(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
virtual voidTAttLine::ResetAttLine(Option_t* option = "")
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTAttLine::SaveLineAttributes(ostream& out, const char* name, Int_t coldef = 1, Int_t stydef = 1, Int_t widdef = 1)
virtual voidSavePrimitive(ostream& out, Option_t* option = "")
virtual voidSetBBoxCenter(const TPoint& p)
virtual voidSetBBoxCenterX(const Int_t x)
virtual voidSetBBoxCenterY(const Int_t y)
virtual voidSetBBoxX1(const Int_t x)
virtual voidSetBBoxX2(const Int_t x)
virtual voidSetBBoxY1(const Int_t y)
virtual voidSetBBoxY2(const Int_t y)
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
voidSetHorizontal(Bool_t set = kTRUE)TOGGLE GETTER
virtual voidTAttLine::SetLineAttributes()MENU
virtual voidTAttLine::SetLineColor(Color_t lcolor)
virtual voidTAttLine::SetLineColorAlpha(Color_t lcolor, Float_t lalpha)
virtual voidTAttLine::SetLineStyle(Style_t lstyle)
virtual voidTAttLine::SetLineWidth(Width_t lwidth)
virtual voidSetNDC(Bool_t isNDC = kTRUE)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTObject::SetUniqueID(UInt_t uid)
voidSetVertical(Bool_t set = kTRUE)TOGGLE GETTER
virtual voidSetX1(Double_t x1)
virtual voidSetX2(Double_t x2)
virtual voidSetY1(Double_t y1)
virtual voidSetY2(Double_t y2)
virtual voidShowMembers(TMemberInspector& insp) const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
TLine()
TLine(const TLine& line)
TLine(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()

Data Members

public:
static TObject::<anonymous>TObject::kBitMask
static TObject::EStatusBitsTObject::kCanDelete
static TObject::EStatusBitsTObject::kCannotPick
static TObject::EStatusBitsTObject::kHasUUID
static TLine::<anonymous>kHorizontal
static TObject::EStatusBitsTObject::kInvalidObject
static TObject::<anonymous>TObject::kIsOnHeap
static TObject::EStatusBitsTObject::kIsReferenced
static TLine::<anonymous>kLineNDC
static TObject::EStatusBitsTObject::kMustCleanup
static TObject::EStatusBitsTObject::kNoContextMenu
static TObject::<anonymous>TObject::kNotDeleted
static TObject::EStatusBitsTObject::kObjInCanvas
static TObject::<anonymous>TObject::kOverwrite
static TObject::<anonymous>TObject::kSingleKey
static TLine::<anonymous>kVertical
static TObject::<anonymous>TObject::kWriteDelete
static TObject::<anonymous>TObject::kZombie
protected:
Color_tTAttLine::fLineColorline color
Style_tTAttLine::fLineStyleline style
Width_tTAttLine::fLineWidthline width
Double_tfX1X of 1st point
Double_tfX2X of 2nd point
Double_tfY1Y of 1st point
Double_tfY2Y of 2nd point

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TLine()
 Line default constructor.
TLine(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
 Line normal constructor.
~TLine()
 Line default destructor.
TLine(const TLine& line)
 Line copy constructor.
void Copy(TObject& line) const
 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* option = "") const
 List this line with its attributes.
void Paint(Option_t* option = "")
 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* option = "") const
 Dump this line with its attributes.
void SavePrimitive(ostream& out, Option_t* option = "")
 Save primitive as a C++ statement(s) on output stream out
Bool_t IsHorizontal()
 Check whether this line is to be drawn horizontally.
Bool_t IsVertical()
 Check whether this line is to be drawn vertically.
void SetNDC(Bool_t isNDC = kTRUE)
 Set NDC mode on if isNDC = kTRUE, off otherwise
void SetHorizontal(Bool_t set = kTRUE)
 Force the line to be drawn horizontally.
 Makes fY2 equal to fY1. The line length is kept.
 TArrow and TGaxis also get this function by inheritance.
void SetVertical(Bool_t set = kTRUE)
 Force the line to be drawn vertically.
 Makes fX2 equal to fX1. The line length is kept.
 TArrow and TGaxis also get this function by inheritance.
void Streamer(TBuffer& )
 Stream an object of class TLine.
Rectangle_t GetBBox()
 Return the bounding Box of the Line
TPoint GetBBoxCenter()
 Return the center of the BoundingBox as TPoint in pixels
void SetBBoxCenter(const TPoint& p)
 Set center of the BoundingBox
void SetBBoxCenterX(const Int_t x)
 Set X coordinate of the center of the BoundingBox
void SetBBoxCenterY(const Int_t y)
 Set Y coordinate of the center of the BoundingBox
void SetBBoxX1(const Int_t x)
 Set lefthandside of BoundingBox to a value
 (resize in x direction on left)
void SetBBoxX2(const Int_t x)
 Set righthandside of BoundingBox to a value
 (resize in x direction on right)
void SetBBoxY1(const Int_t y)
 Set top of BoundingBox to a value (resize in y direction on top)
void SetBBoxY2(const Int_t y)
 Set bottom of BoundingBox to a value
 (resize in y direction on bottom)
Double_t GetX1() const
{return fX1;}
Double_t GetX2() const
{return fX2;}
Double_t GetY1() const
{return fY1;}
Double_t GetY2() const
{return fY2;}
void SetX1(Double_t x1)
{fX1=x1;}
void SetX2(Double_t x2)
{fX2=x2;}
void SetY1(Double_t y1)
{fY1=y1;}
void SetY2(Double_t y2)
{fY2=y2;}