1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23#ifndef __com_sun_star_geometry_EllipticalArc_idl__
24#define __com_sun_star_geometry_EllipticalArc_idl__
25
26#ifndef __com_sun_star_geometry_RealPoint2D_idl__
27#include <com/sun/star/geometry/RealPoint2D.idl>
28#endif
29
30module com {  module sun {  module star {  module geometry {
31
32/** This structure specifies an arbitrary elliptical arc.<p>
33
34    This structure contains all parameters necessary to specify
35    arbitrary elliptical arcs. The parameters are modelled closely
36    after the <a href="www.w3c.org">SVG</a> specification.<p>
37
38    As with the parameters below, there are mostly four different
39    ellipses arcs (two different ellipses, on which four different
40    arcs connect start and end point) which satisfy the given set of
41    constrains. Thus, there are two flags indicating which one of those
42    ellipses should be taken.<p>
43
44    @since OpenOffice 2.0
45 */
46struct EllipticalArc
47{
48    /// Start point of the arc.
49	RealPoint2D StartPosition;
50
51	//-------------------------------------------------------------------------
52
53    /// End point of the arc.
54	RealPoint2D EndPosition;
55
56	//-------------------------------------------------------------------------
57
58    /// Main radius in x direction of the ellipse this arc is part of.
59	double 	RadiusX;
60
61	//-------------------------------------------------------------------------
62
63    /// Main radius in y direction of the ellipse this arc is part of.
64	double 	RadiusY;
65
66	//-------------------------------------------------------------------------
67
68    /** Rotation angle of the x axis of the ellipse relative to the x
69        axis of the reference coordinate system.
70     */
71	double 	XAxisRotation;
72
73	//-------------------------------------------------------------------------
74
75    /** If <TRUE/>, and there's a choice, take the longer one of two arcs
76        connecting start and end point.
77     */
78	boolean	IsLargeArc;
79
80	//-------------------------------------------------------------------------
81
82    /** If <TRUE/>, and there's a choice, take the arc that goes
83        clock-wise from start to end point.
84     */
85	boolean IsClockwiseSweep;
86};
87
88}; }; }; };
89
90#endif
91