1/************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27#ifndef __com_sun_star_geometry_EllipticalArc_idl__ 28#define __com_sun_star_geometry_EllipticalArc_idl__ 29 30#ifndef __com_sun_star_geometry_RealPoint2D_idl__ 31#include <com/sun/star/geometry/RealPoint2D.idl> 32#endif 33 34module com { module sun { module star { module geometry { 35 36/** This structure specifies an arbitrary elliptical arc.<p> 37 38 This structure contains all parameters necessary to specify 39 arbitrary elliptical arcs. The parameters are modelled closely 40 after the <a href="www.w3c.org">SVG</a> specification.<p> 41 42 As with the parameters below, there are mostly four different 43 ellipses arcs (two different ellipses, on which four different 44 arcs connect start and end point) which satisfy the given set of 45 constrains. Thus, there are two flags indicating which one of those 46 ellipses should be taken.<p> 47 48 @since OOo 2.0 49 */ 50struct EllipticalArc 51{ 52 /// Start point of the arc. 53 RealPoint2D StartPosition; 54 55 //------------------------------------------------------------------------- 56 57 /// End point of the arc. 58 RealPoint2D EndPosition; 59 60 //------------------------------------------------------------------------- 61 62 /// Main radius in x direction of the ellipse this arc is part of. 63 double RadiusX; 64 65 //------------------------------------------------------------------------- 66 67 /// Main radius in y direction of the ellipse this arc is part of. 68 double RadiusY; 69 70 //------------------------------------------------------------------------- 71 72 /** Rotation angle of the x axis of the ellipse relative to the x 73 axis of the reference coordinate system. 74 */ 75 double XAxisRotation; 76 77 //------------------------------------------------------------------------- 78 79 /** If <TRUE/>, and there's a choice, take the longer one of two arcs 80 connecting start and end point. 81 */ 82 boolean IsLargeArc; 83 84 //------------------------------------------------------------------------- 85 86 /** If <TRUE/>, and there's a choice, take the arc that goes 87 clock-wise from start to end point. 88 */ 89 boolean IsClockwiseSweep; 90}; 91 92}; }; }; }; 93 94#endif 95