1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
21 #include "VAxisOrGridBase.hxx"
22 #include "Tickmarks.hxx"
23 #include <PlottingPositionHelper.hxx>
24 #include <com/sun/star/drawing/PointSequenceSequence.hpp>
27 namespace chart
{ struct VLineProperties
; }
33 class VPolarGrid
: public VAxisOrGridBase
37 VPolarGrid( sal_Int32 nDimensionIndex
, sal_Int32 nDimensionCount
39 rtl::Reference
< ::chart::GridProperties
> > aGridPropertiesList
//main grid, subgrid, subsubgrid etc
41 virtual ~VPolarGrid() override
;
43 virtual void createShapes() override
;
45 void setIncrements( std::vector
< ExplicitIncrementData
>&& rIncrements
);
47 static void createLinePointSequence_ForAngleAxis(
48 css::drawing::PointSequenceSequence
& rPoints
49 , TickInfoArraysType
& rAllTickInfos
50 , const ExplicitIncrementData
& rIncrement
51 , const ExplicitScaleData
& rScale
52 , PolarPlottingPositionHelper
const * pPosHelper
53 , double fLogicRadius
, double fLogicZ
);
57 rtl::Reference
< ::chart::GridProperties
> > m_aGridPropertiesList
;//main grid, subgrid, subsubgrid etc
58 PolarPlottingPositionHelper m_aPosHelper
;
59 std::vector
< ExplicitIncrementData
> m_aIncrements
;
61 void getAllTickInfos( sal_Int32 nDimensionIndex
, TickInfoArraysType
& rAllTickInfos
) const;
63 void create2DRadiusGrid( const rtl::Reference
<SvxShapeGroupAnyD
>& xLogicTarget
64 , TickInfoArraysType
& rRadiusTickInfos
65 , TickInfoArraysType
& rAngleTickInfos
66 , const std::vector
<VLineProperties
>& rLinePropertiesList
);
71 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */