Region Class Reference

#include <region.hxx>

Collaboration diagram for Region:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Region ()
 Region (RegionType eType)
 Region (const Rectangle &rRect)
 Region (const Polygon &rPolygon)
 Region (const PolyPolygon &rPolyPoly)
 Region (const basegfx::B2DPolyPolygon &)
 Region (const Region &rRegion)
 ~Region ()
void Move (long nHorzMove, long nVertMove)
void Scale (double fScaleX, double fScaleY)
BOOL Union (const Rectangle &rRegion)
BOOL Intersect (const Rectangle &rRegion)
BOOL Exclude (const Rectangle &rRegion)
BOOL XOr (const Rectangle &rRegion)
BOOL Union (const Region &rRegion)
BOOL Intersect (const Region &rRegion)
BOOL Exclude (const Region &rRegion)
BOOL XOr (const Region &rRegion)
RegionType GetType () const
BOOL IsEmpty () const
BOOL IsNull () const
void SetEmpty ()
void SetNull ()
Rectangle GetBoundRect () const
BOOL HasPolyPolygon () const
PolyPolygon GetPolyPolygon () const
const basegfx::B2DPolyPolygon GetB2DPolyPolygon () const
ULONG GetRectCount () const
RegionHandle BeginEnumRects ()
BOOL GetEnumRects (RegionHandle hRegionHandle, Rectangle &rRect)
BOOL GetNextEnumRect (RegionHandle hRegionHandle, Rectangle &rRect)
void EndEnumRects (RegionHandle hRegionHandle)
BOOL IsInside (const Point &rPoint) const
BOOL IsInside (const Rectangle &rRect) const
BOOL IsOver (const Rectangle &rRect) const
Regionoperator= (const Region &rRegion)
Regionoperator= (const Rectangle &rRect)
BOOL operator== (const Region &rRegion) const
BOOL operator!= (const Region &rRegion) const

Static Public Member Functions

static Region GetRegionFromPolyPolygon (const PolyPolygon &rPolyPoly)

Private Member Functions

SAL_DLLPRIVATE void ImplCopyData ()
SAL_DLLPRIVATE void ImplCreateRectRegion (const Rectangle &rRect)
SAL_DLLPRIVATE void ImplCreatePolyPolyRegion (const PolyPolygon &rPolyPoly)
SAL_DLLPRIVATE void ImplPolyPolyRegionToBandRegionFunc ()
SAL_DLLPRIVATE void ImplPolyPolyRegionToBandRegion ()
SAL_DLLPRIVATE const ImplRegionImplGetImplRegion () const
SAL_DLLPRIVATE ImplRegionImplGetImplRegion ()
SAL_DLLPRIVATE BOOL ImplGetFirstRect (ImplRegionInfo &rImplRegionInfo, long &nX, long &nY, long &nWidth, long &nHeight) const
SAL_DLLPRIVATE BOOL ImplGetNextRect (ImplRegionInfo &rImplRegionInfo, long &nX, long &nY, long &nWidth, long &nHeight) const
SAL_DLLPRIVATE void ImplBeginAddRect ()
SAL_DLLPRIVATE BOOL ImplAddRect (const Rectangle &rRect)
SAL_DLLPRIVATE void ImplEndAddRect ()

Private Attributes

ImplRegionmpImplRegion

Friends

class OutputDevice
class Window
class Bitmap
const char * ImplDbgTestRegion (const void *pObj)
VCL_DLLPUBLIC SvStream & operator>> (SvStream &rIStm, Region &rRegion)
VCL_DLLPUBLIC SvStream & operator<< (SvStream &rOStm, const Region &rRegion)


Detailed Description

Definition at line 56 of file region.hxx.


Constructor & Destructor Documentation

Region::Region (  ) 

Definition at line 1085 of file region.cxx.

References aImplEmptyRegion, ImplDbgTestRegion, and mpImplRegion.

Referenced by BeginEnumRects(), and GetRegionFromPolyPolygon().

Region::Region ( RegionType  eType  ) 

Region::Region ( const Rectangle &  rRect  ) 

Definition at line 1108 of file region.cxx.

References ImplCreateRectRegion(), and ImplDbgTestRegion.

Region::Region ( const Polygon &  rPolygon  ) 

Definition at line 1117 of file region.cxx.

References ImplCreatePolyPolyRegion(), and ImplDbgTestRegion.

Region::Region ( const PolyPolygon &  rPolyPoly  ) 

Definition at line 1127 of file region.cxx.

References ImplCreatePolyPolyRegion(), and ImplDbgTestRegion.

Region::Region ( const basegfx::B2DPolyPolygon rPolyPoly  ) 

Definition at line 1137 of file region.cxx.

References ImplDbgTestRegion, and mpImplRegion.

Region::Region ( const Region rRegion  ) 

Definition at line 1147 of file region.cxx.

References ImplDbgTestRegion, ImplRegionBase::mnRefCount, and mpImplRegion.

Region::~Region (  ) 

Definition at line 1161 of file region.cxx.

References ImplDbgTestRegion, ImplRegionBase::mnRefCount, and mpImplRegion.


Member Function Documentation

void Region::ImplCopyData (  )  [private]

Definition at line 1077 of file region.cxx.

References ImplRegionBase::mnRefCount, and mpImplRegion.

Referenced by Exclude(), Intersect(), Move(), Scale(), Union(), and XOr().

void Region::ImplCreateRectRegion ( const Rectangle &  rRect  )  [private]

Definition at line 1177 of file region.cxx.

References aImplEmptyRegion, and mpImplRegion.

Referenced by ImplCreatePolyPolyRegion(), operator=(), and Region().

void Region::ImplCreatePolyPolyRegion ( const PolyPolygon &  rPolyPoly  )  [private]

Definition at line 1203 of file region.cxx.

References aImplEmptyRegion, ImplCreateRectRegion(), and mpImplRegion.

Referenced by Region().

void Region::ImplPolyPolyRegionToBandRegionFunc (  )  [private]

void Region::ImplPolyPolyRegionToBandRegion (  )  [inline, private]

SAL_DLLPRIVATE const ImplRegion* Region::ImplGetImplRegion (  )  const [inline, private]

SAL_DLLPRIVATE ImplRegion* Region::ImplGetImplRegion (  )  [inline, private]

Definition at line 71 of file region.hxx.

BOOL Region::ImplGetFirstRect ( ImplRegionInfo rImplRegionInfo,
long &  nX,
long &  nY,
long &  nWidth,
long &  nHeight 
) const [private]

BOOL Region::ImplGetNextRect ( ImplRegionInfo rImplRegionInfo,
long &  nX,
long &  nY,
long &  nWidth,
long &  nHeight 
) const [private]

void Region::ImplBeginAddRect (  )  [private]

BOOL Region::ImplAddRect ( const Rectangle &  rRect  )  [private]

void Region::ImplEndAddRect (  )  [private]

void Region::Move ( long  nHorzMove,
long  nVertMove 
)

void Region::Scale ( double  fScaleX,
double  fScaleY 
)

BOOL Region::Union ( const Rectangle &  rRegion  ) 

BOOL Region::Intersect ( const Rectangle &  rRegion  ) 

BOOL Region::Exclude ( const Rectangle &  rRegion  ) 

BOOL Region::XOr ( const Rectangle &  rRegion  ) 

BOOL Region::Union ( const Region rRegion  ) 

BOOL Region::Intersect ( const Region rRegion  ) 

BOOL Region::Exclude ( const Region rRegion  ) 

BOOL Region::XOr ( const Region rRegion  ) 

RegionType Region::GetType (  )  const

BOOL Region::IsEmpty (  )  const [inline]

BOOL Region::IsNull (  )  const [inline]

void Region::SetEmpty (  ) 

void Region::SetNull (  ) 

Rectangle Region::GetBoundRect (  )  const

Definition at line 1905 of file region.cxx.

References aImplEmptyRegion, aImplNullRegion, basegfx::B2DRange::getHeight(), basegfx::B2DRange::getMinX(), basegfx::B2DRange::getMinY(), basegfx::tools::getRange(), basegfx::B2DRange::getWidth(), ImplRegionBand::GetXLeftBoundary(), ImplRegionBand::GetXRightBoundary(), ImplDbgTestRegion, ImplRegionBand::mnYBottom, ImplRegionBand::mnYTop, ImplRegionBase::mpB2DPolyPoly, ImplRegion::mpFirstBand, mpImplRegion, ImplRegionBand::mpNextBand, and ImplRegionBase::mpPolyPoly.

Referenced by ListBox::CalcMinimumSize(), StatusBar::CalcWindowSizePixel(), OutputDevice::DrawTransparent(), GDIMetaFile::GetBoundRect(), ScrollBar::ImplCalc(), SpinField::ImplCalcButtonAreas(), ComboBox::ImplCalcEditHeight(), ToolBox::ImplCalcItem(), StatusBar::ImplCalcProgressRect(), Menu::ImplCalcSize(), Window::ImplCallPaint(), Edit::ImplClearBackground(), OutputDevice::ImplDrawAlpha(), ToolBox::ImplDrawConstantBackground(), ImplDrawFrame(), CheckBox::ImplGetCheckImageSize(), ToolBox::ImplGetDragWidth(), TabControl::ImplGetItemSize(), Menu::ImplGetNativeCheckAndRadioSize(), RadioButton::ImplGetRadioImageSize(), ListBox::ImplInit(), Window::ImplInitAppFontData(), TabControl::ImplPaint(), PushButton::ImplSetDefButton(), CheckBox::ImplSetMinimumNWFSize(), RadioButton::ImplSetMinimumNWFSize(), SVMConverter::ImplWriteActions(), ImplSmallBorderWindowView::Init(), SalGraphics::mirror(), ScrollBar::PreNotify(), SpinField::Resize(), ListBox::Resize(), ComboBox::Resize(), and Window::Show().

BOOL Region::HasPolyPolygon (  )  const

PolyPolygon Region::GetPolyPolygon (  )  const

const basegfx::B2DPolyPolygon Region::GetB2DPolyPolygon (  )  const

ULONG Region::GetRectCount (  )  const

RegionHandle Region::BeginEnumRects (  ) 

BOOL Region::GetEnumRects ( RegionHandle  hRegionHandle,
Rectangle &  rRect 
)

BOOL Region::GetNextEnumRect ( RegionHandle  hRegionHandle,
Rectangle &  rRect 
) [inline]

void Region::EndEnumRects ( RegionHandle  hRegionHandle  ) 

BOOL Region::IsInside ( const Point &  rPoint  )  const

BOOL Region::IsInside ( const Rectangle &  rRect  )  const

BOOL Region::IsOver ( const Rectangle &  rRect  )  const

Region & Region::operator= ( const Region rRegion  ) 

Definition at line 2226 of file region.cxx.

References ImplDbgTestRegion, ImplRegionBase::mnRefCount, and mpImplRegion.

Region & Region::operator= ( const Rectangle &  rRect  ) 

BOOL Region::operator== ( const Region rRegion  )  const

BOOL Region::operator!= ( const Region rRegion  )  const [inline]

Definition at line 133 of file region.hxx.

References operator==().

Region Region::GetRegionFromPolyPolygon ( const PolyPolygon &  rPolyPoly  )  [static]

Definition at line 2868 of file region.cxx.

References ImplPolygonRectTest(), Region(), and XOr().

Referenced by OutputDevice::SetTriangleClipRegion().


Friends And Related Function Documentation

friend class OutputDevice [friend]

Definition at line 58 of file region.hxx.

friend class Window [friend]

Definition at line 59 of file region.hxx.

friend class Bitmap [friend]

Definition at line 60 of file region.hxx.

const char* ImplDbgTestRegion ( const void *  pObj  )  [friend]

VCL_DLLPUBLIC SvStream& operator>> ( SvStream &  rIStm,
Region rRegion 
) [friend]

Definition at line 2374 of file region.cxx.

VCL_DLLPUBLIC SvStream& operator<< ( SvStream &  rOStm,
const Region rRegion 
) [friend]

Definition at line 2485 of file region.cxx.


Member Data Documentation


The documentation for this class was generated from the following files:

Generated on Thu Apr 29 14:01:13 2010 for ooo-build Module vcl (ooo/OOO320_m15) by  doxygen 1.5.6