diff options
Diffstat (limited to 'tools/source/generic/poly.cxx')
-rw-r--r-- | tools/source/generic/poly.cxx | 99 |
1 files changed, 0 insertions, 99 deletions
diff --git a/tools/source/generic/poly.cxx b/tools/source/generic/poly.cxx index bd7b5c0d25..ad650bd651 100644 --- a/tools/source/generic/poly.cxx +++ b/tools/source/generic/poly.cxx @@ -676,27 +676,6 @@ Polygon::~Polygon() // ----------------------------------------------------------------------- -Point* Polygon::ImplGetPointAry() -{ - DBG_CHKTHIS( Polygon, NULL ); - - ImplMakeUnique(); - return (Point*)mpImplPolygon->mpPointAry; -} - -// ----------------------------------------------------------------------- - -sal_uInt8* Polygon::ImplGetFlagAry() -{ - DBG_CHKTHIS( Polygon, NULL ); - - ImplMakeUnique(); - mpImplPolygon->ImplCreateFlagArray(); - return mpImplPolygon->mpFlagAry; -} - -// ----------------------------------------------------------------------- - const Point* Polygon::GetConstPointAry() const { DBG_CHKTHIS( Polygon, NULL ); @@ -773,32 +752,6 @@ sal_Bool Polygon::HasFlags() const // ----------------------------------------------------------------------- -sal_Bool Polygon::IsControl(sal_uInt16 nPos) const -{ - DBG_CHKTHIS( Polygon, NULL ); - DBG_ASSERT( nPos < mpImplPolygon->mnPoints, - "Polygon::GetFlags(): nPos >= nPoints" ); - PolyFlags eFlags = mpImplPolygon->mpFlagAry ? - (PolyFlags) mpImplPolygon->mpFlagAry[ nPos ] : POLY_NORMAL; - - return( POLY_CONTROL == eFlags ); -} - -// ----------------------------------------------------------------------- - -sal_Bool Polygon::IsSmooth(sal_uInt16 nPos) const -{ - DBG_CHKTHIS( Polygon, NULL ); - DBG_ASSERT( nPos < mpImplPolygon->mnPoints, - "Polygon::GetFlags(): nPos >= nPoints" ); - PolyFlags eFlags = mpImplPolygon->mpFlagAry ? - (PolyFlags) mpImplPolygon->mpFlagAry[ nPos ] : POLY_NORMAL; - - return( ( POLY_SMOOTH == eFlags ) || ( POLY_SYMMTR == eFlags ) ); -} - -// ----------------------------------------------------------------------- - sal_Bool Polygon::IsRect() const { sal_Bool bIsRect = sal_False; @@ -1087,38 +1040,6 @@ void Polygon::AdaptiveSubdivide( Polygon& rResult, const double d ) const // ----------------------------------------------------------------------- -void Polygon::GetIntersection( const PolyPolygon& rPolyPoly, PolyPolygon& rResult ) const -{ - const PolyPolygon aTmp( *this ); - aTmp.GetIntersection( rPolyPoly, rResult ); -} - -// ----------------------------------------------------------------------- - -void Polygon::GetUnion( const PolyPolygon& rPolyPoly, PolyPolygon& rResult ) const -{ - const PolyPolygon aTmp( *this ); - aTmp.GetUnion( rPolyPoly, rResult ); -} - -// ----------------------------------------------------------------------- - -void Polygon::GetDifference( const PolyPolygon& rPolyPoly, PolyPolygon& rResult ) const -{ - const PolyPolygon aTmp( *this ); - aTmp.GetDifference( rPolyPoly, rResult ); -} - -// ----------------------------------------------------------------------- - -void Polygon::GetXOR( const PolyPolygon& rPolyPoly, PolyPolygon& rResult ) const -{ - const PolyPolygon aTmp( *this ); - aTmp.GetXOR( rPolyPoly, rResult ); -} - -// ----------------------------------------------------------------------- - void Polygon::ImplReduceEdges( Polygon& rPoly, const double& rArea, sal_uInt16 nPercent ) { const double fBound = 2000.0 * ( 100 - nPercent ) * 0.01; @@ -1654,14 +1575,6 @@ Rectangle Polygon::GetBoundRect() const // ----------------------------------------------------------------------- -double Polygon::GetArea() const -{ - const double fArea = GetSignedArea(); - return( ( fArea < 0.0 ) ? -fArea : fArea ); -} - -// ----------------------------------------------------------------------- - double Polygon::GetSignedArea() const { DBG_CHKTHIS( Polygon, NULL ); @@ -1791,18 +1704,6 @@ void Polygon::Insert( sal_uInt16 nPos, const Polygon& rPoly ) // ----------------------------------------------------------------------- -void Polygon::Remove( sal_uInt16 nPos, sal_uInt16 nCount ) -{ - DBG_CHKTHIS( Polygon, NULL ); - if( nCount && ( nPos < mpImplPolygon->mnPoints ) ) - { - ImplMakeUnique(); - mpImplPolygon->ImplRemove( nPos, nCount ); - } -} - -// ----------------------------------------------------------------------- - Point& Polygon::operator[]( sal_uInt16 nPos ) { DBG_CHKTHIS( Polygon, NULL ); |