TEllipse


class description - source file - inheritance tree

class TEllipse : public TObject, public TAttLine, public TAttFill


    public:
TEllipse TEllipse() TEllipse TEllipse(Double_t x1, Double_t y1, Double_t r1, Double_t r2 = 0, Double_t phimin = 0, Double_t phimax = 360, Double_t theta = 0) TEllipse TEllipse(const TEllipse& ellipse) virtual void ~TEllipse() static TClass* Class() virtual void Copy(TObject& ellipse) virtual Int_t DistancetoPrimitive(Int_t px, Int_t py) virtual void Draw(Option_t* option) virtual void DrawEllipse(Double_t x1, Double_t y1, Double_t r1, Double_t r2, Double_t phimin, Double_t phimax, Double_t theta) virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py) Double_t GetPhimax() const Double_t GetPhimin() const Double_t GetR1() const Double_t GetR2() const Double_t GetTheta() const Double_t GetX1() const Double_t GetY1() const virtual TClass* IsA() const virtual void ls(Option_t* option) const virtual void Paint(Option_t* option) virtual void PaintEllipse(Double_t x1, Double_t y1, Double_t r1, Double_t r2, Double_t phimin, Double_t phimax, Double_t theta) virtual void Print(Option_t* option) const virtual void SavePrimitive(ofstream& out, Option_t* option) virtual void SetPhimax(Double_t phi = 360) virtual void SetPhimin(Double_t phi = 0) virtual void SetR1(Double_t r1) virtual void SetR2(Double_t r2) virtual void SetTheta(Double_t theta = 0) virtual void SetX1(Double_t x1) virtual void SetY1(Double_t y1) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

protected:
Double_t fX1 X coordinate of centre Double_t fY1 Y coordinate of centre Double_t fR1 first radius Double_t fR2 second radius Double_t fPhimin Minimum angle (degrees) Double_t fPhimax Maximum angle (degrees) Double_t fTheta Rotation angle (degrees)


See also

TArc

Class Description

*-*-*-*-*-*-*-*-*-*-*-*-*-*-*Ellipse class*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                          =============
  Ellipse is a general ellipse that can be truncated and rotated.
  An Ellipse is defined by its center (x1,y1) and two radius r1 and r2.
  A minimum and maximum angle may be specified (phimin, phimax).
  The Ellipse may be rotated with an angle theta.
  The attributes of the outline line are given via TAttLine.
  The attributes of the fill area are given via TAttFill.
  The picture below illustrates different types of ellipses.

/*

*/



TEllipse(): TObject(), TAttLine(), TAttFill()
*-*-*-*-*-*-*-*-*-*-*Ellipse default constructor*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                  ===========================

TEllipse(Double_t x1, Double_t y1,Double_t r1,Double_t r2,Double_t phimin,Double_t phimax,Double_t theta) :TObject(), TAttLine(), TAttFill(0,1001)
*-*-*-*-*-*-*-*-*-*-*Ellipse normal constructor*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                  ==========================

~TEllipse()
*-*-*-*-*-*-*-*-*-*-*Ellipse default destructor*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                  ==========================

TEllipse(const TEllipse &ellipse)

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

Int_t DistancetoPrimitive(Int_t px, Int_t py)
*-*-*-*-*-*-*-*-*-*-*Compute distance from point px,py to an ellipse*-*-*-*
*-*                  ===========================================
  Compute the closest distance of approach from point px,py to this ellipse.
  The distance is computed in pixels units.


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

void DrawEllipse(Double_t x1, Double_t y1,Double_t r1,Double_t r2,Double_t phimin,Double_t phimax,Double_t theta)
*-*-*-*-*-*-*-*-*-*-*Draw this ellipse 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 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 ellipse with its attributes*-*-*-*-*-*-*-*
*-*                    =====================================

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

void PaintEllipse(Double_t, Double_t, Double_t, Double_t, Double_t phimin,Double_t phimax, Double_t theta)
*-*-*-*-*-*-*-*-*-*-*Draw this ellipse with new coordinates*-*-*-*-*-*-*-*-*
*-*                  ======================================

void Print(Option_t *) const
*-*-*-*-*-*-*-*-*-*-*Dump this ellipse 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 TEllipse.



Inline Functions


           Double_t GetX1() const
           Double_t GetY1() const
           Double_t GetR1() const
           Double_t GetR2() const
           Double_t GetPhimin() const
           Double_t GetPhimax() const
           Double_t GetTheta() const
               void SetPhimin(Double_t phi = 0)
               void SetPhimax(Double_t phi = 360)
               void SetR1(Double_t r1)
               void SetR2(Double_t r2)
               void SetTheta(Double_t theta = 0)
               void SetX1(Double_t x1)
               void SetY1(Double_t y1)
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void StreamerNVirtual(TBuffer& b)


Author: Rene Brun 16/10/95
Last update: root/graf:$Name: $:$Id: TEllipse.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.