Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : */
9 : #ifndef INCLUDED_FILTER_SOURCE_SVG_B2DELLIPSE_HXX
10 : #define INCLUDED_FILTER_SOURCE_SVG_B2DELLIPSE_HXX
11 :
12 : #include <sal/types.h>
13 :
14 : #include <o3tl/cow_wrapper.hxx>
15 :
16 : #include <basegfx/point/b2dpoint.hxx>
17 :
18 : #include <basegfx/tuple/b2dtuple.hxx>
19 :
20 : #include <basegfx/vector/b2enums.hxx>
21 :
22 : namespace basegfx
23 : {
24 : class B2DPoint;
25 : } // end of namespace basegfx
26 :
27 : namespace basegfx
28 : {
29 : class B2DEllipse
30 : {
31 : private:
32 : const basegfx::B2DPoint maCenter;
33 : const basegfx::B2DTuple maRadius;
34 :
35 : public:
36 : B2DEllipse(const B2DEllipse& rEllipse);
37 : B2DEllipse(const basegfx::B2DPoint& rCenter, const basegfx::B2DTuple& rRadius);
38 : ~B2DEllipse();
39 :
40 : // assignment operator
41 : B2DEllipse& operator=(const B2DEllipse& rEllipse);
42 :
43 : // compare operators
44 : bool operator==(const B2DEllipse& rEllipse) const;
45 : bool operator!=(const B2DEllipse& rEllipse) const;
46 :
47 : // Coordinate interface
48 0 : basegfx::B2DPoint getB2DEllipseCenter() const { return maCenter; }
49 0 : basegfx::B2DTuple getB2DEllipseRadius() const { return maRadius; }
50 : };
51 : } // end of namespace basegfx
52 :
53 : #endif // INCLUDED_FILTER_SOURCE_SVG_B2DELLIPSE_HXX
54 :
55 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|