TPolyLine


class description - source file - inheritance tree

class TPolyLine : public TObject, public TAttLine, public TAttFill


    public:
TPolyLine TPolyLine(Int_t n, Option_t* option) TPolyLine TPolyLine(Int_t n, Float_t* x, Float_t* y, Option_t* option) TPolyLine TPolyLine() TPolyLine TPolyLine(const TPolyLine& polyline) virtual void ~TPolyLine() TClass* Class() virtual void Copy(TObject& polyline) virtual Int_t DistancetoPrimitive(Int_t px, Int_t py) virtual void Draw(Option_t* option) virtual void DrawPolyLine(Int_t n, Float_t* x, Float_t* y, Option_t* option) virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py) Int_t GetN() virtual Option_t* GetOption() const Float_t* GetX() Float_t* GetY() virtual TClass* IsA() const virtual void ls(Option_t* option) virtual void Paint(Option_t* option) virtual void PaintPolyLine(Int_t n, Float_t* x, Float_t* y, Option_t* option) virtual void PaintPolyLineNDC(Int_t n, Float_t* x, Float_t* y, Option_t* option) virtual void Print(Option_t* option) virtual void SavePrimitive(ofstream& out, Option_t* option) virtual void SetOption(Option_t* option) virtual void SetPoint(Int_t point, Float_t x, Float_t y) virtual void SetPolyLine(Int_t n, Float_t* x = 0, Float_t* y = 0, Option_t* option) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b)

Data Members

protected:
Int_t fN Number of points Float_t* fX Array of X coordinates Float_t* fY Array of Y coordinates TString fOption options

Class Description

  a PolyLine is defined by an array on N points in a 2-D space.

TPolyLine(): TObject()
*-*-*-*-*-*-*-*-*-*-*PolyLine default constructor*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                  ============================

TPolyLine(Int_t n, Option_t *option) :TObject(), TAttLine(), TAttFill()
*-*-*-**-*-*PolyLine normal constructor without initialisation*-*-*-*-*-*-*-*
*-*         ==================================================

TPolyLine(Int_t n, Float_t *x, Float_t *y, Option_t *option) :TObject(), TAttLine(), TAttFill()
*-*-*-*-*-*-*-*-*-*-*PolyLine normal constructor*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                  ===========================

~TPolyLine()
*-*-*-*-*-*-*-*-*-*-*PolyLine default destructor*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                  ===========================

TPolyLine(const TPolyLine &polyline)

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

Int_t DistancetoPrimitive(Int_t px, Int_t py)
*-*-*-*-*-*-*-*-*Compute distance from point px,py to a polyline*-*-*-*-*-*
*-*              ===============================================
  Compute the closest distance of approach from point px,py to each segment
  of the polyline.
  Returns when the distance found is below DistanceMaximum.
  The distance is computed in pixels units.


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

void DrawPolyLine(Int_t n, Float_t *x, Float_t *y, Option_t *option)
*-*-*-*-*-*-*-*-*Draw this polyline with new coordinates*-*-*-*-*-*-*-*-*-*
*-*              ========================================

void ExecuteEvent(Int_t event, Int_t px, Int_t py)
*-*-*-*-*-*-*-*-*-*-*Execute action corresponding to one event*-*-*-*
*-*                  =========================================
  This member function is called when a polyline 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 polyline with its attributes*-*-*-*-*-*-*-*-*
*-*                ======================================

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

void PaintPolyLine(Int_t n, Float_t *x, Float_t *y, Option_t *option)
*-*-*-*-*-*-*-*-*Draw this polyline with new coordinates*-*-*-*-*-*-*-*-*-*
*-*              =======================================

void PaintPolyLineNDC(Int_t n, Float_t *x, Float_t *y, Option_t *option)
*-*-*-*-*-*-*-*-*Draw this polyline with new coordinates in NDC*-*-*-*-*-*-*
*-*              ==============================================

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

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

void SetPoint(Int_t point, Float_t x, Float_t y)
*-*-*-*-*-*-*-*-*-*-*-*Initialize one point of the polyline*-*-*-*-*-*-*-*-*
*-*                    ====================================

void SetPolyLine(Int_t n, Float_t *x, Float_t *y, Option_t *option)
*-*-*-*-*-*-*-*-*-*-*-*Set new values for this polyline*-*-*-*-*-*-*-*-*-*
*-*                    ================================

void Streamer(TBuffer &b)
*-*-*-*-*-*-*-*-*Stream a class object*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*              =========================================



Inline Functions


              Int_t GetN()
           Float_t* GetX()
           Float_t* GetY()
          Option_t* GetOption() const
               void SetOption(Option_t* option)
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)


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