TGRegion
class description - source file - inheritance tree
protected:
TGRegion TGRegion(Bool_t)
TGRegion CopyRegion() const
public:
TGRegion TGRegion()
TGRegion TGRegion(Int_t x, Int_t y, UInt_t w, UInt_t h, TGRegion::ERegionType = kRectangle)
TGRegion TGRegion(Int_t n, TPoint* points, Bool_t winding = kFALSE)
TGRegion TGRegion(Int_t n, Int_t* x, Int_t* y, Bool_t winding = kFALSE)
TGRegion TGRegion(const TArrayS& x, const TArrayS& y, Bool_t winding = kFALSE)
TGRegion TGRegion(const TGRegion& reg)
TGRegion Unite(const TGRegion& r) const
TGRegion Intersect(const TGRegion& r) const
TGRegion Subtract(const TGRegion& r) const
TGRegion Eor(const TGRegion& r) const
TGRegion operator|(const TGRegion& r) const
TGRegion operator+(const TGRegion& r) const
TGRegion operator&(const TGRegion& r) const
TGRegion operator-(const TGRegion& r) const
TGRegion operator^(const TGRegion& r) const
virtual void ~TGRegion()
static TClass* Class()
Bool_t Contains(const TPoint& p) const
Bool_t Contains(Int_t x, Int_t y) const
TGDimension GetDimension() const
TGPosition GetPosition() const
virtual TClass* IsA() const
Bool_t IsEmpty() const
Bool_t IsNull() const
Bool_t operator!=(const TGRegion& r) const
TGRegion& operator&=(const TGRegion& r)
TGRegion& operator+=(const TGRegion& r)
TGRegion& operator-=(const TGRegion& r)
TGRegion& operator=(const TGRegion& r)
Bool_t operator==(const TGRegion& r) const
TGRegion& operator^=(const TGRegion& r)
TGRegion& operator|=(const TGRegion& r)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
protected:
TGRegionData* fData data describing region
public:
static const TGRegion::ERegionType kRectangle
static const TGRegion::ERegionType kEllipse
See also
-
TGRegionWithId
TGImageMap (with TGRegion and TGRegionWithId help classes)
A TGImageMap provides the functionality like a clickable image in
a web browser with sensitive regions (MAP HTML tag).
TGRegion()
Create a region object.
TGRegion(Bool_t is_null)
Create empty region.
TGRegion(Int_t x, Int_t y, UInt_t w, UInt_t h, ERegionType)
Create and initialize a region with a rectangle.
TGRegion(Int_t n, TPoint *points, Bool_t winding)
Create and intialize a region with a polygon.
TGRegion(const TArrayS &x, const TArrayS &y, Bool_t winding)
Create and initialize a region with an X and a Y array of points.
TGRegion(Int_t n, Int_t *x, Int_t *y, Bool_t winding)
Create and initialize a region with an X and Y array of points.
TGRegion(const TGRegion &r) : TObject(r)
Region copy constructor.
~TGRegion()
Delete a region.
TGRegion CopyRegion() const
Copy a region.
Bool_t IsNull() const
Return true if region is not set.
Bool_t IsEmpty() const
Return true if region is empty.
Bool_t Contains(const TPoint &p) const
Return true if point p is contained in the region.
Bool_t Contains(Int_t x, Int_t y) const
Return true if point (x,y) is contained in the region.
TGRegion Unite(const TGRegion &r) const
Return the union of this region with r.
TGRegion Intersect(const TGRegion &r) const
Returns a region which is the intersection of this region and r.
TGRegion Subtract(const TGRegion &r) const
Returns a region which is r subtracted from this region.
TGRegion Eor(const TGRegion &r) const
Returns a region which is the difference between the union and
intersection this region and r.
TGDimension GetDimension() const
Return dimension of region (widht, height).
TGPosition GetPosition() const
Return position of region (x, y).
Inline Functions
TGRegion operator|(const TGRegion& r) const
TGRegion operator+(const TGRegion& r) const
TGRegion operator&(const TGRegion& r) const
TGRegion operator-(const TGRegion& r) const
TGRegion operator^(const TGRegion& r) const
TGRegion& operator|=(const TGRegion& r)
TGRegion& operator+=(const TGRegion& r)
TGRegion& operator&=(const TGRegion& r)
TGRegion& operator-=(const TGRegion& r)
TGRegion& operator^=(const TGRegion& r)
Bool_t operator==(const TGRegion& r) const
Bool_t operator!=(const TGRegion& r) const
TGRegion& operator=(const TGRegion& r)
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
Author: Valeriy Onuchin & Fons Rademakers 18/10/2000
Last update: root/gui:$Name: $:$Id: TGImageMap.cxx,v 1.3 2002/05/18 08:21:59 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.