diff options
Diffstat (limited to 'basegfx/source')
-rw-r--r-- | basegfx/source/polygon/b2dpolygon.cxx | 4 | ||||
-rw-r--r-- | basegfx/source/polygon/b2dpolygonclipper.cxx | 4 | ||||
-rw-r--r-- | basegfx/source/polygon/b2dtrapezoid.cxx | 12 | ||||
-rw-r--r-- | basegfx/source/polygon/b3dpolygon.cxx | 4 |
4 files changed, 24 insertions, 0 deletions
diff --git a/basegfx/source/polygon/b2dpolygon.cxx b/basegfx/source/polygon/b2dpolygon.cxx index 87343028ecfe..4cf280cd5b91 100644 --- a/basegfx/source/polygon/b2dpolygon.cxx +++ b/basegfx/source/polygon/b2dpolygon.cxx @@ -29,6 +29,8 @@ #include <memory> #include <vector> +namespace { + struct CoordinateData2D : public basegfx::B2DPoint { public: @@ -552,6 +554,8 @@ public: } }; +} + class ImplB2DPolygon { private: diff --git a/basegfx/source/polygon/b2dpolygonclipper.cxx b/basegfx/source/polygon/b2dpolygonclipper.cxx index 9d672b4397c0..043f2c9bdfe3 100644 --- a/basegfx/source/polygon/b2dpolygonclipper.cxx +++ b/basegfx/source/polygon/b2dpolygonclipper.cxx @@ -510,6 +510,8 @@ namespace basegfx return aRetval; } + namespace { + /* * let a plane be defined as * @@ -536,6 +538,8 @@ namespace basegfx sal_uInt32 clipmask; // clipping mask, e.g. 1000 1000 }; + } + /* * * polygon clipping rules (straight out of Foley and Van Dam) diff --git a/basegfx/source/polygon/b2dtrapezoid.cxx b/basegfx/source/polygon/b2dtrapezoid.cxx index ec3d037e6aa8..8bba58f8106e 100644 --- a/basegfx/source/polygon/b2dtrapezoid.cxx +++ b/basegfx/source/polygon/b2dtrapezoid.cxx @@ -36,6 +36,8 @@ namespace basegfx // class for this since holding the pointers is more effective and also can be // used as baseclass for the traversing edges + namespace { + class TrDeSimpleEdge { protected: @@ -58,6 +60,8 @@ namespace basegfx const B2DPoint& getEnd() const { return *mpEnd; } }; + } + // define vector of simple edges typedef std::vector< TrDeSimpleEdge > TrDeSimpleEdges; @@ -67,6 +71,8 @@ namespace basegfx // hold and used in SortValue to allow sorting traversing edges by Y, X and slope // (in that order) + namespace { + class TrDeEdgeEntry : public TrDeSimpleEdge { private: @@ -179,6 +185,8 @@ namespace basegfx } }; + } + // define double linked list of edges (for fast random insert) typedef std::list< TrDeEdgeEntry > TrDeEdgeEntries; @@ -192,6 +200,8 @@ namespace basegfx { // FIXME: templatize this and use it for TrDeEdgeEntries too ... + namespace { + /// Class to allow efficient allocation and release of B2DPoints class PointBlockAllocator { @@ -883,6 +893,8 @@ namespace basegfx } } }; + + } } // end of anonymous namespace } // end of namespace basegfx diff --git a/basegfx/source/polygon/b3dpolygon.cxx b/basegfx/source/polygon/b3dpolygon.cxx index 5d23be90562c..422353fba8ad 100644 --- a/basegfx/source/polygon/b3dpolygon.cxx +++ b/basegfx/source/polygon/b3dpolygon.cxx @@ -27,6 +27,8 @@ #include <vector> #include <algorithm> +namespace { + class CoordinateData3D { basegfx::B3DPoint maPoint; @@ -672,6 +674,8 @@ public: } }; +} + class ImplB3DPolygon { // The point vector. This vector exists always and defines the |