library: libGui
#include "TGImageMap.h"

TGRegion


class description - source file - inheritance tree (.pdf)

class TGRegion : public TObject

Inheritance Chart:
TObject
<-
TGRegion
<-
TGRegionWithId

    protected:
TGRegion(Bool_t) TGRegion CopyRegion() const public:
TGRegion() TGRegion(Int_t x, Int_t y, UInt_t w, UInt_t h, TGRegion::ERegionType = kRectangle) TGRegion(Int_t n, TPoint* points, Bool_t winding = kFALSE) TGRegion(Int_t n, Int_t* x, Int_t* y, Bool_t winding = kFALSE) TGRegion(const TArrayS& x, const TArrayS& y, Bool_t winding = kFALSE) 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 ~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)

Data Members


    protected:
TGRegionData* fData data describing region public:
static const TGRegion::ERegionType kRectangle static const TGRegion::ERegionType kEllipse

Class Description

                                                                      
 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.8 2005/06/24 20:30:12 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Class Hierarchy - 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.