summaryrefslogtreecommitdiff
path: root/basegfx/inc/basegfx
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@gmail.com>2011-12-22 11:27:50 +0100
committerMatúš Kukan <matus.kukan@gmail.com>2011-12-22 15:33:50 +0100
commitb769901d5a09d7c8bd9ef666a863ff5e7fce4c1e (patch)
tree9a4ac45203f9bf465625ca2d636eda0abc1f8163 /basegfx/inc/basegfx
parent9856dfd3cccc145130c7e5e7c4c1571a3d2068aa (diff)
unusedcode: remove various unused classes
Diffstat (limited to 'basegfx/inc/basegfx')
-rw-r--r--basegfx/inc/basegfx/curve/b2dquadraticbezier.hxx77
-rw-r--r--basegfx/inc/basegfx/polygon/b2dpolypolygonrasterconverter.hxx145
2 files changed, 0 insertions, 222 deletions
diff --git a/basegfx/inc/basegfx/curve/b2dquadraticbezier.hxx b/basegfx/inc/basegfx/curve/b2dquadraticbezier.hxx
deleted file mode 100644
index 10f57670ecb4..000000000000
--- a/basegfx/inc/basegfx/curve/b2dquadraticbezier.hxx
+++ /dev/null
@@ -1,77 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _BGFX_CURVE_B2DQUADRATICBEZIER_HXX
-#define _BGFX_CURVE_B2DQUADRATICBEZIER_HXX
-
-#include <basegfx/point/b2dpoint.hxx>
-#include <basegfx/basegfxdllapi.h>
-
-//////////////////////////////////////////////////////////////////////////////
-
-namespace basegfx
-{
- class BASEGFX_DLLPUBLIC B2DQuadraticBezier
- {
- ::basegfx::B2DPoint maStartPoint;
- ::basegfx::B2DPoint maEndPoint;
- ::basegfx::B2DPoint maControlPoint;
-
- public:
- B2DQuadraticBezier();
- B2DQuadraticBezier(const B2DQuadraticBezier& rBezier);
- B2DQuadraticBezier(const ::basegfx::B2DPoint& rStart, const ::basegfx::B2DPoint& rEnd);
- B2DQuadraticBezier(const ::basegfx::B2DPoint& rStart,
- const ::basegfx::B2DPoint& rControlPoint, const ::basegfx::B2DPoint& rEnd);
- ~B2DQuadraticBezier();
-
- // assignment operator
- B2DQuadraticBezier& operator=(const B2DQuadraticBezier& rBezier);
-
- // compare operators
- bool operator==(const B2DQuadraticBezier& rBezier) const;
- bool operator!=(const B2DQuadraticBezier& rBezier) const;
-
- // test if control point is placed on the edge
- bool isBezier() const;
-
- // data interface
- ::basegfx::B2DPoint getStartPoint() const { return maStartPoint; }
- void setStartPoint(const ::basegfx::B2DPoint& rValue) { maStartPoint = rValue; }
-
- ::basegfx::B2DPoint getEndPoint() const { return maEndPoint; }
- void setEndPoint(const ::basegfx::B2DPoint& rValue) { maEndPoint = rValue; }
-
- ::basegfx::B2DPoint getControlPoint() const { return maControlPoint; }
- void setControlPoint(const ::basegfx::B2DPoint& rValue) { maControlPoint = rValue; }
- };
-} // end of namespace basegfx
-
-#endif /* _BGFX_CURVE_B2DQUADRATICBEZIER_HXX */
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/basegfx/inc/basegfx/polygon/b2dpolypolygonrasterconverter.hxx b/basegfx/inc/basegfx/polygon/b2dpolypolygonrasterconverter.hxx
deleted file mode 100644
index 36a4793f4c56..000000000000
--- a/basegfx/inc/basegfx/polygon/b2dpolypolygonrasterconverter.hxx
+++ /dev/null
@@ -1,145 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _BGFX_POLYGON_B2DPOLYPOLYGONRASTERCONVERTER_HXX
-#define _BGFX_POLYGON_B2DPOLYPOLYGONRASTERCONVERTER_HXX
-
-#include <basegfx/point/b2dpoint.hxx>
-#include <basegfx/range/b2drectangle.hxx>
-#include <basegfx/polygon/b2dpolypolygon.hxx>
-#include <basegfx/polygon/b2dpolypolygonfillrule.hxx>
-#include <vector>
-#include <utility>
-#include <basegfx/basegfxdllapi.h>
-
-//////////////////////////////////////////////////////////////////////////////
-
-namespace basegfx
-{
- /** Raster-convert a poly-polygon.
-
- This class can raster-convert a given poly-polygon. Simply
- derive from this, and override the span() method, which will
- get called for every scanline span of the poly-polygon.
-
- @derive
- Overwrite span() with the render output method of your choice.
- */
- class BASEGFX_DLLPUBLIC B2DPolyPolygonRasterConverter
- {
- public:
- /** Create raster-converter for given poly-polygon
- */
- B2DPolyPolygonRasterConverter(const B2DPolyPolygon& rPolyPolyRaster);
-
- /** Create raster-converter for given poly-polygon and raster
- area.
-
- @param rPolyPolyRaster
- Poly-Polygon to raster convert
-
- @param rMinUpdateArea
- Minimal area to touch when raster-converting. The
- rectangle given here is guaranteed to be iterated through
- scanline by scanline (but the raster converter might
- actually use more scanlines, e.g. if the poly-polygon's
- bound rect is larger). One of the cases where this
- parameter comes in handy is when rendering in the 'off'
- spans, and a certain area must be filled. <em>Do not</em>
- use this for clipping, as described above, the touched
- area might also be larger.
- */
- B2DPolyPolygonRasterConverter(const B2DPolyPolygon& rPolyPolyRaster,
- const B2DRectangle& rRasterArea );
-
- virtual ~B2DPolyPolygonRasterConverter();
-
- /** Raster-convert the contained poly-polygon
-
- @param eFillRule
- Fill rule to use for span filling
- */
- void rasterConvert( FillRule eFillRule);
-
- /** Override this method, to be called for every scanline span
- of the poly-polygon
-
- @param rfXLeft
- The left end of the current horizontal span
-
- @param rfXRight
- The right end of the current horizontal span
-
- @param nY
- The y position of the current horizontal span
-
- @param bOn
- Denotes whether this span is on or off, according to the
- active fill rule.
- */
- virtual void span(const double& rfXLeft,
- const double& rfXRight,
- sal_Int32 nY,
- bool bOn ) = 0;
-
- /// @internal
- struct Vertex
- {
- inline Vertex();
- inline Vertex( const B2DPoint&, const B2DPoint&, bool );
-
- B2DPoint aP1;
- B2DPoint aP2;
- bool bDownwards;
- };
-
- private:
- // default: disabled copy/assignment
- B2DPolyPolygonRasterConverter(const B2DPolyPolygonRasterConverter&);
- B2DPolyPolygonRasterConverter& operator=( const B2DPolyPolygonRasterConverter& );
-
- void init();
-
- typedef ::std::vector<Vertex> VectorOfVertices;
- typedef ::std::vector<VectorOfVertices> VectorOfVertexVectors;
-
- /// The poly-polygon to raster-convert
- B2DPolyPolygon maPolyPolygon;
- /// Total bound rect of the poly-polygon
- const B2DRectangle maPolyPolyRectangle;
-
- /** Vector containing for each scanline a vector which in turn
- contains all vertices that start on the specific scanline
- */
- VectorOfVertexVectors maScanlines;
- };
-}
-
-#endif /* _BGFX_POLYGON_B2DPOLYPOLYGONRASTERCONVERTER_HXX */
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */