TPolyLine Class Reference

#include <TPolyLine.h>

Inheritance diagram for TPolyLine:

TObject TAttLine TAttFill TObject TAttLine TAttFill TCurlyLine TCurlyLine TPolygon TCurlyArc TCurlyArc TCurlyArc TCurlyArc ClockHand HourHand MinuteHand SecondHand List of all members.

Public Types

enum  
enum  

Public Member Functions

 TPolyLine ()
 TPolyLine (Int_t n, Option_t *option="")
 TPolyLine (Int_t n, Float_t *x, Float_t *y, Option_t *option="")
 TPolyLine (Int_t n, Double_t *x, Double_t *y, Option_t *option="")
 TPolyLine (const TPolyLine &polyline)
virtual ~TPolyLine ()
virtual void Copy (TObject &polyline) const
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
virtual void Draw (Option_t *option="")
virtual void DrawPolyLine (Int_t n, Double_t *x, Double_t *y, Option_t *option="")
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
virtual Int_t GetLastPoint () const
Int_t GetN () const
Double_tGetX () const
Double_tGetY () const
Option_tGetOption () const
virtual void ls (Option_t *option="") const
virtual Int_t Merge (TCollection *list)
virtual void Paint (Option_t *option="")
virtual void PaintPolyLine (Int_t n, Double_t *x, Double_t *y, Option_t *option="")
virtual void PaintPolyLineNDC (Int_t n, Double_t *x, Double_t *y, Option_t *option="")
virtual void Print (Option_t *option="") const
virtual void SavePrimitive (ostream &out, Option_t *option="")
virtual void SetNDC (Bool_t isNDC=kTRUE)
virtual Int_t SetNextPoint (Double_t x, Double_t y)
virtual void SetOption (Option_t *option="")
virtual void SetPoint (Int_t point, Double_t x, Double_t y)
virtual void SetPolyLine (Int_t n)
virtual void SetPolyLine (Int_t n, Float_t *x, Float_t *y, Option_t *option="")
virtual void SetPolyLine (Int_t n, Double_t *x, Double_t *y3, Option_t *option="")
virtual Int_t Size () const
 TPolyLine ()
 TPolyLine (Int_t n, Option_t *option="")
 TPolyLine (Int_t n, Float_t *x, Float_t *y, Option_t *option="")
 TPolyLine (Int_t n, Double_t *x, Double_t *y, Option_t *option="")
 TPolyLine (const TPolyLine &polyline)
virtual ~TPolyLine ()
virtual void Copy (TObject &polyline) const
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
virtual void Draw (Option_t *option="")
virtual void DrawPolyLine (Int_t n, Double_t *x, Double_t *y, Option_t *option="")
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
virtual Int_t GetLastPoint () const
Int_t GetN () const
Double_tGetX () const
Double_tGetY () const
Option_tGetOption () const
virtual void ls (Option_t *option="") const
virtual Int_t Merge (TCollection *list)
virtual void Paint (Option_t *option="")
virtual void PaintPolyLine (Int_t n, Double_t *x, Double_t *y, Option_t *option="")
virtual void PaintPolyLineNDC (Int_t n, Double_t *x, Double_t *y, Option_t *option="")
virtual void Print (Option_t *option="") const
virtual void SavePrimitive (ostream &out, Option_t *option="")
virtual void SetNDC (Bool_t isNDC=kTRUE)
virtual Int_t SetNextPoint (Double_t x, Double_t y)
virtual void SetOption (Option_t *option="")
virtual void SetPoint (Int_t point, Double_t x, Double_t y)
virtual void SetPolyLine (Int_t n)
virtual void SetPolyLine (Int_t n, Float_t *x, Float_t *y, Option_t *option="")
virtual void SetPolyLine (Int_t n, Double_t *x, Double_t *y3, Option_t *option="")
virtual Int_t Size () const

Protected Member Functions

TPolyLineoperator= (const TPolyLine &)
TPolyLineoperator= (const TPolyLine &)

Protected Attributes

Int_t fN
Int_t fLastPoint
Double_tfX
Double_tfY
TString fOption
Double_tfX
Double_tfY

Detailed Description

Definition at line 40 of file TPolyLine.h.


Member Enumeration Documentation

anonymous enum

Definition at line 53 of file TPolyLine.h.

anonymous enum

Definition at line 53 of file TPolyLine.h.


Constructor & Destructor Documentation

TPolyLine::TPolyLine (  ) 

Referenced by DrawPolyLine().

TPolyLine::TPolyLine ( Int_t  n,
Option_t option = "" 
)

Definition at line 53 of file TPolyLine.cxx.

References fLastPoint, fN, fOption, fX, and fY.

TPolyLine::TPolyLine ( Int_t  n,
Float_t x,
Float_t y,
Option_t option = "" 
)

Definition at line 74 of file TPolyLine.cxx.

References fLastPoint, fN, fOption, fX, fY, and i.

TPolyLine::TPolyLine ( Int_t  n,
Double_t x,
Double_t y,
Option_t option = "" 
)

Definition at line 99 of file TPolyLine.cxx.

References fLastPoint, fN, fOption, fX, fY, and i.

TPolyLine::TPolyLine ( const TPolyLine polyline  ) 

Definition at line 150 of file TPolyLine.cxx.

References fLastPoint, and fN.

TPolyLine::~TPolyLine (  )  [virtual]

Definition at line 140 of file TPolyLine.cxx.

References fX, and fY.

TPolyLine::TPolyLine (  ) 

TPolyLine::TPolyLine ( Int_t  n,
Option_t option = "" 
)

TPolyLine::TPolyLine ( Int_t  n,
Float_t x,
Float_t y,
Option_t option = "" 
)

TPolyLine::TPolyLine ( Int_t  n,
Double_t x,
Double_t y,
Option_t option = "" 
)

TPolyLine::TPolyLine ( const TPolyLine polyline  ) 

virtual TPolyLine::~TPolyLine (  )  [virtual]


Member Function Documentation

TPolyLine & TPolyLine::operator= ( const TPolyLine  )  [protected]

Definition at line 123 of file TPolyLine.cxx.

References fLastPoint, fN, fOption, fX, fY, and TObject::operator=().

void TPolyLine::Copy ( TObject polyline  )  const [virtual]

Reimplemented from TObject.

Definition at line 161 of file TPolyLine.cxx.

References TAttFill::Copy(), TAttLine::Copy(), TObject::Copy(), fLastPoint, fN, fOption, fX, fY, and i.

Int_t TPolyLine::DistancetoPrimitive ( Int_t  px,
Int_t  py 
) [virtual]

Reimplemented from TObject.

Definition at line 183 of file TPolyLine.cxx.

References TMath::Abs(), d, RootCsg::distance(), TAttLine::DistancetoLine(), TAttFill::fFillColor, TAttFill::fFillStyle, fLastPoint, fX, fY, gPad, i, TMath::IsInside(), and Size().

Referenced by TGraphEdge::DistancetoPrimitive().

void TPolyLine::Draw ( Option_t option = ""  )  [virtual]

Reimplemented from TObject.

Definition at line 232 of file TPolyLine.cxx.

References TObject::AppendPad().

Referenced by Viewer::DoButton(), TSpider::DrawPoly(), TSpider::DrawPolyAverage(), feynman(), TCreatePrimitives::Line(), TPolygon::TPolygon(), and triangles().

void TPolyLine::DrawPolyLine ( Int_t  n,
Double_t x,
Double_t y,
Option_t option = "" 
) [virtual]

Definition at line 241 of file TPolyLine.cxx.

References TObject::AppendPad(), TAttFill::Copy(), TAttLine::Copy(), fOption, TObject::kCanDelete, TObject::SetBit(), and TPolyLine().

void TPolyLine::ExecuteEvent ( Int_t  event,
Int_t  px,
Int_t  py 
) [virtual]

Reimplemented from TObject.

Definition at line 255 of file TPolyLine.cxx.

References TMath::Abs(), d, fN, fX, fY, gPad, gVirtualX, i, kButton1Down, kButton1Motion, kButton1Up, kFALSE, kHand, kMouseMotion, kMove, kTRUE, TMath::Max(), TMath::Min(), TAttLine::Modify(), Size(), x, xmax, xmin, y, ymax, and ymin.

Referenced by TGraphEdge::ExecuteEvent().

virtual Int_t TPolyLine::GetLastPoint (  )  const [inline, virtual]

Definition at line 67 of file TPolyLine.h.

References fLastPoint.

Int_t TPolyLine::GetN (  )  const [inline]

Definition at line 68 of file TPolyLine.h.

References fN.

Referenced by ClockHand::ClockHand(), and ClockHand::Move().

Double_t* TPolyLine::GetX (  )  const [inline]

Definition at line 69 of file TPolyLine.h.

References fX.

Referenced by TCurlyArc::Build(), TCurlyLine::Build(), and Merge().

Double_t* TPolyLine::GetY (  )  const [inline]

Definition at line 70 of file TPolyLine.h.

References fY.

Referenced by TCurlyArc::Build(), TCurlyLine::Build(), and Merge().

Option_t* TPolyLine::GetOption (  )  const [inline, virtual]

Reimplemented from TObject.

Definition at line 71 of file TPolyLine.h.

References TString::Data(), and fOption.

void TPolyLine::ls ( Option_t option = ""  )  const [virtual]

Reimplemented from TObject.

Definition at line 447 of file TPolyLine.cxx.

References fN, and TROOT::IndentLevel().

Int_t TPolyLine::Merge ( TCollection list  )  [virtual]

Definition at line 458 of file TPolyLine.cxx.

References xmlio::Class, TObject::ClassName(), TObject::Error(), GetX(), GetY(), i, TObject::InheritsFrom(), TIter::Reset(), SetPoint(), Size(), x, and y.

void TPolyLine::Paint ( Option_t option = ""  )  [virtual]

Reimplemented from TObject.

Definition at line 495 of file TPolyLine.cxx.

References TString::Data(), fLastPoint, fOption, fX, fY, kPolyLineNDC, PaintPolyLine(), PaintPolyLineNDC(), and TObject::TestBit().

Referenced by TCurlyLineEditor::DoAmplitude(), TCurlyArcEditor::DoCenterXY(), TCurlyLineEditor::DoEndXY(), TCurlyArcEditor::DoPhimax(), TCurlyArcEditor::DoPhimin(), TCurlyArcEditor::DoRadius(), TCurlyLineEditor::DoStartXY(), TCurlyLineEditor::DoWaveLength(), and TCurlyLineEditor::DoWavy().

void TPolyLine::PaintPolyLine ( Int_t  n,
Double_t x,
Double_t y,
Option_t option = "" 
) [virtual]

Definition at line 510 of file TPolyLine.cxx.

References gPad, TAttFill::Modify(), and TAttLine::Modify().

Referenced by Paint(), and TParallelCoord::PaintEntries().

void TPolyLine::PaintPolyLineNDC ( Int_t  n,
Double_t x,
Double_t y,
Option_t option = "" 
) [virtual]

Definition at line 538 of file TPolyLine.cxx.

References gPad, TAttFill::Modify(), and TAttLine::Modify().

Referenced by Paint().

void TPolyLine::Print ( Option_t option = ""  )  const [virtual]

Reimplemented from TObject.

Definition at line 549 of file TPolyLine.cxx.

References fN.

void TPolyLine::SavePrimitive ( ostream &  out,
Option_t option = "" 
) [virtual]

Reimplemented from TObject.

Definition at line 559 of file TPolyLine.cxx.

References xmlio::Class, TROOT::ClassSaved(), fN, fOption, fX, fY, gROOT, i, TAttFill::SaveFillAttributes(), TAttLine::SaveLineAttributes(), and Size().

void TPolyLine::SetNDC ( Bool_t  isNDC = kTRUE  )  [virtual]

Definition at line 585 of file TPolyLine.cxx.

References kPolyLineNDC, TObject::ResetBit(), and TObject::SetBit().

Int_t TPolyLine::SetNextPoint ( Double_t  x,
Double_t  y 
) [virtual]

Definition at line 595 of file TPolyLine.cxx.

References fLastPoint, and SetPoint().

virtual void TPolyLine::SetOption ( Option_t option = ""  )  [inline, virtual]

Definition at line 81 of file TPolyLine.h.

References fOption, and option.

void TPolyLine::SetPoint ( Int_t  point,
Double_t  x,
Double_t  y 
) [virtual]

Definition at line 607 of file TPolyLine.cxx.

References fLastPoint, fN, fX, fY, and TMath::Max().

Referenced by Merge(), SetNextPoint(), and SetPolyLine().

void TPolyLine::SetPolyLine ( Int_t  n  )  [virtual]

Definition at line 640 of file TPolyLine.cxx.

References fLastPoint, fN, fX, fY, and SetPoint().

Referenced by TCurlyLine::Build().

void TPolyLine::SetPolyLine ( Int_t  n,
Float_t x,
Float_t y,
Option_t option = "" 
) [virtual]

Definition at line 664 of file TPolyLine.cxx.

References fLastPoint, fN, fOption, fX, fY, and i.

void TPolyLine::SetPolyLine ( Int_t  n,
Double_t x,
Double_t y3,
Option_t option = "" 
) [virtual]

Definition at line 693 of file TPolyLine.cxx.

References fLastPoint, fN, fOption, fX, fY, and i.

virtual Int_t TPolyLine::Size (  )  const [inline, virtual]

Definition at line 86 of file TPolyLine.h.

References fLastPoint.

Referenced by DistancetoPrimitive(), ExecuteEvent(), RootCsg::extract_classification(), Merge(), SavePrimitive(), and RootCsg::TPolygonGeometry< TMesh >::Size().

TPolyLine& TPolyLine::operator= ( const TPolyLine  )  [protected]

virtual void TPolyLine::Copy ( TObject polyline  )  const [virtual]

Reimplemented from TObject.

virtual Int_t TPolyLine::DistancetoPrimitive ( Int_t  px,
Int_t  py 
) [virtual]

Reimplemented from TObject.

virtual void TPolyLine::Draw ( Option_t option = ""  )  [virtual]

Reimplemented from TObject.

virtual void TPolyLine::DrawPolyLine ( Int_t  n,
Double_t x,
Double_t y,
Option_t option = "" 
) [virtual]

virtual void TPolyLine::ExecuteEvent ( Int_t  event,
Int_t  px,
Int_t  py 
) [virtual]

Reimplemented from TObject.

virtual Int_t TPolyLine::GetLastPoint (  )  const [inline, virtual]

Definition at line 67 of file TPolyLine.h.

References fLastPoint.

Int_t TPolyLine::GetN (  )  const [inline]

Definition at line 68 of file TPolyLine.h.

References fN.

Double_t* TPolyLine::GetX ( void   )  const [inline]

Definition at line 69 of file TPolyLine.h.

References fX.

Double_t* TPolyLine::GetY (  )  const [inline]

Definition at line 70 of file TPolyLine.h.

References fY.

Option_t* TPolyLine::GetOption (  )  const [inline, virtual]

Reimplemented from TObject.

Definition at line 71 of file TPolyLine.h.

References TString::Data(), and fOption.

virtual void TPolyLine::ls ( Option_t option = ""  )  const [virtual]

Reimplemented from TObject.

virtual Int_t TPolyLine::Merge ( TCollection list  )  [virtual]

virtual void TPolyLine::Paint ( Option_t option = ""  )  [virtual]

Reimplemented from TObject.

virtual void TPolyLine::PaintPolyLine ( Int_t  n,
Double_t x,
Double_t y,
Option_t option = "" 
) [virtual]

virtual void TPolyLine::PaintPolyLineNDC ( Int_t  n,
Double_t x,
Double_t y,
Option_t option = "" 
) [virtual]

virtual void TPolyLine::Print ( Option_t option = ""  )  const [virtual]

Reimplemented from TObject.

virtual void TPolyLine::SavePrimitive ( ostream &  out,
Option_t option = "" 
) [virtual]

Reimplemented from TObject.

virtual void TPolyLine::SetNDC ( Bool_t  isNDC = kTRUE  )  [virtual]

virtual Int_t TPolyLine::SetNextPoint ( Double_t  x,
Double_t  y 
) [virtual]

virtual void TPolyLine::SetOption ( Option_t option = ""  )  [inline, virtual]

Definition at line 81 of file TPolyLine.h.

References fOption, and option.

virtual void TPolyLine::SetPoint ( Int_t  point,
Double_t  x,
Double_t  y 
) [virtual]

virtual void TPolyLine::SetPolyLine ( Int_t  n  )  [virtual]

virtual void TPolyLine::SetPolyLine ( Int_t  n,
Float_t x,
Float_t y,
Option_t option = "" 
) [virtual]

virtual void TPolyLine::SetPolyLine ( Int_t  n,
Double_t x,
Double_t y3,
Option_t option = "" 
) [virtual]

virtual Int_t TPolyLine::Size (  )  const [inline, virtual]

Definition at line 86 of file TPolyLine.h.

References fLastPoint.


Member Data Documentation

Int_t TPolyLine::fN [protected]

Definition at line 43 of file TPolyLine.h.

Referenced by Copy(), ExecuteEvent(), GetN(), ls(), operator=(), TPolygon::Paint(), Print(), SavePrimitive(), SetPoint(), SetPolyLine(), and TPolyLine().

Int_t TPolyLine::fLastPoint [protected]

Definition at line 44 of file TPolyLine.h.

Referenced by Copy(), DistancetoPrimitive(), GetLastPoint(), operator=(), Paint(), SetNextPoint(), SetPoint(), SetPolyLine(), Size(), and TPolyLine().

Double_t* TPolyLine::fX [protected]

Definition at line 45 of file TPolyLine.h.

Referenced by ClockHand::ClockHand(), Copy(), DistancetoPrimitive(), ExecuteEvent(), GetX(), ClockHand::Move(), operator=(), TPolygon::Paint(), Paint(), SavePrimitive(), SetPoint(), SetPolyLine(), TPolygon::TPolygon(), TPolyLine(), and ~TPolyLine().

Double_t* TPolyLine::fY [protected]

Definition at line 46 of file TPolyLine.h.

Referenced by ClockHand::ClockHand(), Copy(), DistancetoPrimitive(), ExecuteEvent(), GetY(), ClockHand::Move(), operator=(), TPolygon::Paint(), Paint(), SavePrimitive(), SetPoint(), SetPolyLine(), TPolygon::TPolygon(), TPolyLine(), and ~TPolyLine().

TString TPolyLine::fOption [protected]

Definition at line 47 of file TPolyLine.h.

Referenced by Copy(), DrawPolyLine(), GetOption(), operator=(), Paint(), SavePrimitive(), SetOption(), SetPolyLine(), and TPolyLine().

Double_t* TPolyLine::fX [protected]

Definition at line 45 of file TPolyLine.h.

Double_t* TPolyLine::fY [protected]

Definition at line 46 of file TPolyLine.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:44:58 2011 for ROOT_528-00b_version by  doxygen 1.5.1