summaryrefslogtreecommitdiff
path: root/basegfx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2007-07-18 10:07:51 +0000
committerOliver Bolte <obo@openoffice.org>2007-07-18 10:07:51 +0000
commit67adbfe3ea8485a339fc570d4ada08eae271fe72 (patch)
tree4534c871418f16da8a4cb4901b07f828a20d97f4 /basegfx
parent6656bdaf82d41661150f4d12168fa0aa0169df00 (diff)
INTEGRATION: CWS aw051 (1.4.6); FILE MERGED
2007/06/07 09:32:50 aw 1.4.6.2: #i77162# changes to B2DPolygon bezier handling 2007/06/06 15:49:42 aw 1.4.6.1: #i77162# B2DPolygin control point interface changes
Diffstat (limited to 'basegfx')
-rwxr-xr-xbasegfx/source/tools/debugplotter.cxx21
1 files changed, 8 insertions, 13 deletions
diff --git a/basegfx/source/tools/debugplotter.cxx b/basegfx/source/tools/debugplotter.cxx
index fb313529afd1..7ddaa236fcde 100755
--- a/basegfx/source/tools/debugplotter.cxx
+++ b/basegfx/source/tools/debugplotter.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: debugplotter.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: rt $ $Date: 2007-04-17 13:54:47 $
+ * last change: $Author: obo $ $Date: 2007-07-18 11:07:51 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -242,7 +242,7 @@ namespace basegfx
const ::std::size_t nSize( maPolygons.size() );
for( ::std::size_t i=0; i<nSize; ++i )
{
- if( maPolygons.at(i).first.areControlVectorsUsed() )
+ if( maPolygons.at(i).first.areControlPointsUsed() )
{
const B2DPolygon& rCurrPoly( maPolygons.at(i).first );
@@ -253,8 +253,8 @@ namespace basegfx
print( ", \\\n" );
const B2DPoint& rP0( rCurrPoly.getB2DPoint(k) );
- const B2DPoint& rP1( rCurrPoly.getControlPointA(k) );
- const B2DPoint& rP2( rCurrPoly.getControlPointB(k) );
+ const B2DPoint& rP1( rCurrPoly.getNextControlPoint(k) );
+ const B2DPoint& rP2( rCurrPoly.getPrevControlPoint((k + 1) % nCount) );
const B2DPoint& rP3( k+1<nCount ? rCurrPoly.getB2DPoint(k+1) : rCurrPoly.getB2DPoint(k) );
if( mpOutputStream )
@@ -340,7 +340,7 @@ namespace basegfx
const ::std::size_t nSize( maPolygons.size() );
for( ::std::size_t i=0; i<nSize; ++i )
{
- if( !maPolygons.at(i).first.areControlVectorsUsed() )
+ if( !maPolygons.at(i).first.areControlPointsUsed() )
{
const B2DPolygon& rCurrPoly( maPolygons.at(i).first );
@@ -382,13 +382,8 @@ namespace basegfx
const sal_Char* pTitle )
{
B2DPolygon aPoly;
- aPoly.append( rBezier.getStartPoint() );
- aPoly.setControlPointA( 0,
- rBezier.getControlPointA() );
- aPoly.setControlPointB( 0,
- rBezier.getControlPointB() );
- aPoly.append( rBezier.getEndPoint() );
-
+ aPoly.append(rBezier.getStartPoint());
+ aPoly.appendBezierSegment(rBezier.getControlPointA(), rBezier.getControlPointB(), rBezier.getEndPoint());
maPolygons.push_back( ::std::make_pair( aPoly,
::rtl::OString( pTitle ) ) );
}